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 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 */
8
9#include "lte-test-ue-phy.h"
10
11#include "ns3/log.h"
12
13namespace ns3
14{
15
16NS_LOG_COMPONENT_DEFINE("LteTestUePhy");
17
18NS_OBJECT_ENSURE_REGISTERED(LteTestUePhy);
19
21{
22 NS_LOG_FUNCTION(this);
23 NS_FATAL_ERROR("This constructor should not be called");
24}
25
31
35
36void
43
46{
47 static TypeId tid =
48 TypeId("ns3::LteTestUePhy").SetParent<LtePhy>().AddConstructor<LteTestUePhy>();
49 return tid;
50}
51
52void
57
66
67void
69{
70 NS_LOG_FUNCTION(this);
71
72 // Store calculated SINR, it will be retrieved at the end of the test
73 m_sinr = sinr;
74}
75
76void
78{
79 NS_LOG_FUNCTION(this);
80
81 // Store calculated SINR, it will be retrieved at the end of the test
82 m_sinr = sinr;
83}
84
85void
87{
88 NS_LOG_FUNCTION(this);
89 // Not used by the LteTestUePhy
90}
91
92void
94{
95 NS_LOG_FUNCTION(this);
96 // Not used by the LteTestUePhy
97}
98
99void
104
107{
108 NS_LOG_FUNCTION(this);
109
110 return m_sinr;
111}
112
113} // namespace ns3
The LtePhy models the physical layer of LTE.
Definition lte-phy.h:40
void DoDispose() override
Destructor implementation.
Definition lte-phy.cc:65
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
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.
Set of values corresponding to a given SpectrumModel.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#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 ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.