Aggregation

StarUML

Aggregation

Top  Previous  Next

Semantics

An aggregate is a more specific type of association. The aggregate is signified by a hollow diamond on the point where the association connects with the classifier (association end). Aggregate adds the concept of whole and part to the 'vanilla' association. The classifier at the hollow diamond end is the whole.

Procedure for creating aggreate

In order to create aggregation,

1.Click [Toolbox] -> [Class] -> [Aggregation] button.

ch05_2107

2.Drag from one associated and drop to another in the [main window].

ch05_2108

3.The result is as follows.

ch05_2109

Procedure for creating aggregated class by shortcut creation syntax

In order to create class aggregated to selected class, use shortcut creation syntax.

1.Double-click to popup quick dialog. At the quick dialog, enter name of class aggregated to current class after "<>-" string  and separate names with ",".

ch05_2120

2.Press [Enter] key and classes aggregated to selected class are created and arranged automatically.

ch05_2300