Shanghai Jiao Tong University 上海交通大学 Object Oriented Analysis and Design Use-Case Design 上海交通大学软件工程中心
Shanghai Jiao Tong University 上海交通大学软件工程中心 Object Oriented Analysis and Design Use-Case Design
Use-Case Design in Context [Early Elaboration [Inception Iteration] Iteration (Optional)] Define a Candidate Perform Architecture Architectural L Synthesis Analyze Behavior (Optional) Refine the Architecture Use-Case Design Designer Define Design the Components Database Object Oriented Analysis and Design 2
Object Oriented Analysis and Design 2 Use-Case Design in Context [Early Elaboration Iteration] [Inception Iteration (Optional)] Define a Candidate Architecture Perform Architectural Synthesis Analyze Behavior Refine the Architecture Define Components Design the Database (Optional) Use-Case Design Designer
Use-Case Design Overview Design Subsystems and Interfaces Supplementary Specifications Use-Case Design Use-Case Realization (Refined) use-case Design Classes Object Oriented Analysis and Design 3
Object Oriented Analysis and Design 3 Use-Case Design Overview Supplementary Specifications Use-Case Design Use-Case Realization (Refined) Design Subsystems and Interfaces Design Classes use-case
Outline Describe interaction among design objects Simplify sequence diagrams using subsystems Describe persistence-related 000 behavior Refine the flow of events description Unify classes and subsystems Object Oriented Analysis and Design 4
Object Oriented Analysis and Design 4 Outline Describe interaction among design objects Simplify sequence diagrams using subsystems Describe persistence-related behavior Refine the flow of events description Unify classes and subsystems
Outline ★◆Describe interaction among design objects Simplify sequence diagrams using subsystems Describe persistence-related behavior Refine the flow of events description Unify classes and subsystems Object Oriented Analysis and Design 5
Object Oriented Analysis and Design 5 Outline Describe interaction among design objects Simplify sequence diagrams using subsystems Describe persistence-related behavior Refine the flow of events description Unify classes and subsystems
Review:Use-Case Realization Use-Case Model Design Model Use Case Use-Case Realization Collaboration Diagrams Sequence Diagrams Use Case Class Diagrams Object Oriented Analysis and Design 6
Object Oriented Analysis and Design 6 Review: Use-Case Realization Class Diagrams Use Case Collaboration Diagrams Use-Case Model Design Model Use Case Use-Case Realization Sequence Diagrams
Review:From Analysis Classes to Design Elements Analysis Classes Design Elements > > > > Many-to-Many Mapping Object Oriented Analysis and Design 7
Object Oriented Analysis and Design 7 Analysis Classes Design Elements Many-to-Many Mapping Review: From Analysis Classes to Design Elements > > > >
Use-Case Realization Refinement Identify participating objects Allocate responsibilities among objects ◆ Model messages between objects ◆ Describe processing resulting from messages Model associated class relationships Sequence Diagrams Class Diagrams Object Oriented Analysis and Design 8
Object Oriented Analysis and Design 8 Class Diagrams Use-Case Realization Refinement Identify participating objects Allocate responsibilities among objects Model messages between objects Describe processing resulting from messages Model associated class relationships Sequence Diagrams
Use-Case Realization Refinement Steps Identify each object that participates in the flow of the use case Represent each participating object in a sequence diagram Incrementally incorporate applicable architectural mechanisms Object Oriented Analysis and Design 9
Object Oriented Analysis and Design 9 Identify each object that participates in the flow of the use case Represent each participating object in a sequence diagram Incrementally incorporate applicable architectural mechanisms Use-Case Realization Refinement Steps
Representing Subsystems on a Sequence Diagram ◆Interfaces Represent any model element that realizes the interface -No message should be drawn from the interface ◆Proxy class Represents a specific subsystem Messages can be drawn from the proxy Object A Interface Object B Object A Proxy Object B 1:Message 1 1:Message 1 2:Me 2:Message 2 lInvalid message Valid message Object Oriented Analysis and Design 10
Object Oriented Analysis and Design 10 Representing Subsystems on a Sequence Diagram Interfaces ▪ Represent any model element that realizes the interface ▪ No message should be drawn from the interface Proxy class ▪ Represents a specific subsystem ▪ Messages can be drawn from the proxy Object A Interface Object B 1: Message 1 2: Message 2 Object A Proxy Object B 1: Message 1 2: Message 2 X Invalid message Valid message