AnyLogic
Expand
Font size

Class QueueArea<T extends Agent>

All Implemented Interfaces:
AbstractPositionalMarkup, AggregatableAnimationElement, AnimationStaticLocationProvider, IAreaNodeDescriptor<T>, IDescriptor, HasLevel, IMarkupLibraryDescriptor, INetworkMarkupElement, INode<Node,Path>, LevelElement, LevelMarkup, com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor, com.anylogic.engine.markup.material_handling.INodeDescriptor<Agent>, QueueUnit, SVGElement, UsdElement, Serializable, Iterable<T>

public class QueueArea<T extends Agent>
extends PolygonalNode<T>
implements QueueUnit
See Also:
Serialized Form

Field Summary

Fields inherited from interface com.anylogic.engine.presentation.UsdElement

ID_NOT_SET

Constructor Summary

ConstructorDescription
QueueArea() 
QueueArea(Agent owner) 
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Slope slope, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Slope slope, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, PathEnd<Path>[] pathEnds, Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, PathEnd<Path>[] pathEnds, Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, IAreaNodeDescriptor<T> descriptor, double x, double y, double z, double[] dx, double[] dy, Slope slope, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, PathEnd<Path>[] pathEnds, Attractor... attractors) 
QueueArea(Agent owner, ShapeDrawMode drawMode, boolean isPublic, IAreaNodeDescriptor<T> descriptor, double x, double y, double z, double[] dx, double[] dy, Paint fillColor, Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, PathEnd<Path>[] pathEnds, Attractor... attractors) 

Method Summary

Modifier and TypeMethodDescription
intcapacity()
Returns the capacity of the queue
List<Agent>getPeds()
Returns the list of agents (pedestrians) staying in this queue area
booleanisCapacityLimited()
Returns true if this queue has limited capacity
intsize()
Returns the number of agents (pedestrians) staying in this queue area

Methods inherited from class com.anylogic.engine.markup.NetworkMarkupElement

getDrawMode, getLevel, getNearestPoint, getNearestPoint, getNearestPoint, getNetwork, setLevel

Methods inherited from class com.anylogic.engine.markup.MarkupShape

error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AbstractPositionalMarkup

getRotation, getSpace, isVisible

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

initializeInternal, onAggregatorVisibilityChanged, postInitialize

Methods inherited from interface com.anylogic.engine.markup.AnimationStaticLocationProvider

getSpace

Methods inherited from interface com.anylogic.engine.markup.HasLevel

getLevel

Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor

getMarkup, setMarkup

Methods inherited from interface com.anylogic.engine.markup.INetworkMarkupElement

getNearestPoint, getNetwork, getSpace, randomPointInside, randomPointInside, randomPointInside

Methods inherited from interface com.anylogic.engine.markup.INode

getName

Methods inherited from interface java.lang.Iterable

forEach, spliterator

Methods inherited from interface com.anylogic.engine.markup.LevelElement

setLevel

Methods inherited from interface com.anylogic.engine.markup.QueueUnit

getName

Methods inherited from interface com.anylogic.engine.presentation.SVGElement

executeUserAction, findSVGElement, getSVGId, removeSVGFromOwner, resetSVGState, updateSVGProperties

Methods inherited from interface com.anylogic.engine.presentation.UsdElement

getOrGenerateUSDId

Constructor Details

QueueArea

public QueueArea()

QueueArea

public QueueArea(Agent owner)

QueueArea

@AnyLogicInternalCodegenAPI
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 IAreaNodeDescriptor<T> descriptor,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 PathEnd<Path>[] pathEnds,
 Attractor... attractors)

QueueArea

@AnyLogicInternalCodegenAPI
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 IAreaNodeDescriptor<T> descriptor,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Slope slope,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 PathEnd<Path>[] pathEnds,
 Attractor... attractors)

QueueArea

@Deprecated
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Slope slope,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 PathEnd<Path>[] pathEnds,
 Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
dx -
dy -
slope -
fillColor -
lineColor -
lineWidth -
lineStyle -
positionChoiceMode -
pathEnds -
attractors -

QueueArea

@Deprecated
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 PathEnd<Path>[] pathEnds,
 Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
dx -
dy -
fillColor -
lineColor -
lineWidth -
lineStyle -
positionChoiceMode -
pathEnds -
attractors -

QueueArea

@Deprecated
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Slope slope,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
dx -
dy -
slope -
fillColor -
lineColor -
lineWidth -
lineStyle -
positionChoiceMode -
attractors -

QueueArea

@Deprecated
public QueueArea(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 double x,
 double y,
 double z,
 double[] dx,
 double[] dy,
 Paint fillColor,
 Paint lineColor,
 double lineWidth,
 LineStyle lineStyle,
 PositionChoiceMode positionChoiceMode,
 Attractor... attractors)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
Parameters:
owner -
drawMode -
isPublic -
x -
y -
z -
dx -
dy -
fillColor -
lineColor -
lineWidth -
lineStyle -
positionChoiceMode -
attractors -

Method Details

getPeds

public List<Agent> getPeds()
Returns the list of agents (pedestrians) staying in this queue area
Specified by:
getPeds in interface QueueUnit
Overrides:
getPeds in class AreaNode<T extends Agent>
Returns:
the list of peds in the queue area

size

public int size()
Returns the number of agents (pedestrians) staying in this queue area
Specified by:
size in interface QueueUnit
Returns:
the number of peds in this queue area

isCapacityLimited

@AnyLogicInternalAPI
public boolean isCapacityLimited()
Description copied from interface: QueueUnit
Returns true if this queue has limited capacity
Specified by:
isCapacityLimited in interface QueueUnit
Returns:
true if this queue has limited capacity, false otherwise
See Also:
QueueUnit.capacity()

capacity

@AnyLogicInternalAPI
public int capacity()
Description copied from interface: QueueUnit
Returns the capacity of the queue
Specified by:
capacity in interface QueueUnit
Returns:
the capacity of the queue
See Also:
QueueUnit.isCapacityLimited()