A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
OfdmaTestPhy< PhyEntityType > Class Template Reference

PHY entity slightly modified so as to return a given STA-ID in case of DL MU for OfdmaSpectrumWifiPhy. More...

+ Inheritance diagram for OfdmaTestPhy< PhyEntityType >:
+ Collaboration diagram for OfdmaTestPhy< PhyEntityType >:

Public Member Functions

 OfdmaTestPhy (uint16_t staId)
 Constructor.
 
WifiSpectrumBandInfo GetNonOfdmaBand (const WifiTxVector &txVector, uint16_t staId) const
 Get the band used to transmit the non-OFDMA part of an HE TB PPDU.
 
uint16_t GetStaId (const Ptr< const WifiPpdu > ppdu) const override
 Return the STA ID that has been assigned to the station this PHY belongs to.
 
void SetGlobalPpduUid (uint64_t uid)
 Set the global PPDU UID counter.
 

Private Attributes

uint16_t m_staId
 ID of the STA to which this PHY belongs to.
 

Detailed Description

template<typename PhyEntityType>
class OfdmaTestPhy< PhyEntityType >

PHY entity slightly modified so as to return a given STA-ID in case of DL MU for OfdmaSpectrumWifiPhy.

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

Constructor & Destructor Documentation

◆ OfdmaTestPhy()

template<typename PhyEntityType >
OfdmaTestPhy< PhyEntityType >::OfdmaTestPhy ( uint16_t staId)

Constructor.

Parameters
staIdthe ID of the STA to which this PHY belongs to

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

Member Function Documentation

◆ GetNonOfdmaBand()

template<typename PhyEntityType >
WifiSpectrumBandInfo OfdmaTestPhy< PhyEntityType >::GetNonOfdmaBand ( const WifiTxVector & txVector,
uint16_t staId ) const

Get the band used to transmit the non-OFDMA part of an HE TB PPDU.

Parameters
txVectorthe TXVECTOR used for the transmission
staIdthe STA-ID of the station taking part of the UL MU
Returns
the spectrum band used to transmit the non-OFDMA part of an HE TB PPDU

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

References ns3::WifiRu::FindOverlappingRu(), ns3::WifiTxVector::GetChannelWidth(), ns3::WifiTxVector::GetModulationClass(), ns3::WifiRu::GetPhyIndex(), ns3::WifiTxVector::GetRu(), ns3::WifiRu::GetRuType(), ns3::WifiRu::GetSubcarrierGroup(), ns3::WifiSpectrumBandInfo::indices, ns3::WifiTxVector::IsUlMu(), NS_ASSERT, and ns3::WIFI_MOD_CLASS_HE.

+ Here is the call graph for this function:

◆ GetStaId()

template<typename PhyEntityType >
uint16_t OfdmaTestPhy< PhyEntityType >::GetStaId ( const Ptr< const WifiPpdu > ppdu) const
override

Return the STA ID that has been assigned to the station this PHY belongs to.

This is typically called for MU PPDUs, in order to pick the correct PSDU.

Parameters
ppduthe PPDU for which the STA ID is requested
Returns
the STA ID

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

References NS_LOG_FUNCTION, and ns3::WIFI_PPDU_TYPE_DL_MU.

◆ SetGlobalPpduUid()

template<typename PhyEntityType >
void OfdmaTestPhy< PhyEntityType >::SetGlobalPpduUid ( uint64_t uid)

Set the global PPDU UID counter.

Parameters
uidthe value to which the global PPDU UID counter should be set

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

Member Data Documentation

◆ m_staId

template<typename PhyEntityType >
uint16_t OfdmaTestPhy< PhyEntityType >::m_staId
private

ID of the STA to which this PHY belongs to.

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


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