Exemple #1
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);
 }
Exemple #2
0
 public TransitionState GetSingleTransition(string sInputSymbol)
 {
     if (MatchingStateMap.Contains(sInputSymbol) == true)
     {
         Hashset set = MatchingStateMap[sInputSymbol] as Hashset;
         return((TransitionState)set[0]);
     }
     return(null);
 }
Exemple #3
0
 public void RemoveTransition(string sInputSymbol)
 {
     MatchingStateMap.Remove(sInputSymbol);
 }
Exemple #4
0
 public void AddTransition(string sInputSymbol, TransitionState stateTo)
 {
     MatchingStateMap.Add(sInputSymbol, stateTo);
 }