RINASim
October 2016
Documentation of framework for OMNeT++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
MM_WFQ_Drop.h
Go to the documentation of this file.
1
//
2
// Copyright © 2014 - 2015 PRISTINE Consortium (http://ict-pristine.eu)
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU Lesser General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU Lesser General Public License for more details.
13
//
14
// You should have received a copy of the GNU Lesser General Public License
15
// along with this program. If not, see http://www.gnu.org/licenses/.
16
//
17
18
#pragma once
19
20
#include "
Int_MM_Drop_Module.h
"
21
22
#include <string>
23
#include <map>
24
#include <vector>
25
#include <list>
26
27
namespace
MM_WFQ_Drop
{
28
29
using namespace
std
;
30
31
class
MM_WFQ_Drop
:
public
Int_MM_Drop_Module
32
{
33
public
:
34
~
MM_WFQ_Drop
();
35
36
void
pduInsertered(
RMTQueue
*,
RMTPort
*);
37
void
pduDropped(
RMTQueue
*,
const
cPacket *,
RMTPort
*);
38
void
pduReleased(
RMTQueue
*,
RMTPort
*);
39
void
queueCreated(
RMTQueue
*,
RMTPort
*);
40
41
double
getDropProbability(
RMTQueue
*,
RMTPort
*);
42
43
protected
:
44
map<string , int>
queueName2Threshold
;
45
int
defaultThreshold
;
46
map<RMTQueue * , int>
queueThreshold
;
47
map<RMTQueue * , int>
queueCount
;
48
49
void
initialize();
50
};
51
52
}
MM_WFQ_Drop::MM_WFQ_Drop::queueThreshold
map< RMTQueue *, int > queueThreshold
Definition:
MM_WFQ_Drop.h:46
MM_WFQ_Drop::MM_WFQ_Drop::queueCount
map< RMTQueue *, int > queueCount
Definition:
MM_WFQ_Drop.h:47
std
Int_MM_Drop_Module
Definition:
Int_MM_Drop_Module.h:7
MM_WFQ_Drop::MM_WFQ_Drop::defaultThreshold
int defaultThreshold
Definition:
MM_WFQ_Drop.h:45
MM_WFQ_Drop::MM_WFQ_Drop::queueName2Threshold
map< string, int > queueName2Threshold
Definition:
MM_WFQ_Drop.h:44
MM_WFQ_Drop
Definition:
MM_WFQ_Drop.cc:20
RMTPort
Definition:
RMTPort.h:36
RMTQueue
Definition:
RMTQueue.h:34
Int_MM_Drop_Module.h
policies
DIF
RMT
Monitor
ModularMonitor
MM_WFQ_Drop
MM_WFQ_Drop.h
Generated on Tue Oct 25 2016 21:08:54 for RINASim by
1.8.10