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

Test hard frequency reuse algorithm. More...

#include "lte-test-frequency-reuse.h"

+ Inheritance diagram for LteHardFrTestCase:
+ Collaboration diagram for LteHardFrTestCase:

Public Member Functions

 LteHardFrTestCase (std::string name, uint32_t userNum, std::string schedulerType, uint16_t dlBandwidth, uint16_t ulBandwidth, uint8_t dlSubBandOffset, uint16_t dlSubBandwidth, uint8_t ulSubBandOffset, uint16_t ulSubBandwidth, std::vector< bool > availableDlRb, std::vector< bool > availableUlRb)
 Constructor.
 
 ~LteHardFrTestCase () override
 
- Public Member Functions inherited from LteFrTestCase
 LteFrTestCase (std::string name, uint32_t userNum, uint16_t dlBandwidth, uint16_t ulBandwidth, std::vector< bool > availableDlRb, std::vector< bool > availableUlRb)
 Constructor.
 
 ~LteFrTestCase () override
 
void DlDataRxStart (Ptr< const SpectrumValue > spectrumValue)
 DL data receive start function.
 
void UlDataRxStart (Ptr< const SpectrumValue > spectrumValue)
 UL data receive start function.
 
- 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.
 

Private Attributes

uint8_t m_dlSubBandOffset
 the DL subband offset
 
uint8_t m_dlSubBandwidth
 the DL subband width
 
std::string m_schedulerType
 the scheduler type
 
uint8_t m_ulSubBandOffset
 UL subband offset.
 
uint8_t m_ulSubBandwidth
 UL subband offset.
 

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
 
void DoRun () override
 Implementation to actually run this TestCase.
 
- 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.
 
- Protected Attributes inherited from LteFrTestCase
std::vector< bool > m_availableDlRb
 the available DL for each RB
 
std::vector< bool > m_availableUlRb
 the available UL for each RB
 
uint16_t m_dlBandwidth
 the DL bandwidth
 
uint16_t m_ulBandwidth
 the UL bandwidth
 
bool m_usedMutedDlRbg
 used muted DL RBG?
 
bool m_usedMutedUlRbg
 used muted UL RBG?
 
uint32_t m_userNum
 the number of UE nodes
 

Detailed Description

Test hard frequency reuse algorithm.

Test fails if the muted frequencies are being used.

Definition at line 107 of file lte-test-frequency-reuse.h.

Constructor & Destructor Documentation

◆ LteHardFrTestCase()

LteHardFrTestCase::LteHardFrTestCase ( std::string  name,
uint32_t  userNum,
std::string  schedulerType,
uint16_t  dlBandwidth,
uint16_t  ulBandwidth,
uint8_t  dlSubBandOffset,
uint16_t  dlSubBandwidth,
uint8_t  ulSubBandOffset,
uint16_t  ulSubBandwidth,
std::vector< bool >  availableDlRb,
std::vector< bool >  availableUlRb 
)

Constructor.

Parameters
namethe reference name
userNumthe number of UE nodes
schedulerTypethe scheduler type
dlBandwidththe DL bandwidth
ulBandwidththe UL bandwidth
dlSubBandOffsetDL subband offset
dlSubBandwidthDL subbandwidth
ulSubBandOffsetUL subband offset
ulSubBandwidthUL subbandwidth
availableDlRbthe available DL per RB
availableUlRbthe available UL per RB

Definition at line 522 of file lte-test-frequency-reuse.cc.

References NS_LOG_INFO.

◆ ~LteHardFrTestCase()

LteHardFrTestCase::~LteHardFrTestCase ( )
override

Definition at line 543 of file lte-test-frequency-reuse.cc.

Member Function Documentation

◆ DoRun()

Member Data Documentation

◆ m_dlSubBandOffset

uint8_t LteHardFrTestCase::m_dlSubBandOffset
private

the DL subband offset

Definition at line 143 of file lte-test-frequency-reuse.h.

Referenced by DoRun().

◆ m_dlSubBandwidth

uint8_t LteHardFrTestCase::m_dlSubBandwidth
private

the DL subband width

Definition at line 144 of file lte-test-frequency-reuse.h.

Referenced by DoRun().

◆ m_schedulerType

std::string LteHardFrTestCase::m_schedulerType
private

the scheduler type

Definition at line 141 of file lte-test-frequency-reuse.h.

Referenced by DoRun().

◆ m_ulSubBandOffset

uint8_t LteHardFrTestCase::m_ulSubBandOffset
private

UL subband offset.

Definition at line 146 of file lte-test-frequency-reuse.h.

Referenced by DoRun().

◆ m_ulSubBandwidth

uint8_t LteHardFrTestCase::m_ulSubBandwidth
private

UL subband offset.

Definition at line 147 of file lte-test-frequency-reuse.h.

Referenced by DoRun().


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