ABSTRACT
In this paper we present a new vision in object oriented programming languages where the objects' attributes and operations depend on who is interacting with them. This vision is based on a new definition of the notion of role, which is inspired to the concept of affordance as developed in cognitive science. The current vision of objects considers attributes and operations as being objective and independent from the interaction. In contrast, in our model interaction with an object always passes through a role played by another object manipulating it. The advantage is that roles allow to define operations whose behavior changes depending on the role and the requirements it imposes, and to define session aware interaction, where the role maintains the state of the interaction with an object. Finally, we discuss how roles as affordances can be introduced in Java, building on our language powerJava.
- M. Baldoni, G. Boella, and L. van der Torre. Bridging agent theory and object orientation: Importing social roles in object oriented languages. In LNCS 3862: Procs. of PROMAS'05 workshop at AAMAS'05, pages 57--75, Berlin, 2005. Springer. Google ScholarDigital Library
- M. Baldoni, G. Boella, and L. van der Torre. Social roles, from agents back to objects. In Procs. of WOA'05 Workshop, Bologna, 2005. Pitagora.Google Scholar
- M. Baldoni, G. Boella, and L. van der Torre. Bridging agent theory and object orientation: Interaction among objects. In Procs. of PROMAS'06 workshop at AAMAS'06, 2006. Google ScholarDigital Library
- M. Baldoni, G. Boella, and L. van der Torre. Powerjava: ontologically founded roles in object oriented programming language. In Procs. of OOOPS Track of ACMSAC'06, pages 1414--1418. ACM, 2006. Google ScholarDigital Library
- M. Baldoni, G. Boella, and L. van der Torre. Roles as a coordination construct: Introducing powerJava. Electronic Notes in Theoretical Computer Science, 150(1):9--29, 2006. Google ScholarDigital Library
- D. Baumer, D. Riehle, W. Siberski, and M. Wulf. The role object pattern. In Procs. of PLOP'02, 2002.Google Scholar
- J. Cabot and R. Raventos. Conceptual modelling patterns for roles. In LNCS 3870: Journal on Data Semantics V, pages 158--184, Berlin, 2006. Springer. Google ScholarDigital Library
- M. Dastani, V. Dignum, and F. Dignum. Role-assignment in open agent societies. In Procs. of AAMAS'03, pages 489--496, New York (NJ), 2003. ACM Press. Google ScholarDigital Library
- S. Drossopoulou, F. Damiani, M. Dezani-Ciancaglini, and P. Giannini. More dynamic object re-classification: FickleII. ACM Transactions On Programming Languages and Systems, 24(2):153--191, 2002. Google ScholarDigital Library
- J. Ferber, O. Gutknecht, and F. Michel. From agents to organizations: an organizational view of multiagent systems. In LNCS 2935: Procs. of AOSE'03, pages 214--230, Berlin, 2003. Springer.Google Scholar
- J. Gibson. The Ecological Approach to Visual Perception. Lawrence Erlabum Associates, New Jersey, 1979.Google Scholar
- S. Herrmann. Roles in a context. In Procs. of AAAI Fall Symposium Roles'05. AAAI Press, 2005.Google Scholar
- T. Juan, A. Pearce, and L. Sterling. Roadmap: extending the gaia methodology for complex open system. In Procs. of AAMAS'04, pages 3--10, 2002. Google ScholarDigital Library
- B. Kristensen and K. Osterbye. Roles: conceptual abstraction theory and practical language issues. Theor. Pract. Object Syst., 2(3):143--160, 1996. Google ScholarDigital Library
- F. Loebe. Abstract vs. social roles - a refined top-level ontological analysis. In Procs. of AAAI Fall Symposium Roles'05, pages 93--100. AAAI Press, 2005.Google Scholar
- C. Masolo, G. Guizzardi, L. Vieu, E. Bottazzi, and R. Ferrario. Relational roles and qua-individuals. In Procs. of AAAI Fall Symposium Roles'05. AAAI Press, 2005.Google Scholar
- C. Masolo, L. Vieu, E. Bottazzi, C. Catenacci, R. Ferrario, A. Gangemi, and N. Guarino. Social roles and their descriptions. In Procs. of KR'04, pages 267--277. AAAI Press, 2004.Google Scholar
- M. Papazoglou and B. Kramer. A database model for object dynamics. The VLDB Journal, 6(2):73--96, 1997. Google ScholarDigital Library
- F. Steimann. A radical revision of UML's role concept. In Procs. of UML2000, pages 194--209, 2000. Google ScholarDigital Library
- T. Tamai. Evolvable programming based on collaboration-field and role model. In Procs. of IWPSE'02, pages 1--5. ACM, 2002. Google ScholarDigital Library
Index Terms
Interaction among objects via roles: sessions and affordances in Java
Recommendations
Objects with roles
The use of object-oriented conceptual models for modeling office applications and information systems is discussed. A model for describing object behavior based on the concept of role is presented. Roles allow one to describe different perspectives for ...
The interplay between relationships, roles and objects
FSEN'09: Proceedings of the Third IPM international conference on Fundamentals of Software EngineeringIn this paper we study the interconnection between relationships and roles. We start from the patterns used to introduce relationships in object oriented languages, and we show how the role model proposed in powerJava can be used to define roles. In ...
Modelling the interaction between objects: roles as affordances
KSEM'06: Proceedings of the First international conference on Knowledge Science, Engineering and ManagementIn this paper we present a new vision of objects in knowledge representation where the objects’ attributes and operations depend on who is interacting with them. This vision is based on a new definition of the notion of role, which is inspired by the ...
Comments