Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.

Similar presentations


Presentation on theme: "INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information."— Presentation transcript:

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

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

3 Solution ( Sequence Diagram ) 3

4 Solution (cont.) ( Collaboration Diagram ) 4

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


Download ppt "INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information."

Similar presentations


Ads by Google