Relations as semantic constructs in an object-oriented language
OOPSLA '87 Conference proceedings on Object-oriented programming systems, languages and applications
On the representation of roles in object-oriented and conceptual modelling
Data & Knowledge Engineering
An Object Data Model with Roles
VLDB '93 Proceedings of the 19th International Conference on Very Large Data Bases
Interaction among objects via roles: sessions and affordances in Java
PPPJ '06 Proceedings of the 4th international symposium on Principles and practice of programming in Java
First-class relationships in an object-oriented language
ECOOP'05 Proceedings of the 19th European conference on Object-Oriented Programming
Roles, an interdisciplinary perspective
Applied Ontology - Roles, an interdisciplinary perspective
Implementing relationships using Affinity
Proceedings of the Workshop on Relationships and Associations in Object-Oriented Languages
ECOOP'07 Proceedings of the 2007 conference on Object-oriented technology
The interplay between relationships, roles and objects
FSEN'09 Proceedings of the Third IPM international conference on Fundamentals of Software Engineering
Roles, an interdisciplinary perspective
Applied Ontology - Roles, an interdisciplinary perspective
A type-theoretical approach for ontologies: The case of roles
Applied Ontology
Hi-index | 0.00 |
In this paper we study how roles can be added to patterns modelling relationships in Object Oriented programming. 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 the natural types of the participants in the relationships from the roles the participants acquire in the relationships. We show how the role model of the language powerJava can be used to endow the relationship as attribute pattern with roles.