11#include "ns3/double.h"
28 TypeId(
"ns3::ThreeGppAntennaModel")
30 .SetGroupName(
"Antenna")
34 "Radiation pattern of 3GPP antenna model",
142 NS_ASSERT_MSG(-180.0 <= phiDeg && phiDeg <= 180.0,
"Out of boundaries: phiDeg=" << phiDeg);
143 NS_ASSERT_MSG(0.0 <= thetaDeg && thetaDeg <= 180.0,
"Out of boundaries: thetaDeg=" << thetaDeg);
147 double vertGain = -std::min(
m_slaV,
150 double horizGain = -std::min(
m_aMax,
Class holding the azimuth and inclination angles of spherical coordinates.
double GetInclination() const
Getter for inclination angle.
double GetAzimuth() const
Getter for azimuth angle.
interface for antenna radiation pattern models
Hold variables of type enum.
Antenna model based on a parabolic approximation of the main lobe radiation pattern.
double m_geMax
maximum directional gain of the antenna element (G_{E,max}) [dBi]
double GetAntennaElementGain() const
Get the maximum directional gain of the antenna element.
RadiationPattern
The different antenna radiation patterns defined in ITU-R M.2412.
static TypeId GetTypeId()
Get the type ID.
~ThreeGppAntennaModel() override
RadiationPattern m_radiationPattern
current antenna radiation pattern
double m_horizontalBeamwidthDegrees
beamwidth in the horizontal direction [deg]
double GetVerticalBeamwidth() const
Get the vertical beamwidth of the antenna element.
void SetIndoorAntennaPattern()
Set the radiation pattern for Indoor Hotspot - eMBB, Table 8-7 in Report ITU-R M.2412.
double GetHorizontalBeamwidth() const
Get the horizontal beamwidth of the antenna element.
void SetRadiationPattern(RadiationPattern pattern)
Set the antenna radiation pattern.
double m_verticalBeamwidthDegrees
beamwidth in the vertical direction [deg]
double GetGainDb(Angles a) override
this method is expected to be re-implemented by each antenna model
void SetOutdoorAntennaPattern()
Set the radiation pattern Dense Urban – eMBB, Rural – eMBB, Urban Macro – mMTC, and Urban Macro - URL...
RadiationPattern GetRadiationPattern() const
Get the antenna radiation pattern.
double m_aMax
maximum attenuation (A_{max}) [dB]
void DoInitialize() override
Initialize() implementation.
double GetMaxAttenuation() const
Get the maximum attenuation of the antenna element.
double GetSlaV() const
Get the side-lobe attenuation in the vertical direction of the antenna element.
double m_slaV
side-lobe attenuation in the vertical direction (SLA_V) [dB]
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#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.
Ptr< const AttributeChecker > MakeEnumChecker(T v, std::string n, Ts... args)
Make an EnumChecker pre-configured with a set of allowed values by name.
double RadiansToDegrees(double radians)
converts radians to degrees