11_source_child_history.xml 803 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" ?>
  2. <diagram author="Herr Joeri Exelmans" name="source_child_history">
  3. <description>
  4. </description>
  5. <inport name="in"/>
  6. <outport name="out"/>
  7. <class name="c" default="true">
  8. <scxml priority="source_child">
  9. <state id="main" initial="A">
  10. <history id="history"/>
  11. <state id="A">
  12. <transition event="e" port="in" target="../B">
  13. <raise event="to_B" port="out"/>
  14. </transition>
  15. </state>
  16. <state id="B"/>
  17. <transition event="e" port="in" target="./history">
  18. <raise event="to_history" port="out"/>
  19. </transition>
  20. </state>
  21. </scxml>
  22. </class>
  23. <test>
  24. <input>
  25. <event name="e" port="in" time="0.0"/>
  26. </input>
  27. <expected>
  28. <slot>
  29. <!-- big step -->
  30. <event name="to_B" port="out"/>
  31. </slot>
  32. </expected>
  33. </test>
  34. </diagram>