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

#include <Ieee80211FHSSMode.h>

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

Public Member Functions

 Ieee80211FhssDataMode (const GFSKModulationBase *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 GFSKModulationBasegetModulation () 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 GFSKModulationBasemodulation
 

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::Ieee80211FhssDataMode::Ieee80211FhssDataMode ( const GFSKModulationBase modulation)
26  :
28 {
29 }
const GFSKModulationBase * modulation
Definition: Ieee80211FHSSMode.h:61

Member Function Documentation

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

Implements inet::physicallayer::IIeee80211DataMode.

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

Implements inet::physicallayer::IIeee80211DataMode.

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

69 { return bitLength / getNetBitrate().get(); }
virtual bps getNetBitrate() const override
Definition: Ieee80211FHSSMode.h:66
const value_type & get() const
Definition: Units.h:89
virtual bps inet::physicallayer::Ieee80211FhssDataMode::getGrossBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

67 { return getNetBitrate(); }
virtual bps getNetBitrate() const override
Definition: Ieee80211FHSSMode.h:66
virtual const GFSKModulationBase* inet::physicallayer::Ieee80211FhssDataMode::getModulation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

70 { return modulation; }
const GFSKModulationBase * modulation
Definition: Ieee80211FHSSMode.h:61
virtual bps inet::physicallayer::Ieee80211FhssDataMode::getNetBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

66 { return Mbps(1) * modulation->getConstellationSize() / 2; }
scale< bps, 1, 1000000 > Mbps
Definition: Units.h:987
unsigned int getConstellationSize() const
Definition: GFSKModulationBase.h:38
const GFSKModulationBase * modulation
Definition: Ieee80211FHSSMode.h:61
virtual int inet::physicallayer::Ieee80211FhssDataMode::getNumberOfSpatialStreams ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

71 { return 1; }

Member Data Documentation

const GFSKModulationBase* inet::physicallayer::Ieee80211FhssDataMode::modulation
protected

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