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