Unified Model Language (UML)
• What is a Sequence diagram or event diagram
A sequence diagram simply depicts interaction between object in a
sequence order i.e. the order in which these interactions take place
Sequence diagram describe how and in what order the objects in a
system function
These diagrams are widely used by businessman and software
developers to document and understand requirements for new and
existing systems
Benefits of sequence diagrams
• Sequence diagrams can be useful references for businesses and other
organizations to
Represent the detail of a UML use case
See how objects and components interact with each other to
complete process
Plan and understand the detailed functionality of an existing or
future scenario
Basic symbols and components
Actor Lifeline
Represent roles played by human user, A lifeline represents an individual participant
external hardware or subject In the interaction
Activations Call Message
A thin rectangle on a lifeline represents the period during
which an element is performing an operation A message defines a particular communication
between lifelines of an interaction
Self Message
Is a kind of message that represent the
invocation of the same lifeline
Returning Message
A message defines a particular communication between
lifeline of an interaction
Recursive Message
Create Message
Is a kind of message that represents the invocation of
message of the same lifeline. It`s target points to an
activation on top of the activation where the message was
Create message is kind of message that
invoked from represents the instantiation of (target) lifeline
Destroy Message
Duration Message
Destroy message is a kind of message that represent
Duration message shows the distance between two time
the request of destroying the lifecycle of target lifeline instance for a message invocation
Message and Focus of control
It shows tall, thin rectangle on a lifeline
> It represent the period during which an element is performing an operation
Note
A note (comment) gives the ability to attach
various remarks to elements Sequence Fragments
A sequence fragment is represented as a box, called a combined
fragment, which encloses a portion of the interaction within a
sequence
Fragment type : ref, loop, break, alt, opt, neg
Sequence diagram of an ATM
TRANSACTION