A Discrete-Event Network Simulator
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
18namespace ns3
19{
20
21NS_LOG_COMPONENT_DEFINE("SpectrumPhy");
22
24
25TypeId
27{
28 static TypeId tid = TypeId("ns3::SpectrumPhy").SetParent<Object>().SetGroupName("Spectrum");
29 return tid;
30}
31
36
41} // namespace ns3
A base class which provides memory management and object aggregation.
Definition object.h:78
~SpectrumPhy() override
static TypeId GetTypeId()
Get the type ID.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#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.