A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
isotropic-antenna-model.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 CTTC
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Nicola Baldo <nbaldo@cttc.es>
7 */
8
10
11#include "antenna-model.h"
12
13#include <ns3/double.h>
14#include <ns3/log.h>
15
16namespace ns3
17{
18
19NS_LOG_COMPONENT_DEFINE("IsotropicAntennaModel");
20
21NS_OBJECT_ENSURE_REGISTERED(IsotropicAntennaModel);
22
23TypeId
25{
26 static TypeId tid = TypeId("ns3::IsotropicAntennaModel")
28 .SetGroupName("Antenna")
29 .AddConstructor<IsotropicAntennaModel>()
30 .AddAttribute("Gain",
31 "The gain of the antenna in dB",
32 DoubleValue(0),
35 return tid;
36}
37
42
43double
49
50} // namespace ns3
Class holding the azimuth and inclination angles of spherical coordinates.
Definition angles.h:107
interface for antenna radiation pattern models
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition double.h:31
static TypeId GetTypeId()
Get the type ID.
double m_gainDb
gain of the antenna in dB, in all directions
double GetGainDb(Angles a) override
this method is expected to be re-implemented by each antenna model
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
Ptr< const AttributeChecker > MakeDoubleChecker()
Definition double.h:82
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition double.h:32
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#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.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.