Exemplo n.º 1
0
 /// <summary></summary>
 /// <param name="state">The state</param>
 /// <returns>The finite state machine, now programmed with a state, awaiting further instructions</returns>
 protected InStateMachine In(T state)
 {
     if (!_transitions.TryGetValue(state, out InStateMachine ret))
     {
         ret = new InStateMachine(this);
         _transitions.Add(state, ret);
     }
     return(ret);
 }
Exemplo n.º 2
0
 internal OutStateMachine(InStateMachine instate)
 {
     IN = instate;
 }