UML 1.5 Collaboration Diagram Definition

From RAD Studio
Jump to: navigation, search

Go Up to UML 1.5 Interaction Diagrams

Class diagrams are static model views. In contrast, interaction diagrams are dynamic, describing how objects collaborate.

Definition

Like sequence diagrams, collaboration diagrams are also interaction diagrams. Collaboration diagrams convey the same information as sequence diagrams, but focus on object roles instead of the times that messages are sent.

In a sequence diagram, object roles are the vertices and messages are the connecting links. In a collaboration diagram, as follows, the object-role rectangles are labeled with either class or object names (or both). Colons precede the class names (:).

Sample Diagram

Each message in a collaboration diagram has a sequence number. The top-level message is numbered 1. Messages at the same level (sent during the same call) have the same decimal prefix but suffixes of 1, 2, etc. according to when they occur.

UML 1.5 Collaboration Diagram


See Also