A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
12
#include "
wifi-mac-queue-scheduler-impl.h
"
13
14
#include "ns3/nstime.h"
15
16
namespace
ns3
17
{
18
19
class
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
*/
29
class
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
38
FcfsWifiQueueScheduler
();
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 */
ns3::FcfsWifiQueueScheduler::FcfsWifiQueueScheduler
FcfsWifiQueueScheduler()
Definition
fcfs-wifi-queue-scheduler.cc:32
ns3::FcfsWifiQueueScheduler::NS_LOG_TEMPLATE_DECLARE
NS_LOG_TEMPLATE_DECLARE
redefinition of the log component
Definition
fcfs-wifi-queue-scheduler.h:45
ns3::FcfsWifiQueueScheduler::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
fcfs-wifi-queue-scheduler.cc:23
ns3::FcfsWifiQueueScheduler::DoNotifyEnqueue
void DoNotifyEnqueue(AcIndex ac, Ptr< WifiMpdu > mpdu) override
Notify the scheduler that the given MPDU has been enqueued by the given Access Category.
Definition
fcfs-wifi-queue-scheduler.cc:38
ns3::FcfsWifiQueueScheduler::DoNotifyDequeue
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.
Definition
fcfs-wifi-queue-scheduler.cc:52
ns3::FcfsWifiQueueScheduler::DoNotifyRemove
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.
Definition
fcfs-wifi-queue-scheduler.cc:73
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
ptr.h:70
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:50
ns3::WifiMacQueueSchedulerImpl< WifiSchedPrecedence< Time > >::WifiMacQueueSchedulerImpl
WifiMacQueueSchedulerImpl()
Definition
wifi-mac-queue-scheduler-impl.h:389
ns3::WifiMpdu
WifiMpdu stores a (const) packet along with a MAC header.
Definition
wifi-mpdu.h:51
ns3::AcIndex
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition
qos-utils.h:64
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wifi-mac-queue-scheduler-impl.h
src
wifi
model
fcfs-wifi-queue-scheduler.h
Generated on
for ns-3 by
1.16.1