preview

Description And Description Of A Design Pattern

Better Essays

A design pattern must be represented in a structured manner so that it can be understood clearly and unambiguously. A good description enables the reader to grasp the essence of the pattern. It is expressed formally in terms of a pattern template. Several pattern template formats have been designed and used by researchers. The template used in this research work is based on the POSA book. Its elements and the description of each element are shown in Table 2.1. Element Meaning Name The pattern name. Context Description of the situation giving rise to the problem. Problem Description of the recurring problem arising in the context. Forces Description of why the problem is difficult to solve. Solution Description of the proven solution to the problem. Also Known As Aliases - other names for the pattern. Example A real world example which brings out the need for the pattern. Structure A specification of the structural aspects of the pattern. Dynamics Description of the run-time behavior of the pattern. Implementation Guidelines for implementing the pattern. Known Uses Examples of pattern implementation in existing systems. Consequences The benefits and potential liabilities of using the pattern. Variants Description of variants or specializations of the pattern Related Patterns A list of related patterns. Table 2.4: Pattern description template ** Should we include a sample pattern in a template*** 2.4.2 Pattern Classification and Categories In order to apply a pattern for a

Get Access