Ejemplo n.º 1
0
        public SuperStateIdle(ISpState <DemoMsgId> parent, DemoStateId id, DemoMachineObj machine)
            : base(parent, id, machine)
        {
            this.waitOnStart = this.AddSubState(new StateWaitOnStart(this, DemoStateId.WaitOnStart, machine));

            this.SetEntryState(this.waitOnStart);
        }
Ejemplo n.º 2
0
        public SuperStateNotStarted(ISpState <DemoMsgId> parent, DemoStateId id, DemoMachineObj machine)
            : base(parent, id, machine)
        {
            // Create sub-states
            this.recovery     = this.AddSubState(new StateSimpleRecovery(this, DemoStateId.SimpleRecovery, machine));
            this.initialising = this.AddSubState(new StateInitIO(this, machine));

            // Register events and internal result returns
            this.recovery.ToNextOnResult(DemoMsgId.RecoveryComplete, this.initialising);
            this.initialising.ToExitOnResult(DemoMsgId.InitComplete);

            this.SetEntryState(this.recovery);
        }
Ejemplo n.º 3
0
 public StateSimpleRecovery(ISpState <DemoMsgId> parent, DemoStateId id, DemoMachineObj machine)
     : base(parent, id, machine)
 {
     this.inputs  = DummyDI.InputsInstance;
     this.outputs = DummyDI.OutputsInstance;
 }
Ejemplo n.º 4
0
 public StateWaitOnStart(ISpState <DemoMsgId> parent, DemoStateId id, DemoMachineObj machine)
     : base(parent, id, machine)
 {
 }