12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Xml.Linq;
- namespace csharp_sccd_compiler
- {
- public abstract class EnterExitAction : Visitable
- {
- public StateChartNode parent { get; private set; }
- public Action action { get; private set; }
- public EnterExitAction(StateChartNode parent, XElement xml = null)
- {
- this.parent = parent;
- if (xml != null)
- this.action = new Action(xml);
- else
- this.action = null;
- }
- public override void accept(Visitor visitor)
- {
- visitor.visit (this);
- }
- }
- public class EnterAction : EnterExitAction
- {
- public EnterAction(StateChartNode parent, XElement xml = null) : base(parent,xml)
- {
- }
- public override void accept(Visitor visitor)
- {
- visitor.visit (this);
- }
- }
- public class ExitAction : EnterExitAction
- {
- public ExitAction(StateChartNode parent, XElement xml = null) : base(parent,xml)
- {
- }
- public override void accept(Visitor visitor)
- {
- visitor.visit (this);
- }
- }
- }
|