Semantics
An association is an association among exactly two classifiers (including the possibility of an association from a classifier to itself).
Procedure for creating association
In order to create association,
1. | Click [Toolbox] -> [Class] -> [Association] button. |
![ch05_2089](ch05_2089.jpg)
2. | Drag from one associated and drop to another in the [main window]. |
![ch05_2090](ch05_2090.jpg)
3. | Between two classes, a new association is created as follows. |
![ch05_2091](ch05_2091.jpg)
Procedure for adding qualifier to association
In order to add qualifier to association,
1. | Select association's [Collection Editor...] popup menu. |
![ch05_2092](ch05_2092.jpg)
2. | Or click button in [End.Qualifiers] property on properties window. |
![ch05_2094](ch05_2094.jpg)
3. | At [Qualifiers] tab of the [collection editor], you can add qualifier to the association by using button. |
![ch05_2096](ch05_2096.jpg)
4. | The result is as follows. |
![ch05_2097](ch05_2097.jpg)
Procedure for creating multiple classes related to current class at once
If you want to create Dog, Pig, Cat classes related to Me class
1. | Double-click Me class or press [Enter] key. At quick dialog, enter as following. |
![ch05_2098](ch05_2098.jpg)
2. | Then three classes with association are created as following. |
![ch05_2099](ch05_2099.jpg)
|