A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
LteTestUePhy::LteTestUePhy
()
32
{
33
NS_LOG_FUNCTION
(
this
);
34
NS_FATAL_ERROR
(
"This constructor should not be called"
);
35
}
36
37
LteTestUePhy::LteTestUePhy
(
Ptr<LteSpectrumPhy>
dlPhy,
Ptr<LteSpectrumPhy>
ulPhy)
38
:
LtePhy
(dlPhy, ulPhy)
39
{
40
NS_LOG_FUNCTION
(
this
);
41
}
42
43
LteTestUePhy::~LteTestUePhy
()
44
{
45
}
46
47
void
48
LteTestUePhy::DoDispose
()
49
{
50
NS_LOG_FUNCTION
(
this
);
51
52
LtePhy::DoDispose
();
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
66
LteTestUePhy::DoSendMacPdu
(
Ptr<Packet>
p)
67
{
68
NS_LOG_FUNCTION
(
this
);
69
}
70
71
Ptr<SpectrumValue>
72
LteTestUePhy::CreateTxPowerSpectralDensity
()
73
{
74
NS_LOG_FUNCTION
(
this
);
75
Ptr<SpectrumValue>
psd;
76
77
return
psd;
78
}
79
80
void
81
LteTestUePhy::GenerateCtrlCqiReport
(
const
SpectrumValue
& sinr)
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
90
LteTestUePhy::GenerateDataCqiReport
(
const
SpectrumValue
& sinr)
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
99
LteTestUePhy::ReceiveLteControlMessage
(
Ptr<LteControlMessage>
msg)
100
{
101
NS_LOG_FUNCTION
(
this
<< msg);
102
}
103
104
SpectrumValue
105
LteTestUePhy::GetSinr
()
106
{
107
NS_LOG_FUNCTION
(
this
);
108
109
return
m_sinr
;
110
}
111
112
113
}
// namespace ns3
src
lte
test
lte-test-ue-phy.cc
Generated on Fri Dec 21 2012 19:00:41 for ns-3 by
1.8.1.2