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-signal-parameters.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 "
spectrum-signal-parameters.h
"
10
11
#include "
spectrum-phy.h
"
12
#include "
spectrum-value.h
"
13
14
#include "ns3/antenna-model.h"
15
#include "ns3/log.h"
16
#include "ns3/mobility-model.h"
17
18
namespace
ns3
19
{
20
21
NS_LOG_COMPONENT_DEFINE
(
"SpectrumSignalParameters"
);
22
23
SpectrumSignalParameters::SpectrumSignalParameters
()
24
{
25
NS_LOG_FUNCTION
(
this
);
26
}
27
28
SpectrumSignalParameters::~SpectrumSignalParameters
()
29
{
30
NS_LOG_FUNCTION
(
this
);
31
}
32
33
SpectrumSignalParameters::SpectrumSignalParameters
(
const
SpectrumSignalParameters
& p)
34
{
35
NS_LOG_FUNCTION
(
this
<< &p);
36
psd
= p.
psd
->Copy();
37
duration
= p.
duration
;
38
txPhy
= p.
txPhy
;
39
txAntenna
= p.
txAntenna
;
40
spectrumChannelMatrix
= p.
spectrumChannelMatrix
;
// we do not need a deep copy, it will not be
41
// changed once is created
42
precodingMatrix
=
43
p.
precodingMatrix
;
// we do not need a deep copy, it will not be changed once is created
44
}
45
46
Ptr<SpectrumSignalParameters>
47
SpectrumSignalParameters::Copy
()
const
48
{
49
NS_LOG_FUNCTION
(
this
);
50
return
Create<SpectrumSignalParameters>
(*
this
);
51
}
52
53
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
ptr.h:67
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
ns3::Create
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition
ptr.h:439
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
spectrum-phy.h
spectrum-signal-parameters.h
spectrum-value.h
ns3::SpectrumSignalParameters::txAntenna
Ptr< AntennaModel > txAntenna
The AntennaModel instance that was used to transmit this signal.
Definition
spectrum-signal-parameters.h:102
ns3::SpectrumSignalParameters::spectrumChannelMatrix
Ptr< const ComplexMatrixArray > spectrumChannelMatrix
The 3D channel matrix where the dimensions are: the number of RX ports, the number of TX Ports,...
Definition
spectrum-signal-parameters.h:110
ns3::SpectrumSignalParameters::SpectrumSignalParameters
SpectrumSignalParameters()
default constructor
Definition
spectrum-signal-parameters.cc:23
ns3::SpectrumSignalParameters::~SpectrumSignalParameters
virtual ~SpectrumSignalParameters()
destructor
Definition
spectrum-signal-parameters.cc:28
ns3::SpectrumSignalParameters::precodingMatrix
Ptr< const ComplexMatrixArray > precodingMatrix
The 3D precoding matrix where the dimensions are: the number of TX ports, the number of TX streams,...
Definition
spectrum-signal-parameters.h:116
ns3::SpectrumSignalParameters::duration
Time duration
The duration of the packet transmission.
Definition
spectrum-signal-parameters.h:92
ns3::SpectrumSignalParameters::txPhy
Ptr< SpectrumPhy > txPhy
The SpectrumPhy instance that is making the transmission.
Definition
spectrum-signal-parameters.h:97
ns3::SpectrumSignalParameters::Copy
virtual Ptr< SpectrumSignalParameters > Copy() const
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
spectrum-signal-parameters.cc:47
ns3::SpectrumSignalParameters::psd
Ptr< SpectrumValue > psd
The Power Spectral Density of the waveform, in linear units.
Definition
spectrum-signal-parameters.h:84
src
spectrum
model
spectrum-signal-parameters.cc
Generated on Wed Oct 1 2025 18:22:28 for ns-3 by
1.13.2