Public Member Functions

IQoSClassifier Class Reference

#include <IQoSClassifier.h>

Inheritance diagram for IQoSClassifier:
BasicDSCPClassifier

List of all members.

Public Member Functions

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

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

Definition at line 34 of file IQoSClassifier.h.


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

Implemented in BasicDSCPClassifier.

Referenced by DropTailQoSQueue::enqueue().

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

Returns the largest value plus one classifyPacket() returns.

Implemented in BasicDSCPClassifier.

Referenced by DropTailQoSQueue::initialize().


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