summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/chartToFSM
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-09 22:51:16 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-04-09 22:51:16 (GMT)
commit8a9b432d36e5748898abffe9f1607d93e45bab4b (patch)
tree0b95e832a9b3b2daf9ae45bf81084eda580752a0 /test/samples/uscxml/chartToFSM
parent7d98ac1fd2e9da3162f3b6d38b22106f463edd9d (diff)
downloaduscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.zip
uscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.tar.gz
uscxml-8a9b432d36e5748898abffe9f1607d93e45bab4b.tar.bz2
Started with promela datamodel
Diffstat (limited to 'test/samples/uscxml/chartToFSM')
-rw-r--r--test/samples/uscxml/chartToFSM/test-event-desc-merging.scxml17
-rw-r--r--test/samples/uscxml/chartToFSM/test-event-set-conflict.scxml19
-rw-r--r--test/samples/uscxml/chartToFSM/test-flattening.scxml35
3 files changed, 71 insertions, 0 deletions
diff --git a/test/samples/uscxml/chartToFSM/test-event-desc-merging.scxml b/test/samples/uscxml/chartToFSM/test-event-desc-merging.scxml
new file mode 100644
index 0000000..7ab14db
--- /dev/null
+++ b/test/samples/uscxml/chartToFSM/test-event-desc-merging.scxml
@@ -0,0 +1,17 @@
+<scxml>
+ <parallel id="s0">
+ <state id="s01">
+ <transition event="foo baz.bar.foo" />
+ </state>
+ <state id="s02">
+ <transition event="foo.bar baz.bar" />
+ </state>
+ <state id="s03">
+ <transition event="foo.bar.baz baz" />
+ <transition event="bax" target="pass" />
+ </state>
+
+ </parallel>
+ <final id="pass" />
+ <final id="fail" />
+</scxml> \ No newline at end of file
diff --git a/test/samples/uscxml/chartToFSM/test-event-set-conflict.scxml b/test/samples/uscxml/chartToFSM/test-event-set-conflict.scxml
new file mode 100644
index 0000000..cc76238
--- /dev/null
+++ b/test/samples/uscxml/chartToFSM/test-event-set-conflict.scxml
@@ -0,0 +1,19 @@
+<scxml>
+ <state id="s0">
+ <!-- These transitions all conflict, only the first one ought to be taken -->
+ <transition target="s1" />
+ <transition target="s2" />
+ <transition target="s3" />
+ </state>
+ <state id="s1">
+ <transition target="pass" />
+ </state>
+ <state id="s2">
+ <transition target="fail" />
+ </state>
+ <state id="s3">
+ <transition target="fail" />
+ </state>
+ <final id="pass" />
+ <final id="fail" />
+</scxml> \ No newline at end of file
diff --git a/test/samples/uscxml/chartToFSM/test-flattening.scxml b/test/samples/uscxml/chartToFSM/test-flattening.scxml
new file mode 100644
index 0000000..7d2516e
--- /dev/null
+++ b/test/samples/uscxml/chartToFSM/test-flattening.scxml
@@ -0,0 +1,35 @@
+<scxml>
+ <parallel id="s0">
+ <state id="s01">
+ <history id="h01" />
+ <state id="s011">
+ <state id="s0111">
+ <transition target="s0112" event="s0112"/>
+ </state>
+ <state id="s0112">
+ <transition target="s0113" event="s0113"/>
+ </state>
+ <state id="s0113">
+ <transition target="s0114" event="s0114"/>
+ </state>
+ <state id="s0114">
+ <transition target="s012" event="s012"/>
+ </state>
+ </state>
+ <state id="s012">
+ </state>
+ <transition target="s02" />
+ </state>
+ <state id="s02">
+ <transition target="s1" />
+ </state>
+ <state id="s03">
+ <transition target="exit" />
+ </state>
+ </parallel>
+ <state id="s1">
+ </state>
+ <state id="s2">
+ </state>
+ <final id="exit" />
+</scxml> \ No newline at end of file