|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.queue.QLogic
drcl.inet.core.queue.RED
drcl.inet.core.queue.FRED
The Fair Random Early Detection queue logic.
| Field Summary | |
static boolean |
SANITY_CHECK
|
| Fields inherited from class drcl.inet.core.queue.RED |
EVENT_AVG_QSIZE, RED_EWMA, RED_HOLT_WINTERS |
| Fields inherited from class drcl.comp.queue.QLogic |
capacity, EVENT_QSIZE, qlen, qsize |
| Constructor Summary | |
FRED()
|
|
FRED(Component host_,
java.lang.String avgpid_)
|
|
| Method Summary | |
java.lang.String |
adviceOn(java.lang.Object obj_,
int psize_)
Returns advice (in String) on whether or not to drop the packet. |
int |
classify(Packet pkt_)
Returns the class the packet belongs to. |
void |
dequeueHandler(java.lang.Object obj_,
int psize_)
Handles the event of dequeuing the object of the given size. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of the source object to this object. |
void |
enqueueHandler(java.lang.Object obj_,
int psize_)
Handles the event of enqueuing the object of the given size. |
PktClassifier |
getClassifier()
|
java.lang.String |
info(java.lang.String prefix_)
Prints the content (states) of this queue management instance. |
void |
reset()
Resets this object to the initial state. |
void |
setClassifier(PktClassifier c_)
|
| Methods inherited from class drcl.inet.core.queue.RED |
getBandwidth, getInvProb, getMaxThresh, getMeanPacketSize, getMinThresh, getSeed, getWeight, isMarkEnabled, isWait, setAvgQSizePort, setBandwidth, setInvProb, setMarkEnabled, setMaxThresh, setMeanPacketSize, setMinThresh, setRandomNumberGenerator, setRandomNumberGenerator, setREDParam, setSeed, setWait, setWeight |
| Methods inherited from class drcl.comp.queue.QLogic |
dropHandler, getCapacity, getCurrentQLength, getCurrentQSize, getHost, info, isEmpty, isFull, set, setCapacity, setHost, setQSizePort |
| Methods inherited from class drcl.DrclObj |
clone, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean SANITY_CHECK
| Constructor Detail |
public FRED()
public FRED(Component host_,
java.lang.String avgpid_)
avgpid_ - ID of the average queue size change event port that will be created at
the host component.| Method Detail |
public void reset()
QLogicsuper.reset() when
overriding this method.
reset in class REDpublic void duplicate(java.lang.Object source_)
QLogicsource_.
Subclasses must call super.duplicate() when
overriding this method.
duplicate in interface ObjectDuplicableduplicate in class REDpublic java.lang.String info(java.lang.String prefix_)
QLogic
info in class REDpublic int classify(Packet pkt_)
PktClassifier
classify in interface PktClassifierpublic void setClassifier(PktClassifier c_)
public PktClassifier getClassifier()
public java.lang.String adviceOn(java.lang.Object obj_,
int psize_)
adviceOn in class RED
public void dequeueHandler(java.lang.Object obj_,
int psize_)
QLogic
dequeueHandler in class RED
public void enqueueHandler(java.lang.Object obj_,
int psize_)
QLogic
enqueueHandler in class RED
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||