Class Timer

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

public class Timer
extends java.lang.Thread

This timer runs on the separate thread and during the simulation tells fasade to update the warning and normal times

Author:

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
Timer()
          This constaructor creates a new timer
Timer(int inter)
          This constructor creates a timer with an interval
 
Method Summary
 Notifier getNotifier()
          Get the notifier.
 void run()
          This method is what executes then the thread has been started
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
This constaructor creates a new timer


Timer

public Timer(int inter)
This constructor creates a timer with an interval

Parameters:
inter - - the new interval
Method Detail

run

public void run()
This method is what executes then the thread has been started

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

getNotifier

public Notifier getNotifier()
Get the notifier.

Returns:
Notifier