IQoSClassifier Class Reference

#include <IQoSClassifier.h>

Inheritance diagram for IQoSClassifier:

BasicDSCPClassifier

List of all members.


Detailed Description

Abstract interface for QoS classifiers, used in QoS queues. A QoS classifier looks at a packet, determines its priority, and eventually returns the index of the subqueue the packet should be inserted into. DropTailQoSQueue is one of the queue modules which expect a C++ class subclassed from IQoSClassifier.

See also:
DropTailQoSQueue

Public Member Functions

virtual int getNumQueues ()=0
virtual int classifyPacket (cMessage *msg)=0

Member Function Documentation

virtual int IQoSClassifier::getNumQueues (  )  [pure virtual]

Returns the largest value plus one classifyPacket() returns.

Implemented in BasicDSCPClassifier.

Referenced by DropTailQoSQueue::initialize().

virtual int IQoSClassifier::classifyPacket ( cMessage *  msg  )  [pure virtual]

The method should return the priority (the index of subqueue) for the given packet, a value between 0 and getNumQueues()-1 (inclusive), with 0 representing the highest priority.

Implemented in BasicDSCPClassifier.

Referenced by DropTailQoSQueue::enqueue().


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

Generated on Fri Mar 20 18:51:20 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5