Professional Documents
Culture Documents
04-Identify Design Elements
04-Identify Design Elements
1 2
Design Model
Analysis Model
3 4
Page 1
Module 7 - Identify Design Elements 1
Mastering OOAD - Instructor Notes
Many-to-Many Mapping
5 6
• A general purpose mechanism for organizing elements and services the system uses
Package B
into groups
Package A
• A model element which can contain other model
elements
Package
Name
7 8
Page 2
Module 7 - Identify Design Elements 2
Mastering OOAD - Instructor Notes
9 10
OO Principle: Encapsulation
11 12
Page 3
Module 7 - Identify Design Elements 3
Mastering OOAD - Instructor Notes
cross-coupled
X MainStudentForm MainRegistrarForm
1 1
A
Upper 0..1 0..1
• Packages in lower layers Layer <<boundary>> <<boundary>>
should not be dependent
upon packages in upper X X
RegisterForCoursesForm CloseRegistrationForm
Lower
layers Layer
B
1
1 1
<<control>> <<control>>
RegistrationController CloseRegistrationController
• In general, dependencies
C
should not skip layers
X = Coupling violation
13 14
primaryCourses alternateCourses
0..2
<<entity>> 0..4
<<entity>> <<entity>>
FulltimeStudent ParttimeStudent
PrimaryScheduleOfferingInfo <<entity>> instructor <<entity>> <<entity>> 0..*
Professor CourseOffering Course
0..*
0..1 0..* 0..* 1
Prerequisites
0..*
1
CourseOfferingList
15 16
Page 4
Module 7 - Identify Design Elements 4
Mastering OOAD - Instructor Notes
17
Page 5
Module 7 - Identify Design Elements 5