#include <lte-test-ue-measurements.h>
Inheritance diagram for LteUeMeasurementsTestCase:
Collaboration diagram for LteUeMeasurementsTestCase:Public Member Functions | |
| LteUeMeasurementsTestCase (std::string name, double d1, double d2, double rsrpDbmUe1, double rsrpDbmUe2, double rsrqDbUe1, double rsrqDbUe2) | |
| virtual | ~LteUeMeasurementsTestCase () |
| void | RecvMeasurementReport (uint64_t imsi, uint16_t cellId, uint16_t rnti, LteRrcSap::MeasurementReport meas) |
| void | ReportUeMeasurements (uint16_t rnti, uint16_t cellId, double rsrp, double rsrq, bool servingCell) |
Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () |
| Destructor. More... | |
| std::string | GetName (void) const |
Private Member Functions | |
| virtual void | DoRun (void) |
| Implementation to actually run this TestCase. More... | |
Private Attributes | |
| double | m_d1 |
| double | m_d2 |
| double | m_rsrpDbmUeNeighborCell |
| double | m_rsrpDbmUeServingCell |
| double | m_rsrqDbUeNeighborCell |
| double | m_rsrqDbUeServingCell |
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) | |
| 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) |
Definition at line 58 of file lte-test-ue-measurements.h.
| LteUeMeasurementsTestCase::LteUeMeasurementsTestCase | ( | std::string | name, |
| double | d1, | ||
| double | d2, | ||
| double | rsrpDbmUe1, | ||
| double | rsrpDbmUe2, | ||
| double | rsrqDbUe1, | ||
| double | rsrqDbUe2 | ||
| ) |
Definition at line 114 of file lte-test-ue-measurements.cc.
References NS_LOG_INFO.
|
virtual |
Definition at line 131 of file lte-test-ue-measurements.cc.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 136 of file lte-test-ue-measurements.cc.
References ns3::LteHelper::ActivateDataRadioBearer(), ns3::ListPositionAllocator::Add(), ns3::LteHelper::Attach(), ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::NetDeviceContainer::Get(), ns3::TestCase::GetName(), ns3::MobilityHelper::Install(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), m_d1, m_d2, ns3::MakeBoundCallback(), NS_LOG_INFO, RecvMeasurementReportCallback(), ReportUeMeasurementsCallback(), ns3::Seconds(), ns3::ObjectBase::SetAttribute(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::LteHelper::SetSchedulerAttribute(), and ns3::LteHelper::SetSchedulerType().
Here is the call graph for this function:| void LteUeMeasurementsTestCase::RecvMeasurementReport | ( | uint64_t | imsi, |
| uint16_t | cellId, | ||
| uint16_t | rnti, | ||
| LteRrcSap::MeasurementReport | meas | ||
| ) |
Definition at line 243 of file lte-test-ue-measurements.cc.
References m_rsrpDbmUeNeighborCell, m_rsrpDbmUeServingCell, m_rsrqDbUeNeighborCell, m_rsrqDbUeServingCell, ns3::LteRrcSap::MeasurementReport::measResults, ns3::MilliSeconds(), ns3::Now(), NS_LOG_DEBUG, NS_TEST_ASSERT_MSG_EQ, ns3::LteRrcSap::MeasResults::rsrpResult, and ns3::LteRrcSap::MeasResults::rsrqResult.
Referenced by RecvMeasurementReportCallback().
Here is the call graph for this function:
Here is the caller graph for this function:| void LteUeMeasurementsTestCase::ReportUeMeasurements | ( | uint16_t | rnti, |
| uint16_t | cellId, | ||
| double | rsrp, | ||
| double | rsrq, | ||
| bool | servingCell | ||
| ) |
Definition at line 220 of file lte-test-ue-measurements.cc.
References m_rsrpDbmUeNeighborCell, m_rsrpDbmUeServingCell, m_rsrqDbUeNeighborCell, m_rsrqDbUeServingCell, ns3::MilliSeconds(), ns3::Now(), NS_LOG_DEBUG, and NS_TEST_ASSERT_MSG_EQ_TOL.
Referenced by ReportUeMeasurementsCallback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 71 of file lte-test-ue-measurements.h.
Referenced by DoRun().
|
private |
Definition at line 72 of file lte-test-ue-measurements.h.
Referenced by DoRun().
|
private |
Definition at line 74 of file lte-test-ue-measurements.h.
Referenced by RecvMeasurementReport(), and ReportUeMeasurements().
|
private |
Definition at line 73 of file lte-test-ue-measurements.h.
Referenced by RecvMeasurementReport(), and ReportUeMeasurements().
|
private |
Definition at line 76 of file lte-test-ue-measurements.h.
Referenced by RecvMeasurementReport(), and ReportUeMeasurements().
|
private |
Definition at line 75 of file lte-test-ue-measurements.h.
Referenced by RecvMeasurementReport(), and ReportUeMeasurements().