public Status(Status other)
 {
     statechart      = other.statechart;
     b_configuration = new HashSet <int>(other.b_configuration);
     properties      = new List <bool>(other.properties);
     events          = new HashSet <SCEvent>(other.events);
 }
示例#2
0
 public CT(Statechart statechart, int source, ISet <long> waypoints, ISet <int> destinations)
 {
     this.statechart   = statechart;
     this.source       = source;
     this.waypoints    = waypoints;
     this.destinations = destinations;
 }
    public Status(Statechart statechart, HashSet <int> b_configuration, List <bool> properties)
    {
        this.statechart      = statechart;
        this.b_configuration = b_configuration;
        this.properties      = properties;

        events = new HashSet <SCEvent>();
    }
 internal static void StatechartAddStateNode(Statechart statechart, IStatenodeDefinition stateNode)
 => statechart.Statenodes.Add(stateNode.AsDefinition());
 internal static void SetStatechartInitialContext(Statechart statechart, ECMAScriptContext initialContext)
 => statechart.InitialContext = initialContext.ToOption();
 internal static void SetStatechartName(Statechart statechart, string name) =>
 statechart.Name = name.ToOption();
 internal static void SetStatechartInitial(Statechart statechart, string initialStateNode) =>
 statechart.InitialStateNodeName = initialStateNode.ToOption();
示例#8
0
 public void Initialize(Statechart chart)
 {
     machine = chart;
     Awake();
 }