syntax.py 459 B

12345678910111213141516171819202122
  1. from sccd.statechart.dynamic.event import InternalEvent
  2. from sccd.statechart.parser.xml import *
  3. from sccd.statechart.static.globals import *
  4. from sccd.cd.static.cd import *
  5. @dataclass
  6. class TestInputBag:
  7. events: List[InternalEvent]
  8. timestamp: Expression
  9. @dataclass
  10. class TestVariant(Visitable):
  11. name: str
  12. cd: AbstractCD
  13. input: List[TestInputBag]
  14. output: List[List[OutputEvent]]
  15. @dataclass
  16. class Test(Visitable):
  17. variants: List[TestVariant]