Extending object-oriented systems with roles

被引:124
作者
Gottlob, G [1 ]
Schrefl, M [1 ]
Rock, B [1 ]
机构
[1] UNIV LINZ, DEPT INFORMAT SYST DATA & KNOWLEDGE ENGN, A-4040 LINZ, AUSTRIA
关键词
design; languages;
D O I
10.1145/230538.230540
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In many class-based object-oriented systems the association between aa instance and a class is exclusive and permanent. Therefore these systems have serious difficulties in representing objects taking an different roles over time. Such objects must be reclassified any time they evolve (e.g., if a person becomes a student and later an employee). Class hierarchies must be planned carefully and may grow exponentially if entities may take an several independent roles. The problem is even more severe far object-oriented databases than for common object-oriented programming, Databases store objects over longer periods, during which the represented entities evolve, This article shows how class-based object-oriented systems can be extended to handle evolving objects well. Class hierarchies are complemented by role hierarchies, whose nodes represent role types an object classified in the root may take on. At any point in time, an entity is represented by an instance of the root and an instance of every role type whose role it currently plays, In a natural way, the approach extends traditional object-oriented concepts, such as classification, object identity, specialization, inheritance, and polymorphism in a natural way. The practicability of the approach is demonstrated by an implementation in Smalltalk. Smalltalk was chosen because it is widely known, which is net true for any particular class-based object-oriented database programming language. Boles can be provided in Smalltalk by adding a few classes. There is no need to modify the semantics of Smalltalk itself. Role hierarchies ape mapped transparently onto ordinary classes. The presented Implementation can easily be ported to object-oriented database programming languages based on Smalltalk such as Gemstone's OPAL.
引用
收藏
页码:268 / 296
页数:29
相关论文
共 21 条
[1]  
ALBANO A, 1993, P 19 INT C VER LARG, P39
[2]  
BANERJEE J, 1987, MAY P ACM SIGMOD C M, P311
[3]  
BUTTERWORTH P, 1991, COMMUN ACM, V34, P65
[4]  
FISHMAN DH, 1987, ACM T INFORM SYST, V5, P48
[5]  
GOLDBERG A, 1989, SMALLTALK, V80
[6]  
GOTTLOB G, 1990, LECTURE NOTES COMPUT, V504, P144
[7]  
KAPPEL G, 1991, SEVENTH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, P530
[8]  
KLAS W, 1988, RES NETWORK DISTRIBU
[9]  
LI Q, 1988, P ACM C OFF INF SYST, P265
[10]  
MARTIN JA, 1992, OBJECT ORIENTED ANAL