Class NoopTransition
- java.lang.Object
-
- org.apache.mina.statemachine.transition.AbstractTransition
-
- org.apache.mina.statemachine.transition.NoopTransition
-
- All Implemented Interfaces:
Transition
public class NoopTransition extends AbstractTransition
Transitionimplementation which does nothing but change the state.
-
-
Constructor Summary
Constructors Constructor Description NoopTransition(java.lang.Object eventId)NoopTransition(java.lang.Object eventId, State nextState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoExecute(Event event)Executes thisTransition.-
Methods inherited from class org.apache.mina.statemachine.transition.AbstractTransition
equals, execute, getNextState, hashCode, toString
-
-
-
-
Method Detail
-
doExecute
protected boolean doExecute(Event event)
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.
-
-