Software analysis pattern
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."{{cite journal | last = Purao | first = Sandeep | author2 = Storey, Veda C. | author3 = Han, Taedong | title = Improving Analysis Pattern Reuse | journal = Information Systems Research |volume=14 |issue=3 | pages = 169–290 | date = September 2003 | url = http://purao.ist.psu.edu/journal-papers/ISR-Purao-Storey-Han-2003.pdf | accessdate = 2007-01-31 | issn = 1526-5536 | url-status = dead | archiveurl = https://web.archive.org/web/20060908080817/http://purao.ist.psu.edu/journal-papers/ISR-Purao-Storey-Han-2003.pdf | archivedate = 2006-09-08 }}
Overview
Martin Fowler defines a pattern as an "idea that has been useful in one practical context and will probably be useful in others".{{cite book | last = Fowler | first = Martin | authorlink = Martin Fowler (software engineer) | title = Analysis Patterns: Reusable Object Models | publisher = Addison-Wesley | date = 1996-11-27 | isbn = 0-201-89542-0 | quote = A pattern is an idea that has been useful in one practical context and will probably be useful in others.}} 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:
File:Event-analysis-pattern.svg
Martin Fowler describes this pattern as one that "captures the memory of something interesting which affects the domain".{{cite web | last = Fowler | first = Martin | authorlink = Martin Fowler (software engineer) | title = Accounting Patterns | work = Analysis Pattern | url = http://www.martinfowler.com/apsupp/accounting.pdf | accessdate = 2007-01-31 }}
Describing an analysis pattern
While doing Analysis we are trying to understand the problem. Fowler does not detail in his book 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,{{cite web| last = Hahsler| first = Michael |author2=Geyer-Schulz, Andreas | title = Software Engineering with Analysis Patterns |date=November 2001 | url = https://citeseerx.ist.psu.edu/pdf/a5fa8fb5aa76f2f83918419fd3c3a16da296401d | access-date = August 26, 2023 | citeseerx = 10.1.1.70.8415 }} 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"{{cite book | first = Erich | last = Gamma | authorlink = Erich Gamma |author2=Richard Helm |author2-link=Richard Helm |author3=Ralph Johnson |author3-link=Ralph Johnson (computer scientist) |author4=John Vlissides |author4-link=John Vlissides | year = 1995 | title = Design Patterns: Elements of Reusable Object-Oriented Software | others = hardcover, 395 pages | publisher = Addison-Wesley | isbn = 0-201-63361-2 | title-link = Design Patterns }}
- Forces and context: "Discussion of forces and tensions which should be resolved by the analysis pattern"{{cite book | first = Christopher | last = Alexander | authorlink = Christopher Alexander | year = 1979 | title = The Timeless Way of Building, volume 1 of Center for Environmental Structure Series | location = New York | publisher = Oxford University Press | isbn = 0-19-502402-8 }}
- 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."
- 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
- Design pattern (computer science)
- Object-oriented analysis and design
- Problem frames approach is another approach to software requirements analysis.
- Role class model an example of analysis pattern applied to the role concept.
- Requirements analysis
References
{{reflist}}
Further reading
- {{cite conference
| author1=Haitham, Hamza |author2=Fayad, Mohamed E. |name-list-style=amp
| title = A Pattern Language for Building Stable Analysis Patterns
| conference = 9th Conference on Pattern Languages of Programs
| publisher = Computer Science and Engineering Dept., University of Nebraska-Lincoln
| year = 2002
| url = http://hillside.net/plop/plop2002/final/PLoP02-A%20Pattern%20Language%20for%20Building%20Stable%20Analysis%20Pattern.fnl.pdf
| accessdate = 2007-01-31 }} This paper on pattern language for analysis pattern was presented at PLoP 2002.
- {{cite book
| first = Frank
| last = Buschmann
|author2=Regine Meunier |author3=Hans Rohnert |author4=Peter Sommerlad |author5=Michael Stal
| year = 1996
| title = Pattern-oriented Software Architecture, Volume 1: A System of Patterns
| publisher = John Wiley & Sons
| isbn = 0-471-95869-7}}
Category:Software analysis patterns