Software analysis pattern explained
Software analysis patterns or analysis patterns in software engineering are conceptual models, which capture an abstraction of a situation that can often be encountered in modelling. An analysis pattern can be represented as "a group of related, generic objects (meta-classes) with stereotypical attributes (data definitions), behaviors (method signatures), and expected interactions defined in a domain-neutral manner."[1]
Overview
Martin Fowler defines a pattern as an "idea that has been useful in one practical context and will probably be useful in others".[2] He further on explains the analysis pattern, which is a pattern "that reflects conceptual structures of business processes rather than actual software implementations". An example:
Martin Fowler describes this pattern as one that "captures the memory of something interesting which affects the domain".[3]
Describing an analysis pattern
While doing Analysis we are trying to understand the problem. Fowler does not detail in his book[2] a formal way to write or to describe analysis patterns. Suggestions have been raised since to have a consistent and uniform format for describing them. Most of them are based on the work from Erich Gamma, Frank Buschmann and Christopher Alexander on patterns (in architecture or computer science). One of them, proposed by Hahsler,[4] has the following structure:
- Pattern name: a pattern name should really reflect the meaning of what it is abstracting. It should be simple so that one can refer to it during analysis.
- Intent: the intent aims to describe the goal the pattern is trying to achieve. It should also describe the problem it tries to solve.
- Motivation: "A scenario that illustrates the problem and how the analysis pattern contributes to the solution in the concrete scenario"[5]
- Forces and context: "Discussion of forces and tensions which should be resolved by the analysis pattern"[6]
- Solution: "Description of solution and of the balance of forces achieved by the analysis pattern in the scenario in the motivation section. Includes all relevant structural and behavioural aspects of the analysis pattern."[4]
- Consequences: this should emphasise how the goal is achieved by the analysis pattern with its limitation.
- Design: Suggestions of design implementations of this pattern.
- Known uses: Real-world examples of this pattern usage.
See also
Further reading
- Haitham, Hamza . Fayad, Mohamed E. . amp . A Pattern Language for Building Stable Analysis Patterns . . Computer Science and Engineering Dept., University of Nebraska-Lincoln . 2002 . 2007-01-31 . This paper on pattern language for analysis pattern was presented at PLoP 2002.
- Book: Buschmann
, Frank
. Regine Meunier . Hans Rohnert . Peter Sommerlad . Michael Stal . 1996 . Pattern-oriented Software Architecture, Volume 1: A System of Patterns . John Wiley & Sons . 0-471-95869-7.
Notes and References
- Purao . Sandeep . Storey, Veda C. . Han, Taedong . Improving Analysis Pattern Reuse . Information Systems Research . 14 . 3 . 169–290 . September 2003 . 2007-01-31 . 1526-5536 . dead . https://web.archive.org/web/20060908080817/http://purao.ist.psu.edu/journal-papers/ISR-Purao-Storey-Han-2003.pdf . 2006-09-08 .
- Book: Fowler, Martin . Martin Fowler (software engineer)
. Martin Fowler (software engineer) . Analysis Patterns: Reusable Object Models . . 1996-11-27 . 0-201-89542-0 . A pattern is an idea that has been useful in one practical context and will probably be useful in others..
- Web site: Fowler . Martin . Martin Fowler (software engineer) . Accounting Patterns . Analysis Pattern . 2007-01-31 .
- Web site: Hahsler. Michael . Geyer-Schulz, Andreas . Software Engineering with Analysis Patterns . November 2001 . August 26, 2023 . 10.1.1.70.8415 .
- Book: Gamma, Erich . Erich Gamma
. Erich Gamma . Richard Helm . Richard Helm . Ralph Johnson . Ralph Johnson (computer scientist) . John Vlissides . John Vlissides . 1995 . Design Patterns: Elements of Reusable Object-Oriented Software . hardcover, 395 pages . Addison-Wesley . 0-201-63361-2 . Design Patterns .
- Book: Alexander, Christopher . Christopher Alexander
. Christopher Alexander . 1979 . The Timeless Way of Building, volume 1 of Center for Environmental Structure Series . New York . Oxford University Press . 0-19-502402-8 .