avrora.sim.radio
Interface RadioAir

All Known Implementing Classes:
FreeSpaceAir, SimpleAir

public interface RadioAir

Interface for the RadioAir. An implementation of this interface should provide the policies through which radio transmission is handled. Radios should transmit via the transmit method. The air should deliver packets to the radio through the receive() method in the Radio interface.


Method Summary
 void addRadio(Radio r)
          Add a radio to the environment.
 void removeRadio(Radio r)
          Remove a radio from the environment.
 int sampleRSSI(Radio r)
           
 void transmit(Radio r, Radio.RadioPacket f)
          Transmits frame f into the radio environment.
 

Method Detail

addRadio

public void addRadio(Radio r)
Add a radio to the environment.


removeRadio

public void removeRadio(Radio r)
Remove a radio from the environment.


transmit

public void transmit(Radio r,
                     Radio.RadioPacket f)
Transmits frame f into the radio environment.


sampleRSSI

public int sampleRSSI(Radio r)