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
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
9
#include "
antenna-model.h
"
10
11
#include <ns3/log.h>
12
13
#include <cmath>
14
15
namespace
ns3
16
{
17
18
NS_LOG_COMPONENT_DEFINE
(
"AntennaModel"
);
19
20
NS_OBJECT_ENSURE_REGISTERED
(AntennaModel);
21
22
AntennaModel::AntennaModel
()
23
{
24
}
25
26
AntennaModel::~AntennaModel
()
27
{
28
}
29
30
TypeId
31
AntennaModel::GetTypeId
()
32
{
33
static
TypeId
tid =
TypeId
(
"ns3::AntennaModel"
).
SetParent
<
Object
>().SetGroupName(
"Antenna"
);
34
return
tid;
35
}
36
37
}
// namespace ns3
antenna-model.h
ns3::AntennaModel::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
antenna-model.cc:31
ns3::AntennaModel::~AntennaModel
~AntennaModel() override
Definition
antenna-model.cc:26
ns3::AntennaModel::AntennaModel
AntennaModel()
Definition
antenna-model.cc:22
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
antenna
model
antenna-model.cc
Generated on Fri Nov 8 2024 13:58:58 for ns-3 by
1.11.0