A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
LteHandoverDelayTestCase Class Reference

Verifying that the time needed for handover is under a specified threshold. More...

+ Inheritance diagram for LteHandoverDelayTestCase:
+ Collaboration diagram for LteHandoverDelayTestCase:

Public Member Functions

 LteHandoverDelayTestCase (uint8_t numberOfComponentCarriers, bool useIdealRrc, Time handoverTime, Time delayThreshold, Time simulationDuration)
 Constructor.
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase.
 
void EnbHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 ENB handover end OK callback function.
 
void EnbHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId)
 ENB handover start callback function.
 
void UeHandoverEndOkCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti)
 UE handover end OK callback function.
 
void UeHandoverStartCallback (std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId)
 UE handover start callback function.
 

Private Attributes

Time m_delayThreshold
 the delay threshold
 
Time m_enbHandoverStart
 ENB handover start time.
 
Time m_handoverTime
 handover time
 
uint8_t m_numberOfComponentCarriers
 Number of component carriers.
 
Time m_simulationDuration
 the simulation duration
 
Time m_ueHandoverStart
 UE handover start time.
 
bool m_useIdealRrc
 use ideal RRC?
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum class  Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto QUICK = Duration::QUICK
 Deprecated test duration simple enums.
 
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto TAKES_FOREVER = Duration::TAKES_FOREVER
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor.
 
void AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK)
 Add an individual child TestCase to this test suite.
 
TestCaseGetParent () const
 Get the parent of this TestCase.
 
bool IsStatusFailure () const
 Check if any tests failed.
 
bool IsStatusSuccess () const
 Check if all tests passed.
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found.
 
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.
 
bool MustAssertOnFailure () const
 Check if this run should assert on failure.
 
bool MustContinueOnFailure () const
 Check if this run should continue on failure.
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory.
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory.
 

Detailed Description

Verifying that the time needed for handover is under a specified threshold.

Definition at line 43 of file test-lte-handover-delay.cc.

Constructor & Destructor Documentation

◆ LteHandoverDelayTestCase()

LteHandoverDelayTestCase::LteHandoverDelayTestCase ( uint8_t numberOfComponentCarriers,
bool useIdealRrc,
Time handoverTime,
Time delayThreshold,
Time simulationDuration )
inline

Constructor.

Parameters
numberOfComponentCarriersnumber of component carriers
useIdealRrcif true, use the ideal RRC
handoverTimethe time of handover
delayThresholdthe delay threshold
simulationDurationduration of the simulation

Definition at line 55 of file test-lte-handover-delay.cc.

Member Function Documentation

◆ DoRun()

void LteHandoverDelayTestCase::DoRun ( )
overrideprivatevirtual

◆ EnbHandoverEndOkCallback()

void LteHandoverDelayTestCase::EnbHandoverEndOkCallback ( std::string context,
uint64_t imsi,
uint16_t cellid,
uint16_t rnti )
private

ENB handover end OK callback function.

Parameters
contextthe context string
imsithe IMSI
cellidthe cell ID
rntithe RNTI

Definition at line 260 of file test-lte-handover-delay.cc.

References ns3::Time::As(), m_delayThreshold, m_enbHandoverStart, m_handoverTime, m_useIdealRrc, 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EnbHandoverStartCallback()

void LteHandoverDelayTestCase::EnbHandoverStartCallback ( std::string context,
uint64_t imsi,
uint16_t cellid,
uint16_t rnti,
uint16_t targetCellId )
private

ENB handover start callback function.

Parameters
contextthe context string
imsithe IMSI
cellidthe cell ID
rntithe RNTI
targetCellIdthe target cell ID

Definition at line 249 of file test-lte-handover-delay.cc.

References m_enbHandoverStart, ns3::Simulator::Now(), and NS_LOG_FUNCTION.

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UeHandoverEndOkCallback()

void LteHandoverDelayTestCase::UeHandoverEndOkCallback ( std::string context,
uint64_t imsi,
uint16_t cellid,
uint16_t rnti )
private

UE handover end OK callback function.

Parameters
contextthe context string
imsithe IMSI
cellidthe cell ID
rntithe RNTI

Definition at line 231 of file test-lte-handover-delay.cc.

References ns3::Time::As(), m_delayThreshold, m_handoverTime, m_ueHandoverStart, m_useIdealRrc, 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UeHandoverStartCallback()

void LteHandoverDelayTestCase::UeHandoverStartCallback ( std::string context,
uint64_t imsi,
uint16_t cellid,
uint16_t rnti,
uint16_t targetCellId )
private

UE handover start callback function.

Parameters
contextthe context string
imsithe IMSI
cellidthe cell ID
rntithe RNTI
targetCellIdthe target cell ID

Definition at line 220 of file test-lte-handover-delay.cc.

References m_ueHandoverStart, ns3::Simulator::Now(), and NS_LOG_FUNCTION.

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_delayThreshold

Time LteHandoverDelayTestCase::m_delayThreshold
private

the delay threshold

Definition at line 126 of file test-lte-handover-delay.cc.

Referenced by EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().

◆ m_enbHandoverStart

Time LteHandoverDelayTestCase::m_enbHandoverStart
private

ENB handover start time.

Definition at line 130 of file test-lte-handover-delay.cc.

Referenced by EnbHandoverEndOkCallback(), and EnbHandoverStartCallback().

◆ m_handoverTime

Time LteHandoverDelayTestCase::m_handoverTime
private

handover time

Definition at line 125 of file test-lte-handover-delay.cc.

Referenced by DoRun(), EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().

◆ m_numberOfComponentCarriers

uint8_t LteHandoverDelayTestCase::m_numberOfComponentCarriers
private

Number of component carriers.

Definition at line 123 of file test-lte-handover-delay.cc.

Referenced by DoRun().

◆ m_simulationDuration

Time LteHandoverDelayTestCase::m_simulationDuration
private

the simulation duration

Definition at line 127 of file test-lte-handover-delay.cc.

Referenced by DoRun().

◆ m_ueHandoverStart

Time LteHandoverDelayTestCase::m_ueHandoverStart
private

UE handover start time.

Definition at line 129 of file test-lte-handover-delay.cc.

Referenced by UeHandoverEndOkCallback(), and UeHandoverStartCallback().

◆ m_useIdealRrc

bool LteHandoverDelayTestCase::m_useIdealRrc
private

use ideal RRC?

Definition at line 124 of file test-lte-handover-delay.cc.

Referenced by DoRun(), EnbHandoverEndOkCallback(), and UeHandoverEndOkCallback().


The documentation for this class was generated from the following file: