consciouscode.seedling.tasks
Class Clock
java.lang.Object
consciouscode.seedling.tree.GenericNode
consciouscode.seedling.tasks.Clock
- All Implemented Interfaces:
- LocatableNode
public class Clock
- extends GenericNode
A Seedling node that can schedule tasks within a dedicated working thread.
Constructor Summary |
Clock()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Clock
public Clock()
addPeriodicTask
public void addPeriodicTask(PeriodicTask task)
- Add a task for management by this Clock.
If
task.isStartedImmediately
, the task will be run
immediately.
- Parameters:
task
- must not be null.
setPeriodicTasks
public void setPeriodicTasks(PeriodicTask[] tasks)
getPeriodicTasks
public PeriodicTask[] getPeriodicTasks()
Copyright © 2001–2012
Todd V. Jonker. All Rights Reserved.