コード例 #1
0
        public TestStateMachine CreateTestStateMachineWithOnOffStates(ComponentState activeState)
        {
            var stateMachine = new TestStateMachine(ComponentIdGenerator.EmptyId);
            stateMachine.AddState(new StateMachineState(BinaryStateId.Off));
            stateMachine.AddState(new StateMachineState(BinaryStateId.On));
            stateMachine.SetState(activeState);

            return stateMachine;
        }
コード例 #2
0
        public TestStateMachine CreateTestStateMachineWithOnOffStates(StatefulComponentState activeState)
        {
            var stateMachine = new TestStateMachine(ComponentIdFactory.EmptyId);

            stateMachine.AddState(new StateMachineState(BinaryStateId.Off));
            stateMachine.AddState(new StateMachineState(BinaryStateId.On));
            stateMachine.SetState(activeState);

            return(stateMachine);
        }
コード例 #3
0
        public TestStateMachine CreateTestStateMachineWithActiveState(ComponentState id)
        {
            var stateMachine = new TestStateMachine(ComponentIdGenerator.EmptyId);
            stateMachine.AddState(new StateMachineState(id));
            stateMachine.SetState(id);

            return stateMachine;
        }
コード例 #4
0
        public TestStateMachine CreateTestStateMachineWithActiveState(StatefulComponentState id)
        {
            var stateMachine = new TestStateMachine(ComponentIdFactory.EmptyId);

            stateMachine.AddState(new StateMachineState(id));
            stateMachine.SetState(id);

            return(stateMachine);
        }