HE-SIG-B duration test. More...
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, 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 |
TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
WifiTxVector | BuildTxVector () const |
Build a TXVECTOR for HE MU. | |
void | DoRun () override |
Implementation to actually run 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 RU_ALLOCATION. | |
Time | m_expectedSigBDuration |
Expected duration of the HE-SIG-B header. | |
WifiMode | m_sigBMode |
Mode used to transmit HE-SIG-B. | |
std::list< HeMuUserInfo > | m_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. | |
TestCase * | GetParent () 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. | |
HE-SIG-B duration test.
Definition at line 1442 of file tx-duration-test.cc.
HeSigBDurationTest::HeSigBDurationTest | ( | const std::list< HeMuUserInfo > & | userInfos, |
const WifiMode & | sigBMode, | ||
MHz_u | channelWidth, | ||
MuType | expectedMuType, | ||
const RuAllocation & | expectedRuAllocation, | ||
const std::pair< std::size_t, std::size_t > & | expectedNumUsersPerCc, | ||
Time | expectedSigBDuration ) |
Constructor.
userInfos | the HE MU specific per-user information to use for the test |
sigBMode | the mode to transmit HE-SIG-B for the test |
channelWidth | the channel width to select for the test |
expectedMuType | the expected MU type (OFDMA or MU-MIMO) |
expectedRuAllocation | the expected RU_ALLOCATION |
expectedNumUsersPerCc | the expected number of users per content channel |
expectedSigBDuration | the expected duration of the HE-SIG-B header |
Definition at line 1493 of file tx-duration-test.cc.
|
private |
Build a TXVECTOR for HE MU.
Definition at line 1513 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().
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 1534 of file tx-duration-test.cc.
References BuildTxVector(), ns3::HePpdu::GetHeSigBContentChannels(), ns3::HePpdu::GetNumRusPerHeSigBContentChannel(), ns3::WifiPhy::GetStaticPhyEntity(), 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.
|
private |
|
private |
Expected MU type (OFDMA or MU-MIMO)
Definition at line 1486 of file tx-duration-test.cc.
Referenced by BuildTxVector().
|
private |
Expected number of users per content channel.
Definition at line 1489 of file tx-duration-test.cc.
Referenced by DoRun().
|
private |
|
private |
Expected duration of the HE-SIG-B header.
Definition at line 1490 of file tx-duration-test.cc.
Referenced by DoRun().
|
private |
Mode used to transmit HE-SIG-B.
Definition at line 1484 of file tx-duration-test.cc.
Referenced by BuildTxVector(), and DoRun().
|
private |
HE MU specific per-user information.
Definition at line 1483 of file tx-duration-test.cc.
Referenced by BuildTxVector().