S - the type of the state of the FiniteStateMachinepublic interface Event<S extends Enum<S>>
Event captures the information that may trigger a Transition
 in a FiniteStateMachine from one state to another.| Modifier and Type | Method and Description | 
|---|---|
S | 
getDesiredState(S state,
               ExecutionContext context)
Determines the desired state of the  
FiniteStateMachine for the
 Event given the current state of the FiniteStateMachine. | 
S getDesiredState(S state, ExecutionContext context)
FiniteStateMachine for the
 Event given the current state of the FiniteStateMachine.state - the current state of the FiniteStateMachinecontext - the ExecutionContext for the EventFiniteStateMachine or
          null if no transition is required