consciouscode.seedling.tasks
Class Clock

java.lang.Object
  extended by consciouscode.seedling.tree.GenericNode
      extended by 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()
           
 
Method Summary
 void addPeriodicTask(PeriodicTask task)
          Add a task for management by this Clock.
 PeriodicTask[] getPeriodicTasks()
           
 void setPeriodicTasks(PeriodicTask[] tasks)
           
 
Methods inherited from class consciouscode.seedling.tree.GenericNode
getLocalRoot, getLog, getNodeLocation, getNodeName, getParentBranch, isLoggingDebug, nodeInstalled, setLog, setLoggingDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clock

public Clock()
Method Detail

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.