01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

192<br />

Saturday Evening<br />

REVIEW<br />

The Collaboration diagram models pretty much the same information as a Sequence diagram,<br />

interactions between objects. It is the perspective that is different. The Collaboration<br />

diagram views interactions relative to the structure of the objects and their relationships<br />

(links) with one another. The Sequence diagram focuses on timing. Consequently, the<br />

advantage of the Collaboration diagram is that it can help you validate the associations<br />

between classes or even discover the need for new associations.<br />

The Collaboration diagram is built on top of an Object diagram.<br />

1. Place the participating objects on the diagram.<br />

2. Draw the links between the objects using the Class diagram as your guide.<br />

3. Add each event. Place the message arrow parallel to the link between the two<br />

objects. Position the arrow to point from the sender to the receiver.<br />

4. Number the messages in order of execution.<br />

5. Repeat steps 3 and 4 until the entire scenario has been modeled.<br />

QUIZ YOURSELF<br />

1. How are the participating objects represented in a Collaboration diagram (See<br />

“Collaboration Diagram Notation.”)<br />

2. How do you know whether a message may be sent from one particular object to<br />

another (See “Diagram differences.”)<br />

3. The Sequence diagram uses a timeline to show the order of messages. What do you<br />

use on a Collaboration diagram (See “Collaboration Diagram Notation.”)<br />

4. What is a synchronous message (See “Collaboration Diagram Notation.”)<br />

5. What is an asynchronous message (See “Collaboration Diagram Notation.”)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!