uk.ac.imperial.presage2.core.simulator.ScheduleExecutor |
Known Indirect Subclasses |
Wrapper for an ExecutorService. Allows for the controller to wait for completion of tasks according to specified conditions.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ScheduleExecutor.WaitCondition | Conditions specifying a simulation schedule over a timestep. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get number of threads in use by this executor.
| |||||||||||
Shutdown executor.
| |||||||||||
Submit a task with no completion condition to wait for.
| |||||||||||
Submit a task with specified
ScheduleExecutor.WaitCondition . | |||||||||||
Submit a conditional task and receive a Future representing its
future return value.
| |||||||||||
Wait for all scheduled tasks for the specified
ScheduleExecutor.WaitCondition to
complete. |
Get number of threads in use by this executor.
Submit a task with no completion condition to wait for.
Submit a task with specified ScheduleExecutor.WaitCondition
.
s | Runnable task |
---|
Submit a conditional task and receive a Future representing its future return value.
s | Callable task, returning a boolean. |
---|
Wait for all scheduled tasks for the specified ScheduleExecutor.WaitCondition
to
complete.