public class BoundedLIFOQDisc extends LIFOQDisc 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 |
---|
BoundedLIFOQDisc(SimNode ownNode,
int size) |
BoundedLIFOQDisc(SimNode ownNode,
Parameters pars) |
Modifier and Type | Method and Description |
---|---|
static BoundedLIFOQDisc |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
static BoundedLIFOQDisc |
createInstance(SimNode ownNode,
Parameters pars,
java.lang.Integer size) |
boolean |
wouldStore(Message msg) |
getMaxSizeInUnits, isEmpty, peekInternal, pop, push
dequeue, dropScheduledNext, enqueue, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleLossMessage, handleLossMessageInternal, handleMessage, handleRejectedMessage, hasSpaceFor, peek, statsUpdateDequeue, statsUpdateEnqueue, statsUpdateLoss, statsUpdateReject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dequeue, dropScheduledNext, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getMaxSizeInUnits, getName, getNode, getParent, handleMessage, isEmpty
public BoundedLIFOQDisc(SimNode ownNode, int size)
public BoundedLIFOQDisc(SimNode ownNode, Parameters pars)
public static BoundedLIFOQDisc createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructable
public static BoundedLIFOQDisc createInstance(SimNode ownNode, Parameters pars, java.lang.Integer size)
public boolean wouldStore(Message msg)
wouldStore
in interface QueuingDiscipline
wouldStore
in class StackableQueuingDiscipline
ProbabilisticQueuingDiscipline
s. For these, two subsequent
calls with the same message may return different results!