Title
Using Roles as Units of Composition.
Abstract
A single decomposition strategy cannot capture all aspects of a concept, so we need to extend Object Oriented Decomposition (today most used strategy). We propose roles as a way to compose classes that provides a modular way of capturing and reusing those concerns that fall outside a concept's main purpose, while being a natural extension of the OO paradigm. Roles have been used successfully to model the different views a concept provides and we want to bring that experience to the programming level. We discuss how to make roles modular and reusable. We also show how to compose classes with roles using JavaStage, our role supporting language. To validate our approach we developed generic and reusable roles for the Gang of Four patterns. We developed reusable roles for 10 out of 23 patterns. We also were able to use some of these roles in JHotDraw framework.
Year
DOI
Venue
2012
10.1007/978-3-642-45422-6_2
Communications in Computer and Information Science
Keywords
Field
DocType
Modularity,Inheritance,Roles,Composition,Reuse
Object-oriented programming,Software engineering,Systems engineering,Computer science,Reuse,Modular design,Modularity
Conference
Volume
ISSN
Citations 
410
1865-0929
0
PageRank 
References 
Authors
0.34
11
2
Name
Order
Citations
PageRank
Fernando Sérgio Barbosa183.20
Ademar Aguiar215427.13