A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
16
namespace
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
*/
26
class
IsotropicAntennaModel
:
public
AntennaModel
27
{
28
public
:
29
IsotropicAntennaModel
();
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
antenna-model.h
ns3::Angles
Class holding the azimuth and inclination angles of spherical coordinates.
Definition
angles.h:107
ns3::AntennaModel
interface for antenna radiation pattern models
Definition
antenna-model.h:44
ns3::IsotropicAntennaModel
Isotropic antenna model.
Definition
isotropic-antenna-model.h:27
ns3::IsotropicAntennaModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
isotropic-antenna-model.cc:24
ns3::IsotropicAntennaModel::m_gainDb
double m_gainDb
gain of the antenna in dB, in all directions
Definition
isotropic-antenna-model.h:45
ns3::IsotropicAntennaModel::IsotropicAntennaModel
IsotropicAntennaModel()
Definition
isotropic-antenna-model.cc:38
ns3::IsotropicAntennaModel::GetGainDb
double GetGainDb(Angles a) override
this method is expected to be re-implemented by each antenna model
Definition
isotropic-antenna-model.cc:44
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
antenna
model
isotropic-antenna-model.h
Generated on Fri Nov 8 2024 13:58:58 for ns-3 by
1.11.0