You are on page 1of 2

SEQUENCE DIAGRAM

Sequence diagram and Collaboration diagrams are special


type of interaction diagrams. They are used to capture the
Dynamic Behavior of the system.

So, the purpose of interaction diagram can be describe as:

1. To capture dynamic behavior of a system.


2. To describe the message flow in the system.
3. To describe structural organization of the objects.
4. To describe interaction among objects.

To draw an Interaction diagram (either sequence or collaborative), First


we must identify:

1. Objects taking part in the interaction.


2. Message flow among the objects.
3. The sequence in which the message are flowing.
4. Object organization.
Interaction ATM withdrawal

1) Card insert 2) Pass card info

3) [not valid] Card Validate


4) Card invalid

5) [valid] Card Validated


6) Request PIN

7) PIN entered 8) Pass PIN info

9) [not valid] PIN Validate


10) Invalid PIN

11) [PIN valid] PIN Validate


12) Request for amount withdrawal

13) Amount to withdrawal 14) Pass amount info

15) [Insufficient Balance] Amount Validated


16) Insufficient Balance

17) [Sufficient balance] Amount Validated


18) Cash Dispense

You might also like