A Discrete-Event Network Simulator
API
HeSigBDurationTest Class Reference

HE-SIG-B duration test. More...

+ Inheritance diagram for HeSigBDurationTest:
+ Collaboration diagram for HeSigBDurationTest:

Public Types

enum  MuType { OFDMA = 0 , MU_MIMO }
 OFDMA or MU-MIMO. More...
 
- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 

Public Member Functions

 HeSigBDurationTest (const std::list< HeMuUserInfo > &userInfos, const WifiMode &sigBMode, uint16_t channelWidth, MuType expectedMuType, const RuAllocation &expectedRuAllocation, const std::pair< std::size_t, std::size_t > &expectedNumUsersPerCc, Time expectedSigBDuration)
 Constructor. More...
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

WifiTxVector BuildTxVector () const
 Build a TXVECTOR for HE MU. More...
 
void DoRun () override
 Implementation to actually run this TestCase. More...
 

Private Attributes

uint16_t m_channelWidth
 Channel width in MHz. More...
 
MuType m_expectedMuType
 Expected MU type (OFDMA or MU-MIMO) More...
 
std::pair< std::size_t, std::size_t > m_expectedNumUsersPerCc
 Expected number of users per content channel. More...
 
RuAllocation m_expectedRuAllocation
 Expected RU_ALLOCATION. More...
 
Time m_expectedSigBDuration
 Expected duration of the HE-SIG-B header. More...
 
WifiMode m_sigBMode
 Mode used to transmit HE-SIG-B. More...
 
std::list< HeMuUserInfom_userInfos
 HE MU specific per-user information. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor. More...
 
void AddTestCase (TestCase *testCase, TestDuration duration=QUICK)
 Add an individual child TestCase to this test suite. More...
 
TestCaseGetParent () const
 Get the parent of this TestCase. More...
 
bool IsStatusFailure () const
 Check if any tests failed. More...
 
bool IsStatusSuccess () const
 Check if all tests passed. More...
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found. More...
 
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. More...
 
bool MustAssertOnFailure () const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure () const
 Check if this run should continue on failure. More...
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory. More...
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory. More...
 

Detailed Description

HE-SIG-B duration test.

Definition at line 1305 of file tx-duration-test.cc.

Member Enumeration Documentation

◆ MuType

OFDMA or MU-MIMO.

Enumerator
OFDMA 
MU_MIMO 

Definition at line 1311 of file tx-duration-test.cc.

Constructor & Destructor Documentation

◆ HeSigBDurationTest()

HeSigBDurationTest::HeSigBDurationTest ( const std::list< HeMuUserInfo > &  userInfos,
const WifiMode sigBMode,
uint16_t  channelWidth,
MuType  expectedMuType,
const RuAllocation expectedRuAllocation,
const std::pair< std::size_t, std::size_t > &  expectedNumUsersPerCc,
Time  expectedSigBDuration 
)

Constructor.

Parameters
userInfosthe HE MU specific per-user information to use for the test
sigBModethe mode to transmit HE-SIG-B for the test
channelWidththe channel width in MHz to select for the test
expectedMuTypethe expected MU type (OFDMA or MU-MIMO)
expectedRuAllocationthe expected RU_ALLOCATION
expectedNumUsersPerCcthe expected number of users per content channel
expectedSigBDurationthe expected duration of the HE-SIG-B header

Definition at line 1356 of file tx-duration-test.cc.

Member Function Documentation

◆ BuildTxVector()

WifiTxVector HeSigBDurationTest::BuildTxVector ( ) const
private

◆ DoRun()

void HeSigBDurationTest::DoRun ( )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 1397 of file tx-duration-test.cc.

References BuildTxVector(), m_expectedNumUsersPerCc, m_expectedRuAllocation, m_expectedSigBDuration, m_sigBMode, NS_TEST_EXPECT_MSG_EQ, ns3::WIFI_MOD_CLASS_HE, and ns3::WIFI_PPDU_FIELD_SIG_B.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_channelWidth

uint16_t HeSigBDurationTest::m_channelWidth
private

Channel width in MHz.

Definition at line 1348 of file tx-duration-test.cc.

Referenced by BuildTxVector().

◆ m_expectedMuType

MuType HeSigBDurationTest::m_expectedMuType
private

Expected MU type (OFDMA or MU-MIMO)

Definition at line 1349 of file tx-duration-test.cc.

Referenced by BuildTxVector().

◆ m_expectedNumUsersPerCc

std::pair<std::size_t, std::size_t> HeSigBDurationTest::m_expectedNumUsersPerCc
private

Expected number of users per content channel.

Definition at line 1352 of file tx-duration-test.cc.

Referenced by DoRun().

◆ m_expectedRuAllocation

RuAllocation HeSigBDurationTest::m_expectedRuAllocation
private

Expected RU_ALLOCATION.

Definition at line 1350 of file tx-duration-test.cc.

Referenced by DoRun().

◆ m_expectedSigBDuration

Time HeSigBDurationTest::m_expectedSigBDuration
private

Expected duration of the HE-SIG-B header.

Definition at line 1353 of file tx-duration-test.cc.

Referenced by DoRun().

◆ m_sigBMode

WifiMode HeSigBDurationTest::m_sigBMode
private

Mode used to transmit HE-SIG-B.

Definition at line 1347 of file tx-duration-test.cc.

Referenced by BuildTxVector(), and DoRun().

◆ m_userInfos

std::list<HeMuUserInfo> HeSigBDurationTest::m_userInfos
private

HE MU specific per-user information.

Definition at line 1346 of file tx-duration-test.cc.

Referenced by BuildTxVector().


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