Sunteți pe pagina 1din 4

WEEK – 2(A)

2.1 OBJECTIVE:
Generate a Sequence Diagram for ATM System.

2.2 RESOURCES:
1. A working computer system with either Windows or Linux.
2. Rational Rose Software or Visual Paradigm Software.

2.3 DESCRIPTION:

We have two types of interaction diagrams in UML. One is sequence diagram and the other is a
collaboration diagram. The sequence diagram captures the time sequence of message flow from one
object to another and the collaboration diagram describes the organization of objects in a system taking
part in the message flow.

So the following things are to identified clearly before drawing the interaction diagram:

1. Objects taking part in the interaction.


2. Message flows among the objects.
3. The sequence in which the messages are flowing.
4. Object organization.

Purpose:

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.

Contents of a Sequence Diagram

a. Objects
b. Focus of control
c. Messages
d. Life line
e. Contents

2.4 PROCEDURE:

1. From Use Case View, Click to highlight the Use Case name.
2. Right click and select New.
3. Select Sequence Diagram and type a name for the diagram in the browser.
4. You can now double click the icon next the name to open the sequence diagram window.
5. To put actors on the sequence diagram, in the browser, under Use Case View, click on the desired
actor and drag it onto the sequence diagram window.
6. To put objects on the sequence diagram, in the browser, under Logical View, click on the desired
class and drag it onto the sequence diagram window.
7. Note that if you use the toolbar to put an object on the sequence diagram, the tool will ask you for
its class. If the class doesn’t exist in your Logical View, you will have to create it.
8. The tool will place your actors and objects from left to right in the order you select them. Once
they are in the window, you can rearrange in the usual manner.
9. To add a message in the toolbar, select the message arrow, Click on the lifeline of the source of
the message and drag to the lifeline of the destination of the message.
10. To add a message name, Right click on the message arrow. You can either select one of the
existing messages, or select <new operation> to add a new message.
2.5 A. SEQUENCE DIAGRAM FOR ATM
B. SEQUENCE DIAGRAM FOR INVALID PIN ATM
C. SEQUENCE DIAGRAM FOR ATM WITHDRAWAL

2.6 PRE LAB VIVA QUESTIONS:

1. What is meant by link?


2. Explain about flat sequence?
3. What are the steps to model flow of control?
4. Define sequence diagram?
5. What is focus of control?

2.7 LAB ASSIGNMENT:

1. Identify objects in online shopping?


2. Design a sequence diagram for online banking?
3. Design sequence for hospital management system?
4. Design sequence Diagram for e-library online public access catalog?
5. Define major sequence for a credit card processing system?

2.8 POST LAB VIVA QUESTIONS:

1. Explain about object line in sequence diagram?


2. What are the steps to forward engineer a sequence diagram?
3. What are the steps to reverse engineer a sequence diagram?
4. What are time and space constraints?
5. What are the uses of sequence diagram?

S-ar putea să vă placă și