22 #include "ns3/abort.h"
24 #include "ns3/qos-txop.h"
27 #include "ns3/wifi-protection.h"
28 #include "ns3/wifi-acknowledgment.h"
29 #include "ns3/wifi-mac-trailer.h"
42 .SetGroupName (
"Wifi")
98 for (uint8_t i = 0; i < 8; i++)
113 "MultiUserScheduler can only be installed on HE APs");
115 m_heFem = DynamicCast<HeFrameExchangeManager> (
m_apMac->GetFrameExchangeManager ());
116 m_heFem->SetMultiUserScheduler (
this);
122 return m_apMac->GetWifiRemoteStationManager ();
147 if (txFormat !=
NO_TX)
165 #ifdef NS3_BUILD_PROFILE_DEBUG
170 "Station " << psdu.second->GetAddr1 () <<
" does not support HE");
static uint32_t GetSizeIfAggregated(uint32_t mpduSize, uint32_t ampduSize)
Compute the size of the A-MPDU resulting from the aggregation of an MPDU of size mpduSize and an A-MP...
virtual TxFormat SelectTxFormat(void)=0
Select the format of the next transmission.
bool m_initialFrame
true if a TXOP is being started
void DoInitialize(void) override
Initialize() implementation.
UlMuInfo m_ulInfo
information required to solicit an UL MU transmission
TxFormat m_lastTxFormat
the format of last transmission
Ptr< ApWifiMac > m_apMac
the AP wifi MAC
Time m_availableTime
the time available for frame exchange
void DoDispose(void) override
Destructor implementation.
TxFormat GetLastTxFormat(void) const
Get the format of the last transmission, as determined by the last call to NotifyAccessGranted that d...
virtual UlMuInfo ComputeUlMuInfo(void)=0
Prepare the information required to solicit an UL MU transmission.
DlMuInfo m_dlInfo
information required to perform a DL MU transmission
void NotifyNewAggregate(void) override
Notify all Objects aggregated to this one of a new Object being aggregated.
Ptr< HeFrameExchangeManager > m_heFem
HE Frame Exchange Manager.
virtual DlMuInfo ComputeDlMuInfo(void)=0
Compute the information required to perform a DL MU transmission.
virtual ~MultiUserScheduler()
Ptr< WifiRemoteStationManager > GetWifiRemoteStationManager(void) const
Get the station manager attached to the AP.
Ptr< QosTxop > m_edca
the AC that gained channel access
uint32_t m_sizeOf8QosNull
size in bytes of 8 QoS Null frames
UlMuInfo & GetUlMuInfo(void)
Get the information required to solicit an UL MU transmission.
DlMuInfo & GetDlMuInfo(void)
Get the information required to perform a DL MU transmission.
void CheckTriggerFrame(void)
Ensure that the Trigger Frame returned in case of UL MU transmission is correct.
static TypeId GetTypeId(void)
Get the type ID.
void SetWifiMac(Ptr< ApWifiMac > mac)
Set the wifi MAC.
TxFormat
Enumeration of the possible transmission formats.
TxFormat NotifyAccessGranted(Ptr< QosTxop > edca, Time availableTime, bool initialFrame)
Notify the Multi-user Scheduler that the given AC of the AP gained channel access.
A base class which provides memory management and object aggregation.
virtual void DoDispose(void)
Destructor implementation.
virtual void NotifyNewAggregate(void)
Notify all Objects aggregated to this one of a new Object being aggregated.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void Clear(void)
Reset the TX parameters.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const uint16_t WIFI_MAC_FCS_LENGTH
The length in octects of the IEEE 802.11 MAC FCS field.
Information to be provided in case of DL MU transmission.
WifiTxParameters txParams
the transmission parameters
WifiPsduMap psduMap
the DL MU PPDU to transmit
Information to be provided in case of UL MU transmission.
WifiTxParameters txParams
the transmission parameters for the Trigger Frame
CtrlTriggerHeader trigger
the Trigger Frame used to solicit TB PPDUs