Public Member Functions | |
LteRrcConnectionEstablishmentTestCase (uint32_t nUes, uint32_t nBearers, uint32_t tc, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool useIdealRrc, bool admitRrcConnectionRequest) | |
Public Member Functions inherited from ns3::TestCase | |
virtual | ~TestCase () |
Destructor. More... | |
Private Member Functions | |
void | CheckConnected (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice) |
void | Connect (Ptr< NetDevice > ueDevice, Ptr< NetDevice > enbDevice) |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
Static Private Member Functions | |
static std::string | BuildNameString (uint32_t nUes, uint32_t nBearers, uint32_t tc, uint32_t tConnIncrPerUe, uint32_t delayDiscStart, bool useIdealRrc, bool admitRrcConnectionRequest) |
Private Attributes | |
bool | m_admitRrcConnectionRequest |
uint32_t | m_delayConnEnd |
uint32_t | m_delayDiscEnd |
uint32_t | m_delayDiscStart |
Ptr< LteHelper > | m_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... | |
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... | |
std::string | CreateDataDirFilename (std::string filename) |
std::string | CreateTempDirFilename (std::string filename) |
bool | GetErrorStatus (void) const NS_DEPRECATED |
std::string | GetName (void) const |
bool | IsStatusFailure (void) const |
bool | IsStatusSuccess (void) const |
bool | MustAssertOnFailure (void) const |
bool | MustContinueOnFailure (void) const |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
void | SetDataDir (std::string directory) |
Definition at line 32 of file test-lte-rrc.cc.
ns3::LteRrcConnectionEstablishmentTestCase::LteRrcConnectionEstablishmentTestCase | ( | uint32_t | nUes, |
uint32_t | nBearers, | ||
uint32_t | tc, | ||
uint32_t | tConnIncrPerUe, | ||
uint32_t | delayDiscStart, | ||
bool | useIdealRrc, | ||
bool | admitRrcConnectionRequest | ||
) |
nUes | number of UEs in the test |
tc | connection time base value for all UEs in ms |
tConnIncrPerUe | additional connection time increment for each UE index (0...nUes-1) in ms |
delayDiscStart | expected duration to perform connection establishment in ms |
Definition at line 94 of file test-lte-rrc.cc.
References ns3::TestCase::GetName(), m_delayConnEnd, m_nBearers, NS_ASSERT, and NS_LOG_LOGIC.
|
staticprivate |
Definition at line 67 of file test-lte-rrc.cc.
|
private |
Definition at line 253 of file test-lte-rrc.cc.
References ns3::ObjectPtrContainerValue::Begin(), ns3::UeManager::CONNECTED_NORMALLY, ns3::LteUeRrc::CONNECTED_NORMALLY, ns3::ObjectPtrContainerValue::End(), ns3::ObjectPtrContainerValue::GetN(), ns3::LteUeRrc::IDLE_CAMPED_NORMALLY, m_admitRrcConnectionRequest, m_nBearers, NS_ASSERT_MSG, NS_TEST_ASSERT_MSG_EQ, and NS_TEST_ASSERT_MSG_NE.
Referenced by DoRun().
|
private |
Definition at line 241 of file test-lte-rrc.cc.
References m_lteHelper, m_nBearers, and ns3::EpsBearer::NGBR_VIDEO_TCP_DEFAULT.
Referenced by DoRun().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 149 of file test-lte-rrc.cc.
References ns3::NetDeviceContainer::Begin(), CheckConnected(), Connect(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::NetDeviceContainer::End(), ns3::NetDeviceContainer::Get(), ns3::TestCase::GetName(), ns3::MobilityHelper::Install(), m_admitRrcConnectionRequest, m_delayConnEnd, m_delayDiscEnd, m_delayDiscStart, m_lteHelper, m_nUes, m_tConnBase, m_tConnIncrPerUe, m_useIdealRrc, NS_LOG_FUNCTION, ns3::Config::Reset(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), and ns3::Simulator::Stop().
|
private |
Definition at line 61 of file test-lte-rrc.cc.
Referenced by CheckConnected(), and DoRun().
|
private |
Definition at line 57 of file test-lte-rrc.cc.
Referenced by DoRun(), and LteRrcConnectionEstablishmentTestCase().
|
private |
Definition at line 59 of file test-lte-rrc.cc.
Referenced by DoRun().
|
private |
Definition at line 58 of file test-lte-rrc.cc.
Referenced by DoRun().
Definition at line 62 of file test-lte-rrc.cc.
|
private |
Definition at line 54 of file test-lte-rrc.cc.
Referenced by CheckConnected(), Connect(), and LteRrcConnectionEstablishmentTestCase().
|
private |
Definition at line 53 of file test-lte-rrc.cc.
Referenced by DoRun().
|
private |
Definition at line 55 of file test-lte-rrc.cc.
Referenced by DoRun().
|
private |
Definition at line 56 of file test-lte-rrc.cc.
Referenced by DoRun().
|
private |
Definition at line 60 of file test-lte-rrc.cc.
Referenced by DoRun().