A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
mq-queue-disc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Universita' degli Studi di Napoli Federico II
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Authors: Pasquale Imputato <p.imputato@gmail.com>
18
* Stefano Avallone <stavallo@unina.it>
19
*/
20
21
#ifndef MQ_QUEUE_DISC_H
22
#define MQ_QUEUE_DISC_H
23
24
#include "
queue-disc.h
"
25
26
namespace
ns3
27
{
28
36
class
MqQueueDisc
:
public
QueueDisc
37
{
38
public
:
43
static
TypeId
GetTypeId
();
47
MqQueueDisc
();
48
49
~MqQueueDisc
()
override
;
50
55
WakeMode
GetWakeMode
()
const override
;
56
57
private
:
58
bool
DoEnqueue
(
Ptr<QueueDiscItem>
item)
override
;
59
Ptr<QueueDiscItem>
DoDequeue
()
override
;
60
Ptr<const QueueDiscItem>
DoPeek
()
override
;
61
bool
CheckConfig
()
override
;
62
void
InitializeParams
()
override
;
63
};
64
65
}
// namespace ns3
66
67
#endif
/* MQ_QUEUE_DISC_H */
ns3::MqQueueDisc
mq is a classful multi-queue aware dummy scheduler.
Definition:
mq-queue-disc.h:37
ns3::MqQueueDisc::DoDequeue
Ptr< QueueDiscItem > DoDequeue() override
This function actually extracts a packet from the queue disc.
Definition:
mq-queue-disc.cc:66
ns3::MqQueueDisc::DoPeek
Ptr< const QueueDiscItem > DoPeek() override
Return a copy of the next packet the queue disc will extract.
Definition:
mq-queue-disc.cc:72
ns3::MqQueueDisc::InitializeParams
void InitializeParams() override
Initialize parameters (if any) before the first packet is enqueued.
Definition:
mq-queue-disc.cc:98
ns3::MqQueueDisc::MqQueueDisc
MqQueueDisc()
MqQueueDisc constructor.
Definition:
mq-queue-disc.cc:42
ns3::MqQueueDisc::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
mq-queue-disc.cc:33
ns3::MqQueueDisc::DoEnqueue
bool DoEnqueue(Ptr< QueueDiscItem > item) override
This function actually enqueues a packet into the queue disc.
Definition:
mq-queue-disc.cc:60
ns3::MqQueueDisc::CheckConfig
bool CheckConfig() override
Check whether the current configuration is correct.
Definition:
mq-queue-disc.cc:78
ns3::MqQueueDisc::~MqQueueDisc
~MqQueueDisc() override
Definition:
mq-queue-disc.cc:48
ns3::MqQueueDisc::GetWakeMode
WakeMode GetWakeMode() const override
Return the wake mode adopted by this queue disc.
Definition:
mq-queue-disc.cc:54
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::QueueDisc
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
Definition:
queue-disc.h:184
ns3::QueueDisc::WakeMode
WakeMode
Used to determine whether the queue disc itself or its children must be activated when a netdevice wa...
Definition:
queue-disc.h:503
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
queue-disc.h
src
traffic-control
model
mq-queue-disc.h
Generated on Sun Mar 3 2024 17:11:09 for ns-3 by
1.9.1