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... | |
virtual | ~LteDownlinkPowerControlRrcConnectionReconfigurationTestCase () |
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 (void) const |
TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
virtual void | DoRun (void) |
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 TestCsse. More... | |
bool | IsStatusFailure (void) const |
Check if any tests failed. More... | |
bool | IsStatusSuccess (void) 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 (void) const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure (void) 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 128 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 496 of file lte-test-downlink-power-control.cc.
|
virtual |
Definition at line 506 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 531 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 511 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 521 of file lte-test-downlink-power-control.cc.
References m_connectionReconfigurationUeReceived, ns3::MilliSeconds(), ns3::Now(), and NS_LOG_DEBUG.
Referenced by NotifyConnectionReconfigurationUe().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Simulation Topology
Implements ns3::TestCase.
Definition at line 538 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::ObjectBase::GetAttribute(), 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 171 of file lte-test-downlink-power-control.h.
Referenced by ChangePdschConfigDedicated(), and DoRun().
|
private |
connection reconfiguration ENB completed?
Definition at line 173 of file lte-test-downlink-power-control.h.
Referenced by ConnectionReconfigurationEnb(), and DoRun().
|
private |
connection reconfiguration UE received?
Definition at line 172 of file lte-test-downlink-power-control.h.
Referenced by ConnectionReconfigurationUe(), and DoRun().
|
private |
use ideal RRC?
Definition at line 169 of file lte-test-downlink-power-control.h.
Referenced by DoRun().