You are on page 1of 2

AIM:-Draw the sequence diagram for any two sequences.

Sequence diagram are a graphical way to illustrate a scenario they are


called sequence diagram because they show the sequence of massage
passing b/w the objects another advantage of these diagram is that they
show when the object are created and when they are destructed they also
show whether massages are synchronous or asynchronous

Steps for creating sequence diagram:-

1. You must know the scenario .you want to model before


diagramming sequence diagram.
2. After that specify the classes in that scenario
3. List the involved object in scenario horizontally on the top of the
page..
4. Drop a dotted a line beneath any object they are called life line.
5. The scenario should start by a massage pass from the first object.
6. You must know how to place the objects so that the sequences clear
7. You may start the scenario by an actor
8. Timing is represented vertically downward
9. Arrows b/w lifeline represent massage passing
10.Horizontalarrow may pass to the lifeline of another object but must
stop at some other object
11.You may add constraint to these horizontal arrows
12.Objects may sends massages to themselves
13.Long narrow rectangle can be placed over the lifeline of objects to
show when the object is active these rectangle are called
activation line
Sequence Diagram for E-voting System

You might also like