public abstract class FIFOQueue extends Queue
UnboundedFIFOQueue ) and a
bounded version (BoundedFIFOQueue).LIFOQueueQueue.QueueEntryEntity.PortAlias| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Queue.QueueEntry> |
queue |
currentNumberOfUnits, inputPort, lossProbability, numberOfMessages, numberOfUnits, outputPort, transferTime, waitingTimeportAliases, 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, isFulladdPort, aliasPort, aliasPort, connect, disconnect, getName, getNode, getPortByName, getPorts, isPortKnown, unaliasPortprotected 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 Queuepublic long getCurrentNumberOfUnits()
getCurrentNumberOfUnits in class Queuepublic int getMaxSizeInUnits()
getMaxSizeInUnits in class Queue