A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LteRrcConnectionEstablishmentErrorTestCase Class Reference
+ Inheritance diagram for LteRrcConnectionEstablishmentErrorTestCase:
+ Collaboration diagram for LteRrcConnectionEstablishmentErrorTestCase:

Public Member Functions

 LteRrcConnectionEstablishmentErrorTestCase (Time jumpAwayTime, std::string description="")
 
- Public Member Functions inherited from 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="")
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Protected Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 
- Protected Member Functions inherited from LteRrcConnectionEstablishmentTestCase
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)
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 
void AddTestCase (TestCase *testCase) NS_DEPRECATED
 Add an individual child TestCase case to this TestCase. More...
 
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
bool GetErrorStatus (void) const NS_DEPRECATED
 
TestCaseGetParent () const
 
bool IsStatusFailure (void) const
 
bool IsStatusSuccess (void) const
 
void SetDataDir (std::string directory)
 
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
 
bool MustContinueOnFailure (void) const
 
std::string CreateDataDirFilename (std::string filename)
 
std::string CreateTempDirFilename (std::string filename)
 

Private Member Functions

void JumpAway ()
 
void JumpBack ()
 

Private Attributes

Time m_jumpAwayTime
 
Ptr< MobilityModelm_ueMobility
 

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...
 
- Static Protected Member Functions inherited from LteRrcConnectionEstablishmentTestCase
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 inherited from LteRrcConnectionEstablishmentTestCase
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
 

Detailed Description

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

Constructor & Destructor Documentation

LteRrcConnectionEstablishmentErrorTestCase::LteRrcConnectionEstablishmentErrorTestCase ( Time  jumpAwayTime,
std::string  description = "" 
)
Parameters
jumpAwayTimethe time when all the UEs 'teleport' to a pre-defined high-interference position and stay there for 100 ms
descriptionadditional description of the test case

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

References ns3::TestCase::GetName(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Function Documentation

void LteRrcConnectionEstablishmentErrorTestCase::DoRun ( void  )
protectedvirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Reimplemented from LteRrcConnectionEstablishmentTestCase.

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

References ns3::LteHelper::AssignStreams(), ns3::NetDeviceContainer::Begin(), LteRrcConnectionEstablishmentTestCase::CheckConnected(), LteRrcConnectionEstablishmentTestCase::CheckNotConnected(), LteRrcConnectionEstablishmentTestCase::Connect(), ns3::Config::Connect(), LteRrcConnectionEstablishmentTestCase::ConnectionEstablishedCallback(), LteRrcConnectionEstablishmentTestCase::ConnectionTimeoutCallback(), ns3::NodeContainer::Create(), ns3::NetDeviceContainer::End(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::LteUeNetDevice::GetImsi(), ns3::TestCase::GetName(), ns3::Object::GetObject(), ns3::MobilityHelper::Install(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallUeDevice(), JumpAway(), JumpBack(), LteRrcConnectionEstablishmentTestCase::m_admitRrcConnectionRequest, LteRrcConnectionEstablishmentTestCase::m_delayConnEnd, LteRrcConnectionEstablishmentTestCase::m_delayDiscEnd, LteRrcConnectionEstablishmentTestCase::m_delayDiscStart, LteRrcConnectionEstablishmentTestCase::m_isConnectionEstablished, m_jumpAwayTime, LteRrcConnectionEstablishmentTestCase::m_lteHelper, LteRrcConnectionEstablishmentTestCase::m_nUes, LteRrcConnectionEstablishmentTestCase::m_tConnBase, LteRrcConnectionEstablishmentTestCase::m_tConnIncrPerUe, m_ueMobility, LteRrcConnectionEstablishmentTestCase::m_useIdealRrc, ns3::MakeCallback(), ns3::MilliSeconds(), NS_LOG_FUNCTION, ns3::Config::Reset(), ns3::ObjectBase::SetAttribute(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), and ns3::MobilityHelper::SetPositionAllocator().

+ Here is the call graph for this function:

void LteRrcConnectionEstablishmentErrorTestCase::JumpAway ( )
private

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

References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LteRrcConnectionEstablishmentErrorTestCase::JumpBack ( )
private

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

References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().

Referenced by DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Time LteRrcConnectionEstablishmentErrorTestCase::m_jumpAwayTime
private

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

Referenced by DoRun().

Ptr<MobilityModel> LteRrcConnectionEstablishmentErrorTestCase::m_ueMobility
private

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

Referenced by DoRun(), JumpAway(), and JumpBack().


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