interface.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <diagram author="Simon Van Mierlo" name="Translational Semantics Debugging Interface">
  3. <description>
  4. A debugging interface for a formalism with translational semantics.
  5. </description>
  6. <top>
  7. <![CDATA[
  8. ]]>
  9. </top>
  10. <inport name="input" />
  11. <outport name="output" />
  12. <inport name="mv_input" />
  13. <outport name="mv_output" />
  14. <class name="Interface" default="true">
  15. <relationships>
  16. </relationships>
  17. <constructor>
  18. <body>
  19. <![CDATA[
  20. ]]>
  21. </body>
  22. </constructor>
  23. <scxml initial="running">
  24. <state id="running">
  25. <transition event="input" port="mv_input" target=".">
  26. <parameter name="params" />
  27. <script>
  28. print 'sending output to the console'
  29. </script>
  30. <raise event="mv_output" port="output">
  31. <parameter expr="params" />
  32. </raise>
  33. </transition>
  34. <transition event="mv_input" port="input" target=".">
  35. <parameter name="params" />
  36. <script>
  37. print 'sending output to the modelverse'
  38. </script>
  39. <raise event="output" port="mv_output">
  40. <parameter expr="params" />
  41. </raise>
  42. </transition>
  43. </state>
  44. </scxml>
  45. </class>
  46. </diagram>