# The smallest useful Determa State machine: one guarded transition.
# A turnstile unlocks only when the inserted coin covers the fare.
id: turnstile
events:
coin:
push:
top: # the outermost state (PSiCC "top")
esvs:
fare: # extended-state variable, declared in the state
initial: # the initial transition
states:
locked:
on_events:
coin:
unlocked:
on_events:
push: