statechart_fig8_counter.xml 972 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" ?>
  2. <statechart>
  3. <!-- day & atlee dictates "whole", had to add "next_small_step" myself-->
  4. <semantics
  5. input_event_lifeline="whole"
  6. internal_event_lifeline="next_small_step"/>
  7. <datamodel>
  8. </datamodel>
  9. <root>
  10. <parallel id="Counter">
  11. <state id="Bit_1" initial="Bit_11">
  12. <state id="Bit_11">
  13. <transition port="in" event="tk0" target="../Bit_12"/>
  14. </state>
  15. <state id="Bit_12">
  16. <transition port="in" event="tk0" target="../Bit_11">
  17. <raise event="tk1"/>
  18. </transition>
  19. </state>
  20. </state>
  21. <state id="Bit_2" initial="Bit_21">
  22. <state id="Bit_21">
  23. <transition event="tk1" target="../Bit_22"/>
  24. </state>
  25. <state id="Bit_22">
  26. <transition event="tk1" target="../Bit_21">
  27. <raise port="out" event="done"/>
  28. </transition>
  29. </state>
  30. </state>
  31. </parallel>
  32. </root>
  33. </statechart>