90 likes | 142 Views
sequence diagram. Tutorial 5 – Homework5. Sequence Diagram. Model the flow of logic within your system in a visual manner enabling you both to document and validate your logic commonly used for both analysis and design purposes. Sequence Diagram – vending machine.
E N D
sequence diagram Tutorial 5 – Homework5
Sequence Diagram Model the flow of logic within your system in a visual manner enabling you both to document and validate your logic commonly used for both analysis and design purposes.
Sequence Diagram – vending machine A vending machine sells small, packaged, ready to eat items (chocolate bars, cookies, candies, etc.). Each item has a price and a name. A customer can buy an item, using a smart card (issued by the vending machine company) to pay for it. No other payment forms (i.e. cash, credit card) are allowed. The smart card records on it the amount of money available. The functions supported by the system are: Sell an item (choose from a list of items, pay item, distribute item) Recharge the machine Set up the machine (define items sold and price of items) Monitor the machine (number of items sold, number of items sold per type, total revenue) The system can be used by a customer, a maintenance employee (who recharges items in the machines), an administrator (who sets up the machine).
Draw sequence diagram for Select Floor base on the scenario given Scenario : . The passenger pushes the destination floor button (internal button); 2. The internal button sends the system the order to select the direction (up/down); 3. The system changes the elevator status (from idle to busy); 4.The system switches the floor button (internal button) light on; 5. The system closes the elevator door; 6. The system moves the elevator according to the destination floor direction (up/down); 7. The elevator sends the system the order to control if the floor that the elevator is going to get through is the destination one; 8. The system stops the elevator at the destination floor; 9. The system opens the door at the destination floor; 10. The passenger moves outside the elevator; 11. The system switches the internal button off