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::ReportRsReceivedPower
(
const
SpectrumValue
& power)
100
{
101
NS_LOG_FUNCTION
(
this
);
102
// Not used by the LteTestUePhy
103
}
104
105
void
106
LteTestUePhy::ReportInterference
(
const
SpectrumValue
& interf)
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
ns3::LteTestUePhy::ReportRsReceivedPower
virtual void ReportRsReceivedPower(const SpectrumValue &power)
Definition:
lte-test-ue-phy.cc:99
ns3::LteTestUePhy::GenerateCtrlCqiReport
virtual void GenerateCtrlCqiReport(const SpectrumValue &sinr)
Definition:
lte-test-ue-phy.cc:81
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
Definition:
log.h:311
ns3::LteTestUePhy::~LteTestUePhy
virtual ~LteTestUePhy()
Definition:
lte-test-ue-phy.cc:43
ns3::LteTestUePhy::DoDispose
virtual void DoDispose()
Definition:
lte-test-ue-phy.cc:48
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Definition:
log.h:122
ns3::LteTestUePhy::ReportInterference
virtual void ReportInterference(const SpectrumValue &interf)
Definition:
lte-test-ue-phy.cc:106
ns3::LteTestUePhy::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-test-ue-phy.cc:56
ns3::LteTestUePhy::GetSinr
SpectrumValue GetSinr()
Definition:
lte-test-ue-phy.cc:119
NS_FATAL_ERROR
#define NS_FATAL_ERROR(msg)
fatal error handling
Definition:
fatal-error.h:72
ns3::LteTestUePhy::LteTestUePhy
LteTestUePhy()
Definition:
lte-test-ue-phy.cc:31
ns3::LtePhy::DoDispose
void DoDispose()
Definition:
lte-phy.cc:75
ns3::LteTestUePhy::ReceiveLteControlMessage
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Definition:
lte-test-ue-phy.cc:113
ns3::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
lte-test-ue-phy.h
ns3::LteTestUePhy::GenerateDataCqiReport
virtual void GenerateDataCqiReport(const SpectrumValue &sinr)
Definition:
lte-test-ue-phy.cc:90
ns3::LteTestUePhy::m_sinr
SpectrumValue m_sinr
Definition:
lte-test-ue-phy.h:74
ns3::LteTestUePhy::CreateTxPowerSpectralDensity
virtual Ptr< SpectrumValue > CreateTxPowerSpectralDensity()
Create the PSD for the TX.
Definition:
lte-test-ue-phy.cc:72
ns3::LteTestUePhy::DoSendMacPdu
virtual void DoSendMacPdu(Ptr< Packet > p)
Queue the MAC PDU to be sent.
Definition:
lte-test-ue-phy.cc:66
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:57
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:610
ns3::LtePhy
Definition:
lte-phy.h:52
src
lte
test
lte-test-ue-phy.cc
Generated on Sat Nov 16 2013 16:17:47 for ns-3 by
1.8.5