|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimnet.DropPolicy
An early dropper for a link's transmission queue.
| Field Summary | |
protected int |
qsize
The transmission queue size on the link this drop policy is for. |
| Constructor Summary | |
DropPolicy()
|
|
| Method Summary | |
abstract boolean |
earlyDropPacket(Frame f,
int remaining_bytes)
Given a packet (inside a frame), and the bytes remaining in the queue, returns if the packet should be dropped. |
protected void |
finalize()
For debugging |
void |
initialize(int new_qsize)
Called when it first gets plugged in |
void |
updateSize(int new_qsize)
Called when the size of the queue gets changed. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int qsize
| Constructor Detail |
public DropPolicy()
| Method Detail |
public void initialize(int new_qsize)
public void updateSize(int new_qsize)
public abstract boolean earlyDropPacket(Frame f,
int remaining_bytes)
protected void finalize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||