PN Example: a finite-state machine (1)
Consider a vending machine
- It accepts either nickels or dimes
- Sells 15c or 20c candy bars
- The vending machine can hold up to 20c
- Coin return transitions are omitted
the next slides are the state diagram of this
vending machine which represented by the Petri net
Any finite-state machine (or its state diagram) can be
modeled with a state machine.