UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory UML Weekend Crash Course™ - To Parent Directory

crnarupa.singidunum.ac.rs
from crnarupa.singidunum.ac.rs More from this publisher
01.01.2015 Views

SESSION 19 Applying the Collaboration Diagram to the Case Study Session Checklist ✔ Applying the Collaboration diagram notation to the case study ✔ Explaining the steps in building a Collaboration diagram ✔ Mapping the sequence and Collaboration diagrams to the Class diagram The Sequence and Collaboration diagrams are both used to model object interactions. In order to emphasize that point, this session takes the same Use Case, Fill Order, used for the Sequence diagram in Session 17 and uses it to build a Collaboration diagram. Building a Collaboration Diagram from a Scenario Figure 19-1 provides the flowchart for the Use Case. You will draw a total of five Collaboration diagrams: one Collaboration diagram for each scenario. When a scenario includes steps already defined in a previous scenario, simply refer to the other diagram and add the events that are unique for the new scenario.

194 Saturday Evening Scenario 1 Get Order # Get Order (Find Order Use Case) Order Found Scenario 2 [No] Provide Error Message [Yes] Done or no unfilled items Display Order [True] Any unfilled Quantities [False] Choose Item [Yes] Create Back Order [No] Scenario 3 Find Item (Locate Product) Use Case Scenario 4 [No] Item Found [Yes] Fill Item Quantity Reduce Inventory Figure 19-1 The flowchart and scenarios for the Use Case Fill Order The first Collaboration diagram models Scenario 1. The first step in the construction is to identify the objects that participate in the scenario. This scenario has five objects, namely the OrderFulfillmentClerk, the System (the application you will write), the Order, the backorder, and the Orders database. Figure 19-2 shows the object notation. Note that this time

SESSION<br />

19<br />

Applying the Collaboration<br />

Diagram to the Case Study<br />

Session Checklist<br />

✔ Applying the Collaboration diagram notation to the case study<br />

✔ Explaining the steps in building a Collaboration diagram<br />

✔ Mapping the sequence and Collaboration diagrams to the Class diagram<br />

The Sequence and Collaboration diagrams are both used to model object interactions. In<br />

order to emphasize that point, this session takes the same Use Case, Fill Order, used for<br />

the Sequence diagram in Session 17 and uses it to build a Collaboration diagram.<br />

Building a Collaboration Diagram from a Scenario<br />

Figure 19-1 provides the flowchart for the Use Case.<br />

You will draw a total of five Collaboration diagrams: one Collaboration diagram for each<br />

scenario. When a scenario includes steps already defined in a previous scenario, simply refer<br />

to the other diagram and add the events that are unique for the new scenario.

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

Saved successfully!

Ooh no, something went wrong!