Class NoopTransition
java.lang.Object
org.apache.mina.statemachine.transition.AbstractTransition
org.apache.mina.statemachine.transition.NoopTransition
- All Implemented Interfaces:
Transition
Transition implementation which does nothing but change the state.-
Constructor Summary
ConstructorsConstructorDescriptionNoopTransition(Object eventId) NoopTransition(Object eventId, State nextState) -
Method Summary
Methods inherited from class AbstractTransition
equals, execute, getNextState, hashCode, toString
-
Constructor Details
-
NoopTransition
-
NoopTransition
-
-
Method Details
-
doExecute
Executes thisTransition. This method doesn't have to check if theEvent's id matches becauseAbstractTransition.execute(Event)has already made sure that that is the case.- Specified by:
doExecutein classAbstractTransition- Parameters:
event- the currentEvent.- Returns:
trueif theTransitionhas been executed successfully and theStateMachineshould move to the nextState.falseotherwise.
-