INET Framework for OMNeT++/OMNEST
inet::physicallayer::Ieee80211OFDMModulation Class Reference

#include <Ieee80211OFDMModulation.h>

Inheritance diagram for inet::physicallayer::Ieee80211OFDMModulation:
inet::physicallayer::IModulation inet::physicallayer::IPrintableObject

Public Member Functions

 Ieee80211OFDMModulation (const APSKModulationBase *subcarrierModulation)
 
const APSKModulationBasegetSubcarrierModulation () const
 
virtual double calculateBER (double snir, Hz bandwidth, bps bitrate) const override
 Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
 
virtual double calculateSER (double snir, Hz bandwidth, bps bitrate) const override
 Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string getInfoStringRepresentation () const
 
virtual std::string getDetailStringRepresentation () const
 
virtual std::string getDebugStringRepresentation () const
 
virtual std::string getTraceStringRepresentation () const
 
virtual std::string getCompleteStringRepresentation () const
 

Protected Attributes

const APSKModulationBasesubcarrierModulation
 

Additional Inherited Members

- Public Types inherited from inet::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::Ieee80211OFDMModulation::Ieee80211OFDMModulation ( const APSKModulationBase subcarrierModulation)
28  :
30 {
31 }
const APSKModulationBase * subcarrierModulation
Definition: Ieee80211OFDMModulation.h:29

Member Function Documentation

virtual double inet::physicallayer::Ieee80211OFDMModulation::calculateBER ( double  snir,
Hz  bandwidth,
bps  bitrate 
) const
inlineoverridevirtual

Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.

Implements inet::physicallayer::IModulation.

35 { return subcarrierModulation->calculateBER(snir, bandwidth, bitrate); }
virtual double calculateBER(double snir, Hz bandwidth, bps bitrate) const =0
Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.
const APSKModulationBase * subcarrierModulation
Definition: Ieee80211OFDMModulation.h:29
virtual double inet::physicallayer::Ieee80211OFDMModulation::calculateSER ( double  snir,
Hz  bandwidth,
bps  bitrate 
) const
inlineoverridevirtual

Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.

Implements inet::physicallayer::IModulation.

36 { return subcarrierModulation->calculateSER(snir, bandwidth, bitrate); }
virtual double calculateSER(double snir, Hz bandwidth, bps bitrate) const =0
Returns the symbol error rate as a function of the signal to noise and interference ratio...
const APSKModulationBase * subcarrierModulation
Definition: Ieee80211OFDMModulation.h:29
std::ostream & inet::physicallayer::Ieee80211OFDMModulation::printToStream ( std::ostream &  stream,
int  level 
) const
overridevirtual

Prints this object to the provided output stream.

Function calls to operator<< with pointers or references either const or not are all forwarded to this function.

Reimplemented from inet::physicallayer::IPrintableObject.

34 {
35  stream << "Ieee80211OFDMModulation";
36  if (level <= PRINT_LEVEL_TRACE)
37  stream << ", subcarrierModulation = " << printObjectToString(subcarrierModulation, level + 1);
38  return stream;
39 }
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const APSKModulationBase * subcarrierModulation
Definition: Ieee80211OFDMModulation.h:29

Member Data Documentation

const APSKModulationBase* inet::physicallayer::Ieee80211OFDMModulation::subcarrierModulation
protected

Referenced by printToStream().


The documentation for this class was generated from the following files: