A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
isotropic-antenna-model.h
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
9#ifndef ISOTROPIC_ANTENNA_MODEL_H
10#define ISOTROPIC_ANTENNA_MODEL_H
11
12#include "antenna-model.h"
13
14#include <ns3/object.h>
15
16namespace ns3
17{
18
19/**
20 * \ingroup antenna
21 *
22 * \brief Isotropic antenna model
23 *
24 * This is the simplest antenna model. The gain of this antenna is the same in all directions.
25 */
27{
28 public:
30
31 /**
32 * \brief Get the type ID.
33 * \return The object TypeId.
34 */
35 static TypeId GetTypeId();
36
37 // inherited from AntennaModel
38 double GetGainDb(Angles a) override;
39
40 protected:
41 /**
42 * gain of the antenna in dB, in all directions
43 *
44 */
45 double m_gainDb;
46};
47
48} // namespace ns3
49
50#endif // ISOTROPIC_ANTENNA_MODEL_H
Class holding the azimuth and inclination angles of spherical coordinates.
Definition angles.h:107
interface for antenna radiation pattern models
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
Every class exported by the ns3 library is enclosed in the ns3 namespace.