UML Weekend Crash Course⢠- To Parent Directory
UML Weekend Crash Course⢠- To Parent Directory UML Weekend Crash Course⢠- To Parent Directory
Answers to Part Reviews 321 26. It should express the purpose of the relationship (that is, why the objects are working together). 27. Use role names when a verb or verb phrase does not clearly express the relationship. Place the roles at each end of the association next to the type of object that plays the role. 28. A constraint is a rule that defines the conditions under which an object may participate in the relationship. 29. You most often spot the need for them in a many-to-many association. 30. Use a qualified association to simplify and to speed up the navigation across associations with a many-to-many multiplicity. Saturday Afternoon Review Answers 1. Single point of control: One of the objects in the relationship is the designated point of control for all communication with the set of objects. Function like a single object: The behavior of the set of objects associated by aggregation is coordinated through the aggregate (the single point of control) so the set of objects is managed and behaves like one big object. 2. Composition is a type of aggregation so it has all the properties of an aggregation association. It differs from aggregation in that the assembly object controls the creation and destruction of the member objects. So a member object cannot exist outside of the assembly. In aggregation, a part may be created outside the assembly and later added to the assembly or even removed and placed into storage or into another aggregate object. In composition, the part is created and dies within the assembly. 3. When the multiplicity on the aggregate end of the association is 1..1, it is safe to assume that the association is a composition type. In fact, some people don’t show the multiplicity on composition for this very reason. The 1..1 multiplicity means that the part must be associated with exactly one aggregate. The part object cannot exist without an associated assembly object. An aggregation relationship where the aggregate is required by the part defines a composition relationship. 4. Specialization examines the objects in a class to identify what makes them different from one another (using the five objective criteria). Generalization looks at objects in a number of subclasses to see what the objects have in common. The common properties are then isolated within a superclass. 5. A multiplicity of 0..1 says that the referenced type of object is optional, so the object on the other end of the association can exist without it. For example, an order can be placed even if there is no shipment for it. The shipment end of the association would be set to 0..1. A multiplicity of 1..1 says that the relationship is required. The object on the other end of the association cannot exist without the relationship. If the shipment end of the association was set to 1..1, then you could not place an order until you had a shipment ready. 6. Qualifiers provide the mechanism for reducing the number of objects that have to be accessed to find the specific desired object. They work much like keys in a database.
322 Appendix A 7. The pattern defines the materials needed to solve the problem and how to make them work together. But the implementation may be tailored to the specific type of application and the technology used for the implementation, not to mention the preferences of the developer for the peculiar needs of the application. 8. The pattern notation would indicate to everyone using the model that you have chosen to apply a standardized solution rather than a homegrown solution that would take more time to evaluate and approve because it has not been tested to the degree that a pattern has been tested. 9. The roles define the behavior of the participating objects much like job description or task assignments help clarify how members of a team will coordinate their efforts to finish the project. 10. The Class diagram models rules, but the Object diagram models facts. The facts may prove or disprove the accuracy of the rules, so the Object diagram is valuable for determining what the rules should be and whether the existing rules are accurate. 11. The object name may be similar to the name of an object of another type. Including the class name prevents misinterpretation of the diagram. 12. The Class diagram declares the rules that constrain the values that you can use in the attribute. The Object diagram records the actual value. The Class diagram defines all the rules about the information, whereas the Object diagram is used to model real examples or test cases. 13. An association defines the rules about how objects may be related to one another. Links identify how objects are related to one another. A link is to an association as an object is to a class. 14. Operations are only the declared part of behavior. The declaration would be the same for all objects of the same class, so including them in the Object diagram would be redundant. 15. Logical processes include workflows, Use Cases, and operations. The workflow describes when and how people will use the features of the system. The Use Case logic explains how the actors will interact with the system to accomplish one specific goal. Each operation describes the logic required to implement the behavior that the operation offers. 16. The diamond is used for decisions and as a merge point. The bar is used for initiating multiple threads or processes and for synchronizing multiple threads or processes. 17. Place a guard condition on the transition using text enclosed in square brackets [ ]. 18. No. You can have multiple transitions out of an activity, each labeled with a guard condition to show the direction to take based on the outcome of the activity. 19. False. An Activity diagram has one start but may have many end points. 20. There should be one end point for every termination option. But you can use a single end point for many transitions (that is, you can have many transition arrows point to the same end point). 21. If the completion of the activity results in criteria needed to make the decision, then use the activity itself. If the criteria are an explicit decision by the actor, or the accumulation of information from many previous activities, then use a decision diamond.
- Page 294 and 295: Session 26—Modeling the Static Vi
- Page 296 and 297: PART # V Sunday Morning Part Review
- Page 299 and 300: PART VI Sunday Afternoon Session 27
- Page 301 and 302: 278 Sunday Afternoon design, and mo
- Page 303 and 304: 280 Sunday Afternoon :User :Web Br
- Page 305 and 306: 282 Sunday Afternoon studied Java p
- Page 307 and 308: 284 Sunday Afternoon and time. A JS
- Page 310 and 311: SESSION 28 Analysis and Architectur
- Page 312 and 313: Session 28—Analysis and Architect
- Page 314 and 315: Session 28—Analysis and Architect
- Page 316 and 317: Session 28—Analysis and Architect
- Page 318 and 319: Session 28—Analysis and Architect
- Page 320 and 321: SESSION 29 Design of a Web Applicat
- Page 322 and 323: Session 29—Design of a Web Applic
- Page 324 and 325: Session 29—Design of a Web Applic
- Page 326 and 327: Session 29—Design of a Web Applic
- Page 328 and 329: Session 29—Design of a Web Applic
- Page 330 and 331: SESSION 30 UML Modeling Tools Sessi
- Page 332 and 333: Session 30—UML Modeling Tools 309
- Page 334 and 335: Session 30—UML Modeling Tools 311
- Page 336 and 337: Session 30—UML Modeling Tools 313
- Page 338 and 339: PART VI # Sunday Afternoon Part Rev
- Page 340 and 341: APPENDIX A Answers to Part Reviews
- Page 342 and 343: Answers to Part Reviews 319 20. I a
- Page 346 and 347: Answers to Part Reviews 323 22. Dra
- Page 348 and 349: Answers to Part Reviews 325 Sunday
- Page 350 and 351: Answers to Part Reviews 327 It maps
- Page 352 and 353: APPENDIX B What’s on the CD-ROM T
- Page 354 and 355: What’s on the CD-ROM 331 Trial So
- Page 356 and 357: Glossary abstract class A class th
- Page 358 and 359: Glossary 335 automatic transition A
- Page 360 and 361: Glossary 337 decomposition Separati
- Page 362 and 363: Glossary 339 link A relationship b
- Page 364 and 365: Glossary 341 overloading Used to de
- Page 366 and 367: Glossary 343 specialization The ide
- Page 368 and 369: Index Symbols and Numerics * (aster
- Page 370 and 371: Index 347 code diagrams, updating,
- Page 372 and 373: Index 349 encapsulation association
- Page 374 and 375: Index 351 languages, programming d
- Page 376 and 377: Index 353 namespace, 246 notation,
- Page 378 and 379: Index 355 source code notation, 256
- Page 380 and 381: Index 357 resources, 50, 51-52 Use
- Page 382 and 383: Wiley Publishing, Inc. End-User Lic
322<br />
Appendix A<br />
7. The pattern defines the materials needed to solve the problem and how to make<br />
them work together. But the implementation may be tailored to the specific type<br />
of application and the technology used for the implementation, not to mention<br />
the preferences of the developer for the peculiar needs of the application.<br />
8. The pattern notation would indicate to everyone using the model that you have<br />
chosen to apply a standardized solution rather than a homegrown solution that<br />
would take more time to evaluate and approve because it has not been tested to<br />
the degree that a pattern has been tested.<br />
9. The roles define the behavior of the participating objects much like job description<br />
or task assignments help clarify how members of a team will coordinate their<br />
efforts to finish the project.<br />
10. The Class diagram models rules, but the Object diagram models facts. The facts may<br />
prove or disprove the accuracy of the rules, so the Object diagram is valuable for<br />
determining what the rules should be and whether the existing rules are accurate.<br />
11. The object name may be similar to the name of an object of another type.<br />
Including the class name prevents misinterpretation of the diagram.<br />
12. The Class diagram declares the rules that constrain the values that you can use in<br />
the attribute. The Object diagram records the actual value. The Class diagram<br />
defines all the rules about the information, whereas the Object diagram is used to<br />
model real examples or test cases.<br />
13. An association defines the rules about how objects may be related to one another.<br />
Links identify how objects are related to one another. A link is to an association as<br />
an object is to a class.<br />
14. Operations are only the declared part of behavior. The declaration would be the<br />
same for all objects of the same class, so including them in the Object diagram<br />
would be redundant.<br />
15. Logical processes include workflows, Use Cases, and operations. The workflow<br />
describes when and how people will use the features of the system. The Use Case<br />
logic explains how the actors will interact with the system to accomplish one specific<br />
goal. Each operation describes the logic required to implement the behavior<br />
that the operation offers.<br />
16. The diamond is used for decisions and as a merge point. The bar is used for initiating<br />
multiple threads or processes and for synchronizing multiple threads or<br />
processes.<br />
17. Place a guard condition on the transition using text enclosed in square brackets [ ].<br />
18. No. You can have multiple transitions out of an activity, each labeled with a guard<br />
condition to show the direction to take based on the outcome of the activity.<br />
19. False. An Activity diagram has one start but may have many end points.<br />
20. There should be one end point for every termination option. But you can use a<br />
single end point for many transitions (that is, you can have many transition<br />
arrows point to the same end point).<br />
21. If the completion of the activity results in criteria needed to make the decision,<br />
then use the activity itself. If the criteria are an explicit decision by the actor, or<br />
the accumulation of information from many previous activities, then use a decision<br />
diamond.