The Interplay between Relationships, Roles and Objects

  • Matteo Baldoni
  • Guido Boella
  • Leendert van der Torre
Conference paper

DOI: 10.1007/978-3-642-11623-0_24

Part of the Lecture Notes in Computer Science book series (LNCS, volume 5961)
Cite this paper as:
Baldoni M., Boella G., van der Torre L. (2010) The Interplay between Relationships, Roles and Objects. In: Arbab F., Sirjani M. (eds) Fundamentals of Software Engineering. FSEN 2009. Lecture Notes in Computer Science, vol 5961. Springer, Berlin, Heidelberg

Abstract

In 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 particular, we focus on how to implement roles in an abstract way in objects representing relationships, and to specify the interconnections between the roles. Abstract roles cannot be instantiated. To participate in a relationship, objects have to extend the abstract roles of the relationship. Only when roles are implemented in the objects offering them, they can be instantiated, thus allowing another object to play those roles.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2010

Authors and Affiliations

  • Matteo Baldoni
    • 1
  • Guido Boella
    • 1
  • Leendert van der Torre
    • 2
  1. 1.Dipartimento di InformaticaUniversità di TorinoItaly
  2. 2.University of Luxembourg 

Personalised recommendations