A Discrete-Event Network Simulator
API
AmpduAggregationTest Class Reference

Ampdu Aggregation Test. More...

+ Inheritance diagram for AmpduAggregationTest:
+ Collaboration diagram for AmpduAggregationTest:

Public Member Functions

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

Private Member Functions

void DoRun (void) override
 Implementation to actually run this TestCase. More...
 
void MpduDiscarded (WifiMacDropReason reason, Ptr< const WifiMacQueueItem > mpdu)
 Fired when the MAC discards an MPDU. More...
 

Private Attributes

Ptr< WifiNetDevicem_device
 WifiNetDevice. More...
 
bool m_discarded
 whether the packet should be discarded More...
 
ObjectFactory m_factory
 factory More...
 
Ptr< StaWifiMacm_mac
 Mac. More...
 
Ptr< WifiRemoteStationManagerm_manager
 remote station manager More...
 
Ptr< YansWifiPhym_phy
 Phy. 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

Ampdu Aggregation Test.

Definition at line 56 of file wifi-aggregation-test.cc.

Constructor & Destructor Documentation

◆ AmpduAggregationTest()

AmpduAggregationTest::AmpduAggregationTest ( )

Definition at line 79 of file wifi-aggregation-test.cc.

Member Function Documentation

◆ DoRun()

void AmpduAggregationTest::DoRun ( void  )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 92 of file wifi-aggregation-test.cc.

References ns3::WifiRemoteStationManager::AddStationHtCapabilities(), ns3::WifiTxParameters::Clear(), ns3::RegularWifiMac::ConfigureStandard(), ns3::WifiPhy::ConfigureStandardAndBand(), ns3::ObjectFactory::Create(), ns3::HtFrameExchangeManager::DequeueMpdu(), ns3::HtFrameExchangeManager::DequeuePsdu(), ns3::Object::Dispose(), ns3::QosTxop::GetBaManager(), ns3::RegularWifiMac::GetBEQueue(), ns3::WifiRemoteStationManager::GetDataTxVector(), ns3::RegularWifiMac::GetFrameExchangeManager(), ns3::WifiMacQueueItem::GetHeader(), ns3::HtFrameExchangeManager::GetMpduAggregator(), ns3::QosTxop::GetNextMpdu(), ns3::MgtAddBaRequestHeader::GetTid(), ns3::MgtAddBaRequestHeader::GetTimeout(), ns3::Txop::GetWifiMacQueue(), ns3::RegularWifiMac::GetWifiRemoteStationManager(), ns3::MgtAddBaRequestHeader::IsAmsduSupported(), ns3::FrameExchangeManager::m_dcf, m_device, m_discarded, m_factory, m_mac, m_manager, m_phy, ns3::RegularWifiMac::m_txMiddle, ns3::WifiTxParameters::m_txVector, ns3::MakeCallback(), Min, MpduDiscarded(), ns3::FrameExchangeManager::NormalAckTimeout(), NS_TEST_EXPECT_MSG_EQ, ns3::QosTxop::PeekNextMpdu(), ns3::ObjectFactory::Set(), ns3::FrameExchangeManager::SetAckManager(), ns3::WifiMacHeader::SetAddr1(), ns3::RegularWifiMac::SetAddress(), ns3::MgtAddBaResponseHeader::SetAmsduSupport(), ns3::ObjectBase::SetAttribute(), ns3::MgtAddBaRequestHeader::SetBufferSize(), ns3::MgtAddBaResponseHeader::SetBufferSize(), ns3::WifiMac::SetDevice(), ns3::WifiPhy::SetDevice(), ns3::WifiNetDevice::SetHtConfiguration(), ns3::MgtAddBaRequestHeader::SetImmediateBlockAck(), ns3::MgtAddBaResponseHeader::SetImmediateBlockAck(), ns3::WifiNetDevice::SetMac(), ns3::HtCapabilities::SetMaxAmpduLength(), ns3::WifiRemoteStationManager::SetMaxSsrc(), ns3::WifiNetDevice::SetPhy(), ns3::FrameExchangeManager::SetProtectionManager(), ns3::WifiNetDevice::SetRemoteStationManager(), ns3::WifiMacHeader::SetSequenceNumber(), ns3::MgtAddBaRequestHeader::SetStartingSequence(), ns3::MgtAddBaResponseHeader::SetStatusCode(), ns3::StatusCode::SetSuccess(), ns3::MgtAddBaRequestHeader::SetTid(), ns3::MgtAddBaResponseHeader::SetTid(), ns3::MgtAddBaRequestHeader::SetTimeout(), ns3::MgtAddBaResponseHeader::SetTimeout(), ns3::ObjectFactory::SetTypeId(), ns3::WifiRemoteStationManager::SetupPhy(), ns3::WifiProtectionManager::SetWifiMac(), ns3::WifiAckManager::SetWifiMac(), ns3::StaWifiMac::SetWifiPhy(), ns3::RegularWifiMac::SetWifiRemoteStationManager(), ns3::ObjectBase::TraceConnectWithoutContext(), ns3::WIFI_MAC_QOSDATA, ns3::WIFI_PHY_BAND_5GHZ, ns3::WIFI_PHY_STANDARD_80211n, and ns3::WIFI_STANDARD_80211n_5GHZ.

◆ MpduDiscarded()

void AmpduAggregationTest::MpduDiscarded ( WifiMacDropReason  reason,
Ptr< const WifiMacQueueItem mpdu 
)
private

Fired when the MAC discards an MPDU.

Parameters
reasonthe reason why the MPDU was discarded
mpduthe discarded MPDU

Definition at line 86 of file wifi-aggregation-test.cc.

References m_discarded.

Referenced by DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_device

Ptr<WifiNetDevice> AmpduAggregationTest::m_device
private

WifiNetDevice.

Definition at line 71 of file wifi-aggregation-test.cc.

Referenced by DoRun().

◆ m_discarded

bool AmpduAggregationTest::m_discarded
private

whether the packet should be discarded

Definition at line 76 of file wifi-aggregation-test.cc.

Referenced by DoRun(), and MpduDiscarded().

◆ m_factory

ObjectFactory AmpduAggregationTest::m_factory
private

factory

Definition at line 75 of file wifi-aggregation-test.cc.

Referenced by DoRun().

◆ m_mac

Ptr<StaWifiMac> AmpduAggregationTest::m_mac
private

Mac.

Definition at line 72 of file wifi-aggregation-test.cc.

Referenced by DoRun().

◆ m_manager

Ptr<WifiRemoteStationManager> AmpduAggregationTest::m_manager
private

remote station manager

Definition at line 74 of file wifi-aggregation-test.cc.

Referenced by DoRun().

◆ m_phy

Ptr<YansWifiPhy> AmpduAggregationTest::m_phy
private

Phy.

Definition at line 73 of file wifi-aggregation-test.cc.

Referenced by DoRun().


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