|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.runtime.controller.DefaultController
public class DefaultController
| Constructor Summary | |
|---|---|
DefaultController()
|
|
| Method Summary | |
|---|---|
void |
attach()
attach to the runtime - called by the runtime during ACTRRuntime.setController(); |
java.util.concurrent.Future<java.lang.Boolean> |
complete()
complete().get() will block until completeds |
void |
detach()
detach the runtime - called by the runtime during ACTRRuntime.setController(null); |
java.util.Collection<IModel> |
getRunningModels()
|
java.util.Collection<IModel> |
getSuspendedModels()
|
java.util.Collection<IModel> |
getTerminatedModels()
|
boolean |
isRunning()
|
boolean |
isSuspended()
|
java.util.concurrent.Future<java.lang.Boolean> |
resume()
resume from a suspend |
java.util.concurrent.Future<java.lang.Boolean> |
start()
run the models..The runtime is not actually running until at least one model has finished initialization. |
java.util.concurrent.Future<java.lang.Boolean> |
start(boolean suspendImmediately)
start the models but suspend at the start of the first cycle |
java.util.concurrent.Future<java.lang.Boolean> |
stop()
stop all the current running models at the nearest possible moment. |
java.util.concurrent.Future<java.lang.Boolean> |
suspend()
pause at the next immediate opportunity |
java.util.concurrent.Future<java.lang.Boolean> |
terminate()
force all the models to terminate |
java.util.concurrent.Future<java.lang.Boolean> |
waitForCompletion()
|
java.util.concurrent.Future<java.lang.Boolean> |
waitForResumption()
|
java.util.concurrent.Future<java.lang.Boolean> |
waitForStart()
returns a future that can be blocked on until the runtime starts fully (i.e. |
java.util.concurrent.Future<java.lang.Boolean> |
waitForSuspension()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultController()
| Method Detail |
|---|
public void attach()
IController
attach in interface IControllerpublic void detach()
IController
detach in interface IControllerpublic java.util.Collection<IModel> getRunningModels()
getRunningModels in interface IControllerpublic java.util.Collection<IModel> getSuspendedModels()
getSuspendedModels in interface IControllerpublic java.util.Collection<IModel> getTerminatedModels()
getTerminatedModels in interface IControllerpublic boolean isRunning()
isRunning in interface IControllerpublic boolean isSuspended()
isSuspended in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> start()
IController
start in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> start(boolean suspendImmediately)
IController
start in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> complete()
IController
complete in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> stop()
IController
stop in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> suspend()
IController
suspend in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> resume()
IController
resume in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> terminate()
IController
terminate in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> waitForCompletion()
waitForCompletion in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> waitForResumption()
waitForResumption in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> waitForStart()
IController
waitForStart in interface IControllerpublic java.util.concurrent.Future<java.lang.Boolean> waitForSuspension()
waitForSuspension in interface IController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||