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

#include <ScalarSignalAnalogModel.h>

Inheritance diagram for inet::physicallayer::ScalarSignalAnalogModel:
inet::physicallayer::NarrowbandSignalAnalogModel inet::physicallayer::IScalarSignal inet::physicallayer::SignalAnalogModel inet::physicallayer::INarrowbandSignal inet::physicallayer::ISignalAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::ScalarReceptionSignalAnalogModel inet::physicallayer::ScalarTransmissionSignalAnalogModel

Public Member Functions

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

Protected Attributes

const W power
 
- Protected Attributes inherited from inet::physicallayer::NarrowbandSignalAnalogModel
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::ScalarSignalAnalogModel::ScalarSignalAnalogModel ( const simtime_t  duration,
Hz  carrierFrequency,
Hz  bandwidth,
W  power 
)
24  :
26  power(power)
27 {
28 }
const Hz carrierFrequency
Definition: SignalAnalogModel.h:44
const simtime_t duration
Definition: SignalAnalogModel.h:31
NarrowbandSignalAnalogModel(const simtime_t duration, Hz carrierFrequency, Hz bandwidth)
Definition: SignalAnalogModel.cc:36
const W power
Definition: ScalarSignalAnalogModel.h:30
const Hz bandwidth
Definition: SignalAnalogModel.h:45

Member Function Documentation

virtual W inet::physicallayer::ScalarSignalAnalogModel::computeMinPower ( simtime_t  startTime,
simtime_t  endTime 
) const
inlineoverridevirtual

Implements inet::physicallayer::INarrowbandSignal.

38 { return power; }
const W power
Definition: ScalarSignalAnalogModel.h:30
virtual W inet::physicallayer::ScalarSignalAnalogModel::getPower ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IScalarSignal.

37 { return power; }
const W power
Definition: ScalarSignalAnalogModel.h:30
std::ostream & inet::physicallayer::ScalarSignalAnalogModel::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::NarrowbandSignalAnalogModel.

31 {
32  stream << "ScalarSignalAnalogModel";
33  if (level <= PRINT_LEVEL_DETAIL)
34  stream << ", power = " << power;
35  return NarrowbandSignalAnalogModel::printToStream(stream, level);
36 }
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: SignalAnalogModel.cc:43
const W power
Definition: ScalarSignalAnalogModel.h:30

Member Data Documentation

const W inet::physicallayer::ScalarSignalAnalogModel::power
protected

Referenced by printToStream().


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