[ fromfile: relationships.xml id: relationships-summary ]
You have seen three kinds of relationships:
Association (purely for navigation)
Aggregation (containment without management)
Composition (containment with management)
In addition, each relationship can have the following properties:
Cardinality – Can be one-to-one, one-to-many, or many-to-many. Often, a number (1, 1..5, *) next to the end of the line segment specifies this.
Navigability – Can be unidirectional or bidirectional. Unidirectional relationships may have arrows instead of diamonds on the line segments between classes.
Figure 4.3 shows an example using containment and unidirectional relationships.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |