This test is very similar to LteCqiGenerationTestCase. More...
#include "lte-test-cqi-generation.h"
Inheritance diagram for LteCqiGenerationDlPowerControlTestCase:
Collaboration diagram for LteCqiGenerationDlPowerControlTestCase:Public Member Functions | |
| LteCqiGenerationDlPowerControlTestCase (std::string name, uint8_t cell0Pa, uint8_t cell1Pa, uint16_t dlMcs, uint16_t ulMcs) | |
| Constructor. | |
| ~LteCqiGenerationDlPowerControlTestCase () override | |
| void | DlScheduling (DlSchedulingCallbackInfo dlInfo) |
| DL Scheduling function. | |
| void | UlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb) |
| UL Scheduling function. | |
Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
Private Attributes | |
| uint8_t | m_cell0Pa |
| cell #0 PA | |
| uint8_t | m_cell1Pa |
| cell #1 PA | |
| uint16_t | m_dlMcs |
| the DL MCS | |
| uint16_t | m_ulMcs |
| the UL MCS | |
Additional Inherited Members | |
Public Types inherited from ns3::TestCase | |
| enum class | Duration { 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) | |
| Constructor. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const |
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const |
| Check if any tests failed. | |
| bool | IsStatusSuccess () const |
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. | |
| 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. | |
| bool | MustAssertOnFailure () const |
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const |
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. | |
This test is very similar to LteCqiGenerationTestCase.
The difference is that in this test is enabled the downlink power control.
Definition at line 92 of file lte-test-cqi-generation.h.
| LteCqiGenerationDlPowerControlTestCase::LteCqiGenerationDlPowerControlTestCase | ( | std::string | name, |
| uint8_t | cell0Pa, | ||
| uint8_t | cell1Pa, | ||
| uint16_t | dlMcs, | ||
| uint16_t | ulMcs ) |
Constructor.
| name | reference name |
| cell0Pa | cell # 0 PA |
| cell1Pa | cell # 1 PA |
| dlMcs | DL MCS |
| ulMcs | UL MCS |
Definition at line 282 of file lte-test-cqi-generation.cc.
References ns3::TestCase::TestCase(), m_cell0Pa, m_cell1Pa, m_dlMcs, m_ulMcs, and NS_LOG_INFO.
Here is the call graph for this function:
|
override |
Definition at line 296 of file lte-test-cqi-generation.cc.
| void LteCqiGenerationDlPowerControlTestCase::DlScheduling | ( | DlSchedulingCallbackInfo | dlInfo | ) |
DL Scheduling function.
| dlInfo | DL info |
Definition at line 301 of file lte-test-cqi-generation.cc.
References m_dlMcs, ns3::DlSchedulingCallbackInfo::mcsTb1, ns3::MilliSeconds(), ns3::Simulator::Now(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by LteTestDlSchedulingCallback2().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 329 of file lte-test-cqi-generation.cc.
References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::CreateObject(), ns3::Simulator::Destroy(), ns3::DynamicCast(), ns3::EpsBearer::GBR_CONV_VOICE, ns3::NetDeviceContainer::Get(), ns3::PointerValue::GetObject(), LteTestDlSchedulingCallback2(), LteTestUlSchedulingCallback2(), m_cell0Pa, m_cell1Pa, ns3::MakeBoundCallback(), NS_LOG_DEBUG, ns3::LteRrcSap::PdschConfigDedicated::pa, ns3::Config::Reset(), ns3::Simulator::Run(), ns3::Seconds(), ns3::Config::SetDefault(), ns3::FfMacScheduler::SRS_UL_CQI, and ns3::Simulator::Stop().
Here is the call graph for this function:| void LteCqiGenerationDlPowerControlTestCase::UlScheduling | ( | uint32_t | frameNo, |
| uint32_t | subframeNo, | ||
| uint16_t | rnti, | ||
| uint8_t | mcs, | ||
| uint16_t | sizeTb ) |
UL Scheduling function.
| frameNo | frame number |
| subframeNo | subframe number |
| rnti | the RNTI |
| mcs | the MCS |
| sizeTb | size |
Definition at line 313 of file lte-test-cqi-generation.cc.
References m_ulMcs, ns3::MilliSeconds(), ns3::Simulator::Now(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by LteTestUlSchedulingCallback2().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
cell #0 PA
Definition at line 134 of file lte-test-cqi-generation.h.
Referenced by LteCqiGenerationDlPowerControlTestCase(), and DoRun().
|
private |
cell #1 PA
Definition at line 135 of file lte-test-cqi-generation.h.
Referenced by LteCqiGenerationDlPowerControlTestCase(), and DoRun().
|
private |
the DL MCS
Definition at line 137 of file lte-test-cqi-generation.h.
Referenced by LteCqiGenerationDlPowerControlTestCase(), and DlScheduling().
|
private |
the UL MCS
Definition at line 138 of file lte-test-cqi-generation.h.
Referenced by LteCqiGenerationDlPowerControlTestCase(), and UlScheduling().