#include <CosineAntenna.h>
inet::physicallayer::CosineAntenna::CosineAntenna |
( |
| ) |
|
AntennaBase()
Definition: AntennaBase.cc:25
degree beamWidth
Definition: CosineAntenna.h:31
double maxGain
Definition: CosineAntenna.h:30
#define NaN
Definition: INETMath.h:103
double inet::physicallayer::CosineAntenna::computeGain |
( |
const EulerAngles |
direction | ) |
const |
|
overridevirtual |
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.
degree beamWidth
Definition: CosineAntenna.h:31
Value cos(const value< Value, Unit > &angle)
Definition: Units.h:1201
const value_type & get() const
Definition: Units.h:89
double maxGain
Definition: CosineAntenna.h:30
double deg2rad(double deg)
Convert a degree value to radian.
Definition: INETMath.h:186
virtual double inet::physicallayer::CosineAntenna::getMaxGain |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the maximum possible antenna gain independent of any direction.
Implements inet::physicallayer::IAntenna.
double maxGain
Definition: CosineAntenna.h:30
void inet::physicallayer::CosineAntenna::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::physicallayer::AntennaBase.
degree beamWidth
Definition: CosineAntenna.h:31
scale< rad, 180000000, 3141593 > degree
Definition: Units.h:974
double maxGain
Definition: CosineAntenna.h:30
double dB2fraction(double dB)
Converts a dB value to fraction.
Definition: INETMath.h:166
Local initializations.
Definition: InitStages.h:35
virtual void initialize(int stage) override
Definition: AntennaBase.cc:31
std::ostream & inet::physicallayer::CosineAntenna::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.
44 stream <<
"CosineAntenna";
46 stream <<
", maxGain = " <<
maxGain degree beamWidth
Definition: CosineAntenna.h:31
double maxGain
Definition: CosineAntenna.h:30
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: AntennaBase.cc:39
Definition: IPrintableObject.h:36
degree inet::physicallayer::CosineAntenna::beamWidth |
|
protected |
double inet::physicallayer::CosineAntenna::maxGain |
|
protected |
The documentation for this class was generated from the following files: