RINASim  October 2016
Documentation of framework for OMNeT++
MM_maxDelayLimited_Out.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_Out_Module.h"
21 #include "SM_Burst.h"
22 
23 #include <string>
24 #include <map>
25 #include <vector>
26 #include <list>
27 
28 namespace MM_maxDelayLimited_Out {
29 
30 using namespace std;
31 using namespace ModularMonitor;
32 
34 {
35  public:
37  void finish();
38 
39  void pduInsertered(RMTQueue *, RMTPort *);
40  void pduDropped(RMTQueue *, const cPacket *, RMTPort *);
41  void pduReleased(RMTQueue *, RMTPort *);
42  void queueCreated(RMTQueue *, RMTPort *);
43 
44  RMTQueue * getnextQueue(RMTPort *);
45  simtime_t getnextTime(RMTPort *);
46 
47  protected:
48  map<string , simtime_t> queueName2Delay;
50  map<RMTQueue * , simtime_t> queueDelay;
51 
52  map<string , double> queueName2Multip;
53  map<RMTQueue * , double> queueMultip;
54 
55 
56  map<string , simtime_t> queueName2BurstTime;
57  map<string , unsigned int> queueName2BurstSize;
58 
59  map<RMTPort* , set<RMTQueue*> > portQueues;
60  map<RMTQueue* , list<simtime_t> > queueInTime;
61  map<RMTQueue* , SM_Burst > queueBurstCount;
62 
63  void initialize();
64 };
65 
66 }
map< RMTQueue *, list< simtime_t > > queueInTime
map< RMTPort *, set< RMTQueue * > > portQueues