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

#include <DigitalAnalogConverter.h>

Inheritance diagram for inet::physicallayer::ScalarDigitalAnalogConverter:
inet::physicallayer::IDigitalAnalogConverter inet::physicallayer::IPrintableObject

Public Member Functions

 ScalarDigitalAnalogConverter ()
 
virtual const ITransmissionAnalogModelconvertDigitalToAnalog (const ITransmissionSampleModel *sampleModel) 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

W power
 
Hz carrierFrequency
 
Hz bandwidth
 
double sampleRate
 

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::ScalarDigitalAnalogConverter::ScalarDigitalAnalogConverter ( )
24  :
25  power(W(NaN)),
27  bandwidth(Hz(NaN)),
29 {}
W power
Definition: DigitalAnalogConverter.h:33
pow< s,-1 > Hz
Definition: Units.h:766
double sampleRate
Definition: DigitalAnalogConverter.h:37
compose< J, pow< s,-1 > > W
Definition: Units.h:770
#define NaN
Definition: INETMath.h:103
Hz carrierFrequency
Definition: DigitalAnalogConverter.h:35
Hz bandwidth
Definition: DigitalAnalogConverter.h:36

Member Function Documentation

const ITransmissionAnalogModel * inet::physicallayer::ScalarDigitalAnalogConverter::convertDigitalToAnalog ( const ITransmissionSampleModel sampleModel) const
overridevirtual

Implements inet::physicallayer::IDigitalAnalogConverter.

32 {
33  const simtime_t duration = sampleModel->getSampleLength() / sampleModel->getSampleRate();
34  return new ScalarTransmissionSignalAnalogModel(duration, carrierFrequency, bandwidth, power);
35 }
W power
Definition: DigitalAnalogConverter.h:33
Hz carrierFrequency
Definition: DigitalAnalogConverter.h:35
Hz bandwidth
Definition: DigitalAnalogConverter.h:36

Member Data Documentation

Hz inet::physicallayer::ScalarDigitalAnalogConverter::bandwidth
protected

Referenced by convertDigitalToAnalog().

Hz inet::physicallayer::ScalarDigitalAnalogConverter::carrierFrequency
protected

Referenced by convertDigitalToAnalog().

W inet::physicallayer::ScalarDigitalAnalogConverter::power
protected

Referenced by convertDigitalToAnalog().

double inet::physicallayer::ScalarDigitalAnalogConverter::sampleRate
protected

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