DRCL J-Sim API

drcl.inet.mac
Class Mac_802_11_Timer

java.lang.Object
  extended bydrcl.inet.mac.Mac_802_11_Timer
Direct Known Subclasses:
ATIMEndTimer, BackoffTimer, BeaconTimer, NavTimer, RxTimer, TBTTTimer, TxTimer

public class Mac_802_11_Timer
extends java.lang.Object

This is the base class of various IEEE802.11 timer classes.

Author:
Ye Ge
See Also:
Mac_802_11

Constructor Summary
Mac_802_11_Timer(Mac_802_11 h)
           
Mac_802_11_Timer(Mac_802_11 h, double s)
           
 
Method Summary
 boolean busy()
           
 double expire()
           
 void handle()
           
 void pause()
           
 boolean paused()
           
 void resume()
           
 void start(double time)
          Start the timer
 void start(double time, double ctime)
          Start the timer
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mac_802_11_Timer

public Mac_802_11_Timer(Mac_802_11 h,
                        double s)

Mac_802_11_Timer

public Mac_802_11_Timer(Mac_802_11 h)
Method Detail

start

public void start(double time,
                  double ctime)
Start the timer

Parameters:
time - - duration
ctime - - start timer

start

public void start(double time)
Start the timer

Parameters:
time - - duration

stop

public void stop()

pause

public void pause()

resume

public void resume()

handle

public void handle()

busy

public boolean busy()

paused

public boolean paused()

expire

public double expire()

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~