Example #1
0
 public TransitionState GetSingleTransition(string sInputSymbol)
 {
     if (MatchingStateMap.Contains(sInputSymbol) == true)
     {
         Hashset set = MatchingStateMap[sInputSymbol] as Hashset;
         return((TransitionState)set[0]);
     }
     return(null);
 }
Example #2
0
 public TransitionState[] GetTransitions(string sInputSymbol)
 {
     if (MatchingStateMap.Contains(sInputSymbol) == true)
     {
         Hashset set = MatchingStateMap[sInputSymbol] as Hashset;
         return((TransitionState[])set.ToArray(typeof(TransitionState)));
     }
     return(null);
 }