A Discrete-Event Network Simulator
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
10
11#include "spectrum-phy.h"
12#include "spectrum-value.h"
13
14#include <ns3/antenna-model.h>
15#include <ns3/log.h>
16
17namespace ns3
18{
19
20NS_LOG_COMPONENT_DEFINE("SpectrumSignalParameters");
21
26
31
33{
34 NS_LOG_FUNCTION(this << &p);
35 psd = p.psd->Copy();
37 txPhy = p.txPhy;
39 spectrumChannelMatrix = p.spectrumChannelMatrix; // we do not need a deep copy, it will not be
40 // changed once is created
42 p.precodingMatrix; // we do not need a deep copy, it will not be changed once is created
43}
44
51
52} // namespace ns3
Smart pointer class similar to boost::intrusive_ptr.
#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 ",...
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Definition ptr.h:436
Every class exported by the ns3 library is enclosed in the ns3 namespace.
This struct provides the generic signal representation to be used by all wireless technologies.
Ptr< AntennaModel > txAntenna
The AntennaModel instance that was used to transmit this signal.
Ptr< const ComplexMatrixArray > spectrumChannelMatrix
The 3D channel matrix where the dimensions are: the number of RX ports, the number of TX Ports,...
Ptr< const ComplexMatrixArray > precodingMatrix
The 3D precoding matrix where the dimensions are: the number of TX ports, the number of TX streams,...
Time duration
The duration of the packet transmission.
Ptr< SpectrumPhy > txPhy
The SpectrumPhy instance that is making the transmission.
virtual Ptr< SpectrumSignalParameters > Copy() const
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Ptr< SpectrumValue > psd
The Power Spectral Density of the waveform, in linear units.