|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.tagvalue.StateMachine.BasicState
public class StateMachine.BasicState
Implementation of a State in a state machine
Constructor Summary | |
---|---|
StateMachine.BasicState(java.lang.String label)
This is the default constructor |
|
StateMachine.BasicState(java.lang.String label,
TagValueListener listener)
when this constructor is used, a fixed listener is used with this state. |
Method Summary | |
---|---|
java.lang.String |
getLabel()
return the label of this class. |
TagValueListener |
getListener()
return the TagValueListener assigned to this State. |
StateMachine.TransitionTable |
getTransitionTable()
retrieve the TransitionTable for this State. |
void |
setDefaultTransitions(StateMachine.TransitionTable defaultTransitions)
specify fallback TransitionTable for this State |
void |
setListener(TagValueListener listener)
set a TagValueListener for this State. |
void |
setTransition(java.lang.Object tag,
StateMachine.State destination)
set a Transition for this State setting notifyOnExit to false. |
void |
setTransition(java.lang.Object tag,
StateMachine.State destination,
boolean notifyOnExit)
set a Transition for this State |
void |
transit(java.lang.Object tag)
Find the destination State when the specified tag is encountered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateMachine.BasicState(java.lang.String label)
public StateMachine.BasicState(java.lang.String label, TagValueListener listener)
Method Detail |
---|
public java.lang.String getLabel()
getLabel
in interface StateMachine.State
public TagValueListener getListener()
getListener
in interface StateMachine.State
public void setListener(TagValueListener listener)
public void setTransition(java.lang.Object tag, StateMachine.State destination, boolean notifyOnExit) throws ParserException
ParserException
public void setTransition(java.lang.Object tag, StateMachine.State destination) throws ParserException
ParserException
public StateMachine.TransitionTable getTransitionTable()
public void setDefaultTransitions(StateMachine.TransitionTable defaultTransitions)
public void transit(java.lang.Object tag) throws ParserException
transit
in interface StateMachine.State
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |