Exercises
Solutions to these exercises are supplied in Section B.3.1
Describe Figure 9-8: identify stereotype definitions, tag definitions, and constraints.
Figure 9-8. Stereotype definitions, tag definitions, and constraints
Describe Figure 9-9: identify stereotyped elements and tagged values.
Figure 9-9. Stereotyped elements on a class diagram
Describe Figure 9-10: identify stereotyped elements and tagged values.
Figure 9-10. Stereotyped elements and tagged values on an object diagram
Create a diagram to communicate the following details:
Define the concept of a person using a
Person
stereotype, which may be applied to classes. ThePerson
stereotype defines a tag namedID
, which is a string representing a person’s identification number. TheID
tag may not be an empty string.Define the relationship between a person and organization using a
Member Of
stereotype, which may be applied to associations. TheMember Of
stereotype defines a tag namedJoining Date
, which is a string representing the date on which a person joined an organization. TheJoining Date
may not be an empty string.
Update the diagram shown in Figure 9-9 stepwise to show the following details. After each step, check your answers ...
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.