|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The Radio interface should be implemented by classes which would like to act as radios and
access an instance of the RadioAir interface.
| Nested Class Summary | |
static interface |
Radio.RadioController
A RadioController is an object installed into a Microcontroller. |
static class |
Radio.RadioPacket
A RadioPacket is an object describing the data transmitted over RadioAir over
some period of time. |
| Field Summary | |
static int |
TRANSFER_TIME
Time in ATMega128L cycles it takes for one byte to be sent over the air. |
| Method Summary | |
void |
activateLocalAir(Position pos)
activate local air, by setting params |
RadioAir |
getAir()
|
double |
getFrequency()
get the current frequency |
LocalAir |
getLocalAir()
get local air implementation |
int |
getPower()
get the transmission power |
Simulator |
getSimulator()
Get the Simulator on which this radio is running. |
SimulatorThread |
getSimulatorThread()
Get the SimulatorThread thread on which this radio is running. |
void |
receive(Radio.RadioPacket f)
Receive a frame from the air. |
void |
setSimulatorThread(SimulatorThread thread)
Set the SimulatorThread of this radio. |
void |
transmit(Radio.RadioPacket f)
Transmit a frame from the controller. |
| Methods inherited from interface avrora.monitors.Monitor |
report |
| Field Detail |
public static final int TRANSFER_TIME
| Method Detail |
public void receive(Radio.RadioPacket f)
RadioAir and pass data into the
RadioController.
public void transmit(Radio.RadioPacket f)
RadioController and
transmitted into the RadioAir.
public Simulator getSimulator()
Simulator on which this radio is running.
public SimulatorThread getSimulatorThread()
SimulatorThread thread on which this radio is running.
public void setSimulatorThread(SimulatorThread thread)
SimulatorThread of this radio.
public int getPower()
public double getFrequency()
public LocalAir getLocalAir()
public void activateLocalAir(Position pos)
pos - node positionpublic RadioAir getAir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||