Object Oriented Software Engineering   View all facts   Glossary   Help
subject > pattern > design pattern > abstraction-occurrence
Next design patternadapter    Updesign pattern    Previous design patternsingleton   

abstraction-occurrence comparison table
Subject have solution have related patterns have references have context have forces have problem has definition have antipatterns is a subtopic of is a kind of is an instance of
design pattern zero or more related design patternsone or more references which indicate who developed or inspired a patterna contextone or more forcesa sentence or two explaining the main difficulty being tackledA pattern useful for the design of softwarezero or more antipatterns - solutions that are inferior or do not work in this context with the reason for their rejection6.1 - Introduction to Patternspattern 
abstraction-occurrence
  1. Create an «Abstraction» class that contains the data that is common to all the members of a set of occurrences.
  2. Then create an «Occurrence» class representing the occurrences of this abstraction.
  3. 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 Penkerclass 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 other6.2 - The Abstraction-Occurrence Pattern design pattern

Next design patternadapter    Updesign pattern    Previous design patternsingleton