Test if RRC connection reconfiguration messages are properly generated upon the change in the downlink power. More...
#include "lte-test-downlink-power-control.h"
Public Member Functions | |
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase (bool useIdealRrc, std::string name) | |
Constructor. More... | |
~LteDownlinkPowerControlRrcConnectionReconfigurationTestCase () override | |
void | ChangePdschConfigDedicated (uint16_t rnti, uint8_t pa) |
Change PDSCH config dedicated. More... | |
void | ConnectionReconfigurationEnb (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
Connection Reconfiguration ENB. More... | |
void | ConnectionReconfigurationUe (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
Connection Reconfiguration UE. More... | |
Public Member Functions inherited from ns3::TestCase | |
TestCase (const TestCase &)=delete | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName () const |
TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
void | DoRun () override |
Implementation to actually run this TestCase. More... | |
Private Attributes | |
bool | m_changePdschConfigDedicatedTriggered |
change PDSCH config dedicated triggered? More... | |
bool | m_connectionReconfigurationEnbCompleted |
connection reconfiguration ENB completed? More... | |
bool | m_connectionReconfigurationUeReceived |
connection reconfiguration UE received? More... | |
bool | m_useIdealRrc |
use ideal RRC? More... | |
Additional Inherited Members | |
Public Types inherited from ns3::TestCase | |
enum | TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
Protected Member Functions inherited from ns3::TestCase | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
Get the parent of this TestCase. More... | |
bool | IsStatusFailure () const |
Check if any tests failed. More... | |
bool | IsStatusSuccess () const |
Check if all tests passed. More... | |
void | SetDataDir (std::string directory) |
Set the data directory where reference trace files can be found. More... | |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
Log the failure of this TestCase. More... | |
bool | MustAssertOnFailure () const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure () const |
Check if this run should continue on failure. More... | |
std::string | CreateDataDirFilename (std::string filename) |
Construct the full path to a file in the data directory. More... | |
std::string | CreateTempDirFilename (std::string filename) |
Construct the full path to a file in a temporary directory. More... | |
Test if RRC connection reconfiguration messages are properly generated upon the change in the downlink power.
Definition at line 122 of file lte-test-downlink-power-control.h.
LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::LteDownlinkPowerControlRrcConnectionReconfigurationTestCase | ( | bool | useIdealRrc, |
std::string | name | ||
) |
Constructor.
useIdealRrc | if true use ideal RRC |
name | the reference name |
Definition at line 566 of file lte-test-downlink-power-control.cc.
|
override |
Definition at line 576 of file lte-test-downlink-power-control.cc.
void LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ChangePdschConfigDedicated | ( | uint16_t | rnti, |
uint8_t | pa | ||
) |
Change PDSCH config dedicated.
rnti | the RNTI |
pa | the PA |
Definition at line 610 of file lte-test-downlink-power-control.cc.
References m_changePdschConfigDedicatedTriggered, and NS_LOG_DEBUG.
Referenced by ChangePdschConfigDedicatedCallback().
void LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigurationEnb | ( | std::string | context, |
uint64_t | imsi, | ||
uint16_t | cellid, | ||
uint16_t | rnti | ||
) |
Connection Reconfiguration ENB.
context | the context name |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
Definition at line 582 of file lte-test-downlink-power-control.cc.
References m_connectionReconfigurationEnbCompleted, ns3::MilliSeconds(), ns3::Now(), and NS_LOG_DEBUG.
Referenced by NotifyConnectionReconfigurationEnb().
void LteDownlinkPowerControlRrcConnectionReconfigurationTestCase::ConnectionReconfigurationUe | ( | std::string | context, |
uint64_t | imsi, | ||
uint16_t | cellid, | ||
uint16_t | rnti | ||
) |
Connection Reconfiguration UE.
context | the context name |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
Definition at line 596 of file lte-test-downlink-power-control.cc.
References m_connectionReconfigurationUeReceived, ns3::MilliSeconds(), ns3::Now(), and NS_LOG_DEBUG.
Referenced by NotifyConnectionReconfigurationUe().
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Simulation Topology
Implements ns3::TestCase.
Definition at line 619 of file lte-test-downlink-power-control.cc.
References ns3::LteHelper::ActivateDataRadioBearer(), ns3::LteHelper::Attach(), ns3::LteFfrSimple::ChangePdschConfigDedicated(), ChangePdschConfigDedicatedCallback(), ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::NetDeviceContainer::Get(), ns3::PointerValue::GetObject(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), m_changePdschConfigDedicatedTriggered, m_connectionReconfigurationEnbCompleted, m_connectionReconfigurationUeReceived, m_useIdealRrc, ns3::MakeBoundCallback(), third::mobility, NotifyConnectionReconfigurationEnb(), NotifyConnectionReconfigurationUe(), NS_TEST_ASSERT_MSG_EQ, ns3::LteRrcSap::PdschConfigDedicated::pa, ns3::Config::Reset(), ns3::Seconds(), ns3::Config::SetDefault(), ns3::LteHelper::SetFfrAlgorithmType(), ns3::LteFfrSimple::SetPdschConfigDedicated(), and ns3::LteHelper::SetSchedulerType().
|
private |
change PDSCH config dedicated triggered?
Definition at line 172 of file lte-test-downlink-power-control.h.
Referenced by ChangePdschConfigDedicated(), and DoRun().
|
private |
connection reconfiguration ENB completed?
Definition at line 174 of file lte-test-downlink-power-control.h.
Referenced by ConnectionReconfigurationEnb(), and DoRun().
|
private |
connection reconfiguration UE received?
Definition at line 173 of file lte-test-downlink-power-control.h.
Referenced by ConnectionReconfigurationUe(), and DoRun().
|
private |
use ideal RRC?
Definition at line 170 of file lte-test-downlink-power-control.h.
Referenced by DoRun().