|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.framework.DefaultController
public abstract class DefaultController
This class provides some reasonable defaults for concurrentGetSimulationConfiguration, by delegating it to its blocking sibling using a new thread.
Constructor Summary | |
---|---|
DefaultController()
|
Method Summary | |
---|---|
java.util.concurrent.Future<SimulationConfiguration> |
concurrentGetSimulationConfiguration()
non-blocking version of getSimulationConfiguration, return a Future object. |
ControllerReturnValue |
controlSimulation(Simulation simulation)
This method will be called whenever the controller may influence the simulation in any way. |
boolean |
onSimulationReady()
|
void |
start()
Tell the component to start activity. |
void |
stop()
Tell the component to cease activity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface massim.framework.Controller |
---|
getSimulationConfiguration |
Constructor Detail |
---|
public DefaultController()
Method Detail |
---|
public boolean onSimulationReady()
public java.util.concurrent.Future<SimulationConfiguration> concurrentGetSimulationConfiguration()
Controller
concurrentGetSimulationConfiguration
in interface Controller
public ControllerReturnValue controlSimulation(Simulation simulation)
Controller
controlSimulation
in interface Controller
public void start()
Component
start
in interface Component
public void stop()
Component
stop
in interface Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |