summaryrefslogtreecommitdiff
path: root/tools/dfagen/examples/ex2.fsm
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-08 23:07:25 +0200
committerNicolas Schodet2009-05-08 23:07:25 +0200
commitb566e4bcd0c7cb3c90ad941b37db223134090ded (patch)
tree7d3f24a25860e17e7fa9cd017ad2d8bd8c0bd227 /tools/dfagen/examples/ex2.fsm
parent6b3d5061623a35c96e66e25fc14af6a9323f81b0 (diff)
* tools/dfagen:
- added state attributes. - added support for more than one initial state. - added table of transitions with only one default branch. - added state and event template parameter. - added --output-dir. - make template directory relative to config file. - more options checking. - added transition attributes and callback definition. - conserve input file order in output. - added --dump and more option checking. - fixed missing newline.
Diffstat (limited to 'tools/dfagen/examples/ex2.fsm')
-rw-r--r--tools/dfagen/examples/ex2.fsm8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/dfagen/examples/ex2.fsm b/tools/dfagen/examples/ex2.fsm
index e290c05c..8142ad88 100644
--- a/tools/dfagen/examples/ex2.fsm
+++ b/tools/dfagen/examples/ex2.fsm
@@ -3,9 +3,9 @@ Example 2
A barman robot.
States:
- IDLE
+ IDLE [in=hello out=goodbye]
waiting for a command
- DROPPING_ICE
+ DROPPING_ICE [in=hi]
FILLING_GLASS
Events:
@@ -15,13 +15,13 @@ Events:
replace bottle
IDLE:
- command: with ice -> DROPPING_ICE
+ command: with ice -> DROPPING_ICE [ex2_idle_command]
open the ice door
command: without ice -> FILLING_GLASS
start filling
command: empty bottle -> .
display "empty bottle, please replace it"
- replace bottle -> .
+ replace bottle -> . [ex2_idle_replace]
reset glass counter
DROPPING_ICE: