design pattern | | zero or more related design patterns | one or more references which indicate who developed or inspired a pattern | a context | one or more forces | a sentence or two explaining the main difficulty being tackled | A pattern useful for the design of software | zero or more antipatterns - solutions that are inferior or do not work in this context with the reason for their rejection | 6.1 - Introduction to Patterns | pattern | |
abstraction-occurrence | - Create an «Abstraction» class that contains the data that is common to all the members of a set of occurrences.
- Then create an «Occurrence» class representing the occurrences of this abstraction.
- Connect these classes with a one-to-many association
| Abstraction-Occurrence Square pattern if the abstraction is an aggregate (and the occurrences are also aggregates) | a generalization of the Title-Item pattern of Eriksson and Penker | class diagrams that form part of a system domain model | - You want to represent the members of each set of occurrences without duplicating the common information
- You want a solution that maximizes the flexibility of the system
| What is the best way to represent sets of occurrences in a class diagram? | A pattern in which two classes are related by an association, and one of the classes represents an abstraction of the other | | 6.2 - The Abstraction-Occurrence Pattern | | design pattern |