Class TimerFactory

java.lang.Object
  extended by TimerFactory

public class TimerFactory
extends java.lang.Object

A TimerFactory is a factory for RDTTimer objects. It provides a single thread for executing the tasks for its timers.


Nested Class Summary
 class TimerFactory.Timer
          A TimerFactory.Timer times tasks that need to be performed at a later time.
 
Constructor Summary
TimerFactory(java.lang.String nm)
          TimerFactory(nm) returns an empty TimerFactory with name nm.
 
Method Summary
 TimerFactory.Timer createTimer(int del, TimingTask tsk)
          tq.createTimer(del, tsk) returns a Timer for use in tq that performs tsk with delay del after invoking start().
 java.lang.String toString()
          tq.toString() returns the name of tq.
 void waitUntilStopped()
          tq.waitUntilStopped() blocks until all timers are stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimerFactory

public TimerFactory(java.lang.String nm)
TimerFactory(nm) returns an empty TimerFactory with name nm.

Method Detail

createTimer

public TimerFactory.Timer createTimer(int del,
                                      TimingTask tsk)
tq.createTimer(del, tsk) returns a Timer for use in tq that performs tsk with delay del after invoking start().


waitUntilStopped

public void waitUntilStopped()
tq.waitUntilStopped() blocks until all timers are stopped.


toString

public java.lang.String toString()
tq.toString() returns the name of tq.

Overrides:
toString in class java.lang.Object