Skip to main content

RoleOf Relationship and Its Meta Model for Design Pattern Instantiation

  • Conference paper
Advanced Data Mining and Applications (ADMA 2005)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 3584))

Included in the following conference series:

Abstract

This paper states that the RoleOf Relationship can provide a general approach to resolve instantiation problems of design patterns. The problems come from the fact that pattern logic scatters across multiple business classes (classes specific to each application). This causes problems such as decreasing reusability of pattern logic, and losing of the instantiation information of pattern (traceability and overlapping problem) etc. To resolve these problems in design level, an approach for design pattern instantiation based on RoleOf relationship is proposed. In our approach, roles of pattern are treated as the independent modeling elements and RoleOf relationship is used to associate a role with a business class. The meta model of RoleOf relationship for pattern instantiation and its semantics are proposed as well. Examples are used to illustrate this approach. Implementation and behavior description of RoleOf relationship are also presented in the paper.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Gamma, E., Helm, R., Vlissides, J., et al.: Design Patterns: Elements of Reusable Object Oriented Software. Soft Bank Publishing, Tokyo (2001)

    Google Scholar 

  2. Hannemann, J., Kiczales, G.: Design Pattern Implementation in Java and AspectJ. In: Proc. Of the ACM Conf. on Object-Oriented Programming Systems, Languages, and Applications, pp. 161–173 (2002)

    Google Scholar 

  3. Torchiano, M.: Documenting Pattern Use in Java Programs. In: IEEE Int. Conference on Software Maintenance, ICSM 2002 (2002)

    Google Scholar 

  4. Dong, J.: UML Extensions for Design Pattern Compositions. J. of Object Technology 1(5), 149–161 (2002)

    Google Scholar 

  5. Yacoub, S.M., Ammar, H.H.: UML support for designing software systems as a composition of design patterns. In: Gogolla, M., Kobryn, C. (eds.) UML 2001. LNCS, vol. 2185, pp. 149–165. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  6. Object Management Group: Unified Modeling Language Specification. Version 1.4 (2001), http://www.omg.org

  7. Hanenberg, S., Unland, R.: Roles and Aspects: Similarities, Differences, and Synergetic Potential. In: 8th International Conference on Object-Oriented Information Systems (2002)

    Google Scholar 

  8. Kristensen, B.B.: Object-Oriented Modeling with Roles. In: Proceedings of the 2nd International Conference on Object Oriented Information Systems, OOIS 1995 (1995)

    Google Scholar 

  9. Dahchour, M.: Integrating Generic Relationships into Object Models Using Metaclasses[Ph.D Thesis]. Département d’ingénierie informatique, Université catholique de Louvain, Belgium (2001)

    Google Scholar 

  10. Kiczales, G., Lamping, J., Menhdhekar, A., Maeda, C., Lopes, C., Loingtier, J., Irwin, J.: Aspect-oriented programming. In: Aksit, M., Matsuoka, S. (eds.) ECOOP 1997. LNCS, vol. 1241, pp. 220–242. Springer, Heidelberg (1997)

    Chapter  Google Scholar 

  11. AspectJ Team: The AspectJTM Programming Guide, http://eclipse.org/aspectj/

  12. Stein, D., Hanenberg, S., Unland, R.: A UML-based Aspect-Oriented Design Notation For AspectJ. In: 1st Int. Conf. on Aspect-Oriented Software Development(AOSD) (2002)

    Google Scholar 

  13. Bettini, L., Capecchi, S., Venneri, B.: Extending Java to dynamic object behaviors. Electronic Notes in Theoretical Computer Science 82(8) (2003)

    Google Scholar 

  14. Cheng-Wan, H., Fei, H., Ke-Qing, H.: A Dynamic Object Behavior Model and Implementation Based on Computational Reflection. Wuhan University Journal of Natural Sciences 10(2), 358–362 (2005)

    Article  Google Scholar 

  15. Kim, H., Boldyreff, C.: Developing Software Metrics Applicable to UML Models. In: 6th ECOOP Workshop on Quantitative Approaches in Object-Oriented Software Engineering, QAOOSE 2002 (2002)

    Google Scholar 

  16. Sanada, Y., Adams, R.: Representing Design Patterns and Frameworks in UML-Towards a Comprehensive Approach. J. of Object Technology 1(2) (2002)

    Google Scholar 

  17. Clarke, S., Walker, R.J.: Composition Patterns: An Approach to Designing Reusable Aspects. In: Proc. of the 23rd International Conference on Software Engineering, pp. 5–14 (2001)

    Google Scholar 

  18. Mapelsden, D., Hosking, J., Grundy, J.: Design Pattern Modelling and Instantiation using DPML. In: Proceedings of the Tools Pacific 2002. CRPIT Press (2002)

    Google Scholar 

  19. Hanenberg, S., Unland, R.: Parametric Introductions. In: 2nd Int’ Conf. on Aspect- Oriented Software Development (AOSD 2003), pp. 80–89. ACM Press, New York (2003)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

He, C., He, F., He, K., Liu, J., Tu, W. (2005). RoleOf Relationship and Its Meta Model for Design Pattern Instantiation. In: Li, X., Wang, S., Dong, Z.Y. (eds) Advanced Data Mining and Applications. ADMA 2005. Lecture Notes in Computer Science(), vol 3584. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11527503_76

Download citation

  • DOI: https://doi.org/10.1007/11527503_76

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-27894-8

  • Online ISBN: 978-3-540-31877-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics