|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object State
Implementation of NFA by linked lists adapted to Thomson's algorithm. Each state has at most two outgoing edges. If there is only one, the first one is used. If there are two, they have to be both epsilon edges (label = 0).
Field Summary | |
char |
label
The Label of the first outgoing edge. |
boolean |
mark
A marker used for the exploration. |
State |
to1
The ends of the outgoing edges. |
State |
to2
The ends of the outgoing edges. |
Constructor Summary | |
State()
Creates a new state using a name from LinkedNFA. |
Method Summary | |
void |
renumber()
Renumbers the states of a NFA. |
void |
reset()
Resets the mark field. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean mark
public char label
public State to1
public State to2
Constructor Detail |
public State()
Method Detail |
public java.lang.String toString()
public void reset()
public void renumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |