A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
lte-test-ue-phy.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
* (Based on lte-ue-phy code)
8
*/
9
10
#ifndef LTE_TEST_UE_PHY_H
11
#define LTE_TEST_UE_PHY_H
12
13
#include "ns3/lte-control-messages.h"
14
#include "ns3/lte-phy.h"
15
16
namespace
ns3
17
{
18
19
/**
20
* @ingroup lte-test
21
*
22
* @brief Defines a simplified LtePhy class that is used for testing purposes
23
* of downlink and uplink SINR generation. Used in LteDownlinkDataSinrTestCase
24
* and LteUplinkDataSinrTestCase as simplified LTE PHY.
25
*/
26
class
LteTestUePhy
:
public
LtePhy
27
{
28
public
:
29
/**
30
* @warning the default constructor should not be used
31
*/
32
LteTestUePhy
();
33
34
/**
35
* @param dlPhy the downlink LteSpectrumPhy instance
36
* @param ulPhy the uplink LteSpectrumPhy instance
37
*/
38
LteTestUePhy
(
Ptr<LteSpectrumPhy>
dlPhy,
Ptr<LteSpectrumPhy>
ulPhy);
39
40
~LteTestUePhy
()
override
;
41
42
void
DoDispose
()
override
;
43
/**
44
* @brief Get the type ID.
45
* @return the object TypeId
46
*/
47
static
TypeId
GetTypeId
();
48
49
/**
50
* @brief Queue the MAC PDU to be sent
51
* @param p the MAC PDU to sent
52
*/
53
void
DoSendMacPdu
(
Ptr<Packet>
p)
override
;
54
55
/**
56
* @brief Create the PSD for the TX
57
* @return the pointer to the PSD
58
*/
59
Ptr<SpectrumValue>
CreateTxPowerSpectralDensity
()
override
;
60
61
void
GenerateCtrlCqiReport
(
const
SpectrumValue
& sinr)
override
;
62
63
void
GenerateDataCqiReport
(
const
SpectrumValue
& sinr)
override
;
64
65
void
ReportInterference
(
const
SpectrumValue
& interf)
override
;
66
67
void
ReportRsReceivedPower
(
const
SpectrumValue
& power)
override
;
68
69
/**
70
* @brief Reeive LTE Control Message
71
* @param msg the control message
72
*/
73
virtual
void
ReceiveLteControlMessage
(
Ptr<LteControlMessage>
msg);
74
75
/**
76
* @brief Get the SINR
77
* @return the SINR
78
*/
79
SpectrumValue
GetSinr
();
80
81
private
:
82
SpectrumValue
m_sinr
;
///< the SINR
83
};
84
85
}
// namespace ns3
86
87
#endif
/* LTE_TEST_UE_PHY_H */
ns3::LtePhy
The LtePhy models the physical layer of LTE.
Definition
lte-phy.h:40
ns3::LteTestUePhy
Defines a simplified LtePhy class that is used for testing purposes of downlink and uplink SINR gener...
Definition
lte-test-ue-phy.h:27
ns3::LteTestUePhy::CreateTxPowerSpectralDensity
Ptr< SpectrumValue > CreateTxPowerSpectralDensity() override
Create the PSD for the TX.
Definition
lte-test-ue-phy.cc:59
ns3::LteTestUePhy::DoSendMacPdu
void DoSendMacPdu(Ptr< Packet > p) override
Queue the MAC PDU to be sent.
Definition
lte-test-ue-phy.cc:53
ns3::LteTestUePhy::m_sinr
SpectrumValue m_sinr
the SINR
Definition
lte-test-ue-phy.h:82
ns3::LteTestUePhy::~LteTestUePhy
~LteTestUePhy() override
Definition
lte-test-ue-phy.cc:32
ns3::LteTestUePhy::ReportInterference
void ReportInterference(const SpectrumValue &interf) override
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
Definition
lte-test-ue-phy.cc:93
ns3::LteTestUePhy::ReceiveLteControlMessage
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Reeive LTE Control Message.
Definition
lte-test-ue-phy.cc:100
ns3::LteTestUePhy::ReportRsReceivedPower
void ReportRsReceivedPower(const SpectrumValue &power) override
generate a report based on the linear RS power perceived during CTRL frame NOTE: used only by UE for ...
Definition
lte-test-ue-phy.cc:86
ns3::LteTestUePhy::DoDispose
void DoDispose() override
Destructor implementation.
Definition
lte-test-ue-phy.cc:37
ns3::LteTestUePhy::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-test-ue-phy.cc:45
ns3::LteTestUePhy::GenerateCtrlCqiReport
void GenerateCtrlCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Ctrl frame
Definition
lte-test-ue-phy.cc:68
ns3::LteTestUePhy::GenerateDataCqiReport
void GenerateDataCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs)
Definition
lte-test-ue-phy.cc:77
ns3::LteTestUePhy::GetSinr
SpectrumValue GetSinr()
Get the SINR.
Definition
lte-test-ue-phy.cc:106
ns3::LteTestUePhy::LteTestUePhy
LteTestUePhy()
Definition
lte-test-ue-phy.cc:20
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition
spectrum-value.h:50
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
test
lte-test-ue-phy.h
Generated on Wed Dec 4 2024 18:20:45 for ns-3 by
1.11.0