|
||||||||||
| 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 | |
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. |
| 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||