Class mheg5.UTL.Timer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mheg5.UTL.Timer

java.lang.Object
   |
   +----mheg5.UTL.Timer

public class Timer
extends Object
implements Runnable

Variable Index

 o debug
for debug info
 o ftime
finishTime for callback
 o host
reference to the callback class, which implemeted ActionTimer
 o id
the induvidual id of one Timer in one System.
 o ms
default 1000 ms for one tick
 o runner
the running thread
 o time
startvalue of timer

Constructor Index

 o Timer()
Default constructor
 o Timer(int)
Constructor with initvalue
 o Timer(TimerInterface, int)
Default constructor for callback

Method Index

 o getTime()
Getting the value of the timer
 o resume()
Let the timer run again
 o run()
Internal run routine for the Runnableinterface
 o setTime(int)
Setting the timervalue to time.
 o start()
 o startTheTimer()
Init of the Timer and init value with 0.
 o stopTheTimer()
Kills the Timer
 o suspend()
Suspend the Timer
 o toString()
The default toString() ovewriting of Objects toString() for printing information of Timer.

Variables

 o debug
  public static boolean debug
for debug info
 o runner
  public Thread runner
the running thread
 o time
  public int time
startvalue of timer
 o ftime
  public int ftime
finishTime for callback
 o ms
  public int ms
default 1000 ms for one tick
 o host
  public TimerInterface host
reference to the callback class, which implemeted ActionTimer
 o id
  public int id
the induvidual id of one Timer in one System.

Constructors

 o Timer
  public Timer()
Default constructor
 o Timer
  public Timer(int value)
Constructor with initvalue
Parameters:
Integervalue - for init.
 o Timer
  public Timer(TimerInterface host,
               int finishTime)
Default constructor for callback

Methods

 o startTheTimer
  public void startTheTimer()
Init of the Timer and init value with 0.
 o start
  public void start()
 o setTime
  public void setTime(int time)
Setting the timervalue to time.
Parameters:
time - an integervalue for the timer
 o getTime
  public int getTime()
Getting the value of the timer
Returns:
the actual timervalue
 o stopTheTimer
  public void stopTheTimer()
Kills the Timer
 o run
  public void run()
Internal run routine for the Runnableinterface
See Also:
Thread
 o suspend
  public void suspend()
Suspend the Timer
 o resume
  public void resume()
Let the timer run again
 o toString
  public String toString()
The default toString() ovewriting of Objects toString() for printing information of Timer.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index