public abstract class State
extends java.lang.Object
StateMachine
.Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
abstract void |
doAction(StateMachine stateMachine,
RmcpMessage message)
Defines the action that should be performed when a response form the
remote system arrives in the current state.
|
abstract void |
doTransition(StateMachine stateMachine,
StateMachineEvent machineEvent)
Performs the state transition
|
void |
onEnter(StateMachine stateMachine)
Defines the action performed when the state is entered.
|
public void onEnter(StateMachine stateMachine)
stateMachine
- - the contextpublic abstract void doTransition(StateMachine stateMachine, StateMachineEvent machineEvent)
stateMachine
- - the contextmachineEvent
- - the StateMachineEvent
that was the cause of the
transitionpublic abstract void doAction(StateMachine stateMachine, RmcpMessage message)
stateMachine
- - the contextmessage
- - the message that appeared