12

Click here to load reader

OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

Embed Size (px)

Citation preview

Page 1: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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

Page 2: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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

Page 3: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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)

Page 4: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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.

Page 5: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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

Page 6: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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

Page 7: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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

Page 8: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

OOA&D - 8 © Minder Chen, 1995-2006

Component Diagram

Course CourseOffering

Student Professor

Course.dll

People.dll

Course

User

Register.exeBilling.exe

BillingSystem

Page 9: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

OOA&D - 9 © Minder Chen, 1995-2006

Deployment Diagram

Page 10: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

OOA&D - 10 © Minder Chen, 1995-2006

Copyright © 1997 by Rational Software Corporation

Deployment Diagram

Registration Database

Library

Dorm

Main Building

Page 11: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

OOA&D - 11 © Minder Chen, 1995-2006

An Activity Diagram with Swimlanes

Page 12: OOA&D - 1© Minder Chen, 1995-2006 Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams

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