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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Session 19—Applying the Collaboration Diagram to the Case Study 195<br />

you can place the objects anywhere you like. As you add the other information, you will<br />

very likely want to rearrange the objects anyway to make the diagram easier to read.<br />

:OrderFullfillment Clerk<br />

:OrdersDB<br />

23456789:Order<br />

:System<br />

:Inventory<br />

12345678:Order<br />

Figure 19-2 The objects participating in Scenario 1<br />

Next, add the links between the objects (see Figure 19-3). Be sure to follow the rules<br />

established by the Class diagram associations. The links provide the paths over which the<br />

interactions take place.<br />

:OrderFullfillment Clerk<br />

:OrdersDB<br />

:System<br />

12345678:Order<br />

:Inventory<br />

Figure 19-3 The links between the objects participating in Scenario 1<br />

Next, each step of the flowchart becomes an event and/or a return on the Collaboration<br />

diagram. Start with “Get Order #.” The system asks the OrderFulfillmentClerk for the Order<br />

#. Imagine this as a screen that is waiting for an entry. The message is from the System<br />

object to the OrderFulfillmentClerk object. It is a synchronous type because the System<br />

will wait for a reply. Lay the event arrow parallel to the link between the two objects and

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

Saved successfully!

Ooh no, something went wrong!