H. Ossher, M. Kaplan, Alexander Katz, W. Harrison, V. Kruskal
{"title":"Specifying Subject-Oriented Composition","authors":"H. Ossher, M. Kaplan, Alexander Katz, W. Harrison, V. Kruskal","doi":"10.1002/(SICI)1096-9942(1996)2:3<179::AID-TAPO4>3.0.CO;2-R","DOIUrl":null,"url":null,"abstract":"Subject-oriented programming supports composition of object-oriented programs or program fragments called subjects. This article presents an approach to specifying desired compositions in a convenient and concise manner. We motivate the need for subject composition, and illustrate the key issues. We define a low-level model in which composition is controlled by detailed attributes. We then describe higher-level composition rules as collections of attributes that, together, provide some desired aspect of composition functionality. Compositions are specified by means of composition expressions written as collections of rules, typically a general rule along with rules specifying exceptions. A rule library is thus an open-ended collection of useful abstractions in terms of which to define compositions. We give definitions of a few common rules, Including merge and override, as a first step towards a generally useful composition rule library. We also outline an object-oriented framework for implementing our composition approach, which we are currently building as part of our support for subject-oriented programming in C++. © 1996 John Wiley & Sons, Inc.","PeriodicalId":293061,"journal":{"name":"Theory Pract. Object Syst.","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1996-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"111","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theory Pract. Object Syst.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/(SICI)1096-9942(1996)2:3<179::AID-TAPO4>3.0.CO;2-R","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 111
指定面向主题的组合
面向主题的编程支持面向对象程序或称为主题的程序片段的组合。本文介绍了一种以方便和简洁的方式指定所需组合的方法。我们激发主题组成的需要,并说明关键问题。我们定义了一个低级模型,其中的组合由详细的属性控制。然后,我们将高级组合规则描述为属性集合,这些属性集合一起提供组合功能的某些期望方面。组合是通过组合表达式来指定的,这些表达式写成规则的集合,通常是通用规则和指定例外的规则。因此,规则库是一个有用抽象的开放式集合,可以根据它来定义组合。我们给出了一些常见规则的定义,包括合并和覆盖,作为构建通用组合规则库的第一步。我们还概述了一个面向对象的框架,用于实现我们的组合方法,我们目前正在构建这个框架,作为支持c++中面向主题编程的一部分。©1996 John Wiley & Sons, Inc
本文章由计算机程序翻译,如有差异,请以英文原文为准。