A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
LenaTdTbfqFfMacSchedulerTestCase2 Class Reference

Lena TdTbfq Ff Mac Scheduler Test Case 2. More...

#include "lte-test-tdtbfq-ff-mac-scheduler.h"

+ Inheritance diagram for LenaTdTbfqFfMacSchedulerTestCase2:
+ Collaboration diagram for LenaTdTbfqFfMacSchedulerTestCase2:

Public Member Functions

 LenaTdTbfqFfMacSchedulerTestCase2 (std::vector< double > dist, std::vector< uint32_t > estThrTdTbfqDl, std::vector< uint16_t > packetSize, uint16_t interval, bool errorModelEnabled)
 Constructor.
 
 ~LenaTdTbfqFfMacSchedulerTestCase2 () override
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase.
 

Static Private Member Functions

static std::string BuildNameString (uint16_t nUser, std::vector< double > dist)
 Builds the test name string based on provided parameter values.
 

Private Attributes

std::vector< doublem_dist
 the distance between nodes
 
bool m_errorModelEnabled
 whether the error model is enabled
 
std::vector< uint32_tm_estThrTdTbfqDl
 the estimated downlink throughput
 
uint16_t m_interval
 the packet interval time in ms
 
uint16_t m_nUser
 number of UE nodes
 
std::vector< uint16_t > m_packetSize
 the packet size in bytes
 

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...
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto QUICK = Duration::QUICK
 Deprecated test duration simple enums.
 
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto TAKES_FOREVER = Duration::TAKES_FOREVER
 
- 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.
 
TestCaseGetParent () 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.
 

Detailed Description

Lena TdTbfq Ff Mac Scheduler Test Case 2.

Definition at line 76 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Constructor & Destructor Documentation

◆ LenaTdTbfqFfMacSchedulerTestCase2()

LenaTdTbfqFfMacSchedulerTestCase2::LenaTdTbfqFfMacSchedulerTestCase2 ( std::vector< double > dist,
std::vector< uint32_t > estThrTdTbfqDl,
std::vector< uint16_t > packetSize,
uint16_t interval,
bool errorModelEnabled )

Constructor.

Parameters
distthe distance between nodes
estThrTdTbfqDlthe estimated DL throughput TdTbfq
packetSizethe packet size
intervalthe interval time
errorModelEnabledif true the error model is enabled

Definition at line 547 of file lte-test-tdtbfq-ff-mac-scheduler.cc.

◆ ~LenaTdTbfqFfMacSchedulerTestCase2()

LenaTdTbfqFfMacSchedulerTestCase2::~LenaTdTbfqFfMacSchedulerTestCase2 ( )
override

Definition at line 563 of file lte-test-tdtbfq-ff-mac-scheduler.cc.

Member Function Documentation

◆ BuildNameString()

std::string LenaTdTbfqFfMacSchedulerTestCase2::BuildNameString ( uint16_t nUser,
std::vector< double > dist )
staticprivate

Builds the test name string based on provided parameter values.

Parameters
nUserthe number of UE nodes
distthe distance between nodes
Returns
the name string

Definition at line 535 of file lte-test-tdtbfq-ff-mac-scheduler.cc.

◆ DoRun()

void LenaTdTbfqFfMacSchedulerTestCase2::DoRun ( )
overrideprivatevirtual

Member Data Documentation

◆ m_dist

std::vector<double> LenaTdTbfqFfMacSchedulerTestCase2::m_dist
private

the distance between nodes

Definition at line 105 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_errorModelEnabled

bool LenaTdTbfqFfMacSchedulerTestCase2::m_errorModelEnabled
private

whether the error model is enabled

Definition at line 109 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_estThrTdTbfqDl

std::vector<uint32_t> LenaTdTbfqFfMacSchedulerTestCase2::m_estThrTdTbfqDl
private

the estimated downlink throughput

Definition at line 108 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_interval

uint16_t LenaTdTbfqFfMacSchedulerTestCase2::m_interval
private

the packet interval time in ms

Definition at line 107 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_nUser

uint16_t LenaTdTbfqFfMacSchedulerTestCase2::m_nUser
private

number of UE nodes

Definition at line 104 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_packetSize

std::vector<uint16_t> LenaTdTbfqFfMacSchedulerTestCase2::m_packetSize
private

the packet size in bytes

Definition at line 106 of file lte-test-tdtbfq-ff-mac-scheduler.h.

Referenced by DoRun().


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