A Discrete-Event Network Simulator
API
TestMultipleHeTbPreambles Class Reference

UL-OFDMA multiple RX events test. More...

+ Inheritance diagram for TestMultipleHeTbPreambles:
+ Collaboration diagram for TestMultipleHeTbPreambles:

Public Member Functions

 TestMultipleHeTbPreambles ()
 
virtual ~TestMultipleHeTbPreambles ()
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 
std::string GetName (void) const
 

Private Member Functions

void CheckBytesDropped (size_t expectedBytesDropped)
 Check the number of bytes dropped. More...
 
void CheckHeTbPreambles (size_t nEvents, std::vector< uint64_t > uids)
 Check the received HE TB preambles. More...
 
void DoRun (void) override
 Implementation to actually run this TestCase. More...
 
void DoRxHeTbPpduOfdmaPart (Ptr< WifiSpectrumSignalParameters > rxParamsOfdma)
 Receive OFDMA part of HE TB PPDU function. More...
 
void DoSetup (void) override
 Implementation to do any local setup required for this TestCase. More...
 
void DoTeardown (void) override
 Implementation to do any local setup required for this TestCase. More...
 
void Reset (void)
 Reset function. More...
 
void RxDropped (Ptr< const Packet > p, WifiPhyRxfailureReason reason)
 RX dropped function. More...
 
void RxHeTbPpdu (uint64_t uid, uint16_t staId, double txPowerWatts, size_t payloadSize)
 Receive HE TB PPDU function. More...
 
void RxHeTbPpduOfdmaPart (Ptr< WifiSpectrumSignalParameters > rxParamsOfdma)
 Receive OFDMA part of HE TB PPDU function. More...
 

Private Attributes

Ptr< OfdmaSpectrumWifiPhym_phy
 Phy. More...
 
uint64_t m_totalBytesDropped
 total number of dropped bytes More...
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- 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 TestCsse. More...
 
bool IsStatusFailure (void) const
 Check if any tests failed. More...
 
bool IsStatusSuccess (void) 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 (void) const
 Check if this run should assert on failure. More...
 
bool MustContinueOnFailure (void) 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

UL-OFDMA multiple RX events test.

Definition at line 1324 of file wifi-phy-ofdma-test.cc.

Constructor & Destructor Documentation

◆ TestMultipleHeTbPreambles()

TestMultipleHeTbPreambles::TestMultipleHeTbPreambles ( )

Definition at line 1390 of file wifi-phy-ofdma-test.cc.

◆ ~TestMultipleHeTbPreambles()

TestMultipleHeTbPreambles::~TestMultipleHeTbPreambles ( )
virtual

Definition at line 1396 of file wifi-phy-ofdma-test.cc.

Member Function Documentation

◆ CheckBytesDropped()

void TestMultipleHeTbPreambles::CheckBytesDropped ( size_t  expectedBytesDropped)
private

Check the number of bytes dropped.

Parameters
expectedBytesDroppedthe expected number of bytes dropped

Definition at line 1431 of file wifi-phy-ofdma-test.cc.

References m_totalBytesDropped, and NS_TEST_ASSERT_MSG_EQ.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ CheckHeTbPreambles()

void TestMultipleHeTbPreambles::CheckHeTbPreambles ( size_t  nEvents,
std::vector< uint64_t >  uids 
)
private

Check the received HE TB preambles.

Parameters
nEventsthe number of events created by the PHY
uidsthe vector of expected UIDs

Definition at line 1417 of file wifi-phy-ofdma-test.cc.

References OfdmaSpectrumWifiPhy::GetCurrentPreambleEvents(), m_phy, NS_TEST_ASSERT_MSG_EQ, and ns3::WIFI_PREAMBLE_HE_TB.

Referenced by DoRun().

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

◆ DoRun()

void TestMultipleHeTbPreambles::DoRun ( void  )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 1532 of file wifi-phy-ofdma-test.cc.

References ns3::WifiPhy::AssignStreams(), CheckBytesDropped(), CheckHeTbPreambles(), m_phy, ns3::MicroSeconds(), ns3::NanoSeconds(), Reset(), RxHeTbPpdu(), and ns3::Seconds().

+ Here is the call graph for this function:

◆ DoRxHeTbPpduOfdmaPart()

void TestMultipleHeTbPreambles::DoRxHeTbPpduOfdmaPart ( Ptr< WifiSpectrumSignalParameters rxParamsOfdma)
private

Receive OFDMA part of HE TB PPDU function.

Actual reception call.

Parameters
rxParamsOfdmathe spectrum signal parameters to send for OFDMA part

Definition at line 1495 of file wifi-phy-ofdma-test.cc.

References m_phy, and ns3::SpectrumWifiPhy::StartRx().

Referenced by RxHeTbPpduOfdmaPart().

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

◆ DoSetup()

void TestMultipleHeTbPreambles::DoSetup ( void  )
overrideprivatevirtual

◆ DoTeardown()

void TestMultipleHeTbPreambles::DoTeardown ( void  )
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 1525 of file wifi-phy-ofdma-test.cc.

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

+ Here is the call graph for this function:

◆ Reset()

void TestMultipleHeTbPreambles::Reset ( void  )
private

Reset function.

Definition at line 1401 of file wifi-phy-ofdma-test.cc.

References m_phy, m_totalBytesDropped, NS_LOG_FUNCTION, and ns3::WifiPhy::Reset().

Referenced by DoRun().

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

◆ RxDropped()

void TestMultipleHeTbPreambles::RxDropped ( Ptr< const Packet p,
WifiPhyRxfailureReason  reason 
)
private

RX dropped function.

Parameters
pthe packet
reasonthe reason

Definition at line 1410 of file wifi-phy-ofdma-test.cc.

References ns3::Packet::GetSize(), m_totalBytesDropped, and NS_LOG_FUNCTION.

Referenced by DoSetup().

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

◆ RxHeTbPpdu()

void TestMultipleHeTbPreambles::RxHeTbPpdu ( uint64_t  uid,
uint16_t  staId,
double  txPowerWatts,
size_t  payloadSize 
)
private

◆ RxHeTbPpduOfdmaPart()

void TestMultipleHeTbPreambles::RxHeTbPpduOfdmaPart ( Ptr< WifiSpectrumSignalParameters rxParamsOfdma)
private

Receive OFDMA part of HE TB PPDU function.

Immediately schedules DoRxHeTbPpduOfdmaPart.

Parameters
rxParamsOfdmathe spectrum signal parameters to send for OFDMA part

Definition at line 1489 of file wifi-phy-ofdma-test.cc.

References DoRxHeTbPpduOfdmaPart().

Referenced by RxHeTbPpdu().

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

Member Data Documentation

◆ m_phy

Ptr<OfdmaSpectrumWifiPhy> TestMultipleHeTbPreambles::m_phy
private

◆ m_totalBytesDropped

uint64_t TestMultipleHeTbPreambles::m_totalBytesDropped
private

total number of dropped bytes

Definition at line 1387 of file wifi-phy-ofdma-test.cc.

Referenced by CheckBytesDropped(), Reset(), and RxDropped().


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