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
-
debug
- for debug info
-
ftime
- finishTime for callback
-
host
- reference to the callback class, which implemeted ActionTimer
-
id
- the induvidual id of one Timer in one System.
-
ms
- default 1000 ms for one tick
-
runner
- the running thread
-
time
- startvalue of timer
-
Timer()
- Default constructor
-
Timer(int)
- Constructor with initvalue
-
Timer(TimerInterface, int)
- Default constructor for callback
-
getTime()
- Getting the value of the timer
-
resume()
- Let the timer run again
-
run()
- Internal run routine for the Runnableinterface
-
setTime(int)
- Setting the timervalue to time.
-
start()
-
-
startTheTimer()
- Init of the Timer and init value with 0.
-
stopTheTimer()
- Kills the Timer
-
suspend()
- Suspend the Timer
-
toString()
- The default toString() ovewriting of Objects toString() for
printing information of Timer.
debug
public static boolean debug
- for debug info
runner
public Thread runner
- the running thread
time
public int time
- startvalue of timer
ftime
public int ftime
- finishTime for callback
ms
public int ms
- default 1000 ms for one tick
host
public TimerInterface host
- reference to the callback class, which implemeted ActionTimer
id
public int id
- the induvidual id of one Timer in one System.
Timer
public Timer()
- Default constructor
Timer
public Timer(int value)
- Constructor with initvalue
- Parameters:
- Integervalue - for init.
Timer
public Timer(TimerInterface host,
int finishTime)
- Default constructor for callback
startTheTimer
public void startTheTimer()
- Init of the Timer and init value with 0.
start
public void start()
setTime
public void setTime(int time)
- Setting the timervalue to time.
- Parameters:
- time - an integervalue for the timer
getTime
public int getTime()
- Getting the value of the timer
- Returns:
- the actual timervalue
stopTheTimer
public void stopTheTimer()
- Kills the Timer
run
public void run()
- Internal run routine for the Runnableinterface
- See Also:
- Thread
suspend
public void suspend()
- Suspend the Timer
resume
public void resume()
- Let the timer run again
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