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

Similar to the LenaPssFfMacSchedulerTestCase1 with the difference that UEs are places in such a way to experience different SINRs. More...

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

+ Inheritance diagram for LenaPssFfMacSchedulerTestCase2:
+ Collaboration diagram for LenaPssFfMacSchedulerTestCase2:

Public Member Functions

 LenaPssFfMacSchedulerTestCase2 (std::vector< double > dist, std::vector< uint32_t > estThrPssDl, std::vector< uint16_t > packetSize, uint16_t interval, bool errorModelEnabled)
 Constructor.
 
 ~LenaPssFfMacSchedulerTestCase2 () 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
 indicates whether the error model is enabled
 
std::vector< uint32_tm_estThrPssDl
 the DL estimated throughput PSS
 
uint16_t m_interval
 the 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...
 
using instead = Duration
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto QUICK = Duration::QUICK
 
static constexpr auto 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

Similar to the LenaPssFfMacSchedulerTestCase1 with the difference that UEs are places in such a way to experience different SINRs.

Test checks if the achieved throughput in such conditions has expected value.

Definition at line 89 of file lte-test-pss-ff-mac-scheduler.h.

Constructor & Destructor Documentation

◆ LenaPssFfMacSchedulerTestCase2()

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

Constructor.

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

Definition at line 555 of file lte-test-pss-ff-mac-scheduler.cc.

◆ ~LenaPssFfMacSchedulerTestCase2()

LenaPssFfMacSchedulerTestCase2::~LenaPssFfMacSchedulerTestCase2 ( )
override

Definition at line 570 of file lte-test-pss-ff-mac-scheduler.cc.

Member Function Documentation

◆ BuildNameString()

std::string LenaPssFfMacSchedulerTestCase2::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 543 of file lte-test-pss-ff-mac-scheduler.cc.

◆ DoRun()

void LenaPssFfMacSchedulerTestCase2::DoRun ( )
overrideprivatevirtual

Member Data Documentation

◆ m_dist

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

the distance between nodes

Definition at line 118 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_errorModelEnabled

bool LenaPssFfMacSchedulerTestCase2::m_errorModelEnabled
private

indicates whether the error model is enabled

Definition at line 122 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_estThrPssDl

std::vector<uint32_t> LenaPssFfMacSchedulerTestCase2::m_estThrPssDl
private

the DL estimated throughput PSS

Definition at line 121 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_interval

uint16_t LenaPssFfMacSchedulerTestCase2::m_interval
private

the interval time in ms

Definition at line 120 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_nUser

uint16_t LenaPssFfMacSchedulerTestCase2::m_nUser
private

number of UE nodes

Definition at line 117 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().

◆ m_packetSize

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

the packet size in bytes

Definition at line 119 of file lte-test-pss-ff-mac-scheduler.h.

Referenced by DoRun().


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