Uml Atm
Uml Atm
Uml Atm
Check Exceeding
Balance
Withdraw Cash
«include»
«include»
Transfer Money
Check balance
Print Receipt
Log Out
«extend»
Bank
Customer
Deposit a Check
Deposit Cash
Log in
Activity Diagram:- Activity diagrams describe the activities of a class. They are similar
to state transition diagrams and use similar conventions, but activity diagrams describe
the behavior/states of a class in response to internal processing rather than external
events. They contain the following elements:
1. Swimlanes , which delegate specific actions to objects within an overall activity
2. Action States , which represent uninterruptible actions of entities, or steps in the
execution of an algorithm
3. Action Flows , which represent relationships between the different action states on an
entity
4. Object Flows , which represent utilization of objects by action states, or influence of
action states on objects.
Following are the examples of Login, Withdraw Activity Diagrams.
act LogIn Activ ity Diagram
ActivityInitial
Authorize Card
Insert Card
Ok?
[Yes]
[No]
Display Error
Msg
[No]
[No]
ActivityFinal
Authorize
Inser Pin
PIN
PIN is correct?
[Yes]
Display
[Yes]
Transactions
List
ActivityFinal
Lock Card
Display Error
ActivityFinal
act Withdraw Cash Activ ity Diagram
ActivityInitial
Display
Balance
[No]
Ok?
[Yes]
Ej ect Money
Update
Balance
Display New
Balance
ActivityFinal