[next] [prev] [prev-tail] [tail] [up]
3.5 Relationship
Generate one more class Gebaeude.
Using the tool
([8], Kap. 3.4.1) generate a relation between the two classes BoFlaechen
and Gebaeude, by clicking the class BoFlaechen and pulling the mouse cursor (keep on pressing
the left mouse button) over to the class Gebaeude (release the left mouse button). You have now
generated a relationship between the two classes (Fig. 3.8). Assign any name to the relation (in
our exemple GebaeudeFlaeche).
Figure 3.8 | A relationship between two classes. |
|
|
In the specification dialog ([8], Kap. 4.2.11) of the two roles (Fig. 3.9) you can modify your
names. For one of the roles enter the name Flaeche and for the other the name Gebaeude
.
Figure 3.9 | Specification dialog for a role. |
|
|
In the corresponding roles it is also possible to modify the cardinality (Fig. 3.10). Select the
value 1 for the role Flaeche and the value 0..* for the role Gebaeude.
Figure 3.10 | How to modify cardinality. |
|
|
By positioning the mouse cursor above a role (end of the relationship), the relationship can be
converted into a composition by means of the context menu (Fig. 3.11).
Figure 3.11 | Context Menu of a Role. |
|
|
In order to define further properties of the relationship, you can mark the relationship and open
the specification dialog ([8], Kap. 4.2.9).
[next] [prev] [prev-tail] [front] [up]