Verifying that the time needed for handover is under a specified threshold. More...
Public Member Functions | |
LteHandoverDelayTestCase (uint8_t numberOfComponentCarriers, bool useIdealRrc, Time handoverTime, Time delayThreshold, Time simulationDuration) | |
Constructor. 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... | |
void | EnbHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
ENB handover end OK callback function. More... | |
void | EnbHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
ENB handover start callback function. More... | |
void | UeHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
UE handover end OK callback function. More... | |
void | UeHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
UE handover start callback function. More... | |
Private Attributes | |
Time | m_delayThreshold |
the delay threshold More... | |
Time | m_enbHandoverStart |
ENB handover start time. More... | |
Time | m_handoverTime |
handover time More... | |
uint8_t | m_numberOfComponentCarriers |
Number of component carriers. More... | |
Time | m_simulationDuration |
the simulation duration More... | |
Time | m_ueHandoverStart |
UE handover start time. 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... | |
Verifying that the time needed for handover is under a specified threshold.
Definition at line 54 of file test-lte-handover-delay.cc.
|
inline |
Constructor.
numberOfComponentCarriers | number of component carriers |
useIdealRrc | if true, use the ideal RRC |
handoverTime | the time of handover |
delayThreshold | the delay threshold |
simulationDuration | duration of the simulation |
Definition at line 66 of file test-lte-handover-delay.cc.
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 145 of file test-lte-handover-delay.cc.
References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), EnbHandoverEndOkCallback(), EnbHandoverStartCallback(), ns3::MobilityHelper::Install(), ns3::InternetStackHelper::Install(), ns3::MakeCallback(), NS_LOG_INFO, ns3::Simulator::Run(), ns3::Time::S, ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), ns3::Simulator::Stop(), UeHandoverEndOkCallback(), and UeHandoverStartCallback().
|
private |
ENB handover end OK callback function.
context | the context string |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
Definition at line 271 of file test-lte-handover-delay.cc.
References ns3::Time::As(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_LT, ns3::Time::S, and ns3::Seconds().
Referenced by DoRun().
|
private |
ENB handover start callback function.
context | the context string |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
targetCellId | the target cell ID |
Definition at line 260 of file test-lte-handover-delay.cc.
References ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
UE handover end OK callback function.
context | the context string |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
Definition at line 242 of file test-lte-handover-delay.cc.
References ns3::Time::As(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_LT, ns3::Time::S, and ns3::Seconds().
Referenced by DoRun().
|
private |
UE handover start callback function.
context | the context string |
imsi | the IMSI |
cellid | the cell ID |
rnti | the RNTI |
targetCellId | the target cell ID |
Definition at line 231 of file test-lte-handover-delay.cc.
References ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
the delay threshold
Definition at line 137 of file test-lte-handover-delay.cc.
|
private |
ENB handover start time.
Definition at line 141 of file test-lte-handover-delay.cc.
|
private |
handover time
Definition at line 136 of file test-lte-handover-delay.cc.
|
private |
Number of component carriers.
Definition at line 134 of file test-lte-handover-delay.cc.
|
private |
the simulation duration
Definition at line 138 of file test-lte-handover-delay.cc.
|
private |
UE handover start time.
Definition at line 140 of file test-lte-handover-delay.cc.
|
private |
use ideal RRC?
Definition at line 135 of file test-lte-handover-delay.cc.