Click here to load reader
Upload
rosalind-booker
View
216
Download
0
Embed Size (px)
Citation preview
OOA&D - 1 © Minder Chen, 1995-2006
Models, Views, and Diagrams
Use CaseDiagrams
Use CaseDiagrams
Use CaseDiagrams
ScenarioDiagramsScenario
DiagramsCollaborationDiagrams
StateDiagrams
StateDiagramsComponentDiagrams
ComponentDiagramsComponent
DiagramsDeploymentDiagrams
StateDiagrams
StateDiagrams
ObjectDiagrams
ScenarioDiagramsScenario
DiagramsStatechartDiagrams
Use CaseDiagramsUse Case
DiagramsSequenceDiagrams
StateDiagrams
StateDiagrams
ClassDiagrams
ActivityDiagrams
A model is a completedescription of a systemfrom a particularperspective
Models
OOA&D - 2 © Minder Chen, 1995-2006
Copyright © 1997 by Rational Software Corporation
Student
Registrar
Professor
Maintain Schedule
Maintain Curriculum
Request Course Roster
Billing System
Use Case Diagram
• Use case diagrams are created to visualize the relationships between actors and use cases
OOA&D - 3 © Minder Chen, 1995-2006
Copyright © 1997 by Rational Software Corporation
: Studentregistration
formregistration
managermath 101
1: fill in info
2: submit
3: add course(joe, math 01)
4: are you open?
5: are you open?
6: add (joe)7: add (joe)
math 101 section 1
Sequence Diagram: Register for Course Use Case
• A sequence diagram displays objectobject interactions arranged in a time sequence (to specify a use case further)
OOA&D - 4 © Minder Chen, 1995-2006
Copyright © 1997 by Rational Software Corporation
: Registrar
course form : CourseForm
theManager : CurriculumManageraCourse :
Course
1: set course info2: process
3: add course
4: new course
Collaboration Diagram
• A collaboration diagram displays object interactions organized around objects and their links to one another. Technically it is identical to a sequence diagram.
OOA&D - 5 © Minder Chen, 1995-2006
Multiplicity and Navigation
RegistrationForm
RegistrationManager
Course
Student
CourseOfferingProfessor
addStudent(Course, StudentInfo)
namenumberCredits
open()addStudent(StudentInfo)
major
location
open()addStudent(StudentInfo)
tenureStatus
ScheduleAlgorithm
10..*
0..*
1
1
1..*4
3..10
0..41
OOA&D - 6 © Minder Chen, 1995-2006
Generalization
RegistrationForm
RegistrationManager
Course
Student
CourseOfferingProfessor
addStudent(Course, StudentInfo)
namenumberCredits
open()addStudent(StudentInfo)
major
location
open()addStudent(StudentInfo)
tenureStatus
ScheduleAlgorithm
nameRegistrationUser
Depends on
OOA&D - 7 © Minder Chen, 1995-2006
State Transition Diagram of the Course Class
Copyright © 1997 by Rational Software Corporation
Initialization Openentry: Register studentexit: Increment count
Closed
Canceled
do: Initialize course
do: Finalize course
do:Notify registered students
Add Student / Set count = 0
Add student[ count < 10 ]
[ count = 10 ]
Cancel
Cancel
Cancel
OOA&D - 8 © Minder Chen, 1995-2006
Component Diagram
Course CourseOffering
Student Professor
Course.dll
People.dll
Course
User
Register.exeBilling.exe
BillingSystem
OOA&D - 9 © Minder Chen, 1995-2006
Deployment Diagram
OOA&D - 10 © Minder Chen, 1995-2006
Copyright © 1997 by Rational Software Corporation
Deployment Diagram
Registration Database
Library
Dorm
Main Building
OOA&D - 11 © Minder Chen, 1995-2006
An Activity Diagram with Swimlanes
OOA&D - 12 © Minder Chen, 1995-2006
From Analysis to Design to Implementation
Doug Rosenberg, ICONIX Software Engineering, Inc., Doug Rosenberg, ICONIX Software Engineering, Inc., http://www.iconixsw.com/UMLBook.htmlhttp://www.iconixsw.com/UMLBook.html