#include <SingleChannelRadio.h>
Inherits BasicModule.
Inheritance diagram for SingleChannelRadio:


Public Member Functions | |
| virtual void | initialize (int) |
| Initialization of the module and some variables. | |
| virtual void | finish () |
| virtual void | handleMessage (cMessage *) |
| should not be called, instead direct calls to the radio methods should be used. | |
| bool | switchToSleep () |
| bool | switchToSend () |
| bool | switchToRecv () |
| bool | setActiveChannel (int c) |
| change the active channel, never fails (returns true). | |
| bool | setBitrate (double b) |
| change the bit rate, never fails (returns true) | |
Protected Member Functions | |
| bool | switchTo (RadioState::States, simtime_t delta) |
Protected Attributes | |
| RadioState | state |
| hold radio state | |
| int | stateCat |
| channel radio category | |
| ActiveChannel | aChannel |
| holds active channel, default channel is set by MAC protocol | |
| int | aChannelCat |
| active channel category | |
| Bitrate | bitrate |
| current bit rate for this radio, default is set by MAC | |
| int | bitrateCat |
| current bit rate and the category number | |
| bool | handlingTimer |
| int | nicModuleId |
| simtime_t | swSleep |
| simtime_t | swSend |
| simtime_t | swRecv |
| cMessage * | timer |
Private Member Functions | |
| Module_Class_Members (SingleChannelRadio, BasicModule, 0) | |
|
||||||||||||
|
perform switch if possible |
|
|
Methods to control state of this radio returns whether state was actually changed |
|
|
semaphore to prevent changing of radio during a change |
|
|
id of the surrounding nic module |
|
|
variable that holds the time the radio needs to switch to a certain state |
|
|
variable that holds the time the radio needs to switch to a certain state |
|
|
variable that holds the time the radio needs to switch to a certain state |
|
|
variable that holds the time the radio needs to switch to a certain state |
1.4.4