Download presentation
Presentation is loading. Please wait.
Published byHelen Hedlund Modified over 6 years ago
1
UML Exercise: Company - Employee You are supposed to use MagicDraw as tool when defining the diagrams. If you have not already done it: Download and install. Part 1 Make a class diagram that captures the following: A company consists of departments and employees. A department has responsibility for zero, one or more projects. A company has a name. A department has a name. A project has a name. An employee has a name, an address, a social security number (SSN) and is participating in zero, one or more projects. The system is meant to be used by a company to administrate their personnel and projects. Let the class diagram show: Classes with attributes, relations between the classes, multiplicity for the relations and also role names on the associations. Part 2 An object diagram is an instance of a class diagram, typically showing a snap-shot of the system under execution. You can typically define an infinite number of object diagrams given a class diagram. An object diagram is typically showing: Objects of classes defined in the class diagram. Slots with values belonging to the objects (slots are instances of the attributes of the classes). Links between objects (the links are instances of the associations between the classes). Make an object diagram that satisfies the class diagram you just made (Part 1) and make sure that it includes at least: 2 employees working for same company and department. 1 of the employees works on a project which the department is responsible for. Spoiler Warning: Proposed solution follows - first try to solve without looking!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.