MicroTAPAS.mobility
Class PingTimer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--MicroTAPAS.mobility.PingTimer
All Implemented Interfaces:
java.lang.Runnable

final class PingTimer
extends java.lang.Thread


Field Summary
private  long currentTimer
           
private  boolean doDecrease
           
private  long elapsedTime
           
private  long initialTimer
           
private  long intervalDec
           
private  long intervalInc
           
private  long intervalMax
           
private  long intervalMin
           
private  boolean isActive
           
private  boolean isConnected
           
private  long period
           
private  long periodCount
           
private  long startTime
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PingTimer(long pInitialTimer)
           
 
Method Summary
 void destroy()
           
 long getTimerInterval()
           
 void loop()
           
 void run()
           
 void setConnected(boolean pIsConnected)
           
 Item status()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, 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
 

Field Detail

isActive

private boolean isActive

isConnected

private boolean isConnected

doDecrease

private boolean doDecrease

initialTimer

private long initialTimer

currentTimer

private long currentTimer

intervalDec

private long intervalDec

intervalInc

private long intervalInc

period

private long period

periodCount

private long periodCount

intervalMin

private long intervalMin

intervalMax

private long intervalMax

startTime

private long startTime

elapsedTime

private long elapsedTime
Constructor Detail

PingTimer

public PingTimer(long pInitialTimer)
Method Detail

getTimerInterval

public long getTimerInterval()

setConnected

public void setConnected(boolean pIsConnected)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

destroy

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

loop

public void loop()

status

public Item status()


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.