eNTitanok.util
Class Idozito

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--eNTitanok.util.Idozito

public class Idozito
extends java.lang.Thread

Egy vagy több, Idozito.Idozitett típusú objektum periodikus időzítését látja el, ügyelve arra, hogy hosszútávon se csússzunk el az abszolút időtől. Csak egyetlen Idozitett-re teszteltük. Csak Win32 alatt működik jól, Linux JDK1.3 alatt igenis csúszunk (,,lassulunk'', elmaradunk)

See Also:
Idozito.Idozitett

Inner Class Summary
static class Idozito.Idozitett
           
 
Field Summary
protected  boolean futunk_e_meg
           
protected  long holtart
           
protected  long interval_ms
           
protected  int varakozok
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Idozito(int interval_ms_)
           
 
Method Summary
static void alszik(int mennyit)
           
 long getHoltart()
           
 int getInterval()
           
 void run()
           
 void stopp()
           
 void var(long meddig)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

futunk_e_meg

protected volatile boolean futunk_e_meg

holtart

protected volatile long holtart

varakozok

protected volatile int varakozok

interval_ms

protected long interval_ms
Constructor Detail

Idozito

public Idozito(int interval_ms_)
Method Detail

getInterval

public int getInterval()

getHoltart

public long getHoltart()

var

public void var(long meddig)

alszik

public static void alszik(int mennyit)

stopp

public void stopp()

run

public void run()
Overrides:
run in class java.lang.Thread