jist.swans.mac
Interface MacInterface.Mac802_11

All Superinterfaces:
JistAPI.Proxiable, JistAPI.Timeless, MacInterface
All Known Implementing Classes:
Mac802_11
Enclosing interface:
MacInterface

public static interface MacInterface.Mac802_11
extends MacInterface

Extends the default Mac interface with 802_11 functions.

Since:
SWANS1.0
Author:
Rimon Barr <barr+jist@cs.cornell.edu>

Nested Class Summary
 
Nested classes/interfaces inherited from interface jist.swans.mac.MacInterface
MacInterface.Mac802_11
 
Method Summary
 void cfDone(boolean backoff, boolean delPacket)
          Collision free send sequence complete.
 void startTimer(long delay, byte mode)
          Initiate a timer event.
 void timeout(int timerId)
          Process mac timeout.
 
Methods inherited from interface jist.swans.mac.MacInterface
peek, receive, send, setRadioMode
 

Method Detail

startTimer

void startTimer(long delay,
                byte mode)
Initiate a timer event. Note that only one timer event can be active at a given time.

Parameters:
delay - timer duration
mode - new mode

timeout

void timeout(int timerId)
Process mac timeout.

Parameters:
timerId - timer identifier

cfDone

void cfDone(boolean backoff,
            boolean delPacket)
Collision free send sequence complete.

Parameters:
backoff - is a backoff required
delPacket - is processing for this packet complete