Exemple #1
0
        public virtual void trackNFAStatesThatHaveLabeledEdge(Label label, NFAState stateWithLabeledEdge)
        {
            HashSet <NFAState> states = typeToNFAStatesWithEdgeOfTypeMap.get(label);

            if (states == null)
            {
                states = new HashSet <NFAState>();
                typeToNFAStatesWithEdgeOfTypeMap[label] = states;
            }
            states.Add(stateWithLabeledEdge);
        }
 public virtual void trackNFAStatesThatHaveLabeledEdge( Label label, NFAState stateWithLabeledEdge )
 {
     HashSet<NFAState> states = typeToNFAStatesWithEdgeOfTypeMap.get( label );
     if ( states == null )
     {
         states = new HashSet<NFAState>();
         typeToNFAStatesWithEdgeOfTypeMap[label] = states;
     }
     states.Add( stateWithLabeledEdge );
 }
 public HashSet<NFAState> getStatesWithEdge( Label label )
 {
     return typeToNFAStatesWithEdgeOfTypeMap.get( label );
 }
Exemple #4
0
 public HashSet <NFAState> getStatesWithEdge(Label label)
 {
     return(typeToNFAStatesWithEdgeOfTypeMap.get(label));
 }