A Discrete-Event Network Simulator
lorawan @ (+)
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Symbols
:
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
e
l
v
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
▼
ns-3
►
ns-3 Documentation
►
All Environment Variables
Todo List
Deprecated List
Bug List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
doc
►
examples
▼
src
►
antenna
►
aodv
►
applications
►
bridge
►
brite
►
buildings
►
click
►
config-store
►
core
►
csma
►
csma-layout
►
dsdv
►
dsr
►
energy
►
fd-net-device
►
flow-monitor
►
internet
►
internet-apps
►
lorawan
►
lr-wpan
►
lte
►
mesh
►
mobility
►
mpi
►
netanim
►
network
►
nix-vector-routing
►
olsr
►
openflow
►
point-to-point
►
point-to-point-layout
►
propagation
►
sixlowpan
▼
spectrum
►
examples
►
helper
▼
model
aloha-noack-mac-header.cc
aloha-noack-mac-header.h
►
aloha-noack-net-device.cc
aloha-noack-net-device.h
constant-spectrum-propagation-loss.cc
constant-spectrum-propagation-loss.h
friis-spectrum-propagation-loss.cc
friis-spectrum-propagation-loss.h
half-duplex-ideal-phy-signal-parameters.cc
half-duplex-ideal-phy-signal-parameters.h
►
half-duplex-ideal-phy.cc
half-duplex-ideal-phy.h
►
ism-spectrum-value-helper.cc
ism-spectrum-value-helper.h
matrix-based-channel-model.cc
►
matrix-based-channel-model.h
►
microwave-oven-spectrum-value-helper.cc
microwave-oven-spectrum-value-helper.h
►
multi-model-spectrum-channel.cc
►
multi-model-spectrum-channel.h
non-communicating-net-device.cc
non-communicating-net-device.h
phased-array-spectrum-propagation-loss-model.cc
phased-array-spectrum-propagation-loss-model.h
single-model-spectrum-channel.cc
single-model-spectrum-channel.h
spectrum-analyzer.cc
spectrum-analyzer.h
spectrum-channel.cc
spectrum-channel.h
spectrum-converter.cc
spectrum-converter.h
spectrum-error-model.cc
spectrum-error-model.h
spectrum-interference.cc
spectrum-interference.h
►
spectrum-model-300kHz-300GHz-log.cc
spectrum-model-300kHz-300GHz-log.h
►
spectrum-model-ism2400MHz-res1MHz.cc
spectrum-model-ism2400MHz-res1MHz.h
►
spectrum-model.cc
►
spectrum-model.h
spectrum-phy.cc
spectrum-phy.h
spectrum-propagation-loss-model.cc
spectrum-propagation-loss-model.h
spectrum-signal-parameters.cc
spectrum-signal-parameters.h
spectrum-transmit-filter.cc
spectrum-transmit-filter.h
►
spectrum-value.cc
►
spectrum-value.h
►
three-gpp-channel-model.cc
►
three-gpp-channel-model.h
three-gpp-spectrum-propagation-loss-model.cc
►
three-gpp-spectrum-propagation-loss-model.h
trace-fading-loss-model.cc
trace-fading-loss-model.h
►
tv-spectrum-transmitter.cc
tv-spectrum-transmitter.h
►
two-ray-spectrum-propagation-loss-model.cc
►
two-ray-spectrum-propagation-loss-model.h
waveform-generator.cc
waveform-generator.h
►
test
►
utils
►
stats
►
tap-bridge
►
test
►
topology-read
►
traffic-control
►
uan
►
virtual-net-device
►
visualizer
►
wifi
►
wimax
►
utils
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
spectrum-signal-parameters.h
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
#ifndef SPECTRUM_SIGNAL_PARAMETERS_H
10
#define SPECTRUM_SIGNAL_PARAMETERS_H
11
12
#include <ns3/matrix-array.h>
13
#include <ns3/nstime.h>
14
15
namespace
ns3
16
{
17
18
class
SpectrumPhy;
19
class
SpectrumValue;
20
class
AntennaModel;
21
22
/**
23
* \ingroup spectrum
24
*
25
* This struct provides the generic signal representation to be used by
26
* all wireless technologies. Any specific wireless technology is
27
* allowed to define additional signal parameters by inheriting from this
28
* struct and providing additional member variables. This makes sure
29
* that a minimum set of parameters (in particular, the ones needed
30
* for interference calculation) is
31
* common across all wireless technologies, while at the same time
32
* allowing each technology to have its own specific signal parameters.
33
*
34
* Furthermore, since the signal parameters specific of every technology inherit
35
* directly from this struct, each PHY can test (by using a dynamic
36
* cast) if a signal being received belongs to a given technology or not.
37
*
38
* \note when inheriting from this class, make sure that the assignment operator and the copy
39
* constructor work properly, making deep copies if needed.
40
*/
41
struct
SpectrumSignalParameters
:
public
SimpleRefCount
<SpectrumSignalParameters>
42
{
43
/**
44
* default constructor
45
*/
46
SpectrumSignalParameters
();
47
48
/**
49
* destructor
50
*/
51
virtual
~SpectrumSignalParameters
();
52
53
/**
54
* copy constructor
55
* \param p object to copy
56
*/
57
SpectrumSignalParameters
(
const
SpectrumSignalParameters
& p);
58
59
/**
60
* make a "virtual" copy of this class, where "virtual" refers to
61
* the fact that if the actual object is a derived class of
62
* SpectrumSignalParameters, then the copy is also a derived class
63
* of the same type.
64
* Each class inheriting from
65
* SpectrumSignalParameters should override this method and use it
66
* to call the copy constructor of the derived class.
67
*
68
* \return a copy of the (possibly derived) class
69
*/
70
virtual
Ptr<SpectrumSignalParameters>
Copy
()
const
;
71
72
/**
73
* The Power Spectral Density of the
74
* waveform, in linear units. The exact unit will depend on the
75
* type of transmission medium involved: W for radio communications, Pa for
76
* underwater acoustic communications. Other transmission media to
77
* be defined.
78
*
79
* \note when SpectrumSignalParameters is copied, only the pointer to the PSD will be copied.
80
* This is because SpectrumChannel objects normally overwrite the psd anyway, so there is no
81
* point in making a copy.
82
*/
83
Ptr<SpectrumValue>
psd
;
84
85
/**
86
* The duration of the packet transmission. It is
87
* assumed that the Power Spectral Density remains constant for the
88
* whole duration of the transmission. In other words, all waveform
89
* have a rect shape with respect to time.
90
*/
91
Time
duration
;
92
93
/**
94
* The SpectrumPhy instance that is making the transmission
95
*/
96
Ptr<SpectrumPhy>
txPhy
;
97
98
/**
99
* The AntennaModel instance that was used to transmit this signal.
100
*/
101
Ptr<AntennaModel>
txAntenna
;
102
103
/**
104
* The 3D channel matrix where the dimensions are: the number of RX ports,
105
* the number of TX Ports, the number of resource blocks (RBs).
106
* Needed in the MIMO system in which multiple TX and RX ports can exist,
107
* hence the PSD is multidimensional. Elements are the complex numbers.
108
*/
109
Ptr<const ComplexMatrixArray>
spectrumChannelMatrix
;
110
111
/**
112
* The 3D precoding matrix where the dimensions are: the number of TX ports,
113
* the number of TX streams, the number of RBs.
114
*/
115
Ptr<const ComplexMatrixArray>
precodingMatrix
;
116
};
41
struct
SpectrumSignalParameters
:
public
SimpleRefCount
<SpectrumSignalParameters> {
…
};
117
118
}
// namespace ns3
119
120
#endif
/* SPECTRUM_SIGNAL_PARAMETERS_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SimpleRefCount
A template-based reference counting class.
Definition
simple-ref-count.h:70
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
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.h
Generated on Mon Jan 27 2025 16:35:52 for ns-3 by
1.11.0