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

#include <SignalAnalogModel.h>

Inheritance diagram for inet::physicallayer::NarrowbandSignalAnalogModel:
inet::physicallayer::SignalAnalogModel inet::physicallayer::INarrowbandSignal inet::physicallayer::ISignalAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::DimensionalSignalAnalogModel inet::physicallayer::ScalarSignalAnalogModel inet::physicallayer::DimensionalReceptionSignalAnalogModel inet::physicallayer::DimensionalTransmissionSignalAnalogModel inet::physicallayer::ScalarReceptionSignalAnalogModel inet::physicallayer::ScalarTransmissionSignalAnalogModel

Public Member Functions

 NarrowbandSignalAnalogModel (const simtime_t duration, Hz carrierFrequency, Hz bandwidth)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual Hz getCarrierFrequency () const override
 
virtual Hz getBandwidth () const override
 
- Public Member Functions inherited from inet::physicallayer::SignalAnalogModel
 SignalAnalogModel (const simtime_t duration)
 
virtual const simtime_t getDuration () const override
 
- 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
 
- Public Member Functions inherited from inet::physicallayer::INarrowbandSignal
virtual W computeMinPower (simtime_t startTime, simtime_t endTime) const =0
 

Protected Attributes

const Hz carrierFrequency
 
const Hz bandwidth
 
- Protected Attributes inherited from inet::physicallayer::SignalAnalogModel
const simtime_t duration
 

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::NarrowbandSignalAnalogModel::NarrowbandSignalAnalogModel ( const simtime_t  duration,
Hz  carrierFrequency,
Hz  bandwidth 
)
36  :
40 {
41 }
SignalAnalogModel(const simtime_t duration)
Definition: SignalAnalogModel.cc:24
const Hz carrierFrequency
Definition: SignalAnalogModel.h:44
const simtime_t duration
Definition: SignalAnalogModel.h:31
const Hz bandwidth
Definition: SignalAnalogModel.h:45

Member Function Documentation

virtual Hz inet::physicallayer::NarrowbandSignalAnalogModel::getCarrierFrequency ( ) const
inlineoverridevirtual

Implements inet::physicallayer::INarrowbandSignal.

52 { return carrierFrequency; }
const Hz carrierFrequency
Definition: SignalAnalogModel.h:44
std::ostream & inet::physicallayer::NarrowbandSignalAnalogModel::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::SignalAnalogModel.

Reimplemented in inet::physicallayer::DimensionalSignalAnalogModel, and inet::physicallayer::ScalarSignalAnalogModel.

Referenced by inet::physicallayer::ScalarSignalAnalogModel::printToStream(), and inet::physicallayer::DimensionalSignalAnalogModel::printToStream().

44 {
45  if (level <= PRINT_LEVEL_DEBUG)
46  stream << ", carrierFrequency = " << carrierFrequency;
47  if (level <= PRINT_LEVEL_TRACE)
48  stream << ", bandwidth = " << bandwidth;
49  return stream;
50 }
const Hz carrierFrequency
Definition: SignalAnalogModel.h:44
const Hz bandwidth
Definition: SignalAnalogModel.h:45

Member Data Documentation

const Hz inet::physicallayer::NarrowbandSignalAnalogModel::bandwidth
protected
const Hz inet::physicallayer::NarrowbandSignalAnalogModel::carrierFrequency
protected

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