A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-test-ue-phy.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Manuel Requena <manuel.requena@cttc.es>
18 */
19
20#include "lte-test-ue-phy.h"
21
22#include "ns3/log.h"
23
24namespace ns3
25{
26
27NS_LOG_COMPONENT_DEFINE("LteTestUePhy");
28
29NS_OBJECT_ENSURE_REGISTERED(LteTestUePhy);
30
32{
33 NS_LOG_FUNCTION(this);
34 NS_FATAL_ERROR("This constructor should not be called");
35}
36
38 : LtePhy(dlPhy, ulPhy)
39{
40 NS_LOG_FUNCTION(this);
41}
42
44{
45}
46
47void
49{
50 NS_LOG_FUNCTION(this);
51
53}
54
57{
58 static TypeId tid =
59 TypeId("ns3::LteTestUePhy").SetParent<LtePhy>().AddConstructor<LteTestUePhy>();
60 return tid;
61}
62
63void
65{
66 NS_LOG_FUNCTION(this);
67}
68
71{
72 NS_LOG_FUNCTION(this);
74
75 return psd;
76}
77
78void
80{
81 NS_LOG_FUNCTION(this);
82
83 // Store calculated SINR, it will be retrieved at the end of the test
84 m_sinr = sinr;
85}
86
87void
89{
90 NS_LOG_FUNCTION(this);
91
92 // Store calculated SINR, it will be retrieved at the end of the test
93 m_sinr = sinr;
94}
95
96void
98{
99 NS_LOG_FUNCTION(this);
100 // Not used by the LteTestUePhy
101}
102
103void
105{
106 NS_LOG_FUNCTION(this);
107 // Not used by the LteTestUePhy
108}
109
110void
112{
113 NS_LOG_FUNCTION(this << msg);
114}
115
118{
119 NS_LOG_FUNCTION(this);
120
121 return m_sinr;
122}
123
124} // namespace ns3
The LtePhy models the physical layer of LTE.
Definition: lte-phy.h:51
void DoDispose() override
Destructor implementation.
Definition: lte-phy.cc:76
Ptr< SpectrumValue > CreateTxPowerSpectralDensity() override
Create the PSD for the TX.
void DoSendMacPdu(Ptr< Packet > p) override
Queue the MAC PDU to be sent.
SpectrumValue m_sinr
the SINR
~LteTestUePhy() override
void ReportInterference(const SpectrumValue &interf) override
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Reeive LTE Control Message.
void ReportRsReceivedPower(const SpectrumValue &power) override
generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for ...
void DoDispose() override
Destructor implementation.
static TypeId GetTypeId()
Get the type ID.
void GenerateCtrlCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Ctrl frame
void GenerateDataCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs)
SpectrumValue GetSinr()
Get the SINR.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
Set of values corresponding to a given SpectrumModel.
a unique identifier for an interface.
Definition: type-id.h:59
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:932
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Definition: fatal-error.h:179
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:46
Every class exported by the ns3 library is enclosed in the ns3 namespace.