#include <IQoSClassifier.h>
Public Member Functions | |
virtual int | getNumQueues ()=0 |
virtual int | classifyPacket (cMessage *msg)=0 |
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.
Definition at line 34 of file IQoSClassifier.h.
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().