10#ifndef LTE_TEST_DOWNLINK_POWER_CONTROL_H
11#define LTE_TEST_DOWNLINK_POWER_CONTROL_H
13#include "ns3/lte-spectrum-value-helper.h"
14#include "ns3/spectrum-test.h"
15#include "ns3/spectrum-value.h"
17#include <ns3/lte-rrc-sap.h>
65 std::map<int, double> powerTxMap,
66 std::vector<int> activeRbs,
71 void DoRun()
override;
97 void DoRun()
override;
158 void DoRun()
override;
Test if RRC connection reconfiguration messages are properly generated upon the change in the downlin...
~LteDownlinkPowerControlRrcConnectionReconfigurationTestCase() override
void ConnectionReconfigurationEnb(std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
Connection Reconfiguration ENB.
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase(bool useIdealRrc, std::string name)
Constructor.
void ConnectionReconfigurationUe(std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
Connection Reconfiguration UE.
void DoRun() override
Implementation to actually run this TestCase.
bool m_useIdealRrc
use ideal RRC?
bool m_changePdschConfigDedicatedTriggered
change PDSCH config dedicated triggered?
bool m_connectionReconfigurationUeReceived
connection reconfiguration UE received?
void ChangePdschConfigDedicated(uint16_t rnti, uint8_t pa)
Change PDSCH config dedicated.
bool m_connectionReconfigurationEnbCompleted
connection reconfiguration ENB completed?
Test SINR calculation in the downlink when power control is used.
LteDownlinkPowerControlSpectrumValueTestCase(std::string name, uint16_t earfcn, uint16_t bw, double powerTx, std::map< int, double > powerTxMap, std::vector< int > activeRbs, SpectrumValue &expected)
Constructor.
Ptr< SpectrumValue > m_actual
actual Tx Power Spectral Density
void DoRun() override
Implementation to actually run this TestCase.
Ptr< SpectrumValue > m_expected
expected Tx Power Spectral Density
~LteDownlinkPowerControlSpectrumValueTestCase() override
Test SINR calculation in the downlink when the power control is used.
double m_expectedPowerDiff
expected power difference
~LteDownlinkPowerControlTestCase() override
void DoRun() override
Implementation to actually run this TestCase.
LteRrcSap::PdschConfigDedicated m_pdschConfigDedicated
PDSCH config dedicated.
LteDownlinkPowerControlTestCase(bool changePower, uint8_t pa, std::string name)
Constructor.
bool m_changePdschConfigDedicated
PDSCH config dedicated change.
Test suite for the LteDownlinkPowerControlSpectrumValueTestCase.
double CalculateRbTxPower(double txPower, uint8_t pa)
Calculate RB transmit power function.
LteDownlinkPowerControlTestSuite()
TestSuite.
Smart pointer class similar to boost::intrusive_ptr.
Set of values corresponding to a given SpectrumModel.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
PdschConfigDedicated structure.