A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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 class  Duration { 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, MHz_u channelWidth, uint8_t p20Index, MuType expectedMuType, const RuAllocation &expectedRuAllocation, const std::pair< std::size_t, std::size_t > &expectedNumUsersPerCc, Time expectedSigBDuration)
 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

WifiTxVector BuildTxVector () const
 Build a TXVECTOR for HE MU.
 
void DoRun () override
 Implementation to actually run this TestCase.
 
void DoTeardown () override
 Implementation to do any local setup required for this TestCase.
 

Private Attributes

MHz_u m_channelWidth
 Channel width.
 
MuType m_expectedMuType
 Expected MU type (OFDMA or MU-MIMO)
 
std::pair< std::size_t, std::size_t > m_expectedNumUsersPerCc
 Expected number of users per content channel.
 
RuAllocation m_expectedRuAllocation
 Expected RuType::RU_ALLOCATION.
 
Time m_expectedSigBDuration
 Expected duration of the HE-SIG-B header.
 
uint8_t m_p20Index
 index of the primary20 channel
 
Ptr< YansWifiPhym_phy
 the PHY under test
 
WifiMode m_sigBMode
 Mode used to transmit HE-SIG-B.
 
std::list< HeMuUserInfom_userInfos
 HE MU specific per-user information.
 

Additional Inherited Members

- 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

HE-SIG-B duration test.

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

Member Enumeration Documentation

◆ MuType

OFDMA or MU-MIMO.

Enumerator
OFDMA 
MU_MIMO 

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

Constructor & Destructor Documentation

◆ HeSigBDurationTest()

HeSigBDurationTest::HeSigBDurationTest ( const std::list< HeMuUserInfo > & userInfos,
const WifiMode & sigBMode,
MHz_u channelWidth,
uint8_t p20Index,
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 to select for the test
p20Indexthe index of the primary20 channel
expectedMuTypethe expected MU type (OFDMA or MU-MIMO)
expectedRuAllocationthe expected RuType::RU_ALLOCATION
expectedNumUsersPerCcthe expected number of users per content channel
expectedSigBDurationthe expected duration of the HE-SIG-B header

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

Member Function Documentation

◆ BuildTxVector()

WifiTxVector HeSigBDurationTest::BuildTxVector ( ) const
private

Build a TXVECTOR for HE MU.

Returns
the configured HE MU TXVECTOR

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

References ns3::WifiTxVector::IsDlMuMimo(), ns3::WifiTxVector::IsDlOfdma(), m_channelWidth, m_expectedMuType, m_sigBMode, m_userInfos, ns3::NanoSeconds(), NS_ASSERT, OFDMA, ns3::WifiTxVector::SetChannelWidth(), ns3::WifiTxVector::SetGuardInterval(), ns3::WifiTxVector::SetHeMuUserInfo(), ns3::WifiTxVector::SetNess(), ns3::WifiTxVector::SetPreambleType(), ns3::WifiTxVector::SetSigBMode(), ns3::WifiTxVector::SetStbc(), and ns3::WIFI_PREAMBLE_HE_MU.

Referenced by DoRun().

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

◆ DoRun()

void HeSigBDurationTest::DoRun ( )
overrideprivatevirtual

◆ DoTeardown()

void HeSigBDurationTest::DoTeardown ( )
overrideprivatevirtual

Implementation to do any local setup required for this TestCase.

Subclasses should override this method to perform any costly per-test teardown

Reimplemented from ns3::TestCase.

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

References ns3::Object::Dispose(), and m_phy.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_channelWidth

MHz_u HeSigBDurationTest::m_channelWidth
private

Channel width.

Definition at line 1495 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 1497 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 1500 of file tx-duration-test.cc.

Referenced by DoRun().

◆ m_expectedRuAllocation

RuAllocation HeSigBDurationTest::m_expectedRuAllocation
private

Expected RuType::RU_ALLOCATION.

Definition at line 1498 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 1501 of file tx-duration-test.cc.

Referenced by DoRun().

◆ m_p20Index

uint8_t HeSigBDurationTest::m_p20Index
private

index of the primary20 channel

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

Referenced by DoRun().

◆ m_phy

Ptr<YansWifiPhy> HeSigBDurationTest::m_phy
private

the PHY under test

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

Referenced by DoRun(), and DoTeardown().

◆ m_sigBMode

WifiMode HeSigBDurationTest::m_sigBMode
private

Mode used to transmit HE-SIG-B.

Definition at line 1494 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 1493 of file tx-duration-test.cc.

Referenced by BuildTxVector(), and DoRun().


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