Exercises

Solutions to these exercises are supplied in Section B.3.1

  1. Describe Figure 9-8: identify stereotype definitions, tag definitions, and constraints.

    Stereotype definitions, tag definitions, and constraints

    Figure 9-8. Stereotype definitions, tag definitions, and constraints

  2. Describe Figure 9-9: identify stereotyped elements and tagged values.

    Stereotyped elements on a class diagram

    Figure 9-9. Stereotyped elements on a class diagram

  3. Describe Figure 9-10: identify stereotyped elements and tagged values.

    Stereotyped elements and tagged values on an object diagram

    Figure 9-10. Stereotyped elements and tagged values on an object diagram

  4. Create a diagram to communicate the following details:

    1. Define the concept of a person using a Person stereotype, which may be applied to classes. The Person stereotype defines a tag named ID, which is a string representing a person’s identification number. The ID tag may not be an empty string.

    2. Define the relationship between a person and organization using a Member Of stereotype, which may be applied to associations. The Member Of stereotype defines a tag named Joining Date, which is a string representing the date on which a person joined an organization. The Joining Date may not be an empty string.

  5. 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.