24#include <ns3/double.h>
40 TypeId(
"ns3::ParabolicAntennaModel")
42 .SetGroupName(
"Antenna")
44 .AddAttribute(
"Beamwidth",
45 "The 3dB beamwidth (degrees)",
49 MakeDoubleChecker<double>(0, 180))
50 .AddAttribute(
"Orientation",
51 "The angle (degrees) that expresses the orientation of the antenna on "
52 "the x-y plane relative to the x axis",
56 MakeDoubleChecker<double>(-360, 360))
57 .AddAttribute(
"MaxAttenuation",
58 "The maximum attenuation (dB) of the antenna radiation pattern.",
61 MakeDoubleChecker<double>());
Class holding the azimuth and inclination angles of spherical coordinates.
double GetAzimuth() const
Getter for azimuth angle.
interface for antenna radiation pattern models
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Antenna model based on a parabolic approximation of the main lobe radiation pattern.
static TypeId GetTypeId()
Get the type ID.
void SetBeamwidth(double beamwidthDegrees)
Set the Beam width.
double GetGainDb(Angles a) override
this method is expected to be re-implemented by each antenna model
double GetBeamwidth() const
Get the Beam width.
double m_orientationRadians
Antenna orientation in radians.
double GetOrientation() const
Get the antenna orientation.
double m_maxAttenuation
Max attenuation.
void SetOrientation(double orientationDegrees)
Set the antenna orientation.
double m_beamwidthRadians
Beam width in radians.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double DegreesToRadians(double degrees)
converts degrees to radians
double RadiansToDegrees(double radians)
converts radians to degrees