|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StateMachine
The StateMachine lets you organize event handling, if the order of the events are important to you.
| Method Summary | ||
|---|---|---|
void |
addStateChangeNotification(StateChangeListener listener)
Add a new state change listener |
|
|
getState(java.lang.Class<E> stateType)
Get the current state |
|
boolean |
handleEvent(StateEvent event)
Handle an event in the current state. |
|
void |
removeStateChangeNotification(StateChangeListener listener)
Remove a state change listener |
|
| Method Detail |
|---|
void addStateChangeNotification(StateChangeListener listener)
listener - a reference to the listener that will get information about state changes.void removeStateChangeNotification(StateChangeListener listener)
listener - a reference to the listener that will get information about state changes.
boolean handleEvent(StateEvent event)
throws InternalException,
OverloadException
event - processing event
OverloadException - if queue of state mashine is full
InternalException - if FSM has internal error<E> E getState(java.lang.Class<E> stateType)
stateType - type of state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||