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

#include <Ieee80211IRMode.h>

Inheritance diagram for inet::physicallayer::Ieee80211IrDataMode:
inet::physicallayer::IIeee80211DataMode inet::physicallayer::IPrintableObject

Public Member Functions

 Ieee80211IrDataMode (const PPMModulationBase *modulation)
 
virtual bps getNetBitrate () const override
 
virtual bps getGrossBitrate () const override
 
virtual int getBitLength (int dataBitLength) const override
 
virtual const simtime_t getDuration (int bitLength) const override
 
virtual const PPMModulationBasegetModulation () const override
 
virtual int getNumberOfSpatialStreams () const override
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const
 Prints this object to the provided output stream. More...
 
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 PPMModulationBasemodulation
 

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::Ieee80211IrDataMode::Ieee80211IrDataMode ( const PPMModulationBase modulation)
36  :
38 {
39 }
const PPMModulationBase * modulation
Definition: Ieee80211IRMode.h:69

Member Function Documentation

virtual int inet::physicallayer::Ieee80211IrDataMode::getBitLength ( int  dataBitLength) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

76 { return dataBitLength; }
virtual const simtime_t inet::physicallayer::Ieee80211IrDataMode::getDuration ( int  bitLength) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

Referenced by inet::physicallayer::Ieee80211IrMode::getDuration().

77 { return bitLength / getGrossBitrate().get(); }
virtual bps getGrossBitrate() const override
Definition: Ieee80211IRMode.h:75
const value_type & get() const
Definition: Units.h:89
virtual bps inet::physicallayer::Ieee80211IrDataMode::getGrossBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

75 { return getNetBitrate(); }
virtual bps getNetBitrate() const override
Definition: Ieee80211IRMode.h:74
virtual const PPMModulationBase* inet::physicallayer::Ieee80211IrDataMode::getModulation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

78 { return modulation; }
const PPMModulationBase * modulation
Definition: Ieee80211IRMode.h:69
virtual bps inet::physicallayer::Ieee80211IrDataMode::getNetBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

74 { return Mbps(1) * modulation->getConstellationSize() / 2; }
scale< bps, 1, 1000000 > Mbps
Definition: Units.h:987
unsigned int getConstellationSize() const
Definition: PPMModulationBase.h:38
const PPMModulationBase * modulation
Definition: Ieee80211IRMode.h:69
virtual int inet::physicallayer::Ieee80211IrDataMode::getNumberOfSpatialStreams ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

79 { return 1; }

Member Data Documentation

const PPMModulationBase* inet::physicallayer::Ieee80211IrDataMode::modulation
protected

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