Public Member Functions | |
LteRrcConnectionEstablishmentErrorTestCase (Time jumpAwayTime, std::string description="") | |
![]() | |
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="") | |
![]() | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Protected Member Functions | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
![]() | |
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) |
![]() | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, enum TestDuration duration) |
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... | |
Private Member Functions | |
void | JumpAway () |
void | JumpBack () |
Private Attributes | |
Time | m_jumpAwayTime |
Ptr< MobilityModel > | m_ueMobility |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
![]() | |
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="") |
![]() | |
bool | m_admitRrcConnectionRequest |
uint32_t | m_delayConnEnd |
uint32_t | m_delayDiscEnd |
uint32_t | m_delayDiscStart |
std::map< uint64_t, bool > | m_isConnectionEstablished |
Ptr< LteHelper > | m_lteHelper |
uint32_t | m_nBearers |
uint32_t | m_nUes |
uint32_t | m_tConnBase |
uint32_t | m_tConnIncrPerUe |
bool | m_useIdealRrc |
Definition at line 496 of file test-lte-rrc.cc.
LteRrcConnectionEstablishmentErrorTestCase::LteRrcConnectionEstablishmentErrorTestCase | ( | Time | jumpAwayTime, |
std::string | description = "" |
||
) |
jumpAwayTime | the time when all the UEs 'teleport' to a pre-defined high-interference position and stay there for 100 ms |
description | additional description of the test case |
Definition at line 521 of file test-lte-rrc.cc.
References ns3::TestCase::GetName(), and NS_LOG_FUNCTION.
|
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(), third::mobility, NS_LOG_FUNCTION, ns3::Config::Reset(), ns3::ObjectBase::SetAttribute(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), and ns3::MobilityHelper::SetPositionAllocator().
|
private |
Definition at line 659 of file test-lte-rrc.cc.
References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().
Referenced by DoRun().
|
private |
Definition at line 668 of file test-lte-rrc.cc.
References m_ueMobility, NS_LOG_FUNCTION, and ns3::MobilityModel::SetPosition().
Referenced by DoRun().
|
private |
Definition at line 516 of file test-lte-rrc.cc.
Referenced by DoRun().
|
private |
Definition at line 517 of file test-lte-rrc.cc.
Referenced by DoRun(), JumpAway(), and JumpBack().