|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.radio.freespace.FreeSpaceAir
Implementation of the free space radio propagation model
Nested Class Summary | |
protected class |
FreeSpaceAir.MeetEvent
|
Field Summary | |
static int |
bitPeriod
|
static int |
bitPeriod2
|
static int |
bytePeriod
The amount of cycles it takes for one byte to be sent. |
protected java.util.HashSet |
radios
|
Constructor Summary | |
FreeSpaceAir(Topology top)
new free space air |
Method Summary | |
void |
addRadio(Radio r)
The addRadio() method adds a new radio to this radio model. |
Synchronizer |
getSynchronizer()
The getSynchronizer() method gets the synchronizer for this air
implementation. |
byte |
readChannel(Radio r)
The readChannel() method reads the value of the channel at the current
time so that the last 8 bits transmitted (where the bits are 0 if there are no
transmissions) are returned. |
void |
removeRadio(Radio r)
remove radio |
int |
sampleRSSI(Radio r)
see simple air for more |
void |
transmit(Radio r,
Radio.Transmission f)
transmit packet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.HashSet radios
public static final int bytePeriod
public static final int bitPeriod
public static final int bitPeriod2
Constructor Detail |
public FreeSpaceAir(Topology top)
Method Detail |
public void addRadio(Radio r)
RadioAir
addRadio()
method adds a new radio to this radio model.
addRadio
in interface RadioAir
r
- the radio to add to this air implementationpublic void removeRadio(Radio r)
removeRadio
in interface RadioAir
r
- the radio to remove from this air implementationRadioAir.removeRadio(avrora.sim.radio.Radio)
public void transmit(Radio r, Radio.Transmission f)
transmit
in interface RadioAir
r
- the radio transmitting this packetf
- the radio packet transmitted into the airRadioAir.transmit(avrora.sim.radio.Radio, avrora.sim.radio.Radio.Transmission)
public int sampleRSSI(Radio r)
sampleRSSI
in interface RadioAir
r
- the radio sampling the RSSI value
RadioAir.sampleRSSI(avrora.sim.radio.Radio)
public byte readChannel(Radio r)
RadioAir
readChannel()
method reads the value of the channel at the current
time so that the last 8 bits transmitted (where the bits are 0 if there are no
transmissions) are returned.
readChannel
in interface RadioAir
r
- the radio sampling the channel
public Synchronizer getSynchronizer()
RadioAir
getSynchronizer()
method gets the synchronizer for this air
implementation.
getSynchronizer
in interface RadioAir
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |