A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
24 NS_LOG_COMPONENT_DEFINE ("LteTestUePhy");
25 
26 namespace ns3 {
27 
28 
29 NS_OBJECT_ENSURE_REGISTERED (LteTestUePhy)
30  ;
31 
33 {
34  NS_LOG_FUNCTION (this);
35  NS_FATAL_ERROR ("This constructor should not be called");
36 }
37 
39  : LtePhy (dlPhy, ulPhy)
40 {
41  NS_LOG_FUNCTION (this);
42 }
43 
45 {
46 }
47 
48 void
50 {
51  NS_LOG_FUNCTION (this);
52 
54 }
55 
56 TypeId
58 {
59  static TypeId tid = TypeId ("ns3::LteTestUePhy")
60  .SetParent<LtePhy> ()
61  .AddConstructor<LteTestUePhy> ()
62  ;
63  return tid;
64 }
65 
66 void
68 {
69  NS_LOG_FUNCTION (this);
70 }
71 
74 {
75  NS_LOG_FUNCTION (this);
77 
78  return psd;
79 }
80 
81 void
83 {
84  NS_LOG_FUNCTION (this);
85 
86  // Store calculated SINR, it will be retrieved at the end of the test
87  m_sinr = sinr;
88 }
89 
90 void
92 {
93  NS_LOG_FUNCTION (this);
94 
95  // Store calculated SINR, it will be retrieved at the end of the test
96  m_sinr = sinr;
97 }
98 
99 void
101 {
102  NS_LOG_FUNCTION (this);
103  // Not used by the LteTestUePhy
104 }
105 
106 void
108 {
109  NS_LOG_FUNCTION (this);
110  // Not used by the LteTestUePhy
111 }
112 
113 void
115 {
116  NS_LOG_FUNCTION (this << msg);
117 }
118 
121 {
122  NS_LOG_FUNCTION (this);
123 
124  return m_sinr;
125 }
126 
127 
128 } // namespace ns3
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 ...
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Ctrl frame
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:59
#define NS_LOG_FUNCTION(parameters)
Definition: log.h:345
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
virtual void ReportInterference(const SpectrumValue &interf)
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
static TypeId GetTypeId(void)
SpectrumValue GetSinr()
#define NS_FATAL_ERROR(msg)
fatal error handling
Definition: fatal-error.h:72
void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition: lte-phy.cc:76
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs) ...
NS_LOG_COMPONENT_DEFINE("LteTestUePhy")
SpectrumValue m_sinr
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()
Create the PSD for the TX.
virtual void DoSendMacPdu(Ptr< Packet > p)
Queue the MAC PDU to be sent.
Set of values corresponding to a given SpectrumModel.
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:611
The LtePhy models the physical layer of LTE.
Definition: lte-phy.h:52