Use Cases For ATM System
Use Cases For ATM System
Use Cases For ATM System
ATM
System
startup
Operator System
shutdown
Session
Invalid PIN
Customer
Include exend
Transaction
Bank
Withdrawa Deposit inquiry
l
The software to be designed will control a simulated automated
teller machine (ATM) having a magnetic stripe reader for reading an
ATM card, a customer console (keyboard and display) for interaction
with the customer, a slot for depositing envelopes, a dispenser for cash
(in multiples of 10 eg), a printer for printing customer receipts, and a
key-operated switch to allow an operator to start or stop the machine.
The ATM will communicate with the bank's computer over an
appropriate communication link. (The software on the latter is not part
of the requirements for this problem.)
The ATM will communicate each transaction to the bank and obtain
verification that it was allowed by the bank. Ordinarily, a transaction
will be considered complete by the bank once it has been approved. In
the case of a deposit, a second message will be sent to the bank
indicating that the customer has deposited the envelope. (If the customer
fails to deposit the envelope within the timeout period, or presses cancel
instead, no second message will be sent to the bank and the deposit will
not be credited to the customer.)
If the bank determines that the customer's PIN is invalid, the customer
will be required to re-enter the PIN before a transaction can proceed. If
the customer is unable to successfully enter the PIN after three tries, the
card will be permanently retained by the machine, and the customer will
have to contact the bank to get it back.
If a transaction fails for any reason other than an invalid PIN, the ATM
will display an explanation of the problem, and will then ask the
customer whether he/she wants to do another transaction.
The ATM will provide the customer with a printed receipt for each
successful transaction, showing the date, time, machine location, type of
transaction, account(s), amount, and ending and available balance(s) of
the affected account ("to" account for transfers).
The ATM will have a key-operated switch that will allow an operator to
start and stop the servicing of customers. After turning the switch to the
"on" position, the operator will be required to verify and enter the total
cash on hand. The machine can only be turned off when it is not
servicing a customer. When the switch is moved to the "off" position, the
machine will shut down, so that the operator may remove deposit
envelopes and reload the machine with cash, blank receipts, etc.
The ATM will also maintain an internal log of transactions to facilitate
resolving ambiguities arising from a hardware failure in the middle of a
transaction. Entries will be made in the log when the ATM is started up
and shut down, for each message sent to the Bank (along with the
response back, if one is expected), for the dispensing of cash, and for the
receiving of an envelope. Log entries may contain card numbers and
dollar amounts, but for security will never contain a PIN.
The system is started up when the operator turns the operator switch to
the "on" position. The operator will be asked to enter the amount of
money currently in the cash dispenser, and a connection to the bank will
be established. Then the servicing of customers can begin.
The system is shut down when the operator makes sure that no customer
is using the machine, and then turns the operator switch to the "off"
position. The connection to the bank will be shut down. Then the
operator is free to remove deposited envelopes, replenish cash and paper,
etc.
A session is started when a customer inserts an ATM card into the card
reader slot of the machine. The ATM pulls the card into the machine and
reads it. (If the reader cannot read the card due to improper insertion or a
damaged stripe, the card is ejected, an error screen is displayed, and the
session is aborted.) The customer is asked to enter his/her PIN, and is
then allowed to perform one or more transactions, choosing from a menu
of possible types of transaction in each case. After each transaction, the
customer is asked whether he/she would like to perform another. When
the customer is through performing transactions, the card is ejected from
the machine and the session ends. If a transaction is aborted due to too
many invalid PIN entries, the session is also aborted, with the card being
retained in the machine.
The customer may abort the session by pressing the Cancel key when
entering a PIN or choosing a transaction type.
If the bank approves the transaction, any steps needed to complete the
transaction (e.g. dispensing cash or accepting an envelope) will be
performed, and then a receipt will be printed. Then the customer will be
asked whether he/she wishes to do another transaction.
If the bank reports that the customer's PIN is invalid, the Invalid PIN
extension will be performed and then an attempt will be made to
continue the transaction. If the customer's card is retained due to too
many invalid PINs, the transaction will be aborted, and the customer will
not be offered the option of doing another.
All messages to the bank and responses back are recorded in the ATM's
log.