UML Weekend Crash Course⢠- To Parent Directory
UML Weekend Crash Course⢠- To Parent Directory UML Weekend Crash Course⢠- To Parent Directory
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
- Page 165 and 166: 142 Saturday Afternoon Table 13-1 C
- Page 167 and 168: 144 Saturday Afternoon 28: VendorPr
- Page 169 and 170: 146 Saturday Afternoon 0..* VendorP
- Page 172 and 173: SESSION 14 Modeling the Functional
- Page 174 and 175: Session 14—Modeling the Functiona
- Page 176 and 177: Session 14—Modeling the Functiona
- Page 178: Session 14—Modeling the Functiona
- Page 181 and 182: 158 Saturday Afternoon Table 15-1 T
- Page 183 and 184: 160 Saturday Afternoon Figure 15-1
- Page 185 and 186: 162 Saturday Afternoon More product
- Page 187 and 188: 164 Saturday Afternoon start (merge
- Page 190 and 191: SESSION 16 Modeling the Dynamic Vie
- Page 192 and 193: Session 16—Modeling the Dynamic V
- Page 194 and 195: Session 16—Modeling the Dynamic V
- Page 196 and 197: Session 16—Modeling the Dynamic V
- Page 199 and 200: PART III # Saturday Afternoon Part
- Page 201 and 202: PART IV Saturday Evening Session 17
- Page 203 and 204: 180 Saturday Evening Scenario 1 Get
- Page 205 and 206: 182 Saturday Evening The next step
- Page 207 and 208: 184 Saturday Evening For Scenario 2
- Page 209 and 210: 186 Saturday Evening For subsequent
- Page 211 and 212: 188 Saturday Evening 6:addProduct(c
- Page 213 and 214: 190 Saturday Evening 7:addProduct(c
- Page 215: 192 Saturday Evening REVIEW The Col
- Page 219 and 220: 196 Saturday Evening pointing towar
- Page 221 and 222: 198 Saturday Evening :OrderFullfill
- Page 223 and 224: 200 Saturday Evening Scenario 5, in
- Page 226 and 227: SESSION 20 Modeling the Dynamic Vie
- Page 228 and 229: Session 20—Modeling the Dynamic V
- Page 230 and 231: Session 20—Modeling the Dynamic V
- Page 232 and 233: Session 20—Modeling the Dynamic V
- Page 234: Session 20—Modeling the Dynamic V
- Page 238 and 239: Part V — Sunday Morning Session 2
- Page 240 and 241: SESSION 21 Applying the Basic State
- Page 242 and 243: Session 21—Applying the Basic Sta
- Page 244 and 245: Session 21—Applying the Basic Sta
- Page 246 and 247: Session 21—Applying the Basic Sta
- Page 248: Session 21—Applying the Basic Sta
- Page 251 and 252: 228 Sunday Morning receivePmt(amt)[
- Page 253 and 254: 230 Sunday Morning Figure 22-4 repr
- Page 255 and 256: 232 Sunday Morning A substate is a
- Page 257 and 258: 234 Sunday Morning Monitor when tem
- Page 260 and 261: SESSION 23 Applying the Extended St
- Page 262 and 263: Session 23—Applying the Extended
- Page 264 and 265: Session 23—Applying the Extended
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.