Class Timer

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----Timer

class Timer
extends Thread

Variable Index

 o notifiable
 o oneShot
 o time

Constructor Index

 o Timer(Notifiable, int)
 o Timer(Notifiable, int, boolean)

Method Index

 o run()

Variables

 o notifiable
 private Notifiable notifiable
 o time
 private int time
 o oneShot
 private boolean oneShot

Constructors

 o Timer
 Timer(Notifiable notifiable,
       int time)
 o Timer
 Timer(Notifiable notifiable,
       int time,
       boolean oneShot)
Parameters:
notifiable - the Notifiable object to notify.
time - the time in milliseconds.
oneShot - a flag indicating if this timer should send only one notification (true) or if it should continue to send notifications until it is stopped (false).

Methods

 o run
 public void run()
Overrides:
run in class Thread