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

Test frequency reuse algorithm. More...

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

+ Inheritance diagram for LteFrTestCase:
+ Collaboration diagram for LteFrTestCase:

Public Member Functions

 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
 

Protected Member Functions

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

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
 

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
 

Detailed Description

Test frequency reuse algorithm.

Test fails if the muted frequencies are being used.

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

Constructor & Destructor Documentation

◆ LteFrTestCase()

LteFrTestCase::LteFrTestCase ( std::string name,
uint32_t userNum,
uint16_t dlBandwidth,
uint16_t ulBandwidth,
std::vector< bool > availableDlRb,
std::vector< bool > availableUlRb )

Constructor.

Parameters
namethe reference name
userNumthe number of UE nodes
dlBandwidththe DL bandwidth
ulBandwidththe UL bandwidth
availableDlRbthe available DL per RB
availableUlRbthe available UL per RB

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

◆ ~LteFrTestCase()

LteFrTestCase::~LteFrTestCase ( )
override

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

Member Function Documentation

◆ DlDataRxStart()

void LteFrTestCase::DlDataRxStart ( Ptr< const SpectrumValue > spectrumValue)

DL data receive start function.

Parameters
spectrumValuethe DL data receive spectrum value

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

References m_availableDlRb, m_dlBandwidth, m_usedMutedDlRbg, and NS_LOG_DEBUG.

Referenced by DlDataRxStartNotification().

+ Here is the caller graph for this function:

◆ DoRun()

void LteFrTestCase::DoRun ( )
overrideprotectedvirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Reimplemented in LteHardFrTestCase, and LteStrictFrTestCase.

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

◆ UlDataRxStart()

void LteFrTestCase::UlDataRxStart ( Ptr< const SpectrumValue > spectrumValue)

UL data receive start function.

Parameters
spectrumValuethe UL data receive spectrum value

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

References m_availableUlRb, m_ulBandwidth, m_usedMutedUlRbg, and NS_LOG_DEBUG.

Referenced by UlDataRxStartNotification().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_availableDlRb

std::vector<bool> LteFrTestCase::m_availableDlRb
protected

the available DL for each RB

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

Referenced by DlDataRxStart().

◆ m_availableUlRb

std::vector<bool> LteFrTestCase::m_availableUlRb
protected

the available UL for each RB

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

Referenced by UlDataRxStart().

◆ m_dlBandwidth

uint16_t LteFrTestCase::m_dlBandwidth
protected

the DL bandwidth

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

Referenced by DlDataRxStart(), LteHardFrTestCase::DoRun(), and LteStrictFrTestCase::DoRun().

◆ m_ulBandwidth

uint16_t LteFrTestCase::m_ulBandwidth
protected

the UL bandwidth

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

Referenced by LteHardFrTestCase::DoRun(), LteStrictFrTestCase::DoRun(), and UlDataRxStart().

◆ m_usedMutedDlRbg

bool LteFrTestCase::m_usedMutedDlRbg
protected

used muted DL RBG?

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

Referenced by DlDataRxStart(), LteHardFrTestCase::DoRun(), and LteStrictFrTestCase::DoRun().

◆ m_usedMutedUlRbg

bool LteFrTestCase::m_usedMutedUlRbg
protected

used muted UL RBG?

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

Referenced by LteHardFrTestCase::DoRun(), LteStrictFrTestCase::DoRun(), and UlDataRxStart().

◆ m_userNum

uint32_t LteFrTestCase::m_userNum
protected

the number of UE nodes

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

Referenced by LteHardFrTestCase::DoRun(), and LteStrictFrTestCase::DoRun().


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