An association role is a specialization of an
association, used to describe an associations behavior in a
particular context. In the UML metamodel
Role is a sub-class of
An association role is represented on a collaboration diagram in ArgoUML as a line connecting the instances concerned. However on a sequence diagram the representation is modified to reflect the type of action associated with the stimulus carried on the link (see Abschnitt 19.3, „Stimulus“).
The association role is labeled with the association role name (if any).
An association role shows its name and the association name according the following syntax:
/ AssociationRoleName : AssociationName
in the same manner as a classifier role. The more generic syntax is:
I / R : C
which stands for an Instance named I originating from the Classifier C playing the role R.
The details tabs that are active for association roles are as follows.
Standard tab. The values for the bounds of the association role are downlighted, since they are determined by what they connect.
Standard tab, but with no contents.
An association role should not generate any code, so having this tab active is probably a mistake.
Standard tab. In the UML metamodel,
AssociationRole has the following standard
tagged values defined.
persistence (from the
transitory, indicating state is
destroyed when an instance is destroyed or
persistent, marking state is preserved
when an instance is destroyed.
derived (from the
true, meaning the
association is redundant—it can be formally derived
from other elements, or
meaning it cannot.
Derived association roles still have their value in analysis to introduce useful names or concepts, and in design to avoid re-computation.
Standard tab for an Association Role.
Navigate up through the package structure.
This deletes the association role from the model
This is a deletion from the model
not just the diagram. To delete
an association role from the diagram, but keep it
within the model, use the main menu
Text box. The name of the association role, which is shown on the diagram. By convention association role names start with a lower case letter and use bumpy caps to divide words within the name.
ArgoUML does not enforce this naming convention.
Drop down selector. Association role is provided
by default with the UML standard stereotype from the
icon. If a stereotype has been selected, this will navigate to the stereotype property panel (see Abschnitt 18.5, „Stereotype“).
Text box. Records the namespace for the association role. This is the package hierarchy.
Button 1 double click on the entry will navigate to the item showm.
Drop down selector. Records the association that is the base for the association role.
The drop down selector shows all associations that exist between the classifiers that correspond with the connected classifier roles.
Association End Roles
Text area. Lists the ends of this association role. An association role can have any number of ends, but two is generally the only useful number (link objects can led to a third end on instance level diagrams, but this is not supported by ArgoUML). For more on association end roles see Abschnitt 21.4, „Association End Role“.
The names are listed, unless the association end
role has no name, then it is shown as
Button 1 double click on an association end role will navigate to that end.
Text area. Lists the messages that are associated with this association role.
Button 1 double click navigates to the selected entry