sccd.xml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.1" ?>
  2. <diagram author="Sam Pieters" name="InheritanceTest">
  3. <description>
  4. Check if SCCD classes can inherit from other classes
  5. </description>
  6. <outport name="Outport"/>
  7. <class name="A">
  8. <constructor>
  9. <body>
  10. self.parent_param = 21
  11. </body>
  12. </constructor>
  13. <scxml initial="running">
  14. <state id="running">
  15. </state>
  16. </scxml>
  17. </class>
  18. <class name="B" default="true">
  19. <relationships>
  20. <inheritance class="A" />
  21. </relationships>
  22. <constructor>
  23. <body>
  24. self.nr_of_fields = 0
  25. </body>
  26. </constructor>
  27. <scxml initial="running">
  28. <state id="running">
  29. <onentry>
  30. <raise port="Outport" event="output_event">
  31. <parameter expr="self.parent_param" />
  32. </raise>
  33. </onentry>
  34. </state>
  35. </scxml>
  36. </class>
  37. </diagram>