2 Modeling primitives


A. Törn - Contents - - Previous chapter - Next chapter - - Previous page - Next page

2.5 Vending machine revisited

We complement our specification of the vending machine given in Section 1.4 to make it more realistic. We include the following into the model:

External places to the vending machine are the three places READY, Coin inserted, and Service man at VM (SM). There are three sub-nets, Coin handling, Dispensing, and Replenishment.

The net Coin handling has the external places READY, Coin inserted (CI), Coin box (CB), and Ready to dispense (RD) as external places.

The net Dispensing has the external places Ready to dispense, READY, Goods storage (GS), and Goods free slots (GF).

The net Replenishment has the external places Goods storage, Goods free slots, Coin box, and Service man at VM.

The crude model in letter art is given below: (drawings)

         _______________________________________________
        |Vending machine   _________                    |
        |                 |Dispen-  |-----(5) GS        |
 ,------------------------|sing     |      ^            |
 v      |    _________    |_________\     _|__________  |
(•)-----|---|Coin     |      ^       \    |Replenish- | |
READY   |   |handling |   RD |        v   |ment       | |
        |   |         |---->( )   GF ( )--|           | |
( )-------->|         |                   |           | |     
CI      |   |_________|------->( )--------|           | |
        |                      CB         |           | |
        |                                 |___________| |
        |________________________________________|______|
                                                 |
                                                ( ) SM