Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 numQueues ()=0
virtual int classifyPacket (cMessage *msg)=0


Member Function Documentation

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 numQueues()-1 (inclusive), with 0 representing the highest priority.

Implemented in BasicDSCPClassifier.

virtual int IQoSClassifier::numQueues  )  [pure virtual]
 

Returns the largest value plus one classifyPacket() returns.

Implemented in BasicDSCPClassifier.


The documentation for this class was generated from the following file:
Generated on Thu Oct 19 18:22:26 2006 for INET Framework for OMNeT++/OMNEST by  doxygen 1.4.0