|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.creole.gazetteer.FSMState
Implements a state of the deterministic finite state machine of the gazetter.
Field Summary | |
private static boolean |
DEBUG
Debug flag |
(package private) static int |
index
Class memebre used to generate unique ids for the instances |
(package private) Set |
lookupSet
|
(package private) int |
myIndex
The unique id of this state. |
(package private) Map |
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 | |
(package private) static void |
|
(package private) void |
addLookup(Lookup lookup)
Adds a new looup description to this state's lookup descriptions set |
(package private) String |
getEdgesGML()
Returns a GML (Graph Modelling Language) representation of the edges emerging from this state. |
(package private) int |
getIndex()
Returns the unique ID of this state. |
(package private) 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 |
(package private) boolean |
isFinal()
Checks whether this state is a final one |
(package private) FSMState |
next(Character chr)
This method is used to access the transition function of this state. |
(package private) void |
put(Character chr,
FSMState state)
Adds a new value to the transition function |
(package private) 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, registerNatives, toString, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
Map transitionFunction
Set lookupSet
int myIndex
static int index
Constructor Detail |
public FSMState(DefaultGazetteer owner)
DefaultGazetteer
provided as owner.owner
- a DefaultGazetteer
objectMethod Detail |
void put(Character chr, FSMState state)
FSMState next(Character chr)
String getEdgesGML()
boolean isFinal()
Set getLookupSet()
Lookup
objects describing the types of lookups
the phrase for which this state is the final one belongs tovoid addLookup(Lookup lookup)
void removeLookup(Lookup lookup)
int getIndex()
static void()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |