A Discrete-Event Network Simulator
API
LteHandoverDelayTestCase Class Reference
+ Inheritance diagram for LteHandoverDelayTestCase:
+ Collaboration diagram for LteHandoverDelayTestCase:

Public Member Functions

 LteHandoverDelayTestCase (bool useIdealRrc, Time handoverTime, Time delayThreshold, Time simulationDuration)
 
- 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...
 
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)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) 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 (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) 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...
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

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

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_LT, and ns3::Seconds().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References 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:

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

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

References ns3::Time::GetSeconds(), ns3::Simulator::Now(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_LT, and ns3::Seconds().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References 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

Time LteHandoverDelayTestCase::m_delayThreshold
private

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

Time LteHandoverDelayTestCase::m_enbHandoverStart
private

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

Time LteHandoverDelayTestCase::m_handoverTime
private

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

Time LteHandoverDelayTestCase::m_simulationDuration
private

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

Time LteHandoverDelayTestCase::m_ueHandoverStart
private

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

bool LteHandoverDelayTestCase::m_useIdealRrc
private

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


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