#include <lte-test-interference.h>
Public Member Functions | |
LteInterferenceTestCase (std::string name, double d1, double d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs, uint16_t ulMcs) | |
TestCase. More... | |
virtual | ~LteInterferenceTestCase () |
void | DlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcsTb1, uint16_t sizeTb1, uint8_t mcsTb2, uint16_t sizeTb2) |
void | UlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb) |
Public Member Functions inherited from ns3::TestCase | |
virtual | ~TestCase () |
Destructor. More... | |
Private Member Functions | |
virtual void | DoRun (void) |
Implementation to actually run this TestCase. More... | |
Private Attributes | |
double | m_d1 |
double | m_d2 |
uint16_t | m_dlMcs |
double | m_dlSinrDb |
uint16_t | m_ulMcs |
double | m_ulSinrDb |
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 41 of file lte-test-interference.h.
ns3::LteInterferenceTestCase::LteInterferenceTestCase | ( | std::string | name, |
double | d1, | ||
double | d2, | ||
double | dlSinr, | ||
double | ulSinr, | ||
double | dlSe, | ||
double | ulSe, | ||
uint16_t | dlMcs, | ||
uint16_t | ulMcs | ||
) |
Definition at line 95 of file lte-test-interference.cc.
|
virtual |
Definition at line 106 of file lte-test-interference.cc.
void ns3::LteInterferenceTestCase::DlScheduling | ( | uint32_t | frameNo, |
uint32_t | subframeNo, | ||
uint16_t | rnti, | ||
uint8_t | mcsTb1, | ||
uint16_t | sizeTb1, | ||
uint8_t | mcsTb2, | ||
uint16_t | sizeTb2 | ||
) |
Definition at line 231 of file lte-test-interference.cc.
References m_dlMcs, ns3::Simulator::Now(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by ns3::LteTestDlSchedulingCallback().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 111 of file lte-test-interference.cc.
References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::EpsBearer::GBR_CONV_VOICE, ns3::NetDeviceContainer::Get(), ns3::TestCase::GetName(), ns3::Object::GetObject(), ns3::MobilityHelper::Install(), ns3::LteTestDlSchedulingCallback(), ns3::LteTestUlSchedulingCallback(), m_d1, m_d2, m_dlMcs, m_dlSinrDb, m_ulMcs, m_ulSinrDb, ns3::MakeBoundCallback(), NS_LOG_INFO, NS_TEST_ASSERT_MSG_EQ_TOL, ns3::LteAmc::PiroEW2010, ns3::FfMacScheduler::PUSCH_UL_CQI, ns3::Simulator::Run(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), ns3::MobilityHelper::SetPositionAllocator(), and ns3::Simulator::Stop().
void ns3::LteInterferenceTestCase::UlScheduling | ( | uint32_t | frameNo, |
uint32_t | subframeNo, | ||
uint16_t | rnti, | ||
uint8_t | mcs, | ||
uint16_t | sizeTb | ||
) |
Definition at line 242 of file lte-test-interference.cc.
References m_ulMcs, ns3::Simulator::Now(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by ns3::LteTestUlSchedulingCallback().
|
private |
Definition at line 57 of file lte-test-interference.h.
Referenced by DoRun().
|
private |
Definition at line 58 of file lte-test-interference.h.
Referenced by DoRun().
|
private |
Definition at line 61 of file lte-test-interference.h.
Referenced by DlScheduling(), and DoRun().
|
private |
Definition at line 59 of file lte-test-interference.h.
Referenced by DoRun().
|
private |
Definition at line 62 of file lte-test-interference.h.
Referenced by DoRun(), and UlScheduling().
|
private |
Definition at line 60 of file lte-test-interference.h.
Referenced by DoRun().