IRadioModel Class Reference

#include <IRadioModel.h>

Inheritance diagram for IRadioModel:

GenericRadioModel Ieee80211RadioModel List of all members.

Detailed Description

Abstract class to encapsulate the calculation of received power of a radio transmission. The calculation may include the effects of path loss, antenna gain, etc.


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


Constructor & Destructor Documentation

virtual IRadioModel::~IRadioModel (  )  [inline, virtual]

Virtual destructor.

00043 {}


Member Function Documentation

virtual double IRadioModel::calculateDuration ( AirFrame  )  [pure virtual]

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.

virtual void IRadioModel::initializeFrom ( cModule *  radioModule  )  [pure virtual]

Allows parameters to be read from the module parameters of a module that contains this object.

Implemented in GenericRadioModel, and Ieee80211RadioModel.

virtual bool IRadioModel::isReceivedCorrectly ( AirFrame airframe,
const SnrList receivedList 
) [pure virtual]

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.


The documentation for this class was generated from the following file:
Generated on Wed Apr 4 13:20:22 2007 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.7