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(int size,
SimNode ownNode) |
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, peek, pop, push
dequeue, dropScheduledNext, enqueue, getCurrentNumberOfMessages, getCurrentNumberOfUnits, getName, getNode, getParent, handleLossMessage, handleMessage, handleRejectedMessage, hasSpaceFor, 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(int size, SimNode ownNode)
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
ProbabilisticQeuingDiscipline
s. For these, two subsequent
calls with the same message may return different results!