AnyLogic
Expand
Font size
All Known Implementing Classes:
QueueArea, QueuePath, QueueSerpentine

public interface QueueUnit
Interface for queues which are used in Service space markup elements
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

Modifier and TypeMethodDescription
intcapacity()
Returns the capacity of the queue
StringgetName() 
List<Agent>getPeds()
Returns the collection of agents in this queue.
The first one is the queue head, the last one is the queue tail
booleanisCapacityLimited()
Returns true if this queue has limited capacity
intsize()
Returns the current size of the queue

Method Details

size

int size()
Returns the current size of the queue
Returns:
the current size of the queue

getPeds

List<Agent> getPeds()
Returns the collection of agents in this queue.
The first one is the queue head, the last one is the queue tail
Returns:
the collection of agents in this queue

isCapacityLimited

boolean isCapacityLimited()
Returns true if this queue has limited capacity
Returns:
true if this queue has limited capacity, false otherwise
See Also:
capacity()

capacity

int capacity()
Returns the capacity of the queue
Returns:
the capacity of the queue
See Also:
isCapacityLimited()

getName

String getName()