123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0" ?>
- <diagram author="Glenn De Jonghe" name="TestAfter">
- <description>
- Used for testing the AFTER event.
- </description>
- <inport name="test_input" />
- <outport name="test_output" />
- <class name="Class1" default="true">
- <scxml name="Test1" initial="composite">
- <state id="composite" initial="state_1">
- <state id="state_1">
- <transition after="0.1" target="../state_2"/>
- <transition after="0.2" target="../state_3"/>
- </state>
- <state id="state_2">
- <onentry>
- <raise event="in_state_2" port="test_output" />
- </onentry>
- </state>
- <state id="state_3">
- <onentry>
- <raise event="in_state_3" port="test_output"/>
- </onentry>
- </state>
- </state>
- </scxml>
- </class>
- <test>
- <expected>
- <slot>
- <event name="in_state_2" port="test_output"/>
- </slot>
- </expected>
- </test>
- </diagram>
|