INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.
May 6, 2018 | Author: Anonymous |
Category: Documents
Slide 1 INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information Sciences 1T. Shatha AlAjlan Slide 2 Example#1 : Purchasing a Pop from a Vending Machine 1. Draw a sequence diagram for purchasing a pop from a vending machine, given the following assumptions: The objects in the system are the user, the dispenser (releases cans of pop), the display (shows amount of money entered and other messages), and the controller (receives coins, issues change, sends orders to the dispenser and updates the display). The user will enter enough money before selecting the variety of pop. The machine is not out of the variety of pop selected. The machine has enough change. 2. Draw a corresponding collaboration diagram 2 Slide 3 Solution ( Sequence Diagram ) 3 Slide 4 Solution (cont.) ( Collaboration Diagram ) 4 Slide 5 Example#2 : ATM : withdraw money 5 Client ATMMachineSavingAccount Insert ATM card Request PIN Enter PIN code Verify PIN code PIN valid Request amount Enter amount Process transaction Transaction successful Dispense cash Print receipt
Comments
Report "INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information."