Example usage for Java org.apache.lucene.util.automaton Automaton fields, constructors, methods, implement or subclass
The text is from its open source code.
BitSet | isAccept |
Automaton(int numStates, int numTransitions) Constructor which creates an automaton with enough space for the given number of states and transitions. |
void | addTransition(int source, int dest, int label) Add a new transition with min = max = label. |
int | createState() Create a new state. |
void | finishState() Finishes the current state; call this once you are done adding transitions for a state. |
void | getNextTransition(Transition t) Iterate to the next transition after the provided one |
int | getNumStates() How many states this automaton has. |
int | initTransition(int state, Transition t) Initialize the provided Transition to iterate through all transitions leaving the specified state. |
boolean | isDeterministic() Returns true if this automaton is deterministic (for ever state there is only one transition for each label). |
long | ramBytesUsed() |
void | setAccept(int state, boolean accept) Set or clear this state as an accept state. |
String | toDot() Returns the dot (graphviz) representation of this automaton. |