UML - ATM Transaction - Use Case Diagram
13K views
Nov 28, 2024
UML - ATM Transaction - Use Case Diagram
View Video Transcript
0:00
Use case diagram on ATM transaction
0:04
So in the previous video we have discussed the problem statement and the respective functional and non-functional requirements
0:12
on this ATM transaction. So let us discuss about the use case diagrams
0:18
how to draw the use case diagram for this ATM transaction case study
0:23
So here we have drawn one use case diagram. You know that we have discussed that one in the use case diagram chapter
0:29
chapter that a single project might be having hundreds of use cases might be
0:34
having multiple use cases and each and every use case where we are going for
0:40
the detailing about the system so just consider this use case here we are having
0:44
one actor this actor is nothing but the customer and this customer what are
0:50
the use cases what are the functional requirements this customer can initiate what are the processes the customer can initiate so here
0:58
we are expressing that one using use cases so this ellipse are denoting the use case and this
1:05
actor is is nothing but the customer who is working as an actor here we have discussed in the
1:12
use case class also that use case in case of use case the actor may not be always the human
1:18
being maybe some application which is the internal application or external application
1:24
as an example we can consider that a trigger of a certain database can also
1:29
be treated as an actor here. So what are the operations this user this customer can
1:34
initiate? There is a deposit funds, withdraw money, view balance, make payment and change
1:42
pin and transfer of funds. So these are the different use cases. These are the different
1:47
functional requirements this particular customer can initiate. So here we see that make
1:53
payment will be also will be sanctioned or will be acted by this credit system
1:58
and this change of pain will be approved by the bank officer don't think that
2:04
they are the human being they may be the software applications or software
2:08
models use case diagram for an ATM that is automated Taylor machine now
2:15
let us discuss what are the do's and dons while drawing the use case diagram
2:20
so do not model actor to actor communication we should not connect actor to actor But in case of say abstract class and then concrete class they will be drawing the actor to actor communication but that is a special case we be discussing that one
2:37
in this particular video but actor to actor communication is not should not be done do not
2:44
draw an arrow directly between two use cases we know that in between two use cases we
2:50
sometimes draw some arrows where we'll be having our uses or where we'll be having our uses or where we'll be having
2:56
our extents so that is a different thing but between two use cases we should not draw
3:02
any arrow directly every use case must be initialized by an actor so what is the use case
3:08
there is a functional requirement so against that particular functional requirement some process is to be executed so that's why always one use case must be initiated
3:18
by some actor a database has to be thought as an underneath layer of the entered use
3:26
diagram always remember whenever you were in a project software project always
3:31
remember that is one underneath layer of database so keeping that one in
3:37
mind we are doing going for this use case diagram it is a very high level
3:41
diagram I know that database will be coming at the back end but when whenever you
3:45
are drawing these use cases or any other diagram always remember there is an
3:49
underneath layer of database in the project so now just consider this one
3:54
we're having the abstract use case so this this is an abstract use case. So this particular abstract use case is withdraw money
4:01
This abstract use case has got extended here. So here we have written this one as
4:08
extends and there is a make express withdrawal. And here we are having this uses that is
4:14
authenticate customer. So this particular functional requirement will be used while withdraw money and this particular withdraw money is having the extended version
4:26
that is a make express withdrawal so this is there is one use case there are the other use cases
4:32
you are finding that you are having the direct communication between use cases but remember the
4:38
labels are there extends and uses so an abstract use case is one that is not started directly by an
4:46
actor instead an abstract use case provides some additional functionality that can be used by other
4:53
use cases so its additional functionality will be obtained here Okay abstract use case are the use cases that participate in a use or extends uses or extends relationship
5:07
So in this way we have shown that how this abstract use cases can be used in our use case diagram
5:16
Now we are considering the abstract actor. It is an actor that has no instances, that is the actor's cardinality exactly zero
5:27
know that in case of abstract class we don't define any kind of objects under that and
5:33
whenever we are going for the concrete classes then we define the respective objects
5:38
so keeping that one in mind it is not a in a class diagram I know that one
5:43
but keeping that concept in mind we're here we're having this abstract actor
5:48
there is an employee this is a note and this a note connectivity line is there so
5:52
abstract actor these are the concrete actors there is an hourly employee
5:56
salaried employee and temporary employee and this is the employee so these properties will be
6:03
coming to this respective this hourly employee salaried employee and the temporary employee
6:09
so here we're giving you some idea of this abstract actor and concrete actor
6:15
so let us go for one demonstration using rational row software and how to draw such
6:21
use cases and how to access the software so please watch the demonstration now
6:28
In this demonstration, we are going to show you how to draw use case diagram using rational
6:35
rows software for a project on ATM that is automated tailor machine
6:41
So we are coming to this use case and double clicking on this main, this window will
6:44
pop up. And here you see we're having the list of buttons coming in the toolbar
6:50
So here we're having this generalization, here we're having the dependency or instance
6:55
sheets this is the respective buttons for unidirectional association actor we're having the use case we're having the respective note we're having some text to
7:06
be written here using the text box tool and here we're having the anchor note to
7:11
item so let me show you that how to draw the use case diagram using this
7:16
toolbar so I'm just renaming this one so transfer funds bringing the actor here giving the name as customer customer
7:58
Now using this one we are going for this association
8:58
this particular make payment will be initiated by the actor so the line has been
9:24
drawn accordingly so here we are putting one text using this text box tool so here we have
9:52
completed the use case diogen so here we have completed the use case drawing for this ATM and here you have shown you that how to use this toolbar
9:59
how to use this tool to draw this diagram thanks for watching this video
#ATMs & Branch Locations
#Debit & Checking Services
#Programming