Professional Documents
Culture Documents
(Information Technology)
PHAGWARA, PUNJAB
Submitted By :
Roll no. 33
Q 1) Make a state diagram of ATM machine by using Events, State
transaction and sequence?
Ans .
Bank ATM
UML State Machine Diagram Example
This is an example of UML behavioural machine diagram showing Bank
Automated Teller Machine (ATM) top level state machine.ATM is initially
turned off. After the power is turned on, ATM performs startup action and
enters Self test state. If the test fails, ATM goes into Out of Service state,
otherwise there is triggerless transition to the Idle state. In this state ATM
waits for customer interaction.The ATM state changes from Idle to Serving
Customer when the customer inserts banking or credit card in the ATM's
card reader. On entering the Serving Customer state, the entry
action readCard is performed. Note, that transition from Serving
Customer state back to the Idle state could be triggered by cancel event as
the customer could cancel transaction at any time.
The example shows how a class can encapsulate all the relevant data of a
particular object in a very systematic and clear way. A class diagram is a
collection of classes similar to the one above.
• Association
• Directed Association
• Reflexive Association
• Aggregation
• Generalization
• Association
Association
Directed Association
Directed Association
Reflexive Association
Reflexive Association
This occurs when a class may have multiple functions or
responsibilities. For example, a staff member working in an airport may
be a pilot, aviation engineer, a ticket dispatcher, a guard, or a
maintenance crew member. If the maintenance crew member is
managed by the aviation engineer there could be a managed by
relationship in two instances of the same class.
Aggregation
Aggregation
Inheritance