
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Learn about object model diagrams, their components including classes, associations, cardinality constraints, and aggregation. Understand the difference between relationship attributes and role relationships. Explore examples of associations, aggregation, and qualification.
Typology: Slides
1 / 24
This page cannot be seen from the preview
Don't miss anything!

















The Object Model Diagram is a graphical representation of the classes within a system and the static or underlying relationships between them.
Class name
Attributes
methods
May be completed during design phase
Completed during the design phase
Zero or one
All objects of the class participate in the association – (total)
Explicit cardinality
Course
Student
Professor
takes
teaches
All Course objects have a professor and at least 1 student
1 *
In any semester a professor will teach zero or more courses
0..
Students may take up to 6 courses
Employee
name
ss_num
salary
Company
name works for
Bad – salary as an attribute precludes the possibility of an employee working for more than one company
works for
salary
Better – model salary as a relationship attribute
Person
name ss_num address
child of child
parent
Role identifiers
2
Every person has 2 parents and zero or more children
Coleman’s Notation
Aggregate Class Name
Multiplicity of each component
Aggregation models the has-a relationship
UML Notation
Aggregate Class
Component 1 Component 2 Component 3
The qualifier is a special attribute that limits the multiplicity of an association.
The qualifier distinguishes among the set of objects at the many end of an association
Example
Directory File
contains
A directory contains zero or more files
Multiplicity can be removed by the qualifier file name which uniquely identifies a single file.
Circle
area perimeter
Rectangle
area perimeter
Shape
area perimeter
Classes having the same attributes may be generalized to a common ancestor class docsity.com
Vehicle
Land Vehicle Air Vehicle Water Vehicle
A sea plane travels in the air and on water
Constructing the Object Model Diagram
Step 1
Determine the objects in the problem domain from the requirements document.
Example -- Arithmetic Expression
An arithmetic expression is a collection of one or more terms separated by additive operators. A term is a sequence of one or more factors separated by multiplicative operators. A factor is a variable, or a constant, or an arithmetical expression enclosed in parentheses.
Requirements Document