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