com.karneim.util.collection.set
protected class SAutomaton.StatePro extends Object implements IStatePro
Field Summary | |
---|---|
protected LinkedList | changeListeners |
protected AutomatonSet_String.SState | state |
protected Automaton.IStateChangedListener | stateChangedListener |
protected Automaton.IStateVisitedListener | stateVisitedListener |
protected LinkedList | visitListeners |
Constructor Summary | |
---|---|
protected | StatePro(AutomatonSet_String.SState state) |
Method Summary | |
---|---|
void | addChangeListener(IStatePro.IChangeListener listener) |
IStatePro.ITransition | addTransition(ISet_char charSet, IStatePro toState) |
void | addVisitListener(IStatePro.IVisitListener listener) |
protected void | finalize() |
StateProSet | getAllReachableStates() |
IStatePro.ITransition[] | getAllTransitions()
returns all transitions (normal and epsilon transitions) of this state.
the result array contains first all epsilon transitions and then all normal transitions |
IStatePro.ITransition[] | getETransitions() |
int | getStateNumber() |
IStatePro.ITransition[] | getTransitions() |
boolean | isFinal() |
protected SAutomaton | parent() |
void | removeAllTransitions() |
boolean | removeChangeListener(IStatePro.IChangeListener listener) |
boolean | removeTransition(IStatePro.ITransition transition) |
boolean | removeVisitListener(IStatePro.IVisitListener listener) |
void | setFinal(boolean isFinal) |
String | toString() |
IState | visit() |