INET Framework for OMNeT++/OMNEST
inet::physicallayer::NarrowbandNoiseBase Class Referenceabstract

#include <NarrowbandNoiseBase.h>

Inheritance diagram for inet::physicallayer::NarrowbandNoiseBase:
inet::physicallayer::NoiseBase inet::physicallayer::INoise inet::IPrintableObject inet::physicallayer::DimensionalNoise inet::physicallayer::ScalarNoise

Public Member Functions

 NarrowbandNoiseBase (simtime_t startTime, simtime_t endTime, Hz centerFrequency, Hz bandwidth)
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual Hz getCenterFrequency () const
 
virtual Hz getBandwidth () const
 
virtual W computeMinPower (simtime_t startTime, simtime_t endTime) const =0
 
virtual W computeMaxPower (simtime_t startTime, simtime_t endTime) const =0
 
- Public Member Functions inherited from inet::physicallayer::NoiseBase
 NoiseBase (simtime_t startTime, simtime_t endTime)
 
virtual const simtime_t getStartTime () const override
 
virtual const simtime_t getEndTime () const override
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Attributes

const Hz centerFrequency
 
const Hz bandwidth
 
- Protected Attributes inherited from inet::physicallayer::NoiseBase
const simtime_t startTime
 
const simtime_t endTime
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 

Constructor & Destructor Documentation

◆ NarrowbandNoiseBase()

inet::physicallayer::NarrowbandNoiseBase::NarrowbandNoiseBase ( simtime_t  startTime,
simtime_t  endTime,
Hz  centerFrequency,
Hz  bandwidth 
)

Member Function Documentation

◆ computeMaxPower()

◆ computeMinPower()

virtual W inet::physicallayer::NarrowbandNoiseBase::computeMinPower ( simtime_t  startTime,
simtime_t  endTime 
) const
pure virtual

◆ getBandwidth()

virtual Hz inet::physicallayer::NarrowbandNoiseBase::getBandwidth ( ) const
inlinevirtual

◆ getCenterFrequency()

virtual Hz inet::physicallayer::NarrowbandNoiseBase::getCenterFrequency ( ) const
inlinevirtual

◆ printToStream()

std::ostream & inet::physicallayer::NarrowbandNoiseBase::printToStream ( std::ostream &  stream,
int  level,
int  evFlags = 0 
) const
overridevirtual

Prints this object to the provided output stream.

Reimplemented from inet::physicallayer::NoiseBase.

Reimplemented in inet::physicallayer::DimensionalNoise, and inet::physicallayer::ScalarNoise.

22 {
23  if (level <= PRINT_LEVEL_TRACE)
24  stream << EV_FIELD(centerFrequency)
25  << EV_FIELD(bandwidth);
26  return NoiseBase::printToStream(stream, level);
27 }

Referenced by inet::physicallayer::ScalarNoise::printToStream(), and inet::physicallayer::DimensionalNoise::printToStream().

Member Data Documentation

◆ bandwidth

const Hz inet::physicallayer::NarrowbandNoiseBase::bandwidth
protected

Referenced by printToStream().

◆ centerFrequency

const Hz inet::physicallayer::NarrowbandNoiseBase::centerFrequency
protected

Referenced by printToStream().


The documentation for this class was generated from the following files:
inet::physicallayer::NoiseBase::startTime
const simtime_t startTime
Definition: NoiseBase.h:20
inet::physicallayer::NarrowbandNoiseBase::centerFrequency
const Hz centerFrequency
Definition: NarrowbandNoiseBase.h:23
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::IPrintableObject::PRINT_LEVEL_TRACE
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
inet::physicallayer::NoiseBase::printToStream
virtual std::ostream & printToStream(std::ostream &stream, int level, int evFlags=0) const override
Prints this object to the provided output stream.
Definition: NoiseBase.cc:20
inet::physicallayer::NoiseBase::endTime
const simtime_t endTime
Definition: NoiseBase.h:21
inet::physicallayer::NoiseBase::NoiseBase
NoiseBase(simtime_t startTime, simtime_t endTime)
Definition: NoiseBase.cc:14
inet::physicallayer::NarrowbandNoiseBase::bandwidth
const Hz bandwidth
Definition: NarrowbandNoiseBase.h:24