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
lte-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
* Modified by Marco Miozzo <mmiozzo@cttc.es> (add data and ctrl diversity)
8
*/
9
10
#include "
lte-spectrum-signal-parameters.h
"
11
12
#include "
lte-control-messages.h
"
13
14
#include <ns3/log.h>
15
#include <ns3/packet-burst.h>
16
#include <ns3/ptr.h>
17
18
namespace
ns3
19
{
20
21
NS_LOG_COMPONENT_DEFINE
(
"LteSpectrumSignalParameters"
);
22
23
LteSpectrumSignalParameters::LteSpectrumSignalParameters
()
24
{
25
NS_LOG_FUNCTION
(
this
);
26
}
27
28
LteSpectrumSignalParameters::LteSpectrumSignalParameters
(
const
LteSpectrumSignalParameters
& p)
29
:
SpectrumSignalParameters
(p)
30
{
31
NS_LOG_FUNCTION
(
this
<< &p);
32
packetBurst
= p.
packetBurst
->Copy();
33
}
34
35
Ptr<SpectrumSignalParameters>
36
LteSpectrumSignalParameters::Copy
()
const
37
{
38
NS_LOG_FUNCTION
(
this
);
39
return
Create<LteSpectrumSignalParameters>
(*
this
);
40
}
41
42
LteSpectrumSignalParametersDataFrame::LteSpectrumSignalParametersDataFrame
()
43
{
44
NS_LOG_FUNCTION
(
this
);
45
}
46
47
LteSpectrumSignalParametersDataFrame::LteSpectrumSignalParametersDataFrame
(
48
const
LteSpectrumSignalParametersDataFrame
& p)
49
:
SpectrumSignalParameters
(p)
50
{
51
NS_LOG_FUNCTION
(
this
<< &p);
52
cellId
= p.
cellId
;
53
if
(p.
packetBurst
)
54
{
55
packetBurst
= p.
packetBurst
->Copy();
56
}
57
ctrlMsgList
= p.
ctrlMsgList
;
58
}
59
60
Ptr<SpectrumSignalParameters>
61
LteSpectrumSignalParametersDataFrame::Copy
()
const
62
{
63
NS_LOG_FUNCTION
(
this
);
64
return
Create<LteSpectrumSignalParametersDataFrame>
(*
this
);
65
}
66
67
LteSpectrumSignalParametersDlCtrlFrame::LteSpectrumSignalParametersDlCtrlFrame
()
68
{
69
NS_LOG_FUNCTION
(
this
);
70
}
71
72
LteSpectrumSignalParametersDlCtrlFrame::LteSpectrumSignalParametersDlCtrlFrame
(
73
const
LteSpectrumSignalParametersDlCtrlFrame
& p)
74
:
SpectrumSignalParameters
(p)
75
{
76
NS_LOG_FUNCTION
(
this
<< &p);
77
cellId
= p.
cellId
;
78
pss
= p.
pss
;
79
ctrlMsgList
= p.
ctrlMsgList
;
80
}
81
82
Ptr<SpectrumSignalParameters>
83
LteSpectrumSignalParametersDlCtrlFrame::Copy
()
const
84
{
85
NS_LOG_FUNCTION
(
this
);
86
return
Create<LteSpectrumSignalParametersDlCtrlFrame>
(*
this
);
87
}
88
89
LteSpectrumSignalParametersUlSrsFrame::LteSpectrumSignalParametersUlSrsFrame
()
90
{
91
NS_LOG_FUNCTION
(
this
);
92
}
93
94
LteSpectrumSignalParametersUlSrsFrame::LteSpectrumSignalParametersUlSrsFrame
(
95
const
LteSpectrumSignalParametersUlSrsFrame
& p)
96
:
SpectrumSignalParameters
(p)
97
{
98
NS_LOG_FUNCTION
(
this
<< &p);
99
cellId
= p.
cellId
;
100
}
101
102
Ptr<SpectrumSignalParameters>
103
LteSpectrumSignalParametersUlSrsFrame::Copy
()
const
104
{
105
NS_LOG_FUNCTION
(
this
);
106
return
Create<LteSpectrumSignalParametersUlSrsFrame>
(*
this
);
107
}
108
109
}
// 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
lte-control-messages.h
lte-spectrum-signal-parameters.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteSpectrumSignalParametersDataFrame
Signal parameters for Lte Data Frame (PDSCH), and eventually after some control messages through othe...
Definition
lte-spectrum-signal-parameters.h:57
ns3::LteSpectrumSignalParametersDataFrame::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
lte-spectrum-signal-parameters.cc:61
ns3::LteSpectrumSignalParametersDataFrame::LteSpectrumSignalParametersDataFrame
LteSpectrumSignalParametersDataFrame()
default constructor
Definition
lte-spectrum-signal-parameters.cc:42
ns3::LteSpectrumSignalParametersDataFrame::ctrlMsgList
std::list< Ptr< LteControlMessage > > ctrlMsgList
the control message list
Definition
lte-spectrum-signal-parameters.h:76
ns3::LteSpectrumSignalParametersDataFrame::packetBurst
Ptr< PacketBurst > packetBurst
The packet burst being transmitted with this signal.
Definition
lte-spectrum-signal-parameters.h:74
ns3::LteSpectrumSignalParametersDataFrame::cellId
uint16_t cellId
cell ID
Definition
lte-spectrum-signal-parameters.h:78
ns3::LteSpectrumSignalParametersDlCtrlFrame
Signal parameters for Lte DL Ctrl Frame (RS, PCFICH and PDCCH)
Definition
lte-spectrum-signal-parameters.h:87
ns3::LteSpectrumSignalParametersDlCtrlFrame::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
lte-spectrum-signal-parameters.cc:83
ns3::LteSpectrumSignalParametersDlCtrlFrame::ctrlMsgList
std::list< Ptr< LteControlMessage > > ctrlMsgList
control message list
Definition
lte-spectrum-signal-parameters.h:101
ns3::LteSpectrumSignalParametersDlCtrlFrame::pss
bool pss
primary synchronization signal
Definition
lte-spectrum-signal-parameters.h:104
ns3::LteSpectrumSignalParametersDlCtrlFrame::cellId
uint16_t cellId
cell ID
Definition
lte-spectrum-signal-parameters.h:103
ns3::LteSpectrumSignalParametersDlCtrlFrame::LteSpectrumSignalParametersDlCtrlFrame
LteSpectrumSignalParametersDlCtrlFrame()
default constructor
Definition
lte-spectrum-signal-parameters.cc:67
ns3::LteSpectrumSignalParameters
Signal parameters for Lte.
Definition
lte-spectrum-signal-parameters.h:29
ns3::LteSpectrumSignalParameters::packetBurst
Ptr< PacketBurst > packetBurst
The packet burst being transmitted with this signal.
Definition
lte-spectrum-signal-parameters.h:46
ns3::LteSpectrumSignalParameters::LteSpectrumSignalParameters
LteSpectrumSignalParameters()
default constructor
Definition
lte-spectrum-signal-parameters.cc:23
ns3::LteSpectrumSignalParameters::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
lte-spectrum-signal-parameters.cc:36
ns3::LteSpectrumSignalParametersUlSrsFrame
Signal parameters for Lte SRS Frame.
Definition
lte-spectrum-signal-parameters.h:113
ns3::LteSpectrumSignalParametersUlSrsFrame::cellId
uint16_t cellId
cell ID
Definition
lte-spectrum-signal-parameters.h:127
ns3::LteSpectrumSignalParametersUlSrsFrame::LteSpectrumSignalParametersUlSrsFrame
LteSpectrumSignalParametersUlSrsFrame()
default constructor
Definition
lte-spectrum-signal-parameters.cc:89
ns3::LteSpectrumSignalParametersUlSrsFrame::Copy
Ptr< SpectrumSignalParameters > Copy() const override
make a "virtual" copy of this class, where "virtual" refers to the fact that if the actual object is ...
Definition
lte-spectrum-signal-parameters.cc:103
ns3::SpectrumSignalParameters
This struct provides the generic signal representation to be used by all wireless technologies.
Definition
spectrum-signal-parameters.h:42
src
lte
model
lte-spectrum-signal-parameters.cc
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0