Home /
Expert Answers /
Computer Science /
nbsp-b-redraw-the-relevant-part-of-the-class-model-adding-a-formal-constraint-to-specify-that-a-pa726
(Solved):
B. Redraw the relevant part of the class model, adding a formal
constraint to specify that a ...
B. Redraw the relevant part of the class model, adding a formal
constraint to specify that a manager of a department must be an
employee of the same department (you don’t have to redraw the whole
diagram).
funder 1 0..1 Department 1 0..1 manager 1 manager Employee 1 1 Project Assignment * Figure 1: Departments and Projects class model (a) Referring to Figure 1, which of the following invariants are already constrained by the class model? (i) A project's manager must be an employee of the same department that funds the project (ii) An employee who manages a department cannot also manage a project (iii) At any one time, an assignment is undertaken by just one employee In each case, briefly explain your answer.