Object Oriented Analysis and Design: Lecture 09 Sequence Diagrams Mehwish Kayani Mehwish - Kayani@pucit - Edu.pk
Object Oriented Analysis and Design: Lecture 09 Sequence Diagrams Mehwish Kayani Mehwish - Kayani@pucit - Edu.pk
The charm
works well in a scenario-driven design environment
better characterization of object-oriented systems
simple and visually suggestive
3 Lecture 18
Sequence Diagram
Captures dynamic behavior (time-
oriented)
Sequence Diagram
Captures dynamic behavior (time-oriented)
Purpose
Model flow of control
Illustrate typical scenarios
Sequence Diagrams
A sequence diagram shows an interaction
arranged in time sequence
the objects (not the classes)
the messages that pass between them
seque
diagra
:Caller :Operator :Callee
call
ack
number
call
ack
transfer time
talk
Message Type
Simple Message
Control is passed from one object to another without providing
details
Synchronous Message
The sending object pause to wait for a result
Asynchronous Message
The sending object does not pause to wait for the result
Return Message
This message indicates a return from a procedure call
Message Types