RINASim  October 2016
Documentation of framework for OMNeT++
DQMonitor::DQMonitor Class Reference

#include <DQMonitor.h>

Inheritance diagram for DQMonitor::DQMonitor:
SmartMonitor RMTQMonitorBase

Public Member Functions

void onPolicyInit ()
 
void postPDUInsertion (RMTQueue *queue)
 
void onMessageDrop (RMTQueue *queue, const cPacket *pdu)
 
void postQueueCreation (RMTQueue *queue)
 
double getInDropProb (RMTQueue *queue)
 
RMTQueuegetNextInput (RMTPort *port)
 
simtime_t getNextInputTime (RMTPort *port)
 
double getOutDropProb (RMTQueue *queue)
 
RMTQueuegetNextOutput (RMTPort *port)
 
- Public Member Functions inherited from RMTQMonitorBase
virtual void prePDUInsertion (RMTQueue *queue)
 
virtual void prePDURelease (RMTQueue *queue)
 
virtual void postPDURelease (RMTQueue *queue)
 
virtual void preQueueRemoval (RMTQueue *queue)
 

Protected Member Functions

void parseL (cXMLElement *xml)
 
void parseC (cXMLElement *xml)
 
void parseU (cXMLElement *xml)
 
- Protected Member Functions inherited from RMTQMonitorBase
virtual void handleMessage (cMessage *msg)
 

Protected Attributes

lRepo Ls
 
cRepo Cs
 
uRepo Us
 
cuRepo CUs
 
queue2CU Q2CU
 
map< RMTPort *, map< L *, list< simtime_t > > > LTimes
 
map< RMTPort *, map< L *, list< simtime_t > > > SpaceTimes
 
map< RMTPort *, simtime_t > nextServe
 
map< RMTPort *, map< L *, list< RMTQueue * > > > LQueues
 
map< RMTQueue *, list< simtime_t > > UTimes
 
map< RMTQueue *, int > lastUrgency
 
map< RMTPort *, map< int, list< RMTQueue * > > > UQueues
 
map< RMTPort *, unsigned int > outC
 
- Protected Attributes inherited from RMTQMonitorBase
RMTModuleAllocatorrmtAllocator
 
RMTSchedulingBaseschedPolicy
 
AddressComparatorBaseaddrComparator
 

Detailed Description

Definition at line 59 of file DQMonitor.h.

Member Function Documentation

double DQMonitor::DQMonitor::getInDropProb ( RMTQueue queue)
virtual

Implements SmartMonitor.

Definition at line 486 of file DQMonitor.cc.

RMTQueue * DQMonitor::DQMonitor::getNextInput ( RMTPort port)
virtual

Implements SmartMonitor.

Definition at line 500 of file DQMonitor.cc.

Referenced by DQSch::processQueues().

simtime_t DQMonitor::DQMonitor::getNextInputTime ( RMTPort port)

Definition at line 532 of file DQMonitor.cc.

Referenced by DQSch::processQueues().

RMTQueue * DQMonitor::DQMonitor::getNextOutput ( RMTPort port)
virtual

priorities are stored with negative values in order to make the map order correct

Implements SmartMonitor.

Definition at line 550 of file DQMonitor.cc.

Referenced by DQSch::processQueues().

double DQMonitor::DQMonitor::getOutDropProb ( RMTQueue queue)
virtual

Implements SmartMonitor.

Definition at line 539 of file DQMonitor.cc.

void DQMonitor::DQMonitor::onMessageDrop ( RMTQueue queue,
const cPacket *  pdu 
)
virtual

A hook method invoked after a PDU gets dropped from a queue. Note: the PDU object is discarded after invocation of this method.

Parameters
queuepointer to the queue
pduPDU being dropped

Reimplemented from RMTQMonitorBase.

Definition at line 422 of file DQMonitor.cc.

void DQMonitor::DQMonitor::onPolicyInit ( )
virtual

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

Reimplemented from RMTQMonitorBase.

Definition at line 24 of file DQMonitor.cc.

void DQMonitor::DQMonitor::parseC ( cXMLElement *  xml)
protected

Definition at line 220 of file DQMonitor.cc.

void DQMonitor::DQMonitor::parseL ( cXMLElement *  xml)
protected

Definition at line 111 of file DQMonitor.cc.

void DQMonitor::DQMonitor::parseU ( cXMLElement *  xml)
protected

Definition at line 269 of file DQMonitor.cc.

void DQMonitor::DQMonitor::postPDUInsertion ( RMTQueue queue)
virtual

A hook method invoked after a PDU arrives into a queue.

Parameters
queuepointer to the queue

Save it as negative to get inverse order in map list

Reimplemented from RMTQMonitorBase.

Definition at line 346 of file DQMonitor.cc.

void DQMonitor::DQMonitor::postQueueCreation ( RMTQueue queue)
virtual

A hook method invoked after a queue is created.

Parameters
queuepointer to the queue

Reimplemented from RMTQMonitorBase.

Definition at line 472 of file DQMonitor.cc.

Member Data Documentation

cRepo DQMonitor::DQMonitor::Cs
protected

Definition at line 82 of file DQMonitor.h.

cuRepo DQMonitor::DQMonitor::CUs
protected

Definition at line 84 of file DQMonitor.h.

map< RMTQueue*, int > DQMonitor::DQMonitor::lastUrgency
protected

Definition at line 94 of file DQMonitor.h.

map< RMTPort*, map<L*, list<RMTQueue*> > > DQMonitor::DQMonitor::LQueues
protected

Definition at line 91 of file DQMonitor.h.

lRepo DQMonitor::DQMonitor::Ls
protected

Definition at line 81 of file DQMonitor.h.

map< RMTPort*, map<L*, list<simtime_t> > > DQMonitor::DQMonitor::LTimes
protected

Definition at line 87 of file DQMonitor.h.

map< RMTPort*, simtime_t> DQMonitor::DQMonitor::nextServe
protected

Definition at line 89 of file DQMonitor.h.

map<RMTPort*, unsigned int > DQMonitor::DQMonitor::outC
protected

Definition at line 98 of file DQMonitor.h.

queue2CU DQMonitor::DQMonitor::Q2CU
protected

Definition at line 85 of file DQMonitor.h.

map< RMTPort*, map<L*, list<simtime_t> > > DQMonitor::DQMonitor::SpaceTimes
protected

Definition at line 88 of file DQMonitor.h.

map< RMTPort*, map<int, list<RMTQueue*> > > DQMonitor::DQMonitor::UQueues
protected

Definition at line 96 of file DQMonitor.h.

uRepo DQMonitor::DQMonitor::Us
protected

Definition at line 83 of file DQMonitor.h.

map< RMTQueue*, list<simtime_t> > DQMonitor::DQMonitor::UTimes
protected

Definition at line 93 of file DQMonitor.h.


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