public TransitionState[] GetTransitions(string sInputSymbol) { if (MatchingStateMap.Contains(sInputSymbol) == true) { Hashset set = MatchingStateMap[sInputSymbol] as Hashset; return((TransitionState[])set.ToArray(typeof(TransitionState))); } return(null); }
public TransitionState GetSingleTransition(string sInputSymbol) { if (MatchingStateMap.Contains(sInputSymbol) == true) { Hashset set = MatchingStateMap[sInputSymbol] as Hashset; return((TransitionState)set[0]); } return(null); }
public void RemoveTransition(string sInputSymbol) { MatchingStateMap.Remove(sInputSymbol); }
public void AddTransition(string sInputSymbol, TransitionState stateTo) { MatchingStateMap.Add(sInputSymbol, stateTo); }