ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dsREDQueue Class Reference

#include <dsred.h>

Inheritance diagram for dsREDQueue:

Queue< T > Connector NsObject TclObject Handler coreQueue edgeQueue List of all members.

Public Member Functions

 dsREDQueue ()
int command (int argc, const char *const *argv)

Protected Member Functions

void reset ()
void edrop (Packet *p)
void enque (Packet *pkt)
Packetdeque (void)
int getCodePt (Packet *p)
int selectQueueToDeque ()
void lookupPHBTable (int codePt, int *queue, int *prec)
void addPHBEntry (int codePt, int queue, int prec)
void setNumPrec (int curPrec)
void setMREDMode (const char *mode, const char *queue)
void printStats ()
double getStat (int argc, const char *const *argv)
void printPHBTable ()
void setSchedularMode (const char *schedtype)
void addQueueWeights (int queueNum, int weight)
void addQueueRate (int queueNum, int rate)
void printWRRcount ()
void applyTSWMeter (int q_id, int pkt_size)

Protected Attributes

redQueue redq_ [MAX_QUEUES]
statType stats
int qToDq
int numQueues_
int numPrec
phbParam phb_ [MAX_CP]
int phbEntries
int ecn_
int schedMode
int queueWeight [MAX_QUEUES]
double queueMaxRate [MAX_QUEUES]
double queueAvgRate [MAX_QUEUES]
double queueArrTime [MAX_QUEUES]
int slicecount [MAX_QUEUES]
int pktcount [MAX_QUEUES]
int wirrTemp [MAX_QUEUES]
unsigned char wirrqDone [MAX_QUEUES]
int queuesDone

Constructor & Destructor Documentation


Member Function Documentation

void dsREDQueue::addPHBEntry int    codePt,
int    queue,
int    prec

void dsREDQueue::addQueueRate int    queueNum,
int    rate

void dsREDQueue::addQueueWeights int    queueNum,
int    weight

void dsREDQueue::applyTSWMeter int    q_id,
int    pkt_size

int dsREDQueue::command int    argc,
const char *const *    argv

Reimplemented from Connector.

Reimplemented in coreQueue, and edgeQueue.

Packet * dsREDQueue::deque void    [protected, virtual]

Implements Queue< T >.

void dsREDQueue::edrop Packet   p [protected]

void dsREDQueue::enque Packet   pkt [protected, virtual]

Implements Queue< T >.

Reimplemented in edgeQueue.

int dsREDQueue::getCodePt Packet   p [protected]

double dsREDQueue::getStat int    argc,
const char *const *    argv

void dsREDQueue::lookupPHBTable int    codePt,
int *    queue,
int *    prec

void dsREDQueue::printPHBTable   [protected]

void dsREDQueue::printStats   [protected]

void dsREDQueue::printWRRcount   [protected]

void dsREDQueue::reset   [protected, virtual]

Reimplemented from Queue< T >.

int dsREDQueue::selectQueueToDeque   [protected]

void dsREDQueue::setMREDMode const char *    mode,
const char *    queue

void dsREDQueue::setNumPrec int    curPrec [protected]

void dsREDQueue::setSchedularMode const char *    schedtype [protected]

Member Data Documentation

NsObject* dsREDQueue::de_drop_ [protected]

int dsREDQueue::ecn_ [protected]

LinkDelay* dsREDQueue::link_ [protected]

int dsREDQueue::numPrec [protected]

int dsREDQueue::numQueues_ [protected]

phbParam dsREDQueue::phb_[MAX_CP] [protected]

int dsREDQueue::phbEntries [protected]

int dsREDQueue::pktcount[MAX_QUEUES] [protected]

int dsREDQueue::qToDq [protected]

double dsREDQueue::queueArrTime[MAX_QUEUES] [protected]

double dsREDQueue::queueAvgRate[MAX_QUEUES] [protected]

double dsREDQueue::queueMaxRate[MAX_QUEUES] [protected]

int dsREDQueue::queuesDone [protected]

int dsREDQueue::queueWeight[MAX_QUEUES] [protected]

redQueue dsREDQueue::redq_[MAX_QUEUES] [protected]

int dsREDQueue::schedMode [protected]

int dsREDQueue::slicecount[MAX_QUEUES] [protected]

statType dsREDQueue::stats [protected]

unsigned char dsREDQueue::wirrqDone[MAX_QUEUES] [protected]

int dsREDQueue::wirrTemp[MAX_QUEUES] [protected]

The documentation for this class was generated from the following files:
This document is generated by doxygen.