RINASim  October 2016
Documentation of framework for OMNeT++
REDDropper Class Reference

#include <REDDropper.h>

Inheritance diagram for REDDropper:
RMTMaxQBase

Public Member Functions

virtual bool run (RMTQueue *queue)
 
- Public Member Functions inherited from RMTMaxQBase
virtual void onQueueLengthDrop (RMTQueue *queue)
 

Private Member Functions

void onPolicyInit ()
 
bool dropOrMark (RMTQueue *queue)
 

Private Attributes

REDMonitormonitor
 

Additional Inherited Members

- Protected Member Functions inherited from RMTMaxQBase
virtual void handleMessage (cMessage *msg)
 
void notifySenderOfCongestion (const cPacket *pdu)
 
- Protected Attributes inherited from RMTMaxQBase
RMTQMonitorBaseqMonPolicy
 
AddressComparatorBaseaddrComparator
 
RMTModuleAllocatorrmtAllocator
 

Detailed Description

Definition at line 31 of file REDDropper.h.

Member Function Documentation

bool REDDropper::dropOrMark ( RMTQueue queue)
private

Either drops or marks the last PDU in given queue (depending on the NED setting).

Parameters
queuetarget queue
Returns
true for PDU drop, false for PDU mark

Definition at line 42 of file REDDropper.cc.

Referenced by run().

void REDDropper::onPolicyInit ( )
privatevirtual

A hook method invoked after the initial setup of policy module.

Reimplemented from RMTMaxQBase.

Definition at line 27 of file REDDropper.cc.

bool REDDropper::run ( RMTQueue queue)
virtual

Decides whether to mark/drop last incoming packet in a queue.

Parameters
queuetarget queue
Returns
true for PDU drop, false for PDU mark

Reimplemented from RMTMaxQBase.

Definition at line 64 of file REDDropper.cc.

Member Data Documentation

REDMonitor* REDDropper::monitor
private

Definition at line 38 of file REDDropper.h.

Referenced by onPolicyInit(), and run().


The documentation for this class was generated from the following files: