com.dalsemi.tininet.ppp
Class Timer

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.dalsemi.tininet.ppp.Timer
All Implemented Interfaces:
java.lang.Runnable

public class Timer
extends java.lang.Thread

Timer class used by PPP protocols.


Field Summary
 
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, holdsLock, 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.


stopTimer

public void stopTimer()
Stops timer thread.



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

o JDK 1.1

Last update Thu Feb 5 09:42:41 CST 2009