Exemplo n.º 1
0
 public ConcurrentWordStateMachineClient(ConcurrentWordStateMachine stateMachine)
 {
     this.stateMachine = stateMachine;
     this.currentState = stateMachine.InitialState;
 }
Exemplo n.º 2
0
 public void NavigateForward(char letter)
 {
     currentState = currentState.LetterDictionary[letter];
 }
Exemplo n.º 3
0
 public void Reset()
 {
     currentState = stateMachine.InitialState;
 }
Exemplo n.º 4
0
 public void NavigateBack()
 {
     currentState = currentState.PreviousState;
 }