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.

SESSION<br />

18<br />

Modeling the Dynamic View:<br />

The Collaboration Diagram<br />

Session Checklist<br />

✔ Explaining the purpose of the Collaboration diagram<br />

✔ Explaining and demonstrating the notation of the Collaboration diagram<br />

The Collaboration diagram offers an alternative to the Sequence diagram. Instead of<br />

modeling messages over time like the Sequence diagram, the Collaboration diagram<br />

models the messages on top of an Object diagram. The Collaboration diagram uses this<br />

approach in order to emphasize the effect of the object structures on the interactions.<br />

The Collaboration Diagram<br />

Figure 18-1 shows the same set of interactions modeled in Figure 16-1 using a Sequence<br />

diagram. The scenario shows the customer Bill creating an order and adding items to it,<br />

checking availability for each item as it is added. Just follow the numbered messages to<br />

step through the scenario.<br />

You can accomplish the same thing with both diagrams (that is, you can model the logical<br />

steps in a process like a Use Case scenario). In the following sections, I identify the similarities<br />

and differences between these two diagrams so that you can know how to choose<br />

the diagram that will help you the most with a particular problem in your project.

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

Saved successfully!

Ooh no, something went wrong!