|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.creole.gazetteer.FSMState
public class FSMState
Implements a state of the deterministic finite state machine of the gazetter.
Field Summary | |
---|---|
protected Set |
lookupSet
|
protected int |
myIndex
The unique id of this state. |
protected DefaultGazetteer.CharMap |
transitionFunction
The transition function of this state. |
Constructor Summary | |
---|---|
FSMState(DefaultGazetteer owner)
Constructs a new FSMState object and adds it to the list of states of the DefaultGazetteer provided as owner. |
Method Summary | |
---|---|
void |
addLookup(Lookup lookup)
Adds a new looup description to this state's lookup descriptions set |
String |
getEdgesGML()
Returns a GML (Graph Modelling Language) representation of the edges emerging from this state. |
int |
getIndex()
Returns the unique ID of this state. |
Set |
getLookupSet()
Returns a set of Lookup 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 |
removeLookup(Lookup lookup)
Removes a looup description from this state's lookup descriptions set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DefaultGazetteer.CharMap transitionFunction
protected Set lookupSet
protected int myIndex
Constructor Detail |
---|
public FSMState(DefaultGazetteer owner)
DefaultGazetteer
provided as owner.
owner
- a DefaultGazetteer
objectMethod Detail |
---|
public void put(char chr, FSMState state)
public FSMState next(char chr)
public String getEdgesGML()
public boolean isFinal()
public Set getLookupSet()
Lookup
objects describing the types of lookups
the phrase for which this state is the final one belongs to
public void addLookup(Lookup lookup)
public void removeLookup(Lookup lookup)
public int getIndex()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |