1 / 11

The problem

The problem. חברה רוצה לפתח מכונה אוטומטית למכירת שתייה ( Vending Machine ) לשוק בארה"ב. הציור המצורף, מתאר את נקודת המבט של הלקוח ( Customer ) לגבי המערכת. להלן תאור תכונות המערכת:. VM Characteristics.

huela
Download Presentation

The problem

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. The problem חברה רוצה לפתח מכונה אוטומטית למכירת שתייה (Vending Machine) לשוק בארה"ב. הציור המצורף, מתאר את נקודת המבט של הלקוח (Customer) לגבי המערכת. להלן תאור תכונות המערכת: Targil 1- Vending Machine

  2. VM Characteristics • Accept nickels, dimes and quarters from customers. Any other coins are to be treated as slugs and returned to the customer. • Check each coin to make sure it is not a slug. This is to be done by validating the size and weight of each coin. • Initiate payment computations only after detecting a valid coin. The system is to be difficult for people to trick. • Accept product selection from the customer. • Check to see whether the selected product is available in the dispenser. If not available, return coins and notify customer. • A variety of products which will change from time to time shall be offered. The product prices should be changeable. • Return the customer payment on request if he/she decides not to make a selection. • Dispense the product if payment conditions are fulfilled and product is available. • Return correct change to customer. • Disable product selection after the product is dispensed and until the next validated coin is received. • Make deposited coins available for change together with initial set of coins. Targil 1- Vending Machine

  3. VM - Customer View Targil 1- Vending Machine

  4. VM - Operator View Targil 1- Vending Machine

  5. VM – Context diagram Objects Slugs Customer selection Returned coins Customer Customer Product Vending Machine Products in Coins in System BIT information in Operator Coins out Database information in Operator Database information out BIT status Targil 1- Vending Machine

  6. Vending Machine System Objects Slugs Customer selection Returned coins Customer Vend Customer Product Product 1 Products in Coins in BIT information in Operator Coins out Database information in Maintain Operator Machine Database information out 2 BIT status VM – DFD-0 (Vending machine system) Targil 1- Vending Machine

  7. Slugs Coins Get customer Dispense payments Objects Change Inserted 1.1 Extracted 1.2 coins coins Payment Returned coins Price table Change due Price Validate payment Price data 1.3 Get product Dispense Price product 1.4 1.6 Valid selection Product data Product Get valid selection Customer selection 1.5 Products VM – DFD-1 (Vend product) Targil 1- Vending Machine

  8. VM – DFD-1.1 (Get customer payment) Targil 1- Vending Machine

  9. VM – PSPEC-1.1.1 – 1.1.5 Pspec 1.1.1: Validate coins • Examine OBJECT to see if it matches any set of COIN PARAMETERS - If so: Accept OBJECT as COIN - Else: Return OBJECT as SLUG Pspec 1.1.2: Clear payment • Issue PAYMENT = 0 Pspec 1.1.3: Accumulate payment • Add COIN VALUE to PAYMENT Pspec 1.1.4: Accumulate coins • Examine if HELD COINS .LE. HOLD CAPACITY then: - If so: Return COIN as SLUGS - Else: Add COIN to HELD COINS Pspec 1.1.5: Deposit coins • Transfer HELD COINS to COINS Targil 1- Vending Machine

  10. VM – Dictionary Sample Targil 1- Vending Machine

  11. The End Targil 1- Vending Machine

More Related