예제 #1
0
 private bool isTransitionAllowed(Nb_StateModel <T> state1, Nb_StateModel <T> state2)
 {
     if (transitions.Contains(state1, state2))
     {
         return(true);
     }
     return(false);
 }
예제 #2
0
 public void removeTransition(T t1, T t2)
 {
     transitions.RemoveIfExists(getState(t1), getState(t2));
     if (defaultTransitions.Contains(getState(t1), getState(t2)))
     {
         defaultTransitions.RemoveIfExists(getState(t1), getState(t2));
     }
     else
     {
         throw new Nb_Exception("The transition was not found.");
     }
 }