A Role-Based Metamodeling Approach to Specifying Design Patterns

  • Authors:
  • Dae-Kyoo Kim;Robert France;Sudipto Ghosh;Eunjee Song

  • Affiliations:
  • -;-;-;-

  • Venue:
  • COMPSAC '03 Proceedings of the 27th Annual International Conference on Computer Software and Applications
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Design patterns describe solutions to recurring designproblems in the development of software designs. To encouragethe use of design patterns, we are investigatingtool support for incorporating patterns into UML models.The development of such tools requires patterns to be specifiedat the metamodel level. Patterns may be specified usingroles, where a role is played by model elements. However,the notion of role in the object-oriented communityis strictly based on objects, and does not allow the use ofthe word "role" in any other place where the context is notobject-based. In this paper, we propose a notion of role thatcan be used to specify design patterns at the metamodellevel. We survey the characteristics of object-based rolesand generalize them. Based on the generalized notion of arole we define a new notion of a model role which is playedby a model element. We illustrate the use of model roles witha specification of a variant of the Observer design pattern.