RINASim  October 2016
Documentation of framework for OMNeT++
RMTMaxQBase.h
Go to the documentation of this file.
1 // The MIT License (MIT)
2 //
3 // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to deal
7 // in the Software without restriction, including without limitation the rights
8 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 // copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in
13 // all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 // THE SOFTWARE.
22 
23 #ifndef RMTMAXQBASE_H_
24 #define RMTMAXQBASE_H_
25 
26 #include <omnetpp.h>
27 
28 #include "RINASignals.h"
29 #include "RMTQueue.h"
30 #include "RMTQMonitorBase.h"
31 #include "AddressComparatorBase.h"
32 #include "RMTModuleAllocator.h"
33 
34 
39 class RMTMaxQBase : public cSimpleModule
40 {
41  public:
42 
50  virtual bool run(RMTQueue* queue);
51 
56  virtual void onQueueLengthDrop(RMTQueue* queue);
57 
58  protected:
59 
63  virtual void onPolicyInit();
64 
68  virtual void handleMessage(cMessage* msg);
69 
75  void notifySenderOfCongestion(const cPacket* pdu);
76 
81 
86 
91 
92  private:
93 
98  void initialize();
99 
103  simsignal_t sigRMTSDReq;
104 
108  //FIXME: Vesely: Unused variable commented
109  //simsignal_t sigRMTPortDrainDisable;
110 
114  //FIXME: Vesely: Unused variable commented
115  //simsignal_t sigRMTPortDrainEnable;
116 
120  //FIXME: Vesely: Unused variable commented
121  //simsignal_t sigRMTPortDrainSpeedUp;
122 
126  //FIXME: Vesely: Unused variable commented
127  //simsignal_t sigRMTPortDrainSlowDown;
128 };
129 
130 #endif /* RMTMAXQBASE_H_ */
RMTQMonitorBase * qMonPolicy
Definition: RMTMaxQBase.h:80
simsignal_t sigRMTSDReq
Definition: RMTMaxQBase.h:103
AddressComparatorBase * addrComparator
Definition: RMTMaxQBase.h:85
virtual bool run(RMTQueue *queue)
Definition: RMTMaxQBase.cc:52
void notifySenderOfCongestion(const cPacket *pdu)
Definition: RMTMaxQBase.cc:61
virtual void onQueueLengthDrop(RMTQueue *queue)
Definition: RMTMaxQBase.cc:57
virtual void handleMessage(cMessage *msg)
Definition: RMTMaxQBase.cc:47
void initialize()
Definition: RMTMaxQBase.cc:28
virtual void onPolicyInit()
Definition: RMTMaxQBase.cc:43
RMTModuleAllocator * rmtAllocator
Definition: RMTMaxQBase.h:90