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