A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
lte-test-ue-phy.cc
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 
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 
43 LteTestUePhy::~LteTestUePhy ()
44 {
45 }
46 
47 void
49 {
50  NS_LOG_FUNCTION (this);
51 
53 }
54 
55 TypeId
56 LteTestUePhy::GetTypeId (void)
57 {
58  static TypeId tid = TypeId ("ns3::LteTestUePhy")
59  .SetParent<LtePhy> ()
60  .AddConstructor<LteTestUePhy> ()
61  ;
62  return tid;
63 }
64 
65 void
67 {
68  NS_LOG_FUNCTION (this);
69 }
70 
73 {
74  NS_LOG_FUNCTION (this);
76 
77  return psd;
78 }
79 
80 void
82 {
83  NS_LOG_FUNCTION (this);
84 
85  // Store calculated SINR, it will be retrieved at the end of the test
86  m_sinr = sinr;
87 }
88 
89 void
91 {
92  NS_LOG_FUNCTION (this);
93 
94  // Store calculated SINR, it will be retrieved at the end of the test
95  m_sinr = sinr;
96 }
97 
98 void
100 {
101  NS_LOG_FUNCTION (this);
102  // Not used by the LteTestUePhy
103 }
104 
105 void
107 {
108  NS_LOG_FUNCTION (this);
109  // Not used by the LteTestUePhy
110 }
111 
112 void
113 LteTestUePhy::ReceiveLteControlMessage (Ptr<LteControlMessage> msg)
114 {
115  NS_LOG_FUNCTION (this << msg);
116 }
117 
118 SpectrumValue
119 LteTestUePhy::GetSinr ()
120 {
121  NS_LOG_FUNCTION (this);
122 
123  return m_sinr;
124 }
125 
126 
127 } // namespace ns3
virtual void ReportRsReceivedPower(const SpectrumValue &power)
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:59
#define NS_LOG_FUNCTION(parameters)
Definition: log.h:311
virtual void DoDispose()
#define NS_LOG_COMPONENT_DEFINE(name)
Definition: log.h:122
virtual void ReportInterference(const SpectrumValue &interf)
#define NS_FATAL_ERROR(msg)
fatal error handling
Definition: fatal-error.h:72
void DoDispose()
Definition: lte-phy.cc:75
virtual void GenerateDataCqiReport(const SpectrumValue &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:44
TypeId SetParent(TypeId tid)
Definition: type-id.cc:471