multiple_afters_running_behind.xml 935 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <diagram name="multiple-afters-running-behind">
  3. <class name="Main" default="true">
  4. <method name="cond">
  5. <body>
  6. return True
  7. </body>
  8. </method>
  9. <scxml initial="x">
  10. <state id="x">
  11. <transition after="self.sccd_yield() + 0.5" cond="self.cond()" target="." />
  12. <transition after="self.sccd_yield() + 0.5" cond="self.cond()" target="." />
  13. <transition after="self.sccd_yield() + 0.5" cond="self.cond()" target="." />
  14. <onentry>
  15. <script>
  16. import time
  17. print 'time.time() = %s' % time.time()
  18. time.sleep(0.1)
  19. print self.sccd_yield()
  20. </script>
  21. </onentry>
  22. </state>
  23. </scxml>
  24. </class>
  25. </diagram>