public class BoundedFIFOQDisc extends FIFOQDisc implements BoundedQDisc
QueuingDiscipline.QueueEntry
Modifier and Type | Field and Description |
---|---|
protected int |
maxSizeInUnits |
lossProbability, numberOfMessages, numberOfUnits, parent, simNode, transferTime, waitingTime
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
BoundedFIFOQDisc(SimNode ownNode,
int size) |
BoundedFIFOQDisc(SimNode ownNode,
Parameters pars) |
Modifier and Type | Method and Description |
---|---|
static BoundedFIFOQDisc |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
static BoundedFIFOQDisc |
createInstance(SimNode ownNode,
Parameters pars,
java.lang.Integer size) |
int |
getMaxSizeInUnits() |
boolean |
hasSpaceFor(Message msg)
return true if message fits into maxSizeInUnits, else false
|
isEmpty, peek, pop, push
dequeue, dropScheduledNext, enqueue, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleLossMessage, handleMessage, handleRejectedMessage, statsUpdateDequeue, statsUpdateEnqueue, statsUpdateLoss, statsUpdateReject, wouldStore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dequeue, dropScheduledNext, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleMessage, isEmpty, wouldStore
public BoundedFIFOQDisc(SimNode ownNode, int size)
public BoundedFIFOQDisc(SimNode ownNode, Parameters pars)
public static BoundedFIFOQDisc createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
public static BoundedFIFOQDisc createInstance(SimNode ownNode, Parameters pars, java.lang.Integer size)
public int getMaxSizeInUnits()
getMaxSizeInUnits
in interface QueuingDiscipline
getMaxSizeInUnits
in class FIFOQDisc
public boolean hasSpaceFor(Message msg)
hasSpaceFor
in class StackableQueuingDiscipline
QueuingDiscipline
has space for that message.