Testing the initial cell selection procedure by UE at IDLE state in the beginning of simulation with multiple component carriers. More...
#include "lte-test-secondary-cell-selection.h"
Public Member Functions | |
LteSecondaryCellSelectionTestCase (std::string name, bool isIdealRrc, uint64_t rngRun, uint8_t numberOfComponentCarriers) | |
Creates an instance of the initial cell selection test case. More... | |
virtual | ~LteSecondaryCellSelectionTestCase () |
Public Member Functions inherited from ns3::TestCase | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | ConnectionEstablishedCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti) |
Connection established callback function. More... | |
virtual void | DoRun () |
Setup the simulation according to the configuration set by the class constructor, run it, and verify the result. More... | |
void | InitialSecondaryCellSelectionEndOkCallback (std::string context, uint64_t imsi, uint16_t cellId) |
Initial cell selection end ok callback function. More... | |
void | StateTransitionCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti, LteUeRrc::State oldState, LteUeRrc::State newState) |
State transition callback function. More... | |
Private Attributes | |
bool | m_isIdealRrc |
whether the LTE is configured to use ideal RRC More... | |
std::map< uint64_t, LteUeRrc::State > | m_lastState |
The current UE RRC state. More... | |
uint8_t | m_numberOfComponentCarriers |
number of component carriers More... | |
uint64_t | m_rngRun |
rng run 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 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... | |
Testing the initial cell selection procedure by UE at IDLE state in the beginning of simulation with multiple component carriers.
Definition at line 54 of file lte-test-secondary-cell-selection.h.
LteSecondaryCellSelectionTestCase::LteSecondaryCellSelectionTestCase | ( | std::string | name, |
bool | isIdealRrc, | ||
uint64_t | rngRun, | ||
uint8_t | numberOfComponentCarriers | ||
) |
Creates an instance of the initial cell selection test case.
name | name of this test |
isIdealRrc | if true, simulation uses Ideal RRC protocol, otherwise simulation uses Real RRC protocol |
rngRun | the number of run to be used by the random number generator |
numberOfComponentCarriers | number of component carriers |
Definition at line 74 of file lte-test-secondary-cell-selection.cc.
References ns3::TestCase::GetName(), and NS_LOG_FUNCTION.
|
virtual |
Definition at line 85 of file lte-test-secondary-cell-selection.cc.
References ns3::TestCase::GetName(), and NS_LOG_FUNCTION.
|
private |
Connection established callback function.
context | the context string |
imsi | the IMSI |
cellId | the cell ID |
rnti | the RNTI |
Definition at line 187 of file lte-test-secondary-cell-selection.cc.
References NS_LOG_FUNCTION.
Referenced by DoRun().
|
privatevirtual |
Setup the simulation according to the configuration set by the class constructor, run it, and verify the result.
Implements ns3::TestCase.
Definition at line 91 of file lte-test-secondary-cell-selection.cc.
References ns3::Config::Connect(), ConnectionEstablishedCallback(), ns3::NodeContainer::Create(), ns3::TestCase::GetName(), ns3::FriisSpectrumPropagationLossModel::GetTypeId(), InitialSecondaryCellSelectionEndOkCallback(), ns3::InternetStackHelper::Install(), m_isIdealRrc, m_lastState, m_numberOfComponentCarriers, m_rngRun, ns3::MakeCallback(), third::mobility, NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_EQ, ns3::Seconds(), ns3::Config::SetGlobal(), and StateTransitionCallback().
|
private |
Initial cell selection end ok callback function.
context | the context string |
imsi | the IMSI |
cellId | the cell ID |
Definition at line 180 of file lte-test-secondary-cell-selection.cc.
References NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
State transition callback function.
context | the context string |
imsi | the IMSI |
cellId | the cell ID |
rnti | the RNTI |
oldState | the old state |
newState | the new state |
Definition at line 170 of file lte-test-secondary-cell-selection.cc.
References m_lastState, and NS_LOG_FUNCTION.
Referenced by DoRun().
|
private |
whether the LTE is configured to use ideal RRC
Definition at line 106 of file lte-test-secondary-cell-selection.h.
Referenced by DoRun().
|
private |
The current UE RRC state.
Definition at line 111 of file lte-test-secondary-cell-selection.h.
Referenced by DoRun(), and StateTransitionCallback().
|
private |
number of component carriers
Definition at line 108 of file lte-test-secondary-cell-selection.h.
Referenced by DoRun().
|
private |