public class NoopTransition extends AbstractTransition
Transition implementation which does nothing but change the state.| Constructor and Description |
|---|
NoopTransition(java.lang.Object eventId)
|
NoopTransition(java.lang.Object eventId,
State nextState)
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doExecute(Event event)
Executes this
Transition. |
equals, execute, getNextState, hashCode, toStringpublic NoopTransition(java.lang.Object eventId)
eventId - the Event id.protected boolean doExecute(Event event)
AbstractTransitionTransition. This method doesn't have to check
if the Event's id matches because AbstractTransition.execute(Event) has
already made sure that that is the case.doExecute in class AbstractTransitionevent - the current Event.true if the Transition has been executed
successfully and the StateMachine should move to the
next State. false otherwise.