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

Carrier aggregation configuration test case. More...

+ Inheritance diagram for CarrierAggregationConfigTestCase:
+ Collaboration diagram for CarrierAggregationConfigTestCase:

Public Member Functions

 CarrierAggregationConfigTestCase (uint32_t numberOfNodes, uint16_t numberOfComponentCarriers, std::vector< ConfigToCheck > configToCheck, Time simulationDuration)
 Constructor.
 
- 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

std::string BuildNameString (uint32_t numberOfNodes, uint16_t numberOfComponentCarriers, std::vector< ConfigToCheck > configToCheck, Time simulationDuration)
 Build name string function.
 
void DoRun () override
 Implementation to actually run this TestCase.
 
std::vector< std::map< uint16_t, ConfigToCheck > > EquallySpacedCcs ()
 Equally spaced component carriers function.
 
void Evaluate (std::string context, Ptr< LteUeRrc > ueRrc, std::list< LteRrcSap::SCellToAddMod > sCellToAddModList)
 Evaluate function.
 

Private Attributes

std::vector< ConfigToCheckm_configToCheck
 Vector containing all the configurations to check.
 
std::vector< std::map< uint16_t, ConfigToCheck > > m_configToCheckContainer
 Vector of maps containing the per component carrier configuration.
 
uint32_t m_connectionCounter
 Connection counter.
 
uint16_t m_numberOfComponentCarriers
 Number of component carriers.
 
uint32_t m_numberOfNodes
 Number of nodes.
 
Time m_simulationDuration
 Simulation duration.
 

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

Carrier aggregation configuration test case.

Definition at line 68 of file lte-test-carrier-aggregation-configuration.cc.

Constructor & Destructor Documentation

◆ CarrierAggregationConfigTestCase()

CarrierAggregationConfigTestCase::CarrierAggregationConfigTestCase ( uint32_t numberOfNodes,
uint16_t numberOfComponentCarriers,
std::vector< ConfigToCheck > configToCheck,
Time simulationDuration )
inline

Constructor.

Parameters
numberOfNodesTotal Number of eNBs and UEs
numberOfComponentCarriersTotal number of component carriers
configToCheckVector containing all the configurations to check
simulationDurationDuration of the simulation

Definition at line 79 of file lte-test-carrier-aggregation-configuration.cc.

References m_connectionCounter.

Member Function Documentation

◆ BuildNameString()

std::string CarrierAggregationConfigTestCase::BuildNameString ( uint32_t numberOfNodes,
uint16_t numberOfComponentCarriers,
std::vector< ConfigToCheck > configToCheck,
Time simulationDuration )
private

Build name string function.

Parameters
numberOfNodesTotal Number of eNBs and UEs
numberOfComponentCarriersTotal number of component carriers
configToCheckVector containing all the configurations to check
simulationDurationDuration of the simulation
Returns
the name string

Definition at line 140 of file lte-test-carrier-aggregation-configuration.cc.

◆ DoRun()

◆ EquallySpacedCcs()

std::vector< std::map< uint16_t, ConfigToCheck > > CarrierAggregationConfigTestCase::EquallySpacedCcs ( )
private

Equally spaced component carriers function.

Returns
Vector of maps containing the per component carrier configuration

Definition at line 152 of file lte-test-carrier-aggregation-configuration.cc.

References ns3::LteSpectrumValueHelper::GetChannelBandwidth(), ns3::LteSpectrumValueHelper::GetDownlinkCarrierBand(), ns3::LteSpectrumValueHelper::GetUplinkCarrierBand(), m_configToCheck, ConfigToCheck::m_dlBandwidth, ConfigToCheck::m_dlEarfcn, m_numberOfComponentCarriers, ConfigToCheck::m_ulBandwidth, ConfigToCheck::m_ulEarfcn, NS_FATAL_ERROR, and NS_LOG_INFO.

Referenced by DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Evaluate()

void CarrierAggregationConfigTestCase::Evaluate ( std::string context,
Ptr< LteUeRrc > ueRrc,
std::list< LteRrcSap::SCellToAddMod > sCellToAddModList )
private

Evaluate function.

Parameters
contextThe context
ueRrcPointer to the UE RRC
sCellToAddModListList of the configuration parameters for secondary cell

Definition at line 207 of file lte-test-carrier-aggregation-configuration.cc.

References m_configToCheckContainer, m_connectionCounter, ConfigToCheck::m_dlBandwidth, ConfigToCheck::m_dlEarfcn, m_numberOfComponentCarriers, ConfigToCheck::m_ulBandwidth, ConfigToCheck::m_ulEarfcn, NS_LOG_INFO, and NS_TEST_ASSERT_MSG_EQ.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_configToCheck

std::vector<ConfigToCheck> CarrierAggregationConfigTestCase::m_configToCheck
private

Vector containing all the configurations to check.

Definition at line 131 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by DoRun(), and EquallySpacedCcs().

◆ m_configToCheckContainer

std::vector<std::map<uint16_t, ConfigToCheck> > CarrierAggregationConfigTestCase::m_configToCheckContainer
private

Vector of maps containing the per component carrier configuration.

Definition at line 135 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by DoRun(), and Evaluate().

◆ m_connectionCounter

uint32_t CarrierAggregationConfigTestCase::m_connectionCounter
private

Connection counter.

Definition at line 132 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by CarrierAggregationConfigTestCase(), DoRun(), and Evaluate().

◆ m_numberOfComponentCarriers

uint16_t CarrierAggregationConfigTestCase::m_numberOfComponentCarriers
private

Number of component carriers.

Definition at line 129 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by DoRun(), EquallySpacedCcs(), and Evaluate().

◆ m_numberOfNodes

uint32_t CarrierAggregationConfigTestCase::m_numberOfNodes
private

Number of nodes.

Definition at line 128 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by DoRun().

◆ m_simulationDuration

Time CarrierAggregationConfigTestCase::m_simulationDuration
private

Simulation duration.

Definition at line 133 of file lte-test-carrier-aggregation-configuration.cc.

Referenced by DoRun().


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