|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.telin.mymedia.apolda.FSMState
public class FSMState
Field Summary | |
---|---|
protected int |
myIndex
The unique id of this state. |
protected java.util.Set |
termSet
|
protected CharMap |
transitionFunction
The transition function of this state. |
Constructor Summary | |
---|---|
FSMState()
Constructs a new FSMState object and adds it to the list of states of the DefaultGazetteer provided as owner. |
Method Summary | |
---|---|
void |
addTerm(Term term)
Adds a new term description to this state's term descriptions set |
java.lang.String |
getEdgesGML()
Returns a GML (Graph Modeling Language) representation of the edges emerging from this state. |
int |
getIndex()
Returns the unique ID of this state. |
java.util.Set<Term> |
getTermSet()
Returns a set of Term objects describing the types of lookups
the phrase for which this state is the final one belongs to |
boolean |
isFinal()
Checks whether this state is a final one |
FSMState |
next(char chr)
This method is used to access the transition function of this state. |
void |
put(char chr,
FSMState state)
Adds a new value to the transition function |
void |
removeTerm(Term term)
Removes a term description from this state's term descriptions set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CharMap transitionFunction
protected java.util.Set termSet
protected int myIndex
Constructor Detail |
---|
public FSMState()
DefaultGazetteer
provided as owner.
owner
- a DefaultGazetteer
objectMethod Detail |
---|
public void put(char chr, FSMState state)
public FSMState next(char chr)
public java.lang.String getEdgesGML()
public boolean isFinal()
public java.util.Set<Term> getTermSet()
Term
objects describing the types of lookups
the phrase for which this state is the final one belongs to
public void addTerm(Term term)
public void removeTerm(Term term)
public int getIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |