Beruflich Dokumente
Kultur Dokumente
Embley
Rumbaugh
Singleton classes and
OMT
high-level view
Jacobson Wirfs-Brock
OOSE
Responsibilities
Object Orientation
Encapsulation
Abstraction
Modularity
Hierarchy
Object Oriented Analysis and Design 5
What is Abstraction?
Salesperso
n
Not saying
Which
salesperso
n – just a
salesperso
n in Product
Customer
general!!!
Manages Complexity
Object Oriented Analysis and Design 6
What is Encapsulation?
• Hide implementation from clients
– Clients depend on interface
Improves Resiliency
Object Oriented Analysis and Design 7
What is Modularity?
• The breaking up of something complex
into manageable pieces
Order
Entry
Order Processing
System Order
Fulfillment
Billing
Manages Complexity
Object Oriented Analysis and Design 8
What is Hierarchy?
Increasing • Levels of abstraction Asset
abstraction
Truck
– Conceptual entity
Chemical Process
Professor Clark
Class Name Only
Object Name Only
ProfessorClark :
Professor
a + b = 10
Professor
Professor Clark
Operations create( )
save( )
delete( )
change( )
Jet Drone
VTOL
CourseOffering
Class
addStudent
deleteStudent
getStartTime
getEndTime
Operation
Manufacturer B
Manufacturer A Manufacturer C
OO Principle:
Encapsulation
Jet Drone
VTOL
Override – a technique
whereby a subclass
(subtype) uses an attribute
or behavior of its own
instead of an attribute or
behavior inherited from the
class (supertype).
Professor University
Works for
Class University
Professor
Employee Employer
Object Oriented Analysis and Design 37
Uses Relationship
: User IO : File IO
1 : Start use case 3 : Open file
: World CO
Lifeline
ow
Specify File Name
ll (m ay sh )
a n
Sel f-c d acti vati o
ke
Ac tiv stac
at ion
Verify File Exists
ga
Passi n er
et
Open File par am
ReadNewWorld
( Open File Handle)
<<create>>
: World
• Diagram elements:
– Start and End symbols
– Activities
– Forks and Joins
– Branches and Merges
– Guards
– Swimlanes
Receive Order
Fork
rners
Rounded co
(not a class)
ge
Mer
gate)
Join (AND
Close Order
End
• Diagram elements:
– Start and End symbols
– States
• May have an associated activity
– Transitions
• Event
• Guard
• Action
n
io
s it
an
Tr
order processed order cancelled
Waiting
Tr ig
ge r
receive order[amount<= $25] receive order[amount> $25]
C
on
di
ti o
n
e
Tr
i ty
at
ig
tiv
St
ge
Ac
r