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
subjectfact 
abstraction-occurrencehas definition A pattern in which two classes are related by an association, and one of the classes represents an abstraction of the other2001-08-30 14:54:25.0
has antipatterns 2001-08-30 14:54:25.0
has context class diagrams that form part of a system domain model2001-08-30 14:54:25.0
has forces
  • 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
2001-08-30 14:54:25.0
has problem What is the best way to represent sets of occurrences in a class diagram?2001-08-30 14:54:25.0
has references a generalization of the Title-Item pattern of Eriksson and Penker2001-08-30 14:54:25.0
has related patterns Abstraction-Occurrence Square pattern if the abstraction is an aggregate (and the occurrences are also aggregates)2001-08-30 14:54:25.0
has solution
  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
2001-08-30 14:54:25.0
is a subtopic of 6.2 - The Abstraction-Occurrence Pattern2001-08-30 14:54:25.0
is an instance of design pattern2001-08-30 14:54:25.0
design patternhas name2001-08-30 14:55:16.0
should be illustrated using a simple diagram2001-08-30 14:55:16.0
should be written using a narrative writing style2001-08-30 14:55:16.0
patternshould be as general as possible2001-08-30 14:56:56.0
should be described in an easy-to-understand form so that people can determine when and how to use it2001-08-30 14:56:56.0
should contain a solution that has been proven to effectively solve the problem in the indicated context2001-08-30 14:56:56.0

Next design patternadapter    Updesign pattern    Previous design patternsingleton