20 #ifndef WIFI_MAC_QUEUE_SCHEDULER_H
21 #define WIFI_MAC_QUEUE_SCHEDULER_H
26 #include "ns3/object.h"
67 virtual std::optional<WifiContainerQueueId>
GetNext(
AcIndex ac, uint8_t linkId) = 0;
78 virtual std::optional<WifiContainerQueueId>
GetNext(
102 const std::list<uint8_t>& linkIds) = 0;
A base class which provides memory management and object aggregation.
a unique identifier for an interface.
WifiMacQueueScheduler is an abstract base class defining the public interface for a wifi MAC queue sc...
virtual void SetWifiMac(Ptr< WifiMac > mac)
Set the wifi MAC.
Ptr< WifiMac > GetMac() const
Get the wifi MAC.
virtual std::optional< WifiContainerQueueId > GetNext(AcIndex ac, uint8_t linkId, const WifiContainerQueueId &prevQueueId)=0
Get the next queue to serve after the given one.
virtual void SetLinkIds(AcIndex ac, const WifiContainerQueueId &queueId, const std::list< uint8_t > &linkIds)=0
Set the list of the IDs of the links the given container queue (belonging to the given Access Categor...
virtual std::optional< WifiContainerQueueId > GetNext(AcIndex ac, uint8_t linkId)=0
Get the next queue to serve, which is guaranteed to contain at least an MPDU whose lifetime has not e...
virtual Ptr< WifiMpdu > HasToDropBeforeEnqueue(AcIndex ac, Ptr< WifiMpdu > mpdu)=0
Check whether an MPDU has to be dropped before enqueuing the given MPDU.
virtual void NotifyDequeue(AcIndex ac, const std::list< Ptr< WifiMpdu >> &mpdus)=0
Notify the scheduler that the given list of MPDUs have been dequeued by the given Access Category.
virtual std::list< uint8_t > GetLinkIds(AcIndex ac, const WifiContainerQueueId &queueId)=0
Get the list of the IDs of the links the given container queue (belonging to the given Access Categor...
virtual void NotifyEnqueue(AcIndex ac, Ptr< WifiMpdu > mpdu)=0
Notify the scheduler that the given MPDU has been enqueued by the given Access Category.
void DoDispose() override
Destructor implementation.
static TypeId GetTypeId()
Get the type ID.
Ptr< WifiMac > m_mac
MAC layer.
virtual void NotifyRemove(AcIndex ac, const std::list< Ptr< WifiMpdu >> &mpdus)=0
Notify the scheduler that the given list of MPDUs have been removed by the given Access Category.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::tuple< WifiContainerQueueType, Mac48Address, std::optional< uint8_t > > WifiContainerQueueId
Tuple (queue type, Address, TID) identifying a container queue.