12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?xml version="1.0" ?>
- <test>
- <statechart>
- <semantics big_step_maximality="take_one"/>
- <inport name="in">
- <event name="go"/>
- </inport>
- <outport name="out">
- <event name="success"/>
- <event name="fail"/>
- </outport>
- <root>
- <parallel id="p">
- <state id="region1" initial="s1">
- <state id="s1">
- <!-- same-region transition -->
- <!-- only this transition should be taken, its arena is <region1> -->
- <transition target="/p/region1/s2">
- <raise port="out" event="success"/>
- </transition>
- </state>
- <state id="s2">
- </state>
- </state>
- <state id="region2" initial="s3">
- <state id="s3">
- <!-- cross-region transition -->
- <!-- this transition's arena is <root>, ancestor of <region1> -->
- <transition target="/p/region3/s6">
- <raise port="out" event="fail"/>
- </transition>
- </state>
- <state id="s4">
- </state>
- </state>
- <state id="region3" initial="s5">
- <state id="s5">
- </state>
- <state id="s6">
- </state>
- </state>
- </parallel>
- </root>
- </statechart>
- <input>
- <event port="in" name="go" time="0 d"/>
- </input>
- <output>
- <big_step>
- <event port="out" name="success"/>
- </big_step>
- </output>
- </test>
|