Documente Academic
Documente Profesional
Documente Cultură
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:
Purpose:
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