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

#include <Ieee80211HRDSSSMode.h>

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

Public Member Functions

 Ieee80211HrDsssDataMode (bps bitrate)
 
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 IModulationgetModulation () 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 bps bitrate
 

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::Ieee80211HrDsssDataMode::Ieee80211HrDsssDataMode ( bps  bitrate)
34  :
36 {
37 }
const bps bitrate
Definition: Ieee80211HRDSSSMode.h:77

Member Function Documentation

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

Implements inet::physicallayer::IIeee80211DataMode.

84 { return dataBitLength; }
const simtime_t inet::physicallayer::Ieee80211HrDsssDataMode::getDuration ( int  bitLength) const
overridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

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

40 {
41  return (simtime_t)(lrint(ceil(bitLength / bitrate.get() * 1E+6))) / 1E+6;
42 }
const value_type & get() const
Definition: Units.h:89
const bps bitrate
Definition: Ieee80211HRDSSSMode.h:77
virtual bps inet::physicallayer::Ieee80211HrDsssDataMode::getGrossBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

83 { return bitrate; }
const bps bitrate
Definition: Ieee80211HRDSSSMode.h:77
virtual IModulation* inet::physicallayer::Ieee80211HrDsssDataMode::getModulation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

86 { return nullptr; } // TODO:
virtual bps inet::physicallayer::Ieee80211HrDsssDataMode::getNetBitrate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

82 { return bitrate; }
const bps bitrate
Definition: Ieee80211HRDSSSMode.h:77
virtual int inet::physicallayer::Ieee80211HrDsssDataMode::getNumberOfSpatialStreams ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IIeee80211DataMode.

87 { return 1; }

Member Data Documentation

const bps inet::physicallayer::Ieee80211HrDsssDataMode::bitrate
protected

Referenced by getDuration().


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