Monday, July 30, 2007

Modeling a Collaboration Diagram

Collaboration diagram uses an Object diagram as its foundation.

Models the messages relative to object structure. Validate the associations between classes or even discover the need for new association.
Sequence numbers are essential. to read the Collaboration diagram, follow the numbered messages to step through the scenario.



Figure 8-17: Collaboration diagram of cancel event scenario modeled in

Active Objects - To identify an active object, the border of the object is highlighted or thickened. In addition, the property keyword {active} may be placed in the object icon.

Multi-objects - set of objects of the same type. You can represent as an object icon on top of another object icon.

Comparing the Sequence and Collaboration Diagrams
The Collaboration diagram uses an Object diagram as its foundation.
  1. Draw the objects with only the name compartment, not the attributes.
  2. Draw the links between objects.
  3. Add a message by placing the message arrow parallel to the link between the two objects.
  4. Number the message in its order of execution.

No comments: