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

#include <NarrowbandTransmitterBase.h>

Inheritance diagram for inet::physicallayer::NarrowbandTransmitterBase:
inet::physicallayer::TransmitterBase inet::physicallayer::ITransmitter inet::physicallayer::IPrintableObject inet::physicallayer::FlatTransmitterBase inet::physicallayer::APSKDimensionalTransmitter inet::physicallayer::APSKScalarTransmitter inet::physicallayer::Ieee80211TransmitterBase inet::physicallayer::Ieee802154NarrowbandScalarTransmitter inet::physicallayer::Ieee80211DimensionalTransmitter inet::physicallayer::Ieee80211IdealTransmitter inet::physicallayer::Ieee80211ScalarTransmitter

Public Member Functions

 NarrowbandTransmitterBase ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const IModulationgetModulation () const
 
virtual void setModulation (const IModulation *modulation)
 
virtual Hz getCarrierFrequency () const
 
virtual void setCarrierFrequency (Hz carrierFrequency)
 
virtual Hz getBandwidth () const
 
virtual void setBandwidth (Hz bandwidth)
 
- Public Member Functions inherited from inet::physicallayer::TransmitterBase
virtual W getMaxPower () const override
 Returns the maximum transmission power above which no transmission is ever transmitted. More...
 
virtual m getMaxCommunicationRange () const override
 Returns the maximum transmission range. More...
 
virtual m getMaxInterferenceRange () const override
 Returns the maximum interference range. More...
 
- Public Member Functions inherited from inet::physicallayer::ITransmitter
virtual const ITransmissioncreateTransmission (const IRadio *transmitter, const cPacket *macFrame, const simtime_t startTime) const =0
 Returns a transmission which describes the radio signal corresponding to the provided mac frame. More...
 
- 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
 

Protected Member Functions

virtual void initialize (int stage) override
 
- Protected Member Functions inherited from inet::physicallayer::TransmitterBase
virtual int numInitStages () const override
 

Protected Attributes

const IModulationmodulation
 
Hz carrierFrequency
 
Hz bandwidth
 

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::NarrowbandTransmitterBase::NarrowbandTransmitterBase ( )
25  :
26  modulation(nullptr),
28  bandwidth(Hz(NaN))
29 {
30 }
Hz bandwidth
Definition: NarrowbandTransmitterBase.h:33
pow< s,-1 > Hz
Definition: Units.h:766
Hz carrierFrequency
Definition: NarrowbandTransmitterBase.h:32
#define NaN
Definition: INETMath.h:103
const IModulation * modulation
Definition: NarrowbandTransmitterBase.h:31

Member Function Documentation

virtual Hz inet::physicallayer::NarrowbandTransmitterBase::getBandwidth ( ) const
inlinevirtual
49 { return bandwidth; }
Hz bandwidth
Definition: NarrowbandTransmitterBase.h:33
virtual Hz inet::physicallayer::NarrowbandTransmitterBase::getCarrierFrequency ( ) const
inlinevirtual
46 { return carrierFrequency; }
Hz carrierFrequency
Definition: NarrowbandTransmitterBase.h:32
virtual const IModulation* inet::physicallayer::NarrowbandTransmitterBase::getModulation ( ) const
inlinevirtual
43 { return modulation; }
const IModulation * modulation
Definition: NarrowbandTransmitterBase.h:31
void inet::physicallayer::NarrowbandTransmitterBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented in inet::physicallayer::Ieee80211TransmitterBase, inet::physicallayer::FlatTransmitterBase, inet::physicallayer::Ieee80211IdealTransmitter, inet::physicallayer::Ieee80211DimensionalTransmitter, and inet::physicallayer::APSKDimensionalTransmitter.

Referenced by inet::physicallayer::FlatTransmitterBase::initialize().

33 {
34  TransmitterBase::initialize(stage);
35  if (stage == INITSTAGE_LOCAL) {
37  carrierFrequency = Hz(par("carrierFrequency"));
38  bandwidth = Hz(par("bandwidth"));
39  }
40 }
Hz bandwidth
Definition: NarrowbandTransmitterBase.h:33
pow< s,-1 > Hz
Definition: Units.h:766
Hz carrierFrequency
Definition: NarrowbandTransmitterBase.h:32
static const APSKModulationBase * findModulation(const char *name)
Definition: APSKModulationBase.cc:47
Local initializations.
Definition: InitStages.h:35
const IModulation * modulation
Definition: NarrowbandTransmitterBase.h:31
std::ostream & inet::physicallayer::NarrowbandTransmitterBase::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::IPrintableObject.

Reimplemented in inet::physicallayer::Ieee80211TransmitterBase, inet::physicallayer::FlatTransmitterBase, inet::physicallayer::Ieee80211IdealTransmitter, inet::physicallayer::Ieee80211DimensionalTransmitter, inet::physicallayer::APSKDimensionalTransmitter, inet::physicallayer::Ieee802154NarrowbandScalarTransmitter, inet::physicallayer::APSKScalarTransmitter, and inet::physicallayer::Ieee80211ScalarTransmitter.

Referenced by inet::physicallayer::FlatTransmitterBase::printToStream().

43 {
44  if (level <= PRINT_LEVEL_TRACE)
45  stream << ", modulation = " << printObjectToString(modulation, level + 1)
46  << ", carrierFrequency = " << carrierFrequency
47  << ", bandwidth = " << bandwidth;
48  return stream;
49 }
Hz bandwidth
Definition: NarrowbandTransmitterBase.h:33
Hz carrierFrequency
Definition: NarrowbandTransmitterBase.h:32
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const IModulation * modulation
Definition: NarrowbandTransmitterBase.h:31
virtual void inet::physicallayer::NarrowbandTransmitterBase::setBandwidth ( Hz  bandwidth)
inlinevirtual

Referenced by inet::physicallayer::NarrowbandRadioBase::setBandwidth().

50 { this->bandwidth = bandwidth; }
Hz bandwidth
Definition: NarrowbandTransmitterBase.h:33
virtual void inet::physicallayer::NarrowbandTransmitterBase::setCarrierFrequency ( Hz  carrierFrequency)
inlinevirtual
virtual void inet::physicallayer::NarrowbandTransmitterBase::setModulation ( const IModulation modulation)
inlinevirtual

Referenced by inet::physicallayer::NarrowbandRadioBase::setModulation().

44 { this->modulation = modulation; }
const IModulation * modulation
Definition: NarrowbandTransmitterBase.h:31

Member Data Documentation


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