powerJava
Authors:
Open Access
- 23 April 2006
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1414-1418
Abstract
In this paper we introduce a new view on roles in Object Oriented programming languages, based on an ontological analysis of roles. A role is always associated with an object instance playing the role and also to an object instance (its institution) which represents its context. The definition of a role depends on the definition of the institution. This property allows to endow role-players with powers that can modify the state of the institution and of the other roles defined in it. As an example, we introduce a role construct in Java, where the abolve features are interpreted as follows. Roles are implemented as classes, which can be instantiated only in presence of an instance of the player and of an instance of an institution. The definition of a class implementing a role is included in the class of the institution, the role belongs to. Powers are methods which can access private fields and methods of the institution they belong to, and of the other roles of the same institution.Keywords
This publication has 7 references indexed in Scilit:
- Patterns of Interface-Based Programming.The Journal of Object Technology, 2005
- Attributing mental attitudes to roles2004
- Conquering aspects with Caesar2003
- Evaluating ontological decisions with OntoCleanCommunications of the ACM, 2002
- On the representation of roles in object-oriented and conceptual modellingData & Knowledge Engineering, 2000
- A database model for object dynamicsThe VLDB Journal, 1997
- Extending object-oriented systems with rolesACM Transactions on Information Systems, 1996