Presentation is loading. Please wait.

Presentation is loading. Please wait.

Service Representative Customer customer 11..* 1 :Mark I Vending Machine (MIVM) System supplier servicer 1 vending machine 1..*

Similar presentations


Presentation on theme: "Service Representative Customer customer 11..* 1 :Mark I Vending Machine (MIVM) System supplier servicer 1 vending machine 1..*"— Presentation transcript:

1 Service Representative Customer customer 11..* 1 :Mark I Vending Machine (MIVM) System supplier servicer 1 vending machine 1..*

2

3

4 The model layer contains 2 packages: Role package Dispenser package 4 Client Interface LayerCoordination LayerModel LayerServer Interface LayerFoundation Layer

5 CLIENT INTERFACE 5 CurrentModeProxy currentMode valid (aBill) valid (aCoin) doorLocked () selected (aLetter) selected (anInteger) changeMode () refund () CustomOperatingSystemInterrupts event (aString) BillValidator inserted (aBill) CoinValidator inserted (aCoin) RefundButton pressed () LetterSelectionButtons pressed () NumberSelectionButtons pressed () 8 10 ModeButton pressed () DoorSwitch tripped () Door locked ()

6 COORDINATION 6 CurrentModeProxy curentMode valid (aBill) valid (aCoin) doorLocked () selected (aString) selected (anInteger) changeMode () refund () DispenseItemMode displayMessages () refund () reset () selected (anInteger) selected (aLetter) valid (aMoney) SetPricemode refund () reset () selected (anInteger) selected (aLetter) valid (aMoney) DisplayHistoryMode refund () reset () selected (anInteger) selected (aLetter) valid (aMoney) Customer displayMessages () refund () reset () selected (anInteger) selected (aLetter) valid (aMoney) ServiceRepresentative coinDispenserAssemblyLoaded () displayTotalIncome () displayTotalItemsSold () reset () selected (anInteger) selected (aLetter) MainDisplay display (currentMode) {contains}

7

8 DISPENSER 8 ItemDispenserassembly dispenseAt (aLocation) priceAt (aLocation) priceAt (aLocation,aPrice) getTotalIncome () getTotalItemsSold () CoinDispenserAssembly isWarningNeeded () dispense (aMoney) inserted (aCoin) loaded () isPractical (aPrice) CoinDispensers haveCoin () coinInserted () next () coinType () dispense () CoinDispensingPolicy dispense () isPractical (price) ItemDispensers dispense () price () price (aMoney) CoinSolenoid push () ItemStepperMode step (360) ItemDisplay display (aLocation,aPrice) 80 3 {contains}

9 SERVER INTERFACE 9 CoinSolenoid push () ItemStepperMotor step (360) ItemDisplay display (aLocation,aPrice) CustomOperatingSystemCalls dispenseCoinFrom (aPort) dispenseItemFrom (aPort) itemDisplay (aString,aPort) mainDisplay (aString) MainDisplay display (aString)

10

11

12

13

14

15 15 ServiceRepresentativeSelection class. NothingSelected selected (aLeter) [valid] ColumnSelectedRowSelected selected (anInteger) selected (aLetter) selected (aLetter) [not valid] ItemSelected selected (anInteger) AppendingPrice selected (anInteger) selected (anInteger) [valid] selected (aLetter) [E and price is practical] SomethingSelected A: Accepted C: Cancelled E: Entered The coin dispenser assembly considers a price to be practical (i.e., when it can make change for this price, verifying it is divisible by some coin type of the assembly: quarter, dime or nickel). selected (anInteger)selected (aLetter) selected (anInteger) [not valid] selected (aLetter) [A] selected (aLetter) [E and price is practical] selected (aLetter) [C] reset () selected (aLetter) [not C and not E]

16


Download ppt "Service Representative Customer customer 11..* 1 :Mark I Vending Machine (MIVM) System supplier servicer 1 vending machine 1..*"

Similar presentations


Ads by Google