0% found this document useful (0 votes)
18 views16 pages

06-UML Sequence Diagram

06-UML Sequence Diagram

Uploaded by

brazil nyjr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views16 pages

06-UML Sequence Diagram

06-UML Sequence Diagram

Uploaded by

brazil nyjr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

OBJECT ORIENTED ANALYSIS

(Unified Modeling Language)


UML
Sequence Diagram

Rana Talaat Muhammad


Expected Outcomes
• To know how sequence diagram represent system logic
What is a Sequence Diagram?
Sequence diagrams describe interactions among classes in terms of an
exchange of messages over time. They're also called event diagrams.

A sequence diagram is a good way to visualize and validate various


runtime scenarios.
What is a Sequence Diagram?
These can help to predict how a system will behave and to discover
responsibilities a class may need to have in the process of modelling a
new system.

Sequence Diagrams captures 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).
Sequence Diagrams at a Glance
Sequence Diagrams show elements as they interact over time and they are organized according to
object (horizontally) and time (vertically):

Object Dimension Time Dimension


The horizontal axis shows the elements that  The vertical axis represents time proceedings (or
are involved in the interaction progressing) down the page.

Conventionally, the objects involved in the


operation are listed from left to right  Note that:
according to when they take part in the
message sequence. However, the elements on Time in a sequence diagram is all a about ordering,
the horizontal axis may appear in any order not duration. The vertical space in an interaction
diagram is not relevant for the duration of the
interaction.
Sequence Diagram Notation

System Analysis & Design - Rana Talaat Muhammad 6


Objects

Bank Server
Personal
&
Bank Account
Database

External-Actor
Sequence Diagram Notation

Object
Is placed in sequential order from left to right
Actor
Is always outside the scope of the system
Sequence Diagram Notation

are the vertical dashed lines that show the existence of an


object or actor overtime. Moving down the lifeline
means that more time has passed.

lifelines
Sequence Diagram Notation

Message
Messages show the information being sent
between objects. Sequence diagrams show the
order of interactions or sequences and they do this
by moving down the lifeline with each message.

when an object sends a message back, this is


called a return or reply message and they're
Reply / Return always represented by a dashed line which often
moved from right to left
Sequence Diagram Notation

Alternative alternative frame symbolizes a


choice between two or more
message sequences.
[if……..]

[else]

alternative
frame
Sequence Diagram Notation

show when and how long an object is performing the


process that shows us briefly when objects are active and
when they're idle

activation
boxes
Sequence Diagra
m - Examples
System Analysis & Design - Rana Talaat
Muhammad

13
Sign Up Free
www.lucidchart.com/
Activity

Sequence
[email protected] Diagram

You might also like