public class NoopTransition extends AbstractTransition
Transition
implementation which does nothing but change the state.构造器和说明 |
---|
NoopTransition(java.lang.Object eventId)
|
NoopTransition(java.lang.Object eventId,
State nextState)
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
doExecute(Event event)
Executes this
Transition . |
equals, execute, getNextState, hashCode, toString
public NoopTransition(java.lang.Object eventId)
eventId
- the Event
id.protected boolean doExecute(Event event)
AbstractTransition
Transition
. 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
在类中 AbstractTransition
event
- the current Event
.Transition
has been executed
successfully and the StateMachine
should move to the
next State
. false otherwise.