|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the requirements for implementing a synchronous task scheduler
| Method Summary | |
boolean |
addTask(java.lang.Runnable task)
Add a new task to the scheduler's run list |
long |
getClockPeriod()
Return the scheduler's clock period in milliseconds. |
boolean |
removeTask(java.lang.Runnable task)
Remove a task from the scheduler's run list |
void |
setClockPeriod(long milliseconds)
Set the scheduler's clock period in milliseconds |
void |
start()
Start the TaskScheduler |
void |
stop()
Stop the TaskScheduler |
| Method Detail |
public void start()
TaskScheduler
public void stop()
TaskScheduler
public boolean addTask(java.lang.Runnable task)
task - The new task to add
true if the task was
added to the run list, false if otherwise.public boolean removeTask(java.lang.Runnable task)
task - The task to remove
true if the task was
removed from the run list, false if otherwise.public long getClockPeriod()
public void setClockPeriod(long milliseconds)
milliseconds - The scheduler's clock period
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||