ATM usecases

download ATM usecases

of 13

Transcript of ATM usecases

  • 8/3/2019 ATM usecases

    1/13

    Use case Template andUse case Template and

    ATM ExampleATM Example

  • 8/3/2019 ATM usecases

    2/13

    Use case TemplateUse case Template

    USE CASE Name: the name is the goal asa short active verb phrasePre Condition: what we expect is already

    the state of the worldSuccess End Condition/Post Condition:

    the state of the world upon successfulcompletion

  • 8/3/2019 ATM usecases

    3/13

    Use case TemplateUse case Template

    Primary Actor: a role name ordescription for the primary actorSecondary Actor: other systems relied

    upon to accomplish use caseTrigger: the action upon the system that

    starts the use case

  • 8/3/2019 ATM usecases

    4/13

    Use case TemplateUse case Template

    Description1. put here the steps of the scenario from

    trigger to goal delivery, and any cleanupafter>2

    3

  • 8/3/2019 ATM usecases

    5/13

    Use case TemplateUse case Template

    EXTENSIONS: Branching Action 1a : 2a.

  • 8/3/2019 ATM usecases

    6/13

    ATM

    Withdraw

    Deposit

    Inquiry

    verification

    transfer

    BankCustomer

    generateministatement

    BANK

  • 8/3/2019 ATM usecases

    7/13

  • 8/3/2019 ATM usecases

    8/13

  • 8/3/2019 ATM usecases

    9/13

    WithdrawWithdraw

    A withdrawal transaction asks the customer to choose atype of account to withdraw from (e.g. checking) menu ofpossible accounts, and to choose amount from a menu of

    possible amounts. The system verifies that it hassufficient money on hand to satisfy the request beforesending the transaction to the bank. (If not, the customeris informed and asked to enter a different amount.) If thetransaction is approved by the bank, the appropriateamount of cash is dispensed by the machine before itissues a receipt. (The dispensing of cash is also recordedin the ATM's log.)

    A withdrawal transaction can be cancelled by thecustomer pressing the Cancel key any time prior tochoosing the amount.

  • 8/3/2019 ATM usecases

    10/13

    Primary Actor: Customer Secondry Actor: Bank Trigger: Customer has selected withdraw

    cash option from a menu of options. Pre Condition: Customer ATM card has been

    verified and withdraw option is selected. Post Condition: Customer gets the desired amount from

    machine

    Customer gets a receipt. System updates bank about transaction. Customers ATM card is returned.

  • 8/3/2019 ATM usecases

    11/13

    Normal Flow: 1. User has selected withdraw option. 2. System asks user to enter required amount.

    3. The system verifies that amount is multiple of 500 anddoes not exceed the limit/20000. 4.The system verifies that it has sufficient money on hand

    to satisfy the request before sending the transaction to thebank.

    5. System sends a request to the bank.

    6. On approval from the bank, the said amount isdispensed from the machine. 7. A log is maintained in machine. 8. card is ejected from the system and System informs

    user to pick card. 9. Cash is ejected and System informs user to pick cash.

    10. System asks user if he needs a receipt 11. If user selects yes System generates a receipt of thetransaction.

  • 8/3/2019 ATM usecases

    12/13

    Alternative Flows:3.a. if amount is not a multiple of 500 or

    exceeds the limit of 20000 1. An error message is shown to user. 2. customer is asked to re enter amount.

    4.a. There is not sufficient amount inmachine. 1. System informs user that this amount can not be

    dispensed. 2. System returns to main menu.

    6.a. if bank does not approve request, error

    is shown to user10.a. if user selects no, receipt is notgenerated.

  • 8/3/2019 ATM usecases

    13/13

    ReferenceReference

    http://www.math-cs.gordon.edu/courses/cpshttp://download.cnet.com/ATM-Automated-TCockburns USE CASE Template

    http://www.math-cs.gordon.edu/courses/cps211/ATMExample/UseCases.htmlhttp://download.cnet.com/ATM-Automated-Teller-Machine/3004-20415_4-11108305.htmlhttp://download.cnet.com/ATM-Automated-Teller-Machine/3004-20415_4-11108305.htmlhttp://www.math-cs.gordon.edu/courses/cps211/ATMExample/UseCases.html