Package | Description |
---|---|
com.lhkbob.entreri.task |
Modifier and Type | Method and Description |
---|---|
Job |
Scheduler.createJob(String name,
Task... tasks)
Create a new job with the given name, that will execute the provided
tasks in order.
|
Modifier and Type | Method and Description |
---|---|
Task |
Task.process(EntitySystem system,
Job job)
Invoke task specific operations to process the EntitySystem.
|
Task |
SimpleTask.process(EntitySystem system,
Job job)
The default implementation of process() just invokes
SimpleTask.processEntities(com.lhkbob.entreri.EntitySystem) immediately and returns no
future task. |
ExecutorService |
Scheduler.runContinuously(Job job)
Create an ExecutorService that is configured to execute the given job back to back
as fast as the job executes.
|
ExecutorService |
Scheduler.runEvery(double dt,
Job job)
Create an ExecutorService that is configured to execute the given job every
dt seconds.
|
void |
Scheduler.runOnCurrentThread(Job job)
Execute the given job on the current thread.
|
void |
Scheduler.runOnSeparateThread(Job job)
Execute the given job once on a new thread.
|
Copyright © 2013. All Rights Reserved.