Interface SelfTransition
-
- All Known Implementing Classes:
AbstractSelfTransition,MethodSelfTransition
public interface SelfTransitionThe interface implemented by classes which need to react on entering a certain states.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexecute(StateContext stateContext, State state)Executes thisSelfTransition.
-
-
-
Method Detail
-
execute
boolean execute(StateContext stateContext, State state)
Executes thisSelfTransition.- Parameters:
stateContext- The context in which we are executing the transitionstate- The current state- Returns:
trueif the execution succeeded,falseotherwise.
-
-