A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
ofswitch13-priority-queue.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 University of Campinas (Unicamp)
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
* Author: Luciano Jerez Chaves <ljerezchaves@gmail.com>
18
*/
19
#ifndef OFSWITCH13_PRIORITY_QUEUE_H
20
#define OFSWITCH13_PRIORITY_QUEUE_H
21
22
#include "
ofswitch13-queue.h
"
23
24
namespace
ns3
25
{
26
27
// The following explicit template instantiation declaration prevents modules
28
// including this header file from implicitly instantiating Queue<Packet>.
29
extern
template
class
Queue<Packet>
;
30
40
class
OFSwitch13PriorityQueue
:
public
OFSwitch13Queue
41
{
42
public
:
47
static
TypeId
GetTypeId();
48
49
OFSwitch13PriorityQueue
();
50
~
OFSwitch13PriorityQueue
()
override
;
51
52
// Inherited from Queue.
53
Ptr<Packet>
Dequeue()
override
;
54
Ptr<Packet>
Remove()
override
;
55
Ptr<const Packet>
Peek()
const override
;
56
57
protected
:
58
// Inherited from Object.
59
void
DoInitialize()
override
;
60
61
private
:
66
int
GetNonEmptyQueue()
const
;
67
68
ObjectFactory
m_facQueues
;
69
int
m_numQueues
;
70
71
NS_LOG_TEMPLATE_DECLARE
;
72
};
73
74
}
// namespace ns3
75
#endif
/* OFSWITCH13_PRIORITY_QUEUE_H */
ns3::OFSwitch13PriorityQueue
This class implements the priority queuing discipline for OpenFlow queue.
Definition:
ofswitch13-priority-queue.h:41
ns3::OFSwitch13PriorityQueue::m_facQueues
ObjectFactory m_facQueues
Factory for internal queues.
Definition:
ofswitch13-priority-queue.h:68
ns3::OFSwitch13PriorityQueue::m_numQueues
int m_numQueues
Number of internal queues.
Definition:
ofswitch13-priority-queue.h:69
ns3::OFSwitch13PriorityQueue::NS_LOG_TEMPLATE_DECLARE
NS_LOG_TEMPLATE_DECLARE
Redefinition of the log component.
Definition:
ofswitch13-priority-queue.h:71
ns3::OFSwitch13Queue
The OpenFlow 1.3 queue interface.
Definition:
ofswitch13-queue.h:55
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:48
ns3::Ptr< Packet >
Queue< Packet >
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ofswitch13-queue.h
contrib
ofswitch13
model
ofswitch13-priority-queue.h
Generated on Fri Mar 31 2023 13:30:37 for ns-3 by
1.9.1