public class BoundedFIFOQDisc extends FIFOQDisc implements BoundedQDisc
QueuingDiscipline.QueueEntry| Modifier and Type | Field and Description |
|---|---|
protected int |
maxSizeInUnits |
lossProbability, numberOfMessages, numberOfUnits, parent, simNode, transferTime, waitingTimeCREATE_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, peekInternal, pop, pushdequeue, dropScheduledNext, enqueue, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleLossMessage, handleLossMessageInternal, handleMessage, handleRejectedMessage, peek, statsUpdateDequeue, statsUpdateEnqueue, statsUpdateLoss, statsUpdateReject, wouldStoreclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdequeue, dropScheduledNext, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleMessage, isEmpty, wouldStorepublic BoundedFIFOQDisc(SimNode ownNode, int size)
public BoundedFIFOQDisc(SimNode ownNode, Parameters pars)
public static BoundedFIFOQDisc createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructablepublic static BoundedFIFOQDisc createInstance(SimNode ownNode, Parameters pars, java.lang.Integer size)
public int getMaxSizeInUnits()
getMaxSizeInUnits in interface QueuingDisciplinegetMaxSizeInUnits in class FIFOQDiscpublic boolean hasSpaceFor(Message msg)
hasSpaceFor in class StackableQueuingDisciplineQueuingDiscipline has space for that message.