Paper published in a journal (Scientific congresses, symposiums and conference proceedings)
Adding Roles to Relationship Patterns
Baldoni, Matteo; Boella, Guido; van der Torre, Leon
2007In Proceedings of WOA07
Peer reviewed
 

Files


Full Text
BaldoniPatterns.pdf
Publisher postprint (76.88 kB)
Download

All documents in ORBilu are protected by a user license.

Send to



Details



Keywords :
how roles can be added; patterns modelling relationships
Abstract :
[en] In this paper we study how roles can be added to patterns modelling relationships in Object Oriented programming, and which new relationship patterns can be introduced using roles. Relationships can be introduced in programming languages either by reducing them to attributes of the objects which participate in the relationship, or by modelling the relationship itself as a class whose instances have the participants of the relationships among their attributes. However, even if roles have been recognized as an essential component of relationships, also in modelling languages like UML, they have not been introduced in Object Oriented programming when it is necessary to model relationships. Introducing roles allows to add attributes and behaviors to the participants in the relationship, rather than to the relationship itself, and to distinguish natural types as classes participating in the relationships from the roles the participants acquire in the relationships. In this paper we show how the role model proposed in powerJava can be used to endow relationships with roles, both in the relationship as attribute and in the relationship object pattern. Finally, since these patterns have different advantages and limitations, we propose a third pattern based on roles which benefits from the advantages of the two previous patterns when modelling relationships.
Disciplines :
Computer science
Identifiers :
UNILU:UL-CONFERENCE-2010-295
Author, co-author :
Baldoni, Matteo ;  University of Luxembourg > Faculty of Science, Technology and Communication (FSTC) > Computer Science and Communications Research Unit (CSC)
Boella, Guido ;  University of Luxembourg > Faculty of Science, Technology and Communication (FSTC) > Computer Science and Communications Research Unit (CSC)
van der Torre, Leon ;  University of Luxembourg > Faculty of Science, Technology and Communication (FSTC) > Computer Science and Communications Research Unit (CSC)
External co-authors :
yes
Language :
English
Title :
Adding Roles to Relationship Patterns
Publication date :
2007
Event name :
Proceedings of WOA07
Event date :
2007
Audience :
International
Journal title :
Proceedings of WOA07
Peer reviewed :
Peer reviewed
Available on ORBilu :
since 01 March 2016

Statistics


Number of views
53 (0 by Unilu)
Number of downloads
40 (0 by Unilu)

Scopus citations®
 
0
Scopus citations®
without self-citations
0

Bibliography


Similar publications



Contact ORBilu