A Discrete-Event Network Simulator
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
16namespace 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 */
26class LteTestUePhy : public LtePhy
27{
28 public:
29 /**
30 * @warning the default constructor should not be used
31 */
33
34 /**
35 * @param dlPhy the downlink LteSpectrumPhy instance
36 * @param ulPhy the uplink LteSpectrumPhy instance
37 */
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 */
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 */
74
75 /**
76 * @brief Get the SINR
77 * @return the SINR
78 */
80
81 private:
82 SpectrumValue m_sinr; ///< the SINR
83};
84
85} // namespace ns3
86
87#endif /* LTE_TEST_UE_PHY_H */
The LtePhy models the physical layer of LTE.
Definition lte-phy.h:40
Defines a simplified LtePhy class that is used for testing purposes of downlink and uplink SINR gener...
Ptr< SpectrumValue > CreateTxPowerSpectralDensity() override
Create the PSD for the TX.
void DoSendMacPdu(Ptr< Packet > p) override
Queue the MAC PDU to be sent.
SpectrumValue m_sinr
the SINR
void ReportInterference(const SpectrumValue &interf) override
generate a report based on the linear interference and noise power perceived during DATA frame NOTE: ...
virtual void ReceiveLteControlMessage(Ptr< LteControlMessage > msg)
Reeive LTE Control Message.
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 ...
void DoDispose() override
Destructor implementation.
static TypeId GetTypeId()
Get the type ID.
void GenerateCtrlCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Ctrl frame
void GenerateDataCqiReport(const SpectrumValue &sinr) override
generate a CQI report based on the given SINR of Data frame (used for PUSCH CQIs)
SpectrumValue GetSinr()
Get the SINR.
Smart pointer class similar to boost::intrusive_ptr.
Set of values corresponding to a given SpectrumModel.
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.