27.2. Aggregation and Composition

Aggregation is a kind of association used to model whole-part relationships between things. The whole is called the composite.

For instance, physical assemblies are organized in aggregation relationships, such as a Hand aggregates Fingers.

Aggregation in the UML

Aggregation is shown in the UML with a hollow or filled diamond symbol at the composite end of a whole-part association (see Figure 27.5).

Figure 27.5. Aggregation notation.

Aggregation is a property of an association role.[1]

[1] Recall that each end of an association is a role, and that a UML role has various properties, such as multiplicity, name,

Get Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.