UML - State chart diagram on ATM Transaction
13K views
Nov 28, 2024
UML - State chart diagram on ATM Transaction
View Video Transcript
0:00
Strait chart diagram for the ATM transaction case study
0:04
We know that in case of state chart diagram, we usually depict the different states of one
0:11
object and how the straight transitions will take place from one state to another state
0:17
of that very object that will be depicted in the state chart diagram
0:21
So let us go for the detailing and here we have selected the account object for the state
0:28
diagram a banking account can remain in two different states one is the
0:34
open state another one is a closed state okay so this is our initial state
0:39
this is our final state we have also leveled that one here so there is a
0:43
start state and this is a stop state so this is the circle filled up and there is a
0:48
double circle and filled up like this so they are denoting the states we have
0:53
written that one and here we are denoting this one as a state
0:57
transition so if we have a state transition like this where the initial state
1:02
and the terminating state both are the same initial state and the next state
1:06
both are the same in that case we can consider it as a reflexive transition okay
1:12
now see what is happening so when the account is open in the opening open
1:17
state in that case if I want to withdraw money but if the balance is less than
1:22
zero that means the money cannot be withdrawn then I shall come down here so So overdraw do send a notice to the customer so the notice will be sent to the customer so from this particular
1:35
state the state transition will take place here so now if the car customer
1:39
deputies some money so he or she deposits some money on his or her account
1:45
when the balance is less than zero then again the account will be in the
1:50
opening state but if this when this particular note will be sent and if the balance still remains less than zero for more than 30 days
2:00
then in the case the account will be found in the closed state and here also
2:05
if customer requests for the closer of the account then from this particular
2:10
state open the next state of the account object will become the closed state and
2:15
that is the final state as we discussed earlier so in this way we have shown you
2:19
that how to draw the stature diagram for the account object A single project may have multiple such diagrams on different objects
2:30
So here we are having this diagram, stretcher diagram on the account class only
2:35
We can also do such stretcher diagram for other objects in our project as required
2:42
So we have discussed the ATM transaction case study. We have drawn the different diagrams
2:48
We have gone through the problem statement to this respective diagram, how to draw them into some
2:54
details with the practical demonstration. Thanks for watching this video
#ATMs & Branch Locations
#Banking
#Debit & Checking Services
#Mobile Payments & Digital Wallets
#Programming
#Savings Accounts