|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tomgibara.pronto.control.impl.ControllerImpl<S,L,P>
S - the type of stateL - the type of labelP - the type of parameterpublic class ControllerImpl<S,L,P>
The standard implementation of the Controller interface. It aggregates a number of ControllerParts that provide its actual functionality. This means that a single instance of this class can actually provide 'multiple' functionality based on the a settings object that implements a number of different ControllerSettings interfaces.
| Constructor Summary | |
|---|---|
ControllerImpl(com.tomgibara.pronto.state.StateEngine<S,L,P> engine,
EngineControlAdapter<S,L,P> adapter)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerImpl(com.tomgibara.pronto.state.StateEngine<S,L,P> engine,
EngineControlAdapter<S,L,P> adapter)
| Method Detail |
|---|
public EngineControlAdapter<S,L,P> getAdapter()
Controller
getAdapter in interface Controller<S,L,P>public com.tomgibara.pronto.state.StateEngine<S,L,P> getEngine()
Controller
getEngine in interface Controller<S,L,P>public void start()
Controller
start in interface Controller<S,L,P>public boolean stop(long timeout)
Controller
stop in interface Controller<S,L,P>timeout - the number of milliseconds that the calling thread is willing
to wait for stoppage to occur, 0L waits indefinitely.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||