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
17
namespace
ns3
18
{
19
20
NS_LOG_COMPONENT_DEFINE
(
"SpectrumSignalParameters"
);
21
22
SpectrumSignalParameters::SpectrumSignalParameters
()
23
{
24
NS_LOG_FUNCTION
(
this
);
25
}
26
27
SpectrumSignalParameters::~SpectrumSignalParameters
()
28
{
29
NS_LOG_FUNCTION
(
this
);
30
}
31
32
SpectrumSignalParameters::SpectrumSignalParameters
(
const
SpectrumSignalParameters
& p)
33
{
34
NS_LOG_FUNCTION
(
this
<< &p);
35
psd
= p.
psd
->Copy();
36
duration
= p.
duration
;
37
txPhy
= p.
txPhy
;
38
txAntenna
= p.
txAntenna
;
39
spectrumChannelMatrix
= p.
spectrumChannelMatrix
;
// we do not need a deep copy, it will not be
40
// changed once is created
41
precodingMatrix
=
42
p.
precodingMatrix
;
// we do not need a deep copy, it will not be changed once is created
43
}
44
45
Ptr<SpectrumSignalParameters>
46
SpectrumSignalParameters::Copy
()
const
47
{
48
NS_LOG_FUNCTION
(
this
);
49
return
Create<SpectrumSignalParameters>
(*
this
);
50
}
51
52
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
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:436
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
This struct provides the generic signal representation to be used by all wireless technologies.
Definition
spectrum-signal-parameters.h:42
ns3::SpectrumSignalParameters::txAntenna
Ptr< AntennaModel > txAntenna
The AntennaModel instance that was used to transmit this signal.
Definition
spectrum-signal-parameters.h:101
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:109
ns3::SpectrumSignalParameters::SpectrumSignalParameters
SpectrumSignalParameters()
default constructor
Definition
spectrum-signal-parameters.cc:22
ns3::SpectrumSignalParameters::~SpectrumSignalParameters
virtual ~SpectrumSignalParameters()
destructor
Definition
spectrum-signal-parameters.cc:27
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:115
ns3::SpectrumSignalParameters::duration
Time duration
The duration of the packet transmission.
Definition
spectrum-signal-parameters.h:91
ns3::SpectrumSignalParameters::txPhy
Ptr< SpectrumPhy > txPhy
The SpectrumPhy instance that is making the transmission.
Definition
spectrum-signal-parameters.h:96
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:46
ns3::SpectrumSignalParameters::psd
Ptr< SpectrumValue > psd
The Power Spectral Density of the waveform, in linear units.
Definition
spectrum-signal-parameters.h:83
src
spectrum
model
spectrum-signal-parameters.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0