10.4 Exercises
Solutions to these exercises are supplied in Section B.3.2
Describe Figure 10-7: identify classes and
associations, including their attributes and operations.
With respect to Figure 10-7, describe the following
rules:
Within the context of a skill: self.Priority = "High" or self.Priority = "Medium" or self.Priority = "Low"
Within the context of a project: self.Budget >= 100000 and Budget <= 500000
Within the context of a role: self.team.Name <> ''
Within the context of a role: self.member.ID > 0 and self.person.ID < 9999
Within the context of a team: self.member->forAll (p : Person | p.ID > 0 and p.ID < 9999)
Within the context of a team: self.person->forAll (p : Person | p.ID > 0 and p.ID < 9999)
Within the context of a team: self.plan.humanResource->forAll (p : Person | p.ID > 0 and p.ID < 9999)
Describe how to capture the following rules using Figure 10-7.
Within the context of a role, a title must be one of the following:
Analyst, Architect,
Designer, Developer,
Tester, or Manager.
Within the context of experience, a person must have at least five
years of experience.
Within the context of a project, its start and end dates must match
its plan's start and end dates.
Within the context of a plan, its start and end dates must match its
project's start and end dates.
Within the context of a person, a person and a team that relate to
one another must relate to the same plan.
Within the context of a person, a person, team, and project that
relate to one another must relate to the same plan.
Within the context of a team, the plan that relates to the team and
the project that relates to the team must be related to one another.
|