TState - the type of the states.TEvent - the type of the events.public abstract class StateMachineEventAdapter<TState extends Enum<?>,TEvent extends Enum<?>> extends Object implements StateMachineEventHandler<TState,TEvent>
| Constructor and Description |
|---|
StateMachineEventAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onExceptionThrown(ExceptionEventArgs<TState,TEvent> arg)
Occurs when an exception was thrown inside the state machine.
|
void |
onTransitionBegin(TransitionEventArgs<TState,TEvent> args)
Occurs when a transition begins.
|
void |
onTransitionCompleted(TransitionCompletedEventArgs<TState,TEvent> arg)
Occurs when a transition completed.
|
void |
onTransitionDeclined(TransitionEventArgs<TState,TEvent> arg)
Occurs when no transition could be executed.
|
void |
onTransitionThrowsException(TransitionExceptionEventArgs<TState,TEvent> arg)
Occurs when an exception was thrown inside a transition of the state
machine.
|
public void onExceptionThrown(ExceptionEventArgs<TState,TEvent> arg)
StateMachineEventHandleronExceptionThrown in interface StateMachineEventHandler<TState extends Enum<?>,TEvent extends Enum<?>>arg - the event argument.public void onTransitionBegin(TransitionEventArgs<TState,TEvent> args)
StateMachineEventHandleronTransitionBegin in interface StateMachineEventHandler<TState extends Enum<?>,TEvent extends Enum<?>>args - the event argument.public void onTransitionCompleted(TransitionCompletedEventArgs<TState,TEvent> arg)
StateMachineEventHandleronTransitionCompleted in interface StateMachineEventHandler<TState extends Enum<?>,TEvent extends Enum<?>>public void onTransitionDeclined(TransitionEventArgs<TState,TEvent> arg)
StateMachineEventHandleronTransitionDeclined in interface StateMachineEventHandler<TState extends Enum<?>,TEvent extends Enum<?>>arg - the event argument.public void onTransitionThrowsException(TransitionExceptionEventArgs<TState,TEvent> arg)
StateMachineEventHandleronTransitionThrowsException in interface StateMachineEventHandler<TState extends Enum<?>,TEvent extends Enum<?>>arg - the event argument.Copyright © 2012 bbv Software Services AG. All Rights Reserved.