|
INET Framework for OMNeT++/OMNEST
|
#include <AnsaQosSystem.h>
Definition at line 57 of file AnsaQosSystem.h.
| ANSAQOS::QueueConfig::QueueConfig | ( | ) | [inline] |
Definition at line 75 of file AnsaQosSystem.h.
{currentHold = 0;}
| void ANSAQOS::QueueConfig::addCurrentCQQueueId | ( | ) | [inline] |
Definition at line 97 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue().
{currentCQQueueId = (currentCQQueueId + 1) % 16;}
| void ANSAQOS::QueueConfig::addCurrentHold | ( | ) | [inline] |
Definition at line 105 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue().
{++currentHold; qlenVec->record(currentHold);}
| void ANSAQOS::QueueConfig::addDroped | ( | ) | [inline] |
Definition at line 107 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue().
| void ANSAQOS::QueueConfig::addHoldCapacity | ( | int | num | ) | [inline] |
Definition at line 90 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::setCQSubQueue(), and AnsaQosSystem::setPQSubQueue().
{holdCapacity += num;}
| void ANSAQOS::QueueConfig::addNumQueues | ( | ) | [inline] |
Definition at line 103 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue().
{++numQueues; maxActQueues = (numQueues < maxActQueues ? maxActQueues:numQueues);}
| int ANSAQOS::QueueConfig::getCdt | ( | ) | [inline] |
Definition at line 93 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue(), and operator<<().
{return cdt;}
| int ANSAQOS::QueueConfig::getCurrentCQQueueId | ( | ) | [inline] |
Definition at line 98 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue().
{return currentCQQueueId;}
| int ANSAQOS::QueueConfig::getCurrentHold | ( | ) | [inline] |
Definition at line 88 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue(), AnsaQosSystem::enqueue(), and operator<<().
{return currentHold;}
| int ANSAQOS::QueueConfig::getDefaultQueueId | ( | ) | [inline] |
Definition at line 100 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue(), and operator<<().
{return defaultQueueId;}
| int ANSAQOS::QueueConfig::getDroped | ( | ) | [inline] |
| int ANSAQOS::QueueConfig::getHoldCapacity | ( | ) | [inline] |
Definition at line 91 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue(), AnsaQosSystem::loadConfigFromXML(), and operator<<().
{return holdCapacity;}
| std::string ANSAQOS::QueueConfig::getListId | ( | ) | [inline] |
Definition at line 80 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML(), and operator<<().
{return listId;}
| int ANSAQOS::QueueConfig::getMaxActQueues | ( | ) | [inline] |
| int ANSAQOS::QueueConfig::getMaxQueues | ( | ) | [inline] |
Definition at line 86 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue(), and operator<<().
{return maxQueues;}
| int ANSAQOS::QueueConfig::getNumQueues | ( | ) | [inline] |
Definition at line 82 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::enqueue(), and operator<<().
{return numQueues;}
| QueueType ANSAQOS::QueueConfig::getQueueType | ( | ) | [inline] |
Definition at line 78 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue(), AnsaQosSystem::enqueue(), and operator<<().
{return qt;}
| void ANSAQOS::QueueConfig::remCurrentHold | ( | ) | [inline] |
Definition at line 106 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue().
{--currentHold; qlenVec->record(currentHold);}
| void ANSAQOS::QueueConfig::remNumQueues | ( | ) | [inline] |
Definition at line 104 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::dequeue().
{--numQueues;}
| void ANSAQOS::QueueConfig::setCdt | ( | int | num | ) | [inline] |
Definition at line 92 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{cdt = num;}
| void ANSAQOS::QueueConfig::setCQ | ( | ) | [inline] |
Definition at line 121 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{qt=Q_CQ; currentHold = droped = holdCapacity = cdt = 0;
maxQueues = numQueues = 16; defaultQueueId = currentCQQueueId= 1; setVectorName(Q_CQ);}
| void ANSAQOS::QueueConfig::setCurrentCQQueueId | ( | int | id | ) | [inline] |
Definition at line 96 of file AnsaQosSystem.h.
{currentCQQueueId = id;}
| void ANSAQOS::QueueConfig::setCurrentHold | ( | int | num | ) | [inline] |
Definition at line 87 of file AnsaQosSystem.h.
{currentHold = num;}
| void ANSAQOS::QueueConfig::setDefaultQueueId | ( | int | id | ) | [inline] |
Definition at line 99 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::setCQSubQueue(), and AnsaQosSystem::setPQSubQueue().
{defaultQueueId = id;}
| void ANSAQOS::QueueConfig::setDroped | ( | int | num | ) | [inline] |
Definition at line 94 of file AnsaQosSystem.h.
{droped = num;}
| void ANSAQOS::QueueConfig::setFIFO | ( | int | hold | ) | [inline] |
Definition at line 112 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{qt=Q_FIFO; currentHold = droped = 0; maxQueues = numQueues = 1;
holdCapacity = cdt = hold; setVectorName(Q_FIFO);}
| void ANSAQOS::QueueConfig::setHoldCapacity | ( | int | num | ) | [inline] |
Definition at line 89 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{holdCapacity = num;}
| void ANSAQOS::QueueConfig::setListId | ( | std::string | id | ) | [inline] |
Definition at line 79 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{listId = id;}
| void ANSAQOS::QueueConfig::setMaxActQueues | ( | int | num | ) | [inline] |
Definition at line 83 of file AnsaQosSystem.h.
{maxActQueues = num;}
| void ANSAQOS::QueueConfig::setMaxQueues | ( | int | num | ) | [inline] |
Definition at line 85 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{maxQueues = num;}
| void ANSAQOS::QueueConfig::setNumQueues | ( | int | num | ) | [inline] |
Definition at line 81 of file AnsaQosSystem.h.
{numQueues = num;}
| void ANSAQOS::QueueConfig::setPQ | ( | ) | [inline] |
Definition at line 118 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{qt=Q_PQ; currentHold = droped = holdCapacity = cdt = 0;
maxQueues = numQueues = 4; defaultQueueId = 3; setVectorName(Q_PQ);}
| void ANSAQOS::QueueConfig::setQueueType | ( | QueueType | type | ) | [inline] |
Definition at line 77 of file AnsaQosSystem.h.
{qt = type;}
| void ANSAQOS::QueueConfig::setVectorName | ( | ANSAQOS::QueueType | type | ) |
Definition at line 743 of file AnsaQosSystem.cc.
Referenced by setCQ(), setFIFO(), setPQ(), and setWFQ().
{
switch(type)
{
case ANSAQOS::Q_FIFO :
qlenVec->setName("FIFO Length");
dropVec->setName("FIFO Drops");
break;
case ANSAQOS::Q_WFQ :
qlenVec->setName("WFQ Length");
dropVec->setName("WFQ Drops");
break;
case ANSAQOS::Q_PQ :
qlenVec->setName("PQ Length");
dropVec->setName("PQ Drops");
break;
case ANSAQOS::Q_CQ :
qlenVec->setName("CQ Length");
dropVec->setName("CQ Drops");
break;
default :
break;
}
}
| void ANSAQOS::QueueConfig::setVectorPointer | ( | cOutVector * | l, |
| cOutVector * | d | ||
| ) | [inline] |
Definition at line 101 of file AnsaQosSystem.h.
| void ANSAQOS::QueueConfig::setWFQ | ( | ) | [inline] |
Definition at line 115 of file AnsaQosSystem.h.
Referenced by AnsaQosSystem::loadConfigFromXML().
{qt=Q_WFQ; numQueues = maxActQueues = currentHold = droped = 0;
maxQueues = 256; holdCapacity = 1000; cdt = 64; setVectorName(Q_WFQ);}
int ANSAQOS::QueueConfig::cdt [private] |
int ANSAQOS::QueueConfig::currentCQQueueId [private] |
Definition at line 68 of file AnsaQosSystem.h.
Referenced by addCurrentCQQueueId(), getCurrentCQQueueId(), setCQ(), and setCurrentCQQueueId().
int ANSAQOS::QueueConfig::currentHold [private] |
Definition at line 64 of file AnsaQosSystem.h.
Referenced by addCurrentHold(), getCurrentHold(), QueueConfig(), remCurrentHold(), setCQ(), setCurrentHold(), setFIFO(), setPQ(), and setWFQ().
int ANSAQOS::QueueConfig::defaultQueueId [private] |
Definition at line 69 of file AnsaQosSystem.h.
Referenced by getDefaultQueueId(), setCQ(), setDefaultQueueId(), and setPQ().
int ANSAQOS::QueueConfig::droped [private] |
Definition at line 67 of file AnsaQosSystem.h.
Referenced by addDroped(), getDroped(), setCQ(), setDroped(), setFIFO(), setPQ(), and setWFQ().
cOutVector* ANSAQOS::QueueConfig::dropVec [private] |
Definition at line 72 of file AnsaQosSystem.h.
Referenced by addDroped(), and setVectorPointer().
int ANSAQOS::QueueConfig::holdCapacity [private] |
Definition at line 65 of file AnsaQosSystem.h.
Referenced by addHoldCapacity(), getHoldCapacity(), setCQ(), setFIFO(), setHoldCapacity(), setPQ(), and setWFQ().
std::string ANSAQOS::QueueConfig::listId [private] |
Definition at line 60 of file AnsaQosSystem.h.
Referenced by getListId(), and setListId().
int ANSAQOS::QueueConfig::maxActQueues [private] |
Definition at line 62 of file AnsaQosSystem.h.
Referenced by addNumQueues(), getMaxActQueues(), setMaxActQueues(), and setWFQ().
int ANSAQOS::QueueConfig::maxQueues [private] |
Definition at line 63 of file AnsaQosSystem.h.
Referenced by getMaxQueues(), setCQ(), setFIFO(), setMaxQueues(), setPQ(), and setWFQ().
int ANSAQOS::QueueConfig::numQueues [private] |
Definition at line 61 of file AnsaQosSystem.h.
Referenced by addNumQueues(), getNumQueues(), remNumQueues(), setCQ(), setFIFO(), setNumQueues(), setPQ(), and setWFQ().
cOutVector* ANSAQOS::QueueConfig::qlenVec [private] |
Definition at line 71 of file AnsaQosSystem.h.
Referenced by addCurrentHold(), remCurrentHold(), and setVectorPointer().
QueueType ANSAQOS::QueueConfig::qt [private] |
Definition at line 59 of file AnsaQosSystem.h.
Referenced by getQueueType(), setCQ(), setFIFO(), setPQ(), setQueueType(), and setWFQ().