A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
fcfs-wifi-queue-scheduler.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Universita' degli Studi di Napoli Federico II
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Stefano Avallone <stavallo@unina.it>
7 */
8
9#ifndef FCFS_WIFI_QUEUE_SCHEDULER_H
10#define FCFS_WIFI_QUEUE_SCHEDULER_H
11
13
14#include "ns3/nstime.h"
15
16namespace ns3
17{
18
19class WifiMpdu;
20
21/**
22 * @ingroup wifi
23 *
24 * FcfsWifiQueueScheduler is a wifi queue scheduler that serves data frames in a
25 * first come first serve fashion. Control frames have the highest priority.
26 * Management frames have the second highest priority. Hence, data frames are
27 * served after control and management frames.
28 */
29class FcfsWifiQueueScheduler : public WifiMacQueueSchedulerImpl<WifiSchedPrecedence<Time>>
30{
31 public:
32 /**
33 * @brief Get the type ID.
34 * @return the object TypeId
35 */
36 static TypeId GetTypeId();
37
39
40 private:
41 void DoNotifyEnqueue(AcIndex ac, Ptr<WifiMpdu> mpdu) override;
42 void DoNotifyDequeue(AcIndex ac, const std::list<Ptr<WifiMpdu>>& mpdus) override;
43 void DoNotifyRemove(AcIndex ac, const std::list<Ptr<WifiMpdu>>& mpdus) override;
44
45 NS_LOG_TEMPLATE_DECLARE; //!< redefinition of the log component
46};
47
48} // namespace ns3
49
50#endif /* FCFS_WIFI_QUEUE_SCHEDULER_H */
NS_LOG_TEMPLATE_DECLARE
redefinition of the log component
static TypeId GetTypeId()
Get the type ID.
void DoNotifyEnqueue(AcIndex ac, Ptr< WifiMpdu > mpdu) override
Notify the scheduler that the given MPDU has been enqueued by the given Access Category.
void DoNotifyDequeue(AcIndex ac, const std::list< Ptr< WifiMpdu > > &mpdus) override
Notify the scheduler that the given list of MPDUs have been dequeued by the given Access Category.
void DoNotifyRemove(AcIndex ac, const std::list< Ptr< WifiMpdu > > &mpdus) override
Notify the scheduler that the given list of MPDUs have been removed by the given Access Category.
Smart pointer class similar to boost::intrusive_ptr.
Definition ptr.h:70
a unique identifier for an interface.
Definition type-id.h:50
WifiMpdu stores a (const) packet along with a MAC header.
Definition wifi-mpdu.h:51
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition qos-utils.h:64
Every class exported by the ns3 library is enclosed in the ns3 namespace.