Lab - 3 Sequence Diagrams: Theory
Lab - 3 Sequence Diagrams: Theory
Sequence Diagrams
Theory:
Sequence diagram:
A Sequence diagram is a diagram that shows how objects operate with one another and in
what order. It is a construct of a Message Sequence Chart. A sequence diagram shows object
interactions arranged in time sequence. It depicts the objects and classes involved in the scenario
and the sequence of messages exchanged between the objects needed to carry out the
functionality of the scenario. Sequence diagrams are typically associated with use case
realizations in the Logical View of the system under development. Sequence diagrams are
sometimes called event diagrams or event scenarios.
A sequence diagram shows, as parallel vertical lines (lifelines), different processes or objects that
live simultaneously, and, as horizontal arrows, the messages exchanged between them, in the
order in which they occur. This allows the specification of simple runtime scenarios in a
graphical manner.
3. Lifeline - a dashed vertical line that represents the passage of time as it extends
downward. Along with time, they represent the sequential events that occur to an object
during the charted process. Lifelines may begin with a labelled rectangle shape or an
actor symbol.
4. Messages - packets of information that are transmitted between objects. They may reflect
the start and execution of an operation, or the sending and reception of a signal.
For example:
OBJECTIVES:
1. To know about the sequence diagrams
2. To know the sequence of operations performed
3. To document the behaviour of a future system
: Website
Search Flight
: Flight
: Aircraft
ShowMatching Flights
Return matching flights
Select Preferred Flights
Display Cost
Approve cost
Enter Personal Info
Select seats
Seat confirmed
Assign seats
Assign seats
Approve summary
Get payment
Show confirmation
Approve
: Payment
enableBluetooth()
AskFor Permission()
openDeviceList()
:BluetoothEn
Connect Device()
Connect(device)
sendChatMessage()
ConnectionSuccesful
Write(message)
sendMessage()
receiveMessage
Discussion:
In this way, sequence diagram was drawn for Air Ticket Reservation System, Library
Management System, Hospital Management System and Android Bluetooth Chat using Argo
UML. UML sequence diagrams are used to show how objects interact in a given situation. An
important characteristic of a sequence diagram is that time passes from top to bottom: the
interaction starts near the top of the diagram and ends at the bottom.
Conclusion:
Hence, from this laboratory we got familiarized with class diagrams and we have learned to
design class diagram in Argo UML.