Ejemplo n.º 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);
        }
Ejemplo n.º 2
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 );
 }
Ejemplo n.º 3
0
 public HashSet<NFAState> getStatesWithEdge( Label label )
 {
     return typeToNFAStatesWithEdgeOfTypeMap.get( label );
 }
Ejemplo n.º 4
0
 public HashSet <NFAState> getStatesWithEdge(Label label)
 {
     return(typeToNFAStatesWithEdgeOfTypeMap.get(label));
 }