|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #include <ns3/double.h>
39 .SetGroupName (
"Antenna")
46 : m_verticalBeamwidthDegrees {65},
47 m_horizontalBeamwidthDegrees {65},
101 NS_ASSERT_MSG (-180.0 <= phiDeg && phiDeg <= 180.0,
"Out of boundaries: phiDeg=" << phiDeg);
102 NS_ASSERT_MSG (0.0 <= thetaDeg && thetaDeg <= 180.0,
"Out of boundaries: thetaDeg=" << thetaDeg);
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
ThreeGppAntennaModel(void)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
double GetMaxAttenuation() const
Get the naximum attenuation of the antenna element.
double GetInclination(void) const
Getter for inclination angle.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Antenna model based on a parabolic approximation of the main lobe radiation pattern.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
double m_verticalBeamwidthDegrees
beamwidth in the vertical direction (\theta_{3dB}) [deg]
virtual double GetGainDb(Angles a) override
this method is expected to be re-implemented by each antenna model
double m_horizontalBeamwidthDegrees
beamwidth in the horizontal direction (\phi_{3dB}) [deg]
double GetAntennaElementGain() const
Get the maximum directional gain of the antenna element.
interface for antenna radiation pattern models
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
double GetHorizontalBeamwidth() const
Get the horizontal beamwidth of the antenna element.
virtual ~ThreeGppAntennaModel(void) override
double RadiansToDegrees(double radians)
converts radians to degrees
double GetVerticalBeamwidth() const
Get the vertical beamwidth of the antenna element.
Class holding the azimuth and inclination angles of spherical coordinates.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
double GetAzimuth(void) const
Getter for azimuth angle.
static TypeId GetTypeId()
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
double m_slaV
side-lobe attenuation in the vertical direction (SLA_V) [dB]
double GetSlaV() const
Get the side-lobe attenuation in the vertical direction of the antenna element.
double m_geMax
maximum directional gain of the antenna element (G_{E,max}) [dBi]
double m_aMax
maximum attenuation (A_{max}) [dB]