Please enable JavaScript to view this site.

Altova UModel 2020 Professional Edition

How to Model... > Relationships

Creating Relationships

Scroll Home Prev Top Next More

A relationship typically needs two elements, so your diagram must already contain the elements between which you want to add relationships. You can create relationships as follows:

 

1.By using a toolbar button that depicts the relationship you need (for example, Association um_ic_association).

2.By using handles that appear when you click on any element on the diagram.

 

Creating relationships using toolbar buttons

When a diagram window is active in UModel's main pane (in focus), the toolbar displays all the elements and relationships supported by that diagram. For example, a Class diagram provides toolbar buttons for all supported relationships, including Association um_ic_association, Collection Association um_ic_collection_association, Aggregation um_ic_aggregation, Composition um_ic_composition, Realization um_ic_realization, Generalization um_ic_generalization, and others. Likewise, a Use Case diagram provides toolbar buttons for Associations um_ic_association, Generalizations um_ic_generalization, as well as Include um_ic_include and Extend um_ic_extend relationships.

 

The instructions below illustrate how to create an association relationship between an actor and a use case. Use the same approach for other relationships you might need.

 

1.Click an element on the diagram (actor "Standard User", in the image below).

2.Click the toolbar button corresponding to the relationship you need (Association um_ic_association , in this example).

3.Move the mouse over "Standard User" and drag onto a target element ("get account balance" use case). Note that the target element is highlighted in green color and accepts the relationship only when it is meaningful according to UML specifications.

um_usecase_07

Association in a Use Case diagram

 

Creating relationships using handles

When you click an element on a diagram, several handles may appears to the left, right, top, or bottom of the element. The handles appear only for elements which support relationships. Each handle corresponds to a relationship kind. For example, class elements have the following handles:

 

InterfaceRealization

Generalization

Association

Collection Association

 

To view the relationship kind that each handle creates, move the mouse over the handle. For example, in the image below, the selected top handle can be used to create a Generalization relationship.

um_create_relation2

To create the relationship, click the handle and drag the cursor over a destination element. This creates the corresponding relationship (Generalization, in this case).

um_create_relation3

Generalization relationship between two classes

© 2019 Altova GmbH