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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Gamma, E., Helm, R., Vlissides, J., et al.: Design Patterns: Elements of Reusable Object Oriented Software. Soft Bank Publishing, Tokyo (2001)
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)
Torchiano, M.: Documenting Pattern Use in Java Programs. In: IEEE Int. Conference on Software Maintenance, ICSM 2002 (2002)
Dong, J.: UML Extensions for Design Pattern Compositions. J. of Object Technology 1(5), 149–161 (2002)
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)
Object Management Group: Unified Modeling Language Specification. Version 1.4 (2001), http://www.omg.org
Hanenberg, S., Unland, R.: Roles and Aspects: Similarities, Differences, and Synergetic Potential. In: 8th International Conference on Object-Oriented Information Systems (2002)
Kristensen, B.B.: Object-Oriented Modeling with Roles. In: Proceedings of the 2nd International Conference on Object Oriented Information Systems, OOIS 1995 (1995)
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)
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)
AspectJ Team: The AspectJTM Programming Guide, http://eclipse.org/aspectj/
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)
Bettini, L., Capecchi, S., Venneri, B.: Extending Java to dynamic object behaviors. Electronic Notes in Theoretical Computer Science 82(8) (2003)
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)
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)
Sanada, Y., Adams, R.: Representing Design Patterns and Frameworks in UML-Towards a Comprehensive Approach. J. of Object Technology 1(2) (2002)
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)
Mapelsden, D., Hosking, J., Grundy, J.: Design Pattern Modelling and Instantiation using DPML. In: Proceedings of the Tools Pacific 2002. CRPIT Press (2002)
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)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)