Professional Documents
Culture Documents
Lab # 4 Modeling Sequence Diagram: Objective
Lab # 4 Modeling Sequence Diagram: Objective
Lab # 4 Modeling Sequence Diagram: Objective
Lab # 4
Modeling Sequence Diagram
Objective
Creating a Sequence Diagram
Getting familiar with sequence diagram symbols and notations
Steps for creating a Sequence Diagram
the interaction that takes place in a collaboration that either realizes a use case or an
operation (instance diagrams or generic diagrams)
high-level interactions between user of the system and the system, between the system
and other systems, or between subsystems (sometimes known as system sequence
diagrams)
Below is a sequence diagram for making a hotel reservation. The object initiating the sequence
of messages is a Reservation window.
Activation
Activation boxes represent the time an object needs to complete a task.
Messages
Messages are arrows that represent communication between objects. Use half-arrowed lines to
represent asynchronous messages. Asynchronous messages are sent from an object that will not
wait for a response from the receiver before continuing its tasks.
Lifelines
Lab#04: Sequence Diagram 22
Introduction To Software Engineering (SWE-104) SSUET/QR/114
Lifelines are vertical dashed lines that indicate the object's presence over time.
Loops
A repetition or loop within a sequence diagram is depicted as a rectangle. Place the condition for
exiting the loop at the bottom left corner in square brackets [].
Destroying Objects
Objects can be terminated early using an arrow labeled "<< destroy >>" that points to an X.
Exercise: