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

Public Member Functions

 LteRrcConnectionEstablishmentTestCase (uint32_t nUes, uint32_t nBearers, uint32_t tConnBase, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool errorExpected, bool useIdealRrc, bool admitRrcConnectionRequest, std::string description="")
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Protected Member Functions

void CheckConnected (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 
void CheckNotConnected (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 
void Connect (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice)
 
void ConnectionEstablishedCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti)
 
void ConnectionTimeoutCallback (std::string context, uint64_t imsi, uint16_t cellId, uint16_t rnti)
 
virtual void DoRun (void)
 Implementation to actually run this TestCase. 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...
 

Static Protected Member Functions

static std::string BuildNameString (uint32_t nUes, uint32_t nBearers, uint32_t tConnBase, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool useIdealRrc, bool admitRrcConnectionRequest, std::string description="")
 

Protected Attributes

bool m_admitRrcConnectionRequest
 
uint32_t m_delayConnEnd
 
uint32_t m_delayDiscEnd
 
uint32_t m_delayDiscStart
 
std::map< uint64_t, bool > m_isConnectionEstablished
 
Ptr< LteHelperm_lteHelper
 
uint32_t m_nBearers
 
uint32_t m_nUes
 
uint32_t m_tConnBase
 
uint32_t m_tConnIncrPerUe
 
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...
 

Detailed Description

Definition at line 33 of file test-lte-rrc.cc.

Constructor & Destructor Documentation

LteRrcConnectionEstablishmentTestCase::LteRrcConnectionEstablishmentTestCase ( uint32_t  nUes,
uint32_t  nBearers,
uint32_t  tConnBase,
uint32_t  tConnIncrPerUe,
uint32_t  delayDiscStart,
bool  errorExpected,
bool  useIdealRrc,
bool  admitRrcConnectionRequest,
std::string  description = "" 
)
Parameters
nUesnumber of UEs in the test
nBearersnumber of bearers to be setup in each connection
tConnBaseconnection time base value for all UEs in ms
tConnIncrPerUeadditional connection time increment for each UE index (0...nUes-1) in ms
delayDiscStartexpected duration to perform connection establishment in ms
errorExpectedif true, test case will wait a bit longer to accomodate for transmission error
useIdealRrcIf set to false, real RRC protocol model will be used
admitRrcConnectionRequestIf set to false, eNb will not allow UE connections
descriptionadditional description of the test case

Definition at line 138 of file test-lte-rrc.cc.

References ns3::TestCase::GetName(), m_delayConnEnd, m_nBearers, NS_ASSERT, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

+ Here is the call graph for this function:

Member Function Documentation

std::string LteRrcConnectionEstablishmentTestCase::BuildNameString ( uint32_t  nUes,
uint32_t  nBearers,
uint32_t  tConnBase,
uint32_t  tConnIncrPerUe,
uint32_t  delayDiscStart,
bool  useIdealRrc,
bool  admitRrcConnectionRequest,
std::string  description = "" 
)
staticprotected

Definition at line 96 of file test-lte-rrc.cc.

void LteRrcConnectionEstablishmentTestCase::CheckNotConnected ( Ptr< NetDevice ueDevice,
Ptr< NetDevice enbDevice 
)
protected
void LteRrcConnectionEstablishmentTestCase::Connect ( Ptr< NetDevice ueDevice,
Ptr< NetDevice enbDevice 
)
protected

Definition at line 319 of file test-lte-rrc.cc.

References ns3::LteHelper::ActivateDataRadioBearer(), ns3::LteHelper::Attach(), m_lteHelper, m_nBearers, and NS_LOG_FUNCTION.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LteRrcConnectionEstablishmentTestCase::ConnectionEstablishedCallback ( std::string  context,
uint64_t  imsi,
uint16_t  cellId,
uint16_t  rnti 
)
protected

Definition at line 479 of file test-lte-rrc.cc.

References m_isConnectionEstablished, and NS_LOG_FUNCTION.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

+ Here is the caller graph for this function:

void LteRrcConnectionEstablishmentTestCase::ConnectionTimeoutCallback ( std::string  context,
uint64_t  imsi,
uint16_t  cellId,
uint16_t  rnti 
)
protected

Definition at line 488 of file test-lte-rrc.cc.

References NS_LOG_FUNCTION.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

bool LteRrcConnectionEstablishmentTestCase::m_admitRrcConnectionRequest
protected
uint32_t LteRrcConnectionEstablishmentTestCase::m_delayConnEnd
protected
uint32_t LteRrcConnectionEstablishmentTestCase::m_delayDiscEnd
protected

Definition at line 85 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

uint32_t LteRrcConnectionEstablishmentTestCase::m_delayDiscStart
protected

Definition at line 84 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

std::map<uint64_t, bool> LteRrcConnectionEstablishmentTestCase::m_isConnectionEstablished
protected
Ptr<LteHelper> LteRrcConnectionEstablishmentTestCase::m_lteHelper
protected
uint32_t LteRrcConnectionEstablishmentTestCase::m_nBearers
protected

Definition at line 80 of file test-lte-rrc.cc.

Referenced by CheckConnected(), Connect(), and LteRrcConnectionEstablishmentTestCase().

uint32_t LteRrcConnectionEstablishmentTestCase::m_nUes
protected

Definition at line 62 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

uint32_t LteRrcConnectionEstablishmentTestCase::m_tConnBase
protected

Definition at line 81 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

uint32_t LteRrcConnectionEstablishmentTestCase::m_tConnIncrPerUe
protected

Definition at line 82 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().

bool LteRrcConnectionEstablishmentTestCase::m_useIdealRrc
protected

Definition at line 86 of file test-lte-rrc.cc.

Referenced by DoRun(), and LteRrcConnectionEstablishmentErrorTestCase::DoRun().


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