INET Framework for OMNeT++/OMNEST
ANSAQOS::QueueConfig Class Reference

#include <AnsaQosSystem.h>

List of all members.

Public Member Functions

 QueueConfig ()
void setQueueType (QueueType type)
QueueType getQueueType ()
void setListId (std::string id)
std::string getListId ()
void setNumQueues (int num)
int getNumQueues ()
void setMaxActQueues (int num)
int getMaxActQueues ()
void setMaxQueues (int num)
int getMaxQueues ()
void setCurrentHold (int num)
int getCurrentHold ()
void setHoldCapacity (int num)
void addHoldCapacity (int num)
int getHoldCapacity ()
void setCdt (int num)
int getCdt ()
void setDroped (int num)
int getDroped ()
void setCurrentCQQueueId (int id)
void addCurrentCQQueueId ()
int getCurrentCQQueueId ()
void setDefaultQueueId (int id)
int getDefaultQueueId ()
void setVectorPointer (cOutVector *l, cOutVector *d)
void addNumQueues ()
void remNumQueues ()
void addCurrentHold ()
void remCurrentHold ()
void addDroped ()
void setVectorName (QueueType type)
void setFIFO (int hold)
void setWFQ ()
void setPQ ()
void setCQ ()

Private Attributes

QueueType qt
std::string listId
int numQueues
int maxActQueues
int maxQueues
int currentHold
int holdCapacity
int cdt
int droped
int currentCQQueueId
int defaultQueueId
cOutVector * qlenVec
cOutVector * dropVec

Detailed Description

Definition at line 57 of file AnsaQosSystem.h.


Constructor & Destructor Documentation

Definition at line 75 of file AnsaQosSystem.h.

{currentHold = 0;}

Member Function Documentation

Definition at line 97 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::dequeue().

Definition at line 105 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue().

Definition at line 107 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue().

{++droped; dropVec->record(1);}
void ANSAQOS::QueueConfig::addHoldCapacity ( int  num) [inline]

Definition at line 90 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::setCQSubQueue(), and AnsaQosSystem::setPQSubQueue().

{holdCapacity += num;}
int ANSAQOS::QueueConfig::getCdt ( ) [inline]

Definition at line 93 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue(), and operator<<().

{return cdt;}

Definition at line 98 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::dequeue().

{return currentCQQueueId;}

Definition at line 88 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::dequeue(), AnsaQosSystem::enqueue(), and operator<<().

{return currentHold;}

Definition at line 100 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue(), and operator<<().

{return defaultQueueId;}

Definition at line 95 of file AnsaQosSystem.h.

Referenced by operator<<().

{return droped;}
std::string ANSAQOS::QueueConfig::getListId ( ) [inline]

Definition at line 80 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::loadConfigFromXML(), and operator<<().

{return listId;}

Definition at line 84 of file AnsaQosSystem.h.

Referenced by operator<<().

{return maxActQueues;}

Definition at line 86 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue(), and operator<<().

{return maxQueues;}

Definition at line 82 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::enqueue(), and operator<<().

{return numQueues;}

Definition at line 106 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::dequeue().

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::setCurrentCQQueueId ( int  id) [inline]

Definition at line 96 of file AnsaQosSystem.h.

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().

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().

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;}

Definition at line 77 of file AnsaQosSystem.h.

{qt = 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.

{ qlenVec = l; dropVec = d;}
void ANSAQOS::QueueConfig::setWFQ ( ) [inline]

Definition at line 115 of file AnsaQosSystem.h.

Referenced by AnsaQosSystem::loadConfigFromXML().


Member Data Documentation

Definition at line 66 of file AnsaQosSystem.h.

Referenced by getCdt(), setCdt(), setCQ(), setFIFO(), setPQ(), and setWFQ().

Definition at line 69 of file AnsaQosSystem.h.

Referenced by getDefaultQueueId(), setCQ(), setDefaultQueueId(), and setPQ().

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().

std::string ANSAQOS::QueueConfig::listId [private]

Definition at line 60 of file AnsaQosSystem.h.

Referenced by getListId(), and setListId().

Definition at line 62 of file AnsaQosSystem.h.

Referenced by addNumQueues(), getMaxActQueues(), setMaxActQueues(), and setWFQ().

Definition at line 63 of file AnsaQosSystem.h.

Referenced by getMaxQueues(), setCQ(), setFIFO(), setMaxQueues(), setPQ(), and setWFQ().

cOutVector* ANSAQOS::QueueConfig::qlenVec [private]

Definition at line 71 of file AnsaQosSystem.h.

Referenced by addCurrentHold(), remCurrentHold(), and setVectorPointer().

Definition at line 59 of file AnsaQosSystem.h.

Referenced by getQueueType(), setCQ(), setFIFO(), setPQ(), setQueueType(), and setWFQ().


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