|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A State in a StateMachine. This should be able to be started by a machine, determine if it has been designated as an end state (for speed optimization purposes) and return a transition condition.
StateMachine
Method Summary | |
void |
addCondition(TransitionCondition aTransitionCondition)
Add a TransitionCondition to the set of possible conditions for this state. |
TransitionCondition |
generateFailureCondition()
Returns a TransitionCondition with a negative int |
TransitionCondition |
generateSuccessCondition()
Returns a TransitionCondition with a positive int or zero |
TransitionCondition |
getCondition(java.lang.String key)
Returns a TransitionCondition for the specified key |
java.util.Vector |
getConditions()
Returns a Vector of the TransitionConditions available for this State |
java.lang.String |
getName()
Return the name of the state |
boolean |
isEndState()
Returns true if this is an end State... |
void |
removeCondition(TransitionCondition aTransitionCondition)
Remove a TransitionCondition from the set of possible conditions for this state. |
TransitionCondition |
returnCondition()
Returns the transition condition for this State |
void |
setCondition(java.lang.String aCondition)
Sets the condition attribute. |
void |
setCondition(TransitionCondition aCondition)
Sets the condition attribute to the parameter passed in |
void |
start()
Starts this State |
Method Detail |
public void start() throws TransitionConditionException
public boolean isEndState()
public TransitionCondition returnCondition()
public void addCondition(TransitionCondition aTransitionCondition)
StateMachine
public void removeCondition(TransitionCondition aTransitionCondition)
StateMachine
public java.util.Vector getConditions()
public TransitionCondition getCondition(java.lang.String key)
public void setCondition(java.lang.String aCondition) throws TransitionConditionException
getCondition(String)
public void setCondition(TransitionCondition aCondition) throws TransitionConditionException
public TransitionCondition generateSuccessCondition()
public TransitionCondition generateFailureCondition()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |