|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.creole.tokeniser.FSMState
A state of the finite state machine that is the kernel tokeniser
Field Summary | |
private static boolean |
DEBUG
Debug flag |
(package private) static int |
index
used for generating unique ids |
(package private) int |
myIndex
the unique index of this state |
(package private) String |
rhs
The RHS string value from which the annotation associated to final states is constructed. |
(package private) Set[] |
transitionFunction
The transition function of this state. |
Constructor Summary | |
FSMState(SimpleTokeniser owner)
Creates a new FSMState belonging to a specified tokeniser |
Method Summary | |
(package private) String |
getEdgesGML()
Returns a GML representation of all the edges emerging from this state |
(package private) int |
getIndex()
Gets the unique id of this state |
(package private) String |
getRhs()
Gets the RHS string value |
(package private) boolean |
isFinal()
Checks whether this state is a final one |
(package private) Set |
nextSet(int type)
Returns the value of the transition function of this state for a given Unicode type specified using the internal ids used by the tokeniser. |
(package private) Set |
nextSet(UnicodeType type)
Returns the value of the transition function of this state for a given Unicode type. |
(package private) void |
put(int index,
FSMState state)
Adds a new transition to the transition function of this state |
(package private) void |
put(UnicodeType type,
FSMState state)
Adds a new transition to the transition function of this state |
(package private) void |
setRhs(String rhs)
Sets the RHS string value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
Set[] transitionFunction
String rhs
int myIndex
static int index
Constructor Detail |
public FSMState(SimpleTokeniser owner)
owner
- the tokeniser that contains this new stateMethod Detail |
Set nextSet(UnicodeType type)
Set nextSet(int type)
void put(UnicodeType type, FSMState state)
type
- the restriction for the new transition; if null
this transition will be unrestricted.state
- the vaule of the transition function for the given typevoid put(int index, FSMState state)
index
- the internal index of the Unicode type representing the
restriction for the new transition;state
- the vaule of the transition function for the given typevoid setRhs(String rhs)
String getRhs()
boolean isFinal()
int getIndex()
String getEdgesGML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |