#include <lte-test-frequency-reuse.h>
Public Member Functions | |
LteFrAreaTestCase (std::string name, std::string schedulerType) | |
virtual | ~LteFrAreaTestCase () |
void | DlDataRxStart (Ptr< const SpectrumValue > spectrumValue) |
void | SetDlExpectedValues (double expectedPower, std::vector< bool > expectedDlRb) |
void | SetUlExpectedValues (double expectedPower, std::vector< bool > expectedDlRb) |
void | SimpleTeleportUe (uint32_t x, uint32_t y) |
void | TeleportUe (uint32_t x, uint32_t y, double expectedPower, std::vector< bool > expectedDlRb) |
void | TeleportUe2 (Ptr< Node > ueNode, uint32_t x, uint32_t y, double expectedPower, std::vector< bool > expectedDlRb) |
void | UlDataRxStart (Ptr< const SpectrumValue > spectrumValue) |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Protected Member Functions | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
![]() | |
TestCase (std::string name) | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
void | SetDataDir (std::string directory) |
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 |
bool | MustContinueOnFailure (void) const |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
Protected Attributes | |
uint8_t | m_dlBandwidth |
double | m_expectedDlPower |
std::vector< bool > | m_expectedDlRb |
double | m_expectedUlPower |
std::vector< bool > | m_expectedUlRb |
std::string | m_schedulerType |
Time | m_teleportTime |
Ptr< MobilityModel > | m_ueMobility |
uint8_t | m_ulBandwidth |
bool | m_usedWrongDlPower |
bool | m_usedWrongDlRbg |
bool | m_usedWrongUlPower |
bool | m_usedWrongUlRbg |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
Definition at line 117 of file lte-test-frequency-reuse.h.
LteFrAreaTestCase::LteFrAreaTestCase | ( | std::string | name, |
std::string | schedulerType | ||
) |
Definition at line 470 of file lte-test-frequency-reuse.cc.
References m_dlBandwidth, m_ulBandwidth, m_usedWrongDlRbg, and m_usedWrongUlRbg.
|
virtual |
Definition at line 479 of file lte-test-frequency-reuse.cc.
void LteFrAreaTestCase::DlDataRxStart | ( | Ptr< const SpectrumValue > | spectrumValue | ) |
Definition at line 484 of file lte-test-frequency-reuse.cc.
References ns3::SpectrumValue::ConstValuesBegin(), ns3::SpectrumValue::ConstValuesEnd(), m_dlBandwidth, m_expectedDlPower, m_expectedDlRb, m_teleportTime, m_usedWrongDlRbg, ns3::MilliSeconds(), ns3::Now(), NS_LOG_DEBUG, and NS_TEST_ASSERT_MSG_EQ_TOL.
Referenced by DlDataRxStartNofiticationArea().
|
protectedvirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Reimplemented in LteDistributedFfrAreaTestCase, LteEnhancedFfrAreaTestCase, LteSoftFfrAreaTestCase, LteSoftFrAreaTestCase, and LteStrictFrAreaTestCase.
Definition at line 596 of file lte-test-frequency-reuse.cc.
void LteFrAreaTestCase::SetDlExpectedValues | ( | double | expectedPower, |
std::vector< bool > | expectedDlRb | ||
) |
Definition at line 580 of file lte-test-frequency-reuse.cc.
References m_expectedDlPower, m_expectedDlRb, and NS_LOG_FUNCTION.
void LteFrAreaTestCase::SetUlExpectedValues | ( | double | expectedPower, |
std::vector< bool > | expectedDlRb | ||
) |
Definition at line 588 of file lte-test-frequency-reuse.cc.
References m_expectedUlPower, m_expectedUlRb, and NS_LOG_FUNCTION.
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), and LteDistributedFfrAreaTestCase::DoRun().
void LteFrAreaTestCase::SimpleTeleportUe | ( | uint32_t | x, |
uint32_t | y | ||
) |
Definition at line 545 of file lte-test-frequency-reuse.cc.
References m_teleportTime, m_ueMobility, ns3::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().
void LteFrAreaTestCase::TeleportUe | ( | uint32_t | x, |
uint32_t | y, | ||
double | expectedPower, | ||
std::vector< bool > | expectedDlRb | ||
) |
Definition at line 554 of file lte-test-frequency-reuse.cc.
References m_expectedDlPower, m_expectedDlRb, m_teleportTime, m_ueMobility, ns3::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), and LteDistributedFfrAreaTestCase::DoRun().
void LteFrAreaTestCase::TeleportUe2 | ( | Ptr< Node > | ueNode, |
uint32_t | x, | ||
uint32_t | y, | ||
double | expectedPower, | ||
std::vector< bool > | expectedDlRb | ||
) |
Definition at line 566 of file lte-test-frequency-reuse.cc.
References ns3::Object::GetObject(), m_expectedDlPower, m_expectedDlRb, m_teleportTime, ns3::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().
Referenced by LteDistributedFfrAreaTestCase::DoRun().
void LteFrAreaTestCase::UlDataRxStart | ( | Ptr< const SpectrumValue > | spectrumValue | ) |
Definition at line 516 of file lte-test-frequency-reuse.cc.
References ns3::SpectrumValue::ConstValuesBegin(), ns3::SpectrumValue::ConstValuesEnd(), m_expectedUlPower, m_expectedUlRb, m_teleportTime, m_ulBandwidth, m_usedWrongUlRbg, ns3::MilliSeconds(), ns3::Now(), NS_LOG_DEBUG, and NS_TEST_ASSERT_MSG_EQ_TOL.
Referenced by UlDataRxStartNofiticationArea().
|
protected |
Definition at line 139 of file lte-test-frequency-reuse.h.
Referenced by DlDataRxStart(), LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), and LteFrAreaTestCase().
|
protected |
Definition at line 145 of file lte-test-frequency-reuse.h.
Referenced by DlDataRxStart(), SetDlExpectedValues(), TeleportUe(), and TeleportUe2().
|
protected |
Definition at line 146 of file lte-test-frequency-reuse.h.
Referenced by DlDataRxStart(), SetDlExpectedValues(), TeleportUe(), and TeleportUe2().
|
protected |
Definition at line 150 of file lte-test-frequency-reuse.h.
Referenced by SetUlExpectedValues(), and UlDataRxStart().
|
protected |
Definition at line 151 of file lte-test-frequency-reuse.h.
Referenced by SetUlExpectedValues(), and UlDataRxStart().
|
protected |
Definition at line 137 of file lte-test-frequency-reuse.h.
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), and LteDistributedFfrAreaTestCase::DoRun().
|
protected |
Definition at line 142 of file lte-test-frequency-reuse.h.
Referenced by DlDataRxStart(), SimpleTeleportUe(), TeleportUe(), TeleportUe2(), and UlDataRxStart().
|
protected |
Definition at line 143 of file lte-test-frequency-reuse.h.
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), SimpleTeleportUe(), and TeleportUe().
|
protected |
Definition at line 140 of file lte-test-frequency-reuse.h.
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LteFrAreaTestCase(), and UlDataRxStart().
|
protected |
Definition at line 148 of file lte-test-frequency-reuse.h.
|
protected |
Definition at line 147 of file lte-test-frequency-reuse.h.
Referenced by DlDataRxStart(), LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), and LteFrAreaTestCase().
|
protected |
Definition at line 153 of file lte-test-frequency-reuse.h.
|
protected |
Definition at line 152 of file lte-test-frequency-reuse.h.
Referenced by LteStrictFrAreaTestCase::DoRun(), LteSoftFrAreaTestCase::DoRun(), LteSoftFfrAreaTestCase::DoRun(), LteEnhancedFfrAreaTestCase::DoRun(), LteDistributedFfrAreaTestCase::DoRun(), LteFrAreaTestCase(), and UlDataRxStart().