34 EV <<
"!!! DumbMaxQ has to be used in conjecture with SmartMonitor!" << endl;
47 if( dp <= 0 ) { drop =
false; }
48 if( dp >= 1 ) { drop =
true; }
49 else { drop = dp >= uniform(0,1); }
51 std::string qos = ((
PDU*)queue->
getLastPDU())->getConnId().getQoSId();
87 if(par(
"printAtEnd").boolValue()) {
88 EV <<
"--------"<< endl;
89 EV <<
"At " << getFullPath()<< endl;
90 std::map<std::string, unsigned int>::iterator it;
92 EV <<
"On output:" <<endl;
93 for(it =
okOut.begin(); it!=
okOut.end(); it++){
94 EV <<
"QoS " << it->first <<
" - Processed " <<
okOut[it->first] <<
"(" <<
dOkOut[it->first] <<
")" <<
" - Dropped "<<
dropOut[it->first] <<
"(" <<
dDropOut[it->first] <<
")" << endl;
96 EV <<
"--------"<< endl;
RMTQMonitorBase * qMonPolicy
queueType getType() const
virtual double getOutDropProb(RMTQueue *queue)=0
bool run(RMTQueue *queue)
std::map< std::string, unsigned int > okIn
std::map< std::string, unsigned long > dOkIn
std::map< std::string, unsigned int > okOut
const cPacket * getLastPDU() const
std::map< std::string, unsigned long > dDropIn
std::map< std::string, unsigned long > dOkOut
virtual double getInDropProb(RMTQueue *queue)=0
std::map< std::string, unsigned long > dDropOut
std::map< std::string, unsigned int > dropIn
std::map< std::string, unsigned int > dropOut