コード例 #1
0
        private static TinyStateMachine <DoorState, DoorEvents> .Storage[] GetTokens(TinyStateMachine <DoorState, DoorEvents> .Machine <TinyStateMachine <DoorState, DoorEvents> .Storage> machine)
        {
            var tokens = new TinyStateMachine <DoorState, DoorEvents> .Storage[ParallelTestCount];

            for (int i = 0; i < ParallelTestCount; i++)
            {
                tokens[i] = machine.CreateMemory();
            }
            return(tokens);
        }
コード例 #2
0
 internal TransitionCount(TinyStateMachine <DoorState, DoorEvents> .Machine <TransitionCount> stateMachine)
 {
     Memory = stateMachine.CreateMemory();
 }
コード例 #3
0
 internal DoorMemory(TinyStateMachine <DoorState, DoorEvents> .Machine <DoorMemory> stateMachine)
 {
     Memory = stateMachine.CreateMemory();
 }