UML Collaborations

Goals

  • Specify the structure of a set of elements (or roles) that realize a common task.

  • Represent the structure of a design pattern.

Notation

  • Collaboration Role: role of a class that participates to a collaboration.

  • Connector: link allowing communication between two classes.

uml collaboration
Figure 1. Collaboration

Alternative Notation

  • Features defined by class roles must be owned by the classes playing those roles.

uml collaboration alternate
Figure 2. Collaboration

Collaboration Usage

uml collaboration usage
Figure 3. Collaboration occurrence.