#include <ConstantGainAntenna.h>
inet::physicallayer::ConstantGainAntenna::ConstantGainAntenna |
( |
| ) |
|
AntennaBase()
Definition: AntennaBase.cc:25
#define NaN
Definition: INETMath.h:103
double gain
Definition: ConstantGainAntenna.h:30
virtual double inet::physicallayer::ConstantGainAntenna::computeGain |
( |
const EulerAngles |
direction | ) |
const |
|
inlineoverridevirtual |
Returns the antenna gain in the provided direction.
The direction is relative to the antenna geometry, so the result depends only on the antenna characteristics. For transmissions, it determines how well the antenna converts input power into radio waves headed in the specified direction. For receptions, it determines how well the antenna converts radio waves arriving from the the specified direction.
Implements inet::physicallayer::IAntenna.
double gain
Definition: ConstantGainAntenna.h:30
virtual double inet::physicallayer::ConstantGainAntenna::getMaxGain |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the maximum possible antenna gain independent of any direction.
Implements inet::physicallayer::IAntenna.
double gain
Definition: ConstantGainAntenna.h:30
void inet::physicallayer::ConstantGainAntenna::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::physicallayer::AntennaBase.
double dB2fraction(double dB)
Converts a dB value to fraction.
Definition: INETMath.h:166
Local initializations.
Definition: InitStages.h:35
double gain
Definition: ConstantGainAntenna.h:30
virtual void initialize(int stage) override
Definition: AntennaBase.cc:31
std::ostream & inet::physicallayer::ConstantGainAntenna::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::AntennaBase.
41 stream <<
"ConstantGainAntenna";
43 stream <<
", gain = " <<
gain;
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: AntennaBase.cc:39
double gain
Definition: ConstantGainAntenna.h:30
Definition: IPrintableObject.h:36
double inet::physicallayer::ConstantGainAntenna::gain |
|
protected |
The documentation for this class was generated from the following files: