1 / 7

sequence diagram

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.

gomezm
Download Presentation

sequence diagram

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. sequence diagram Tutorial 5 – Homework5

  2. 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.

  3. 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).

  4. Sequence Diagram – vending machine

  5. Home Work 5

  6. 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

More Related