Java org.apache.lucene.util.automaton Automaton fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util.automaton Automaton fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util.automaton Automaton.

The text is from its open source code.

Field

BitSetisAccept

Constructor

Automaton(int numStates, int numTransitions)
Constructor which creates an automaton with enough space for the given number of states and transitions.

Method

voidaddTransition(int source, int dest, int label)
Add a new transition with min = max = label.
intcreateState()
Create a new state.
voidfinishState()
Finishes the current state; call this once you are done adding transitions for a state.
voidgetNextTransition(Transition t)
Iterate to the next transition after the provided one
intgetNumStates()
How many states this automaton has.
intinitTransition(int state, Transition t)
Initialize the provided Transition to iterate through all transitions leaving the specified state.
booleanisDeterministic()
Returns true if this automaton is deterministic (for ever state there is only one transition for each label).
longramBytesUsed()
voidsetAccept(int state, boolean accept)
Set or clear this state as an accept state.
StringtoDot()
Returns the dot (graphviz) representation of this automaton.