On the Composition of Design Patterns

Ian Bayley, Hong Zhu
2008 2008 The Eighth International Conference on Quality Software  
Design patterns are usually applied in a composed form with each other. It is crucial to be able to formally reason about how patterns can be composed and to prove the properties of composed patterns. Based on our previous work on formal specification of design patterns and formal reasoning about their properties, this paper focuses on the composition of design patterns. A notion of composition of patterns with respect to overlaps is formally defined based on two operations on design patterns,
more » ... hich are the specialisation of a pattern with constraints and the lifting of a pattern with a subset of components as the key. The composition of design patterns is illustrated by the composition of Composite, Strategy and Observer patterns. A case study of the formalisation of the relationship between patterns as suggested by GoF is also reported.
doi:10.1109/qsic.2008.32 dblp:conf/qsic/BayleyZ08 fatcat:7b6u6atkufei7mxig6gg2jofvu