statechart_fig8_counter.xml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <tree>
  10. <state>
  11. <parallel id="Counter">
  12. <state id="Bit_1" initial="Bit_11">
  13. <state id="Bit_11">
  14. <transition port="in" event="tk0" target="../Bit_12"/>
  15. </state>
  16. <state id="Bit_12">
  17. <transition port="in" event="tk0" target="../Bit_11">
  18. <raise event="tk1"/>
  19. </transition>
  20. </state>
  21. </state>
  22. <state id="Bit_2" initial="Bit_21">
  23. <state id="Bit_21">
  24. <transition event="tk1" target="../Bit_22"/>
  25. </state>
  26. <state id="Bit_22">
  27. <transition event="tk1" target="../Bit_21">
  28. <raise port="out" event="done"/>
  29. </transition>
  30. </state>
  31. </state>
  32. </parallel>
  33. </state>
  34. </tree>
  35. </statechart>