com.dalsemi.tininet.ppp
Class Timer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.dalsemi.tininet.ppp.Timer

public class Timer
extends java.lang.Thread

Timer class used by PPP protocols.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Timer()
          Default constructor.
 
Method Summary
 boolean addEventListener(TimerEventListener tel, int time)
          Add an event listener.
 void removeEventListener(TimerEventListener tel)
          Remove an event listener.
 void run()
          Thread run method.
 void stopTimer()
          Stops timer thread.
 
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
 

Constructor Detail

Timer

public Timer()
Default constructor.
Method Detail

addEventListener

public boolean addEventListener(TimerEventListener tel,
                                int time)
Add an event listener.
Parameters:
tel - timer event listener
time - timout value in seconds
Returns:
true is successful

removeEventListener

public void removeEventListener(TimerEventListener tel)
Remove an event listener.
Parameters:
tel - timer event listener

run

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

stopTimer

public void stopTimer()
Stops timer thread.


Also see:
o TINI 1.16 API
o TINI Home Page
o 1-Wire API

o JDK 1.1

Last update Wed Jun 8 17:19:36 CDT 2005