Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

2.4 Role Tool

The Role Tool is used to specify the role that an object plays in a relationship. For example, for the Transition relationship in WatchApplication diagrams we can identify two role types: From and To, or for an Inheritance relationship type in UML Class Diagrams there could be Superclass and Subclass role types. Roles can have properties of their own. For example, a role in the Association relationship in UML Class Diagrams has a property Cardinality.

Role Tool

Figure 2–14. Role Tool.

The fields in the Role Tool are the same as the Basics page of the Graph Tool (Section 2.1.3 and 2.1.4).

Roles also have symbols that specify the width and color of the line from the object to the relationship, and also any symbol elements at the object end of the line. For instance, in a WatchApplication diagram the To role is a dark red 2 pixel solid line with an arrow head. If no symbol is defined, a simple black line with width 1 is used.

Show in Frame No Frame
Up Previous Next Title Page Index Contents Search