Skip to main content
Log in

A metamodeling approach for pattern specification and management

  • Published:
Journal of Zhejiang University SCIENCE C Aims and scope Submit manuscript

Abstract

The formal specification of design patterns is central to pattern research and is the foundation of solving various pattern-related problems. In this paper, we propose a metamodeling approach for pattern specification, in which a pattern is modeled as a meta-level class and its participants are meta-level references. Instead of defining a new metamodel, we reuse the Unified Modeling Language (UML) metamodel and incorporate the concepts of Variable and Set into our approach, which are unavailable in the UML but essential for pattern specification. Our approach provides straightforward solutions for pattern-related problems, such as pattern instantiation, evolution, and implementation. By integrating the solutions into a single framework, we can construct a pattern management system, in which patterns can be instantiated, evolved, and implemented in a correct and manageable way.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • Albin-Amiot, H., Guehénéuc, Y.G., 2001. Meta-Modeling Design Patterns: Application to Pattern Detection and Code Synthesis. Proc. 1st ECOOP Workshop on Automating Object-Oriented Software Development Methods, p.1–35.

    Google Scholar 

  • Atkinson, C., Kuhne, T., 2003. Model-driven development: a metamodeling foundation. IEEE Softw., 20(5):36–41. [doi:10.1109/MS.2003.1231149]

    Article  Google Scholar 

  • Dong, J., 2002. Design Component Contracts: Model and Analysis of Pattern-Based Composition. PhD Thesis, Computer Science Department, University of Waterloo, Ontario, Canada.

    Google Scholar 

  • Dong, J., Alencar, P.S.C., Cowan, D.D., 2000. Ensuring Structure and Behavior Correctness in Design Composition. Proc. 7th IEEE Int. Conf. and Workshop on the Engineering of Computer Based Systems, p.279–287. [doi:10.1109/ECBS.2000.839887]

    Google Scholar 

  • Dong, J., Alencar, P.S.C., Cowan, D.D., Sheng, Y., 2007a. Composing pattern-based components and verifying correctness. J. Syst. Softw., 80(11):1755–1769. [doi:10.1016/j.jss.2007.03.005]

    Article  Google Scholar 

  • Dong, J., Yang, S., Zhang, K., 2007b. Visualizing design patterns in their applications and compositions. IEEE Trans. Softw. Eng., 33(7):433–453. [doi:10.1109/TSE.2007.1012]

    Article  Google Scholar 

  • Eden, A.H., Hirshfeld, Y., 2001. Principles in Formal Specification of Object Oriented Architectures. Proc. 11th Conf. of the Centre for Advanced Studies on Collaborative Research, p.3.

    Google Scholar 

  • Eden, A.H., Hirshfeld, Y., Kazman, R., 2006. Abstraction classes in software design. IEE Proc.-Softw., 153(4):163–182. [doi:10.1049/ip-sen:20050075]

    Article  Google Scholar 

  • Gamma, E., Helm, R., Johnson, R., Vlissides, J., 2004. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, Boston, MA, USA.

    Google Scholar 

  • Hannemann, J., Kiczales, G., 2002. Design Pattern Implementation in Java and AspectJ. Proc. 17th ACM SIG-PLAN Conf. on Object-Oriented Programming, Systems, Languages, and Applications, p.161–173. [doi:10.1145/582419.582436]

    Google Scholar 

  • Leavens, G.T., Baker, A.L., Ruby, C., 1998. JML: a Java Modeling Language. Formal Underpinnings of Java Workshop.

    Google Scholar 

  • Mapelsden, D., Hosking, J., Grundy, J., 2002. Design Pattern Modelling and Instantiation Using DPML. Proc. 40th Int. Conf. on Tools Pacific: Objects for Internet, Mobile and Embedded Applications, p.3–11.

    Google Scholar 

  • Reiter, R., 2001. Knowledge in Action: Logical Foundations for Specifying and Implementing Dynamical Systems. MIT Press, Cambridge, MA, USA.

    Google Scholar 

  • Soundarajan, N., Hallstrom, J.O., 2004. Responsibilities and Rewards: Specifying Design Patterns. Proc. 26th Int. Conf. on Software Engineering, p.666–675. [doi:10.1109/ICSE.2004.1317488]

    Chapter  Google Scholar 

  • Taibi, T., Ling, D.N.C., 2003. Formal specification of design pattern combination using BPSL. Inf. Softw. Technol., 45(3):157–170. [doi:10.1016/S0950-5849(02)000195-7]

    Article  Google Scholar 

  • Zhao, C.Y., Kong, J., Zhang, K., 2007. Design Pattern Evolution and Verification Using Graph Transformation. Proc. 40th Annual Hawaii Int. Conf. on System Sciences, p.290–297. [doi:10.1109/HICSS.2007.169]

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Liang Dou.

Additional information

Project (Nos. 61070226 and 61003181) supported by the National Natural Science Foundation of China

Rights and permissions

Reprints and permissions

About this article

Cite this article

Dou, L., Liu, Q. & Yang, Zy. A metamodeling approach for pattern specification and management. J. Zhejiang Univ. - Sci. C 14, 743–755 (2013). https://doi.org/10.1631/jzus.C1300040

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1631/jzus.C1300040

Key words

CLC number

Navigation