sidnet.stack.std.mac.ieee802_15_4
Class ToSleepTimer
java.lang.Object
   sidnet.stack.std.mac.ieee802_15_4.ToSleepTimer
sidnet.stack.std.mac.ieee802_15_4.ToSleepTimer
- All Implemented Interfaces: 
- JistAPI.Proxiable, JistAPI.Timeless, TimerInterface802_15_4
- public class ToSleepTimer 
- extends java.lang.Object- implements TimerInterface802_15_4
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
active
protected boolean active
started
protected boolean started
busy
protected boolean busy
paused
protected boolean paused
canceled
protected boolean canceled
terminated
protected boolean terminated
stime
protected double stime
wtime
protected double wtime
lastMomentOfPause
protected double lastMomentOfPause
totalPauseTime
protected double totalPauseTime
id
protected int id
ToSleepTimer
public ToSleepTimer(int id,
                    double toSleepTime_s,
                    EnergyConsumptionModel energyConsumptionModel)
- Parameters:
- id-
- toSleepTime- - the amount of time elapsed before the radio is turned off in [MS]
- energyConsumptionModel-
startTimer
public void startTimer(double wtime,
                       MacMessage_802_15_4 p)
- 
- Specified by:
- startTimerin interface- TimerInterface802_15_4
 
- 
 
start
public void start()
- 
- Specified by:
- startin interface- TimerInterface802_15_4
 
- 
 
start
public void start(double time,
                  boolean onlycap)
- 
- Specified by:
- startin interface- TimerInterface802_15_4
 
- 
 
start
public void start(boolean reset,
                  boolean fortx,
                  double wt)
- 
- Specified by:
- startin interface- TimerInterface802_15_4
 
- 
 
cancel
public void cancel()
- 
- Specified by:
- cancelin interface- TimerInterface802_15_4
 
- 
 
timeout
public void timeout(long currentTimerSequence)
- 
- Specified by:
- timeoutin interface- TimerInterface802_15_4
 
- 
 
resetTimer
public void resetTimer()
- 
- Specified by:
- resetTimerin interface- TimerInterface802_15_4
 
- 
 
startTimer
public void startTimer(double wtime)
- Handle timer expiration.
 
- 
- Specified by:
- startTimerin interface- TimerInterface802_15_4
 
- 
 
startTimer
public void startTimer()
- Start timer
 
- 
 
- 
 
canceled
public boolean canceled()
                 throws JistAPI.Continuation
- 
- Specified by:
- canceledin interface- TimerInterface802_15_4
 
- 
- Throws:
- JistAPI.Continuation
 
bussy
public boolean bussy()
              throws JistAPI.Continuation
- 
- Specified by:
- bussyin interface- TimerInterface802_15_4
 
- 
- Throws:
- JistAPI.Continuation
 
paused
public boolean paused()
               throws JistAPI.Continuation
- 
- Specified by:
- pausedin interface- TimerInterface802_15_4
 
- 
- Throws:
- JistAPI.Continuation
 
expire
public double expire()
- 
 
- 
 
pause
public void pause()
- Pause timer
 
- 
- Specified by:
- pausein interface- TimerInterface802_15_4
 
- 
 
resume
public void resume()
- Resume timer
 
- 
- Specified by:
- resumein interface- TimerInterface802_15_4
 
- 
 
stopTimerr
public void stopTimerr()
- 
- Specified by:
- stopTimerrin interface- TimerInterface802_15_4
 
- 
 
getProxy
public TimerInterface802_15_4 getProxy()
- 
 
-