dk.itu.smds.torusman
Class ServerTime

java.lang.Object
  extended by java.lang.Thread
      extended by dk.itu.smds.torusman.ServerTime
All Implemented Interfaces:
java.lang.Runnable

public class ServerTime
extends java.lang.Thread

The Class ServerTime that holds information on how much time has elapsed on the server.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 int torusTime
          The torus time.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ServerTime()
          Instantiates a new server time.
 
Method Summary
 void run()
          Keeps track of the servers own time.
 
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
 

Field Detail

torusTime

public int torusTime
The torus time.

Constructor Detail

ServerTime

public ServerTime()
Instantiates a new server time.

Method Detail

run

public void run()
Keeps track of the servers own time.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Thread.run()