public abstract class LIFOQueue extends Queue
UnboundedLIFOQueue
) and a
bounded version (BoundedLIFOQueue
).FIFOQueue
Queue.QueueEntry
Entity.PortAlias
currentNumberOfUnits, inputPort, lossProbability, numberOfMessages, numberOfUnits, outputPort, transferTime, waitingTime
portAliases, ports, simNode
Constructor and Description |
---|
LIFOQueue(java.lang.String name,
SimNode owner) |
Modifier and Type | Method and Description |
---|---|
protected Queue.QueueEntry |
get() |
int |
getCurrentNumberOfMessages() |
long |
getCurrentNumberOfUnits() |
int |
getMaxSizeInUnits() |
protected void |
handleMessageIndication(Message msg) |
boolean |
isEmpty() |
protected void |
put(Queue.QueueEntry qe) |
getInput, getOutput, handleGetMessage, handleIsMessageAvailable, handleLossMessage, isFull
addPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPort
public LIFOQueue(java.lang.String name, SimNode owner)
protected Queue.QueueEntry get()
protected void put(Queue.QueueEntry qe)
protected void handleMessageIndication(Message msg)
handleMessageIndication
in class Queue
public int getCurrentNumberOfMessages()
getCurrentNumberOfMessages
in class Queue
public long getCurrentNumberOfUnits()
getCurrentNumberOfUnits
in class Queue
public int getMaxSizeInUnits()
getMaxSizeInUnits
in class Queue