Formal specification of the variants and behavioural features of design patterns

  • Authors:
  • Ian Bayley;Hong Zhu

  • Affiliations:
  • Department of Computing and Electronics, Oxford Brookes University, Oxford OX33 1HX, UK;Department of Computing and Electronics, Oxford Brookes University, Oxford OX33 1HX, UK

  • Venue:
  • Journal of Systems and Software
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The formal specification of design patterns is widely recognized as being vital to their effective and correct use in software development. It can clarify the concepts underlying patterns, eliminate ambiguity and thereby lay a solid foundation for tool support. This paper further advances a formal meta-modeling approach that uses first-order predicate logic to specify design patterns. In particular, it specifies both structural and behavioural features of design patterns and systematically captures the variants in a well-structured format. The paper reports a case study involving the formal specification of all 23 patterns in the Gang of Four catalog. It demonstrates that the approach improves the accuracy of pattern specifications by covering variations and clarifying the ambiguous parts of informal descriptions.