public class IntDAFSAInt extends AbstractIntDAFSA
AbstractIntDAFSA.State| Constructor and Description |
|---|
IntDAFSAInt() |
| Modifier and Type | Method and Description |
|---|---|
void |
emit(IntFSAObjectEventHandler<int[]> events)
Emit current FSA state to events
|
void |
finalAssign(int destState,
int srcState)
Copy final value from source state to destination state
|
boolean |
finalEquals(int state1,
int state2)
Check if final values of two states are equal
|
int |
finalHash(int state)
Compute hash code for the final value of the state
|
void |
finalReset(int state)
Reset the final value of the given state
|
gnu.trove.set.hash.TIntHashSet |
getFinals(int state) |
boolean |
hasFinal(int state)
Checks if state is final for this final feature
|
void |
initFinals()
Initialize finality values for this FSA
|
boolean |
isFinalState(int state)
Checks if state is final
|
void |
newFinal(int state)
Initialize final value for given state
|
boolean |
setFinal(int state)
public set final feature for state
|
void |
setFinalValue(int finalValue) |
addState, cloneState, decodeDest, decodeLabel, encodeTransition, getNext, getStartState, getStates, getTransitionCount, getTransitionInput, getTransitionNext, isConfluence, isSource, regAdd, regGet, regRemove, removeState, setNext, size, toDot, toDot, transitionCountadd, addMinWord, addSuffix, replaceOrRegisterpublic int finalHash(int state)
AbstractIntDAFSAfinalHash in class AbstractIntDAFSAstate - statepublic boolean finalEquals(int state1,
int state2)
AbstractIntDAFSAfinalEquals in class AbstractIntDAFSAstate1 - first statestate2 - second statepublic void finalReset(int state)
AbstractIntDAFSAfinalReset in class AbstractIntDAFSApublic void finalAssign(int destState,
int srcState)
AbstractIntDAFSAfinalAssign in class AbstractIntDAFSAdestState - destination statesrcState - source statepublic void initFinals()
AbstractIntDAFSAinitFinals in class AbstractIntDAFSApublic void newFinal(int state)
AbstractIntDAFSAnewFinal in class AbstractIntDAFSApublic void setFinalValue(int finalValue)
public boolean setFinal(int state)
IntDaciukAlgoIndexedsetFinal in class IntDaciukAlgoIndexedstate - state numberpublic boolean hasFinal(int state)
IntDaciukAlgoIndexedhasFinal in class IntDaciukAlgoIndexedstate - state numberpublic gnu.trove.set.hash.TIntHashSet getFinals(int state)
public boolean isFinalState(int state)
AbstractIntDAFSAisFinalState in class AbstractIntDAFSAstate - state numberpublic void emit(IntFSAObjectEventHandler<int[]> events)
events - events object