Author_Institution :
North Carolina Univ., Chapel Hill, NC, USA
Abstract :
Design patterns are an important concept in the field of software engineering, providing a language and application independent method for expressing and conveying lessons learned by experienced designers. There is a large gap, however, between the aesthetic and elegance of the patterns as intended and the reality of working with an ultimately mathematically expressible system such as code. We describe a step towards meaningful formal analysis of code within the language of patterns, and discuss potential uses. The major contributions include: a compendium of elemental design patterns (EDPs), a layer of seemingly simplistic relationships between objects that, on closer inspection, provide a critical link between the world of formal analysis and the realm of pattern design and implementation without reducing the patterns to merely syntactic constructs; an extension to the ς-calculus, termed ρ-calculus, a formal notation for expressing relationships between the elements of object oriented languages, and its use in expressing the EDPs directly. We discuss their use in composition and decomposition of existing patterns, identification of pattern use in existing code to aid comprehension, and future research directions, such as support for refactoring of designs, interaction with traditional code analysis systems, and the education of students of software architecture.
Keywords :
formal specification; object-oriented methods; object-oriented programming; programming language semantics; software architecture; EDP; elemental design pattern; formal code analysis; formal semantics; object oriented languages; software architecture; software design patterns; software engineering; Amorphous materials; Application software; Educational programs; Inspection; Pattern analysis; Power generation; Power system management; Programming profession; Software architecture; Software engineering;