net.tinyos.tinydb
Class EpochTimer

java.lang.Object
  |
  +--net.tinyos.tinydb.EpochTimer
All Implemented Interfaces:
java.lang.Runnable

public class EpochTimer
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
EpochTimer(int rate)
          Rate is number of ms per time slot
 
Method Summary
 void addQuery(char qid, int epochDur)
           
 short getQueryTimeLeft(int qid)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpochTimer

public EpochTimer(int rate)
Rate is number of ms per time slot

Method Detail

run

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

addQuery

public void addQuery(char qid,
                     int epochDur)

getQueryTimeLeft

public short getQueryTimeLeft(int qid)
                       throws java.util.NoSuchElementException
java.util.NoSuchElementException