25 #include "ns3/lte-helper.h"
26 #include "ns3/mobility-helper.h"
27 #include <ns3/boolean.h>
28 #include <ns3/callback.h>
29 #include <ns3/config.h>
30 #include <ns3/double.h>
32 #include <ns3/ff-mac-scheduler.h>
34 #include <ns3/lte-chunk-processor.h>
35 #include <ns3/lte-common.h>
36 #include <ns3/lte-enb-net-device.h>
37 #include <ns3/lte-enb-phy.h>
38 #include <ns3/lte-enb-rrc.h>
39 #include <ns3/lte-rrc-sap.h>
40 #include <ns3/lte-ue-net-device.h>
41 #include <ns3/lte-ue-phy.h>
42 #include <ns3/lte-ue-rrc.h>
43 #include <ns3/pointer.h>
44 #include <ns3/simulator.h>
45 #include <ns3/string.h>
56 :
TestSuite(
"lte-downlink-power-control", SYSTEM)
60 NS_LOG_INFO(
"Creating LteDownlinkPowerControlTestSuite");
64 std::vector<int> activeRbs_txpowdB30nrb6run1earfcn500(4);
65 activeRbs_txpowdB30nrb6run1earfcn500[0] = 0;
66 activeRbs_txpowdB30nrb6run1earfcn500[1] = 2;
67 activeRbs_txpowdB30nrb6run1earfcn500[2] = 3;
68 activeRbs_txpowdB30nrb6run1earfcn500[3] = 5;
70 uint16_t earfcn = 500;
74 std::map<int, double> powerTxMap;
75 double rbTxPower = powerTx;
78 powerTxMap.insert(std::pair<int, double>(0, rbTxPower));
81 powerTxMap.insert(std::pair<int, double>(2, rbTxPower));
84 powerTxMap.insert(std::pair<int, double>(3, rbTxPower));
87 powerTxMap.insert(std::pair<int, double>(5, rbTxPower));
90 LteSpectrumValueHelper::GetSpectrumModel(500, 6));
91 spectrumValue_txpowdB30nrb6run1earfcn500[0] = 2.325820769916e-07;
92 spectrumValue_txpowdB30nrb6run1earfcn500[1] = 0.000000000000e+00;
93 spectrumValue_txpowdB30nrb6run1earfcn500[2] = 4.640622533585e-07;
94 spectrumValue_txpowdB30nrb6run1earfcn500[3] = 9.259259259259e-07;
95 spectrumValue_txpowdB30nrb6run1earfcn500[4] = 0.000000000000e+00;
96 spectrumValue_txpowdB30nrb6run1earfcn500[5] = 1.467493696723e-06;
99 "txpowdB30nrb6run1earfcn500_allRbPower",
104 activeRbs_txpowdB30nrb6run1earfcn500,
105 spectrumValue_txpowdB30nrb6run1earfcn500),
110 std::vector<int> activeRbs_txpowdB30nrb6run1earfcn500(4);
111 activeRbs_txpowdB30nrb6run1earfcn500[0] = 0;
112 activeRbs_txpowdB30nrb6run1earfcn500[1] = 2;
113 activeRbs_txpowdB30nrb6run1earfcn500[2] = 3;
114 activeRbs_txpowdB30nrb6run1earfcn500[3] = 5;
116 uint16_t earfcn = 500;
120 std::map<int, double> powerTxMap;
121 double rbTxPower = powerTx;
124 powerTxMap.insert(std::pair<int, double>(2, rbTxPower));
127 powerTxMap.insert(std::pair<int, double>(3, rbTxPower));
130 powerTxMap.insert(std::pair<int, double>(5, rbTxPower));
133 LteSpectrumValueHelper::GetSpectrumModel(500, 6));
134 spectrumValue_txpowdB30nrb6run1earfcn500[0] = 9.259259259259e-07;
135 spectrumValue_txpowdB30nrb6run1earfcn500[1] = 0.000000000000e+00;
136 spectrumValue_txpowdB30nrb6run1earfcn500[2] = 4.640622533585e-07;
137 spectrumValue_txpowdB30nrb6run1earfcn500[3] = 9.259259259259e-07;
138 spectrumValue_txpowdB30nrb6run1earfcn500[4] = 0.000000000000e+00;
139 spectrumValue_txpowdB30nrb6run1earfcn500[5] = 1.467493696723e-06;
142 "txpowdB30nrb6run1earfcn500",
147 activeRbs_txpowdB30nrb6run1earfcn500,
148 spectrumValue_txpowdB30nrb6run1earfcn500),
152 std::vector<int> activeRbs_txpowdB30nrb25run1earfcn500(15);
153 activeRbs_txpowdB30nrb25run1earfcn500[0] = 0;
154 activeRbs_txpowdB30nrb25run1earfcn500[1] = 1;
155 activeRbs_txpowdB30nrb25run1earfcn500[2] = 2;
156 activeRbs_txpowdB30nrb25run1earfcn500[3] = 3;
157 activeRbs_txpowdB30nrb25run1earfcn500[4] = 7;
158 activeRbs_txpowdB30nrb25run1earfcn500[5] = 8;
159 activeRbs_txpowdB30nrb25run1earfcn500[6] = 9;
160 activeRbs_txpowdB30nrb25run1earfcn500[7] = 11;
161 activeRbs_txpowdB30nrb25run1earfcn500[8] = 13;
162 activeRbs_txpowdB30nrb25run1earfcn500[9] = 14;
163 activeRbs_txpowdB30nrb25run1earfcn500[10] = 18;
164 activeRbs_txpowdB30nrb25run1earfcn500[11] = 19;
165 activeRbs_txpowdB30nrb25run1earfcn500[12] = 20;
166 activeRbs_txpowdB30nrb25run1earfcn500[13] = 21;
167 activeRbs_txpowdB30nrb25run1earfcn500[14] = 24;
169 uint16_t earfcn = 500;
173 std::map<int, double> powerTxMap;
174 double rbTxPower = powerTx;
176 powerTxMap.insert(std::pair<int, double>(0, rbTxPower));
178 powerTxMap.insert(std::pair<int, double>(1, rbTxPower));
180 powerTxMap.insert(std::pair<int, double>(2, rbTxPower));
182 powerTxMap.insert(std::pair<int, double>(3, rbTxPower));
184 powerTxMap.insert(std::pair<int, double>(7, rbTxPower));
186 powerTxMap.insert(std::pair<int, double>(8, rbTxPower));
188 powerTxMap.insert(std::pair<int, double>(9, rbTxPower));
190 powerTxMap.insert(std::pair<int, double>(11, rbTxPower));
192 powerTxMap.insert(std::pair<int, double>(13, rbTxPower));
194 powerTxMap.insert(std::pair<int, double>(14, rbTxPower));
196 powerTxMap.insert(std::pair<int, double>(18, rbTxPower));
198 powerTxMap.insert(std::pair<int, double>(19, rbTxPower));
200 powerTxMap.insert(std::pair<int, double>(20, rbTxPower));
202 powerTxMap.insert(std::pair<int, double>(21, rbTxPower));
204 powerTxMap.insert(std::pair<int, double>(24, rbTxPower));
207 LteSpectrumValueHelper::GetSpectrumModel(500, bw));
208 spectrumValue_txpowdB30nrb25run1earfcn500[0] = 1.113749408060e-07;
209 spectrumValue_txpowdB30nrb25run1earfcn500[1] = 7.409475839182e-08;
210 spectrumValue_txpowdB30nrb25run1earfcn500[2] = 5.581969847799e-08;
211 spectrumValue_txpowdB30nrb25run1earfcn500[3] = 2.797612026209e-07;
212 spectrumValue_txpowdB30nrb25run1earfcn500[4] = 0.000000000000e+00;
213 spectrumValue_txpowdB30nrb25run1earfcn500[5] = 0.000000000000e+00;
214 spectrumValue_txpowdB30nrb25run1earfcn500[6] = 0.000000000000e+00;
215 spectrumValue_txpowdB30nrb25run1earfcn500[7] = 3.521984872135e-07;
216 spectrumValue_txpowdB30nrb25run1earfcn500[8] = 3.521984872135e-07;
217 spectrumValue_txpowdB30nrb25run1earfcn500[9] = 3.521984872135e-07;
218 spectrumValue_txpowdB30nrb25run1earfcn500[10] = 0.000000000000e+00;
219 spectrumValue_txpowdB30nrb25run1earfcn500[11] = 1.478384791559e-07;
220 spectrumValue_txpowdB30nrb25run1earfcn500[12] = 0.000000000000e+00;
221 spectrumValue_txpowdB30nrb25run1earfcn500[13] = 3.521984872135e-07;
222 spectrumValue_txpowdB30nrb25run1earfcn500[14] = 1.113749408060e-07;
223 spectrumValue_txpowdB30nrb25run1earfcn500[15] = 0.000000000000e+00;
224 spectrumValue_txpowdB30nrb25run1earfcn500[16] = 0.000000000000e+00;
225 spectrumValue_txpowdB30nrb25run1earfcn500[17] = 0.000000000000e+00;
226 spectrumValue_txpowdB30nrb25run1earfcn500[18] = 2.222222222222e-07;
227 spectrumValue_txpowdB30nrb25run1earfcn500[19] = 1.113749408060e-07;
228 spectrumValue_txpowdB30nrb25run1earfcn500[20] = 1.113749408060e-07;
229 spectrumValue_txpowdB30nrb25run1earfcn500[21] = 7.409475839182e-08;
230 spectrumValue_txpowdB30nrb25run1earfcn500[22] = 0.000000000000e+00;
231 spectrumValue_txpowdB30nrb25run1earfcn500[23] = 0.000000000000e+00;
232 spectrumValue_txpowdB30nrb25run1earfcn500[24] = 4.433916255486e-07;
235 "txpowdB30nrb25run1earfcn500_allRbPower",
240 activeRbs_txpowdB30nrb25run1earfcn500,
241 spectrumValue_txpowdB30nrb25run1earfcn500),
246 std::vector<int> activeRbs_txpowdB30nrb25run1earfcn500(15);
247 activeRbs_txpowdB30nrb25run1earfcn500[0] = 0;
248 activeRbs_txpowdB30nrb25run1earfcn500[1] = 1;
249 activeRbs_txpowdB30nrb25run1earfcn500[2] = 2;
250 activeRbs_txpowdB30nrb25run1earfcn500[3] = 3;
251 activeRbs_txpowdB30nrb25run1earfcn500[4] = 7;
252 activeRbs_txpowdB30nrb25run1earfcn500[5] = 8;
253 activeRbs_txpowdB30nrb25run1earfcn500[6] = 9;
254 activeRbs_txpowdB30nrb25run1earfcn500[7] = 11;
255 activeRbs_txpowdB30nrb25run1earfcn500[8] = 13;
256 activeRbs_txpowdB30nrb25run1earfcn500[9] = 14;
257 activeRbs_txpowdB30nrb25run1earfcn500[10] = 18;
258 activeRbs_txpowdB30nrb25run1earfcn500[11] = 19;
259 activeRbs_txpowdB30nrb25run1earfcn500[12] = 20;
260 activeRbs_txpowdB30nrb25run1earfcn500[13] = 21;
261 activeRbs_txpowdB30nrb25run1earfcn500[14] = 24;
263 uint16_t earfcn = 500;
267 std::map<int, double> powerTxMap;
268 double rbTxPower = powerTx;
270 powerTxMap.insert(std::pair<int, double>(0, rbTxPower));
272 powerTxMap.insert(std::pair<int, double>(2, rbTxPower));
274 powerTxMap.insert(std::pair<int, double>(3, rbTxPower));
276 powerTxMap.insert(std::pair<int, double>(7, rbTxPower));
278 powerTxMap.insert(std::pair<int, double>(8, rbTxPower));
280 powerTxMap.insert(std::pair<int, double>(13, rbTxPower));
282 powerTxMap.insert(std::pair<int, double>(14, rbTxPower));
284 powerTxMap.insert(std::pair<int, double>(18, rbTxPower));
286 powerTxMap.insert(std::pair<int, double>(19, rbTxPower));
288 powerTxMap.insert(std::pair<int, double>(24, rbTxPower));
291 LteSpectrumValueHelper::GetSpectrumModel(500, bw));
292 spectrumValue_txpowdB30nrb25run1earfcn500[0] = 1.113749408060e-07;
293 spectrumValue_txpowdB30nrb25run1earfcn500[1] = 2.222222222222e-07;
294 spectrumValue_txpowdB30nrb25run1earfcn500[2] = 5.581969847799e-08;
295 spectrumValue_txpowdB30nrb25run1earfcn500[3] = 2.797612026209e-07;
296 spectrumValue_txpowdB30nrb25run1earfcn500[4] = 0.000000000000e+00;
297 spectrumValue_txpowdB30nrb25run1earfcn500[5] = 0.000000000000e+00;
298 spectrumValue_txpowdB30nrb25run1earfcn500[6] = 0.000000000000e+00;
299 spectrumValue_txpowdB30nrb25run1earfcn500[7] = 3.521984872135e-07;
300 spectrumValue_txpowdB30nrb25run1earfcn500[8] = 3.521984872135e-07;
301 spectrumValue_txpowdB30nrb25run1earfcn500[9] = 2.222222222222e-07;
302 spectrumValue_txpowdB30nrb25run1earfcn500[10] = 0.000000000000e+00;
303 spectrumValue_txpowdB30nrb25run1earfcn500[11] = 2.222222222222e-07;
304 spectrumValue_txpowdB30nrb25run1earfcn500[12] = 0.000000000000e+00;
305 spectrumValue_txpowdB30nrb25run1earfcn500[13] = 3.521984872135e-07;
306 spectrumValue_txpowdB30nrb25run1earfcn500[14] = 1.113749408060e-07;
307 spectrumValue_txpowdB30nrb25run1earfcn500[15] = 0.000000000000e+00;
308 spectrumValue_txpowdB30nrb25run1earfcn500[16] = 0.000000000000e+00;
309 spectrumValue_txpowdB30nrb25run1earfcn500[17] = 0.000000000000e+00;
310 spectrumValue_txpowdB30nrb25run1earfcn500[18] = 2.222222222222e-07;
311 spectrumValue_txpowdB30nrb25run1earfcn500[19] = 1.113749408060e-07;
312 spectrumValue_txpowdB30nrb25run1earfcn500[20] = 2.222222222222e-07;
313 spectrumValue_txpowdB30nrb25run1earfcn500[21] = 2.222222222222e-07;
314 spectrumValue_txpowdB30nrb25run1earfcn500[22] = 0.000000000000e+00;
315 spectrumValue_txpowdB30nrb25run1earfcn500[23] = 0.000000000000e+00;
316 spectrumValue_txpowdB30nrb25run1earfcn500[24] = 4.433916255486e-07;
319 "txpowdB30nrb25run1earfcn500",
324 activeRbs_txpowdB30nrb25run1earfcn500,
325 spectrumValue_txpowdB30nrb25run1earfcn500),
331 LteRrcSap::PdschConfigDedicated::dB0,
332 "DataCtrlPowerDifference_noChange"),
335 LteRrcSap::PdschConfigDedicated::dB_6,
336 "DataCtrlPowerDifference_dB_6"),
339 LteRrcSap::PdschConfigDedicated::dB_4dot77,
340 "DataCtrlPowerDifference_dB_4dot77"),
343 LteRrcSap::PdschConfigDedicated::dB_3,
344 "DataCtrlPowerDifference_dB_3"),
347 LteRrcSap::PdschConfigDedicated::dB_1dot77,
348 "DataCtrlPowerDifference_dB_1dot77"),
351 LteRrcSap::PdschConfigDedicated::dB0,
352 "DataCtrlPowerDifference_dB0"),
355 LteRrcSap::PdschConfigDedicated::dB1,
356 "DataCtrlPowerDifference_dB1"),
359 LteRrcSap::PdschConfigDedicated::dB2,
360 "DataCtrlPowerDifference_dB2"),
363 LteRrcSap::PdschConfigDedicated::dB3,
364 "DataCtrlPowerDifference_dB3"),
370 "RrcConnReconf-IdealRrc"),
374 "RrcConnReconf-RealRrc"),
382 pdschConfigDedicated.
pa = pa;
384 txPower + LteRrcSap::ConvertPdschConfigDedicated2Double(pdschConfigDedicated);
404 std::map<int, double> powerTxMap,
405 std::vector<int> activeRbs,
407 :
TestCase(
"Downlink Power Control: " + name),
415 NS_LOG_INFO(
"Creating LteDownlinkPowerControlTestCase");
425 NS_LOG_INFO(
"Creating LteDownlinkPowerControlSpectrumValueTestCase");
428 "SpectrumModel UID mismatch");
432 "SpectrumValues not equal");
438 :
TestCase(
"Downlink Power Control: " + name)
443 NS_LOG_INFO(
"Creating LteDownlinkPowerControlTestCase");
472 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
483 lteHelper->
Attach(ueDevs, enbDevs.
Get(0));
486 enbDevs.
Get(0)->GetAttribute(
"LteFfrAlgorithm", tmp);
503 testDlDataPowerReceived->AddCallback(
504 MakeCallback(&LteSpectrumValueCatcher::ReportValue, &dlDataPowerReceivedCatcher));
505 ue1Phy->GetDownlinkSpectrumPhy()->AddDataPowerChunkProcessor(testDlDataPowerReceived);
509 testDlCtrlPowerReceived->AddCallback(
510 MakeCallback(&LteSpectrumValueCatcher::ReportValue, &dlCtrlPowerReceivedCatcher));
511 ue1Phy->GetDownlinkSpectrumPhy()->AddRsPowerChunkProcessor(testDlCtrlPowerReceived);
513 Simulator::Stop(
Seconds(0.400));
516 double dataPower = 10.0 * std::log10(dlDataPowerReceivedCatcher.
GetValue()->operator[](0));
517 double ctrlPower = 10.0 * std::log10(dlCtrlPowerReceivedCatcher.
GetValue()->operator[](0));
518 double powerDiff = (-1.0) * ctrlPower + dataPower;
529 "Downlink Data and Ctrl Power Difference are not equal within tolerance");
531 Simulator::Destroy();
568 :
TestCase(
"Downlink Power Control: " + name),
569 m_useIdealRrc(useIdealRrc),
570 m_changePdschConfigDedicatedTriggered(false),
571 m_connectionReconfigurationUeReceived(false),
572 m_connectionReconfigurationEnbCompleted(false)
614 NS_LOG_DEBUG(
"FFR Algorithm ChangePdschConfigDedicated");
640 mobility.SetMobilityModel(
"ns3::ConstantPositionMobilityModel");
651 lteHelper->
Attach(ueDevs, enbDevs.
Get(0));
654 enbDevs.
Get(0)->GetAttribute(
"LteFfrAlgorithm", tmp);
657 pdschConfigDedicated.
pa = LteRrcSap::PdschConfigDedicated::dB_6;
666 Config::Connect(
"/NodeList/0/DeviceList/0/LteFfrAlgorithm/ChangePdschConfigDedicated",
668 Config::Connect(
"/NodeList/1/DeviceList/0/LteUeRrc/ConnectionReconfiguration",
670 Config::Connect(
"/NodeList/0/DeviceList/0/LteEnbRrc/ConnectionReconfiguration",
673 Simulator::Stop(
Seconds(0.400));
678 "Ffr have not changed PdschConfigDedicated for UE");
681 "Ue have not received RrcConnectionReconfiguration");
684 "Enb have not received RrcConnectionReconfigurationCompleted");
686 Simulator::Destroy();
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.
This class contains the specification of EPS Bearers.
void ChangePdschConfigDedicated(bool change)
Callback function that is used to be connected to trace ChangePdschConfigDedicated.
void SetPdschConfigDedicated(LteRrcSap::PdschConfigDedicated pdschConfigDedicated)
Set PDSCH config dedicated function.
void SetFfrAlgorithmType(std::string type)
Set the type of FFR algorithm to be used by eNodeB devices.
NetDeviceContainer InstallEnbDevice(NodeContainer c)
Create a set of eNodeB devices.
void SetSchedulerType(std::string type)
Set the type of scheduler to be used by eNodeB devices.
void Attach(NetDeviceContainer ueDevices)
Enables automatic attachment of a set of UE devices to a suitable cell using Idle mode initial cell s...
void ActivateDataRadioBearer(NetDeviceContainer ueDevices, EpsBearer bearer)
Activate a Data Radio Bearer on a given UE devices (for LTE-only simulation).
NetDeviceContainer InstallUeDevice(NodeContainer c)
Create a set of UE devices.
The LtePhy models the physical layer of LTE.
A sink to be plugged to the callback of LteChunkProcessor allowing to save and later retrieve the lat...
Ptr< SpectrumValue > GetValue()
This class defines all functions to create spectrum model for lte.
The LteUeNetDevice class implements the UE net device.
Helper class used to assign positions and mobility models to nodes.
holds a vector of ns3::NetDevice pointers
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Hold objects of type Ptr<T>.
Ptr< Object > GetObject() const
Get the Object referenced by the PointerValue.
Set of values corresponding to a given SpectrumModel.
SpectrumModelUid_t GetSpectrumModelUid() const
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
void Reset()
Reset the initial value of every attribute as well as the value of every global to what they were bef...
void SetDefault(std::string name, const AttributeValue &value)
void Connect(std::string path, const CallbackBase &cb)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
static LteDownlinkPowerControlTestSuite lteDownlinkPowerControlTestSuite
Static variable for test initialization.
auto MakeBoundCallback(R(*fnPtr)(Args...), BArgs &&... bargs)
Make Callbacks with varying number of bound arguments.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Time Now()
create an ns3::Time instance which contains the current simulation time.
#define NS_TEST_ASSERT_MSG_SPECTRUM_VALUE_EQ_TOL(actual, expected, tol, msg)
Test if two SpectrumValue instances are equal within a given tolerance.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
Time Seconds(double value)
Construct a Time in the indicated unit.
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
void NotifyConnectionReconfigurationUe(LteDownlinkPowerControlRrcConnectionReconfigurationTestCase *testcase, std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti)
void NotifyConnectionReconfigurationEnb(LteDownlinkPowerControlRrcConnectionReconfigurationTestCase *testcase, std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti)
void ChangePdschConfigDedicatedCallback(LteDownlinkPowerControlRrcConnectionReconfigurationTestCase *testcase, std::string context, uint16_t rnti, uint8_t pa)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Callback< R, Args... > MakeCallback(R(T::*memPtr)(Args...), OBJ objPtr)
Build Callbacks for class method members which take varying numbers of arguments and potentially retu...
PdschConfigDedicated structure.
Ptr< SpectrumValue > CreateTxPowerSpectralDensity(double fc)