Public Member Functions | |
LteHandoverDelayTestCase (bool useIdealRrc, Time handoverTime, Time delayThreshold, Time simulationDuration) | |
Public Member Functions inherited from ns3::TestCase | |
virtual | ~TestCase () |
Destructor. More... | |
Private Member Functions | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
void | EnbHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
void | EnbHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
void | UeHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
void | UeHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
Private Attributes | |
Time | m_delayThreshold |
Time | m_enbHandoverStart |
Time | m_handoverTime |
Time | m_simulationDuration |
Time | m_ueHandoverStart |
bool | m_useIdealRrc |
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) NS_DEPRECATED |
Add an individual child TestCase case to this TestCase. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
Add an individual child TestCase to this test suite. More... | |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
bool | GetErrorStatus (void) const NS_DEPRECATED |
std::string | GetName (void) const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
void | SetDataDir (std::string directory) |
Definition at line 56 of file test-lte-handover-delay.cc.
|
inline |
Definition at line 59 of file test-lte-handover-delay.cc.
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
eNodeB 0 UE eNodeB 1
x --------------------— x --------------------— x 500 m 500 m
Implements ns3::TestCase.
Definition at line 93 of file test-lte-handover-delay.cc.
References ns3::Ipv4AddressHelper::Assign(), ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), EnbHandoverEndOkCallback(), EnbHandoverStartCallback(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Object::GetObject(), ns3::Time::GetSeconds(), ns3::Ipv4StaticRoutingHelper::GetStaticRouting(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::MobilityHelper::Install(), m_handoverTime, m_simulationDuration, m_useIdealRrc, ns3::MakeCallback(), NS_LOG_INFO, ns3::Simulator::Run(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::Simulator::Stop(), UeHandoverEndOkCallback(), and UeHandoverStartCallback().
|
private |
Definition at line 241 of file test-lte-handover-delay.cc.
References ns3::Time::GetSeconds(), m_delayThreshold, m_enbHandoverStart, m_handoverTime, m_useIdealRrc, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, and NS_TEST_ASSERT_MSG_LT.
Referenced by DoRun().
|
private |
Definition at line 233 of file test-lte-handover-delay.cc.
References m_enbHandoverStart, ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
Definition at line 218 of file test-lte-handover-delay.cc.
References ns3::Time::GetSeconds(), m_delayThreshold, m_handoverTime, m_ueHandoverStart, m_useIdealRrc, ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, and NS_TEST_ASSERT_MSG_LT.
Referenced by DoRun().
|
private |
Definition at line 210 of file test-lte-handover-delay.cc.
References m_ueHandoverStart, ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
Definition at line 84 of file test-lte-handover-delay.cc.
Referenced by EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().
|
private |
Definition at line 88 of file test-lte-handover-delay.cc.
Referenced by EnbHandoverEndOkCallback(), and EnbHandoverStartCallback().
|
private |
Definition at line 83 of file test-lte-handover-delay.cc.
Referenced by DoRun(), EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().
|
private |
Definition at line 85 of file test-lte-handover-delay.cc.
Referenced by DoRun().
|
private |
Definition at line 87 of file test-lte-handover-delay.cc.
Referenced by UeHandoverEndOkCallback(), and UeHandoverStartCallback().
|
private |
Definition at line 82 of file test-lte-handover-delay.cc.
Referenced by DoRun(), EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().