The following FSM models a basic Vending Machine:
Re-create it in Workcraft:
s0
is the initial state; this can be set by selecting a node and editing its properties using the Property editor panels0
to s1
in the picture below) – you can use polylines and/or Bezier curvesSimulate your model (by pressing the button in the Model tools toolbar). Try to re-create the following scenarios:
Formally verify (using Verification menu) whether the FSM
Re-create the following FSM in Workcraft and save it in a different file (to draw curved arcs you need to change the connection type from Polyline to Bezier as explained here):
Simulate your model. Try to re-create the following scenarios:
s6
that enables a windfall of coins (this scenario should be impossible)Verify the properties of this FSM as in the previous exercise. Can you explain the verification results?
===== Feedback =====
====== ====== {{page>:tutorial:feedback&inline}}
feedback
page should be temporary wrapped in <WRAP hide>
. Note that the headers still propagate to the table of contents even if inside the hidden wrap. Therefore the Feedback title needs to be converted to something else, e.g. to code by adding two spaces in front.