|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef MULTI_USER_SCHEDULER_H
22 #define MULTI_USER_SCHEDULER_H
24 #include "ns3/object.h"
26 #include "ns3/ctrl-headers.h"
27 #include "ns3/ap-wifi-mac.h"
28 #include "ns3/wifi-mac-queue.h"
29 #include "ns3/wifi-tx-parameters.h"
30 #include "ns3/wifi-remote-station-manager.h"
31 #include <unordered_map>
35 class HeFrameExchangeManager;
37 typedef std::unordered_map <uint16_t , Ptr<WifiPsdu> >
WifiPsduMap;
a unique identifier for an interface.
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.
Information to be provided in case of UL MU transmission.
Ptr< QosTxop > m_edca
the AC that gained channel access
DlMuInfo & GetDlMuInfo(void)
Get the information required to perform a DL MU transmission.
std::unordered_map< uint16_t, Ptr< WifiPsdu > > WifiPsduMap
Map of PSDUs indexed by STA-ID.
DlMuInfo m_dlInfo
information required to perform a DL MU transmission
MultiUserScheduler is an abstract base class defining the API that APs supporting at least VHT can us...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
WifiTxParameters txParams
the transmission parameters
WifiPsduMap psduMap
the DL MU PPDU to transmit
void NotifyNewAggregate(void) override
Notify all Objects aggregated to this one of a new Object being aggregated.
void DoDispose(void) override
Destructor implementation.
bool m_initialFrame
true if a TXOP is being started
virtual TxFormat SelectTxFormat(void)=0
Select the format of the next transmission.
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
Ptr< WifiMacQueueItem > trigger
the Trigger frame used to solicit TB PPDUs
virtual DlMuInfo ComputeDlMuInfo(void)=0
Compute the information required to perform a DL MU transmission.
Time tbPpduDuration
the duration of the solicited TB PPDU
virtual ~MultiUserScheduler()
UlMuInfo & GetUlMuInfo(void)
Get the information required to solicit an UL MU transmission.
Time m_availableTime
the time available for frame exchange
Information to be provided in case of DL MU transmission.
A base class which provides memory management and object aggregation.
Ptr< HeFrameExchangeManager > m_heFem
HE Frame Exchange Manager.
Simulation virtual time values and global simulation resolution.
void SetWifiMac(Ptr< ApWifiMac > mac)
Set the wifi MAC.
Ptr< ApWifiMac > m_apMac
the AP wifi MAC
Ptr< WifiRemoteStationManager > GetWifiRemoteStationManager(void) const
Get the station manager attached to the AP.
WifiTxParameters txParams
the transmission parameters for the Trigger Frame
TxFormat GetLastTxFormat(void) const
Get the format of the last transmission, as determined by the last call to NotifyAccessGranted that d...
uint32_t m_sizeOf8QosNull
size in bytes of 8 QoS Null frames
TxFormat
Enumeration of the possible transmission formats.
void DoInitialize(void) override
Initialize() implementation.
TxFormat m_lastTxFormat
the format of last transmission
static TypeId GetTypeId(void)
Get the type ID.
UlMuInfo m_ulInfo
information required to solicit an UL MU transmission