#include <IRadioModel.h>
Inheritance diagram for IRadioModel:
Public Member Functions | |
virtual void | initializeFrom (cModule *radioModule)=0 |
virtual | ~IRadioModel () |
virtual double | calculateDuration (AirFrame *)=0 |
virtual bool | isReceivedCorrectly (AirFrame *airframe, const SnrList &receivedList)=0 |
|
Virtual destructor. 00043 {}
|
|
Should be defined to calculate the duration of the AirFrame. Usually the duration is just the frame length divided by the bitrate. However, in some cases, notably IEEE 802.11, the header has a different modulation (and thus a different bitrate) than the rest of the message. Implemented in GenericRadioModel, and Ieee80211RadioModel. |
|
Allows parameters to be read from the module parameters of a module that contains this object. Implemented in GenericRadioModel, and Ieee80211RadioModel. |
|
Should be defined to calculate whether the frame has been received correctly. Input is the signal-noise ratio over the duration of the frame. The calculation may take into account the modulation scheme, possible error correction code, etc. Implemented in GenericRadioModel, and Ieee80211RadioModel. |