test_guard_action.xml 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" ?>
  2. <test>
  3. <statechart>
  4. <semantics
  5. big_step_maximality="take_many"/>
  6. <datamodel>
  7. x = 0;
  8. </datamodel>
  9. <root initial="counting">
  10. <state id="counting">
  11. <transition event="e" port="in" target="."/>
  12. <transition cond="x &lt; 3" target=".">
  13. <code> x += 1; </code>
  14. <raise event="inc" port="out"/>
  15. </transition>
  16. <transition cond="x == 3" target="../done"/>
  17. </state>
  18. <state id="done">
  19. <onentry><raise event="done" port="out"/></onentry>
  20. </state>
  21. </root>
  22. </statechart>
  23. <input>
  24. <event name="e" port="in" time="0 d"/>
  25. </input>
  26. <output>
  27. <big_step>
  28. <event name="inc" port="out"/>
  29. <event name="inc" port="out"/>
  30. <event name="inc" port="out"/>
  31. <event name="done" port="out"/>
  32. </big_step>
  33. </output>
  34. </test>