|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
S - the type of state the listener observesL - the type of labels the listener observespublic interface StateListener<S,L>
State listeners may be attached to state engines to observe the completion of state changes and state transitions. Notifications of transition and state change are guaranteed to arrive sequentially (though not necessarily on the same thread) in the order they occured on the engine. Implementations of this interface that are shared between engines should be safe for concurrent access.
| Method Summary | |
|---|---|
void |
stateChanged(S state)
This methopd is called after the state of an engine has been set directly (ie. |
void |
stateTransitioned(StateTransition<S,L> transition)
This method is called after every successful state transition made by the state engine. |
| Method Detail |
|---|
void stateChanged(S state)
state - the new state of the state engine, never nullvoid stateTransitioned(StateTransition<S,L> transition)
transition - a transition that has been made by an engine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||