【正文】
iii. Init cash amount b) Collaborations: i. Clog ii. CTransaction 3. CCustomerConsole a) Responsibility: i. Display messages ii. Display menu and receive a choice iii. Display a prompt and receive a PIN iv. Display a prompt and receive the amount of money v. Display a dialog and receive the response b) Collaborations: i. CTransaction ii. CSession 4. CKeyboard a) Responsibility: Watch the gesture from the keyboard b) Collaborations: CCustomerConsole 5. CScreen a) Responsibility: Display drawing and strings b) Collaborations: CCustomerConsole 6. CCashReceiver a) Responsibility: Receive the cash from the customer 11 / 40b) Collaborations: Clog 7. Cbank a) Responsibility: i. Connect to bank ii. Send message to bank iii. Receive message to bank iv. Shut down connection to bank b) Collaborations: i. Clog ii. CSession iii. Cmessage 8. CoperatorPannel a) Responsibility: i. Inform ATM system is shutdown ii. Inform ATM system is started iii. Inform cashdispenser the initial amount of cash b) Collaboration: i. CATM ii. CCashDispenser 9. Cprinter a) Responsibilities: Print the receipt b) Collaboration: i. CATM ii. CTransaction iii. Clog iv. CReceipt 實(shí)體類: Clog a) Responsibility: i. Write log message from bank 12 / 40ii. Write log message from cardreader iii. Write log message from session iv. Write log message from Transaction b) Collaborations: i. CBank ii. CCardreader iii. CTransaction Cmessage a) Responsibility: Hold information to send to the bank server b) Collorations: i. CBank ii. CTransaction Creceipt a) Responsibility: Hold the message to be printed b) Collaborations: Cprinter CCard a) Responsibility: Hold the information of a card b) Collaborations: i. CCardReader ii. CSession CAccount a) Responsibility: Hold the information of an account b) Callaborations: CQueryAccount 控制類: CSession a) Responsibility: i. Perform Session 13 / 40ii. Perform invalid