Presentation is loading. Please wait.

Presentation is loading. Please wait.

ATM Adv. SW Engineering

Similar presentations


Presentation on theme: "ATM Adv. SW Engineering"— Presentation transcript:

1 ATM Adv. SW Engineering http://www.math-cs.gordon.edu/courses/cps211/ATMExample/

2 Requirement Phase Textual Requirement Documentation Use Case Diagram

3

4 Use Case Description System Startup Use Case 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. System Shutdown Use Case 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.

5 Analysis Phase Detailed Use Case Diagram Initial Function Tests Analysis Classes

6

7 Initial Functional Test Cases (Examples) Use CaseFunction Being TestedInitial System StateInputExpected Output System Startup System is started when the switch is turned "on" System is offActivate the "on" switch System requests initial cash amount System Startup System accepts initial cash amount System is requesting cash amount Enter a legitimate amount System is on System Startup Connection to the bank is established System has just been turned on Perform a legitimate inquiry transaction System output should demonstrate that a connection has been established to the Bank System Shutdown System is shut down when the switch is turned "off" System is on and not servicing a customer Activate the "off" switchSystem is off System Shutdown Connection to the Bank is terminated when the system is shut down System has just been shut down Verify from the bank side that a connection to the ATM no longer exists Session System reads a customer's ATM card System is on and not servicing a customer Insert a readable card Card is accepted; System asks for entry of PIN Session System rejects an unreadable card System is on and not servicing a customer Insert an unreadable card Card is ejected; System displays an error screen; System is ready to start a new session SessionSystem accepts customer's PIN System is asking for entry of PIN Enter a PIN System displays a menu of transaction types Session System allows customer to perform a transaction System is displaying menu of transaction types Perform a transaction System asks whether customer wants another transaction

8 Analysis Class

9 Design Phase CRC Cards Class Diagram State Charts Interaction Diagrams

10 Class Diagram

11

12 State Chart for One Session

13 State Chart for One Session (cont.) Italicized operations are Unique to each particular type of transaction

14 System Startup Sequence Diagram

15 System Shutdown Sequence Diagram

16 Session Sequence Diagram

17 Transaction Sequence Diagram

18 Withdrawal Transaction Collaboration

19 Deposit Transaction Collaboration

20 Transfer Transaction Collaboration

21 Inquiry Transaction Collaboration

22 Invalid PIN Extension Collaboration

23 Detailed Design & Implementation Detailed Class Diagram Package Diagram Code

24 All other classes from class diagram must be done in the same way.

25 Package Diagram

26


Download ppt "ATM Adv. SW Engineering"

Similar presentations


Ads by Google