Exercises
Solutions to these exercises are supplied in Section B.1.1
Describe Figure 3-44: identify the class and describe its attributes and operations.
Figure 3-44. Report class
Describe Figure 3-45: identify the object and describe its attribute values.
Figure 3-45. Report object
Describe Figure 3-46: identify the classes and their associations.
Figure 3-46. Workers, skills, projects, and activities
Update the diagram stepwise to show the following details. After each step, check your answers against the solutions shown in Appendix B:
When a worker has a skill, the years of experience is maintained for the relationship.
A worker may have another worker as a manager, and a worker who is a manager must manage five or more workers. Given a manager, you can determine whom she manages, but given a worker, you are unable to determine who his manager is.
An activity may have no more than one previous activity and any number of next activities. Using these rolenames, we can show how activities are ordered. Given an activity, you can only determine its next activities (if it has any) but not its previous activity (it if has one). This is similar to how a team may be made of subteams in that you have ...
Get Learning UML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.