appletbots
Class TimeUpdaterThread

java.lang.Object
  extended by java.lang.Thread
      extended by appletbots.TimeUpdaterThread
All Implemented Interfaces:
java.lang.Runnable

public class TimeUpdaterThread
extends java.lang.Thread

This thread is used by the appletbots applet to update its components after each time cycle

Author:
Erik Rasmussen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeUpdaterThread(Applet applet)
          Constructs a new TimeUpdaterThread for the given applet
 
Method Summary
 void run()
          Simply calls applet.updateTimeField() and sleeps for applet.getDelay() milliseconds
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeUpdaterThread

public TimeUpdaterThread(Applet applet)
Constructs a new TimeUpdaterThread for the given applet

Parameters:
applet - The applet the thread is to run for
Method Detail

run

public void run()
Simply calls applet.updateTimeField() and sleeps for applet.getDelay() milliseconds

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread