18.9. Link

A link is an instance of an association. In the UML metamodel Link is a sub-class of Instance. Within a sequence diagram links are created indirectly when an associated stimulus is created.

An link is represented on a sequence 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 Section 18.3, “Stimulus”).

18.9.1. Link Details Tabs

The details tabs that are active for links are as follows.

ToDoItem

Standard tab.

Properties

See Section 18.9.2, “Link Property Toolbar” and Section 18.9.3, “Property Fields For Link” below.

Documentation

Standard tab.

Style

Standard tab. The values for the bounds of the link notionally define the bounding box of the link. However if you change them it will have no effect.

[Caution]Caution

In the current release of ArgoUML changing the values of the line field will alter the color of the line, but not the arrow head.

Source

Standard tab, but with no contents.

[Caution]Caution

A link should not generate any code, so having this tab active is probably a mistake.

Constraints

Standard tab. ArgoUML only supports constraints on Classes and Features (Attributes, Operations, Receptions, and Methods), so this tab is grayed out.

Tagged Values

Standard tab. In the UML metamodel, Link has the following standard tagged values defined.

  • persistence (from the superclass, Instance. Showing the permanence of the state information associated with the link. Values transitory (state is destroyed when the link is destroyed) and persistent (state is preserved when the link is destroyed).

  • derived (from the superclass, ModelElement). Values true, meaning the link is redundant—it can be formally derived from other elements, or false meaning it cannot.

    [Note]Note

    Derived links still have their value in analysis and design to introduce useful names or concepts, and in design to avoid re-computation.

[Note]Note

The UML Element metaclass from which all other artifacts are derived includes the tagged element documentation which is handled by the documentation tab under ArgoUML

18.9.2. Link Property Toolbar

Go up

Navigate up through the package structure.

Delete

This deletes the link from the model

[Warning]Warning

This is a deletion from the model not just the diagram. To delete an link from the diagram, but keep it within the model, use the main menu Remove From Diagram (or press the Delete key).

18.9.3. Property Fields For Link

Name

Text box. The name of the link. By convention link names start with a lower case letter and use bumpy caps to divide words within the name.

[Note]Note

ArgoUML does not enforce this naming convention.

Stereotype

Drop down selector. Link has no stereotypes by default in the UML standard, but ArgoUML provides the stereotypes, machine, organization and person.

[Caution]Caution

ArgoUML also provides the stereotype realize for links. This appears to be an error, since this stereotype properly belongs to the Abstraction metaclass.

Navigate Stereotype

icon. If a stereotype has been selected, this will navigate to the stereotype property panel (see Section 17.4, “Stereotype”).

Namespace

Text box. Records the namespace for the link. This is the package hierarchy.

Button 1 click on the entry will navigate to the package defining this namespace (or the model for the top level namespace).