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
spectrum-phy.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 CTTC
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
spectrum-phy.h
"
10
11
#include "
spectrum-channel.h
"
12
#include "
spectrum-value.h
"
13
14
#include <ns3/log.h>
15
#include <ns3/mobility-model.h>
16
#include <ns3/net-device.h>
17
18
namespace
ns3
19
{
20
21
NS_LOG_COMPONENT_DEFINE
(
"SpectrumPhy"
);
22
23
NS_OBJECT_ENSURE_REGISTERED
(SpectrumPhy);
24
25
TypeId
26
SpectrumPhy::GetTypeId
()
27
{
28
static
TypeId
tid =
TypeId
(
"ns3::SpectrumPhy"
).
SetParent
<
Object
>().SetGroupName(
"Spectrum"
);
29
return
tid;
30
}
31
32
SpectrumPhy::SpectrumPhy
()
33
{
34
NS_LOG_FUNCTION
(
this
);
35
}
36
37
SpectrumPhy::~SpectrumPhy
()
38
{
39
NS_LOG_FUNCTION
(
this
);
40
}
41
}
// namespace ns3
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::SpectrumPhy::SpectrumPhy
SpectrumPhy()
Definition
spectrum-phy.cc:32
ns3::SpectrumPhy::~SpectrumPhy
~SpectrumPhy() override
Definition
spectrum-phy.cc:37
ns3::SpectrumPhy::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
spectrum-phy.cc:26
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_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
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.
spectrum-channel.h
spectrum-phy.h
spectrum-value.h
src
spectrum
model
spectrum-phy.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0