Object-Oriented Worldtime Create the vocabulary Give vocabulary Program the model vocabulary ocabu a y behavior model the system ode Understand System Usage Use Case Diagram Identify Cla
Trang 2Object-Oriented World
time
Create the vocabulary
Give vocabulary
Program the model
vocabulary ocabu a y
behavior (model the system)
ode
Understand System Usage Use Case Diagram
Identify Classes High Level Class Diagram
9 9
Identify Classes High Level Class Diagram
Define Workflows Activity Diagram
9 9
Trang 3Use Case Model
diagnose car
drive car
Car owner
Trang 4Use case
di Mechanic
diagnose car
Trang 5High Level Class Diagram
fixes>
Trang 6Activity Diagram
Start
Name of State Turn Off Diagnosis
Diagnosis equipment problem [error]
Name of State Display Error
Car electronic
Name of State Turn On Diagnosis [valid]
[error]
Car electronic problem Name of StateTurn On Car[error]
[valid]
Name of State Turn Off Car
Name of State
Diagnose
Name of State
Fix Problem
Trang 7Object-Oriented World
time
Create the vocabulary
Give vocabulary
Program the model
vocabulary ocabu a y
behavior (model the system)
ode
Identify interactions among objects Sequence and Collaboration Diagrams
l h
9 9
Analyze state changes Sate Diagrams
Refine class diagrams Class Diagrams 9
Trang 10High Level Class Diagram
:Diagnosis
:Car :Mechanic
:Mechanic
0 1
Trang 12Collaboration Diagram
:Diagnosis
:Car :Mechanic
4: Diagnose()
:Mechanic
Trang 14Object
Object : Class
:Class
Trang 16…to depict relationships between objects
<<local>> <<parameter>>
con:DatabaseConnection
InventoryApp has a <<local>> variable which accepts a
<<parameter>>, a location instance
Trang 21Guard Conditions
1:Compile(Project)
:FileSystem
1:Compile(Project)3a:NotifyOfSuccess[Project Loaded]
:Compiler:Editor
:ErrorDialog
Trang 23Iterations (repeating processes)
Trang 24Iterations (repeating processes)
Loop through each grade
Calculate GPA
1.* [1 N]: GPA+=Grade[ ]2: GPA=GPA/Count(Grades)
*
Trang 26Model a Collaboration Diagram: Case Study
1 Identify the elements that belong in your diagram
2 Model the relationships between these elements
3 Model the instance level diagram
Trang 27distribute Use Case Model
record grades <<include>>
electronically
save grades upgrade grades
Student
Trang 28uses
Trang 29Identify the elements
Domain Classes Control Classes Interface Class
Trang 302 Model the Relationships Between these Elements
:Teacher
:Securityuses >
Trang 313 Model an Instance-Level Diagram
1:Logon(UID PWD) 1.1:Validate(UID,PWD)1 2 [ ] Di l M ()
:SecurityWebSite
:Teacher
1:Logon(UID,PWD)2:[menu displayed] LoadStudent(Name)
1.2a:[pass] DisplayMenu()1.2b:[fail] Logout()
:SecurityWebSite
:Teacher
: Student<<new>> :Database
2.2:LoadStudentInfo(Name): Student<<new>>
:Grade