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 
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 
47 void
49 {
50  NS_LOG_FUNCTION (this);
51 
53 }
54 
55 TypeId
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 << msg);
93 }
94 
97 {
98  NS_LOG_FUNCTION (this);
99 
100  return m_sinr;
101 }
102 
103 
104 } // namespace ns3