|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.sim.radio.freespace.LocalAirImpl
Implementation of Local Air
Field Summary | |
static int |
bytePeriod
|
static int |
sampleTime
|
Constructor Summary | |
LocalAirImpl(Radio r,
Position pos,
Synchronizer synch)
new local air |
Method Summary | |
void |
addNeighbor(LocalAirImpl r)
add neighbor |
void |
addPacket(Radio.Transmission p,
double pow,
Radio sender)
receive a packet |
void |
advanceChannel()
|
java.util.Iterator |
getNeighbors()
tell me, who is around |
Position |
getPosition()
get node position |
Radio |
getRadio()
|
byte |
readChannel()
|
void |
removeNeighbor(LocalAirImpl r)
remove a node |
int |
sampleRSSI(long gtime)
compute signal strength bases on @see avrora.sim.radio.SimpleAir#sampleRSSI(long) by Daniel Lee |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int sampleTime
public static final int bytePeriod
Constructor Detail |
public LocalAirImpl(Radio r, Position pos, Synchronizer synch)
r
- radiopos
- positionMethod Detail |
public Position getPosition()
public Radio getRadio()
public void addNeighbor(LocalAirImpl r)
public void removeNeighbor(LocalAirImpl r)
public java.util.Iterator getNeighbors()
public void addPacket(Radio.Transmission p, double pow, Radio sender)
public int sampleRSSI(long gtime)
public void advanceChannel()
public byte readChannel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |