|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
S - the type of state supported on the state engine for the controllerL - the type of label supported on the state engine for the controllerP - the type of parameter supported on the state engine for the
controllerpublic interface Controller<S,L,P>
A Controller manipulates a state engine in response to events in an application's environment. Implementations of this interface are produced by the control factory.
| Method Summary | |
|---|---|
EngineControlAdapter<S,L,P> |
getAdapter()
The adapter that is being used by the controller to mediate external events and the state graph. |
com.tomgibara.pronto.state.StateEngine<S,L,P> |
getEngine()
The engine through which this controller operates. |
void |
start()
Starts the controller. |
boolean |
stop(long timeout)
Stops the controller. |
| Method Detail |
|---|
void start()
boolean stop(long timeout)
timeout - the number of milliseconds that the calling thread is willing
to wait for stoppage to occur, 0L waits indefinitely.
com.tomgibara.pronto.state.StateEngine<S,L,P> getEngine()
EngineControlAdapter<S,L,P> getAdapter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||