AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
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, java.io.Serializable, java.lang.Iterable<T>

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

Constructor Summary

Constructors 
QueueArea()  
QueueArea​(Agent owner)  
QueueArea​(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double x, double y, double z, double[] dx, double[] dy, Slope slope, java.awt.Paint fillColor, java.awt.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, java.awt.Paint fillColor, java.awt.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, java.awt.Paint fillColor, java.awt.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, java.awt.Paint fillColor, java.awt.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, java.awt.Paint fillColor, java.awt.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, java.awt.Paint fillColor, java.awt.Paint lineColor, double lineWidth, LineStyle lineStyle, PositionChoiceMode positionChoiceMode, PathEnd<Path>[] pathEnds, Attractor... attractors)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
int capacity()
Returns the capacity of the queue
java.util.List<Agent> getPeds()
Returns the list of agents (pedestrians) staying in this queue area
boolean isCapacityLimited()
Returns true if this queue has limited capacity
int size()
Returns the number of agents (pedestrians) staying in this queue area
Modifier and Type Method Description

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

addVertex, area, contains, getBoundingRectangle, getNearestPoint, getNearestPoint, getNPoints, getPointDx, getPointDy, getPosition, getXMax, getXMin, getYMax, getYMin, randomPointInside

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

accessRestrictionCondition, addAgent, addAreaDataSource, addAttractor, agents, close, contains, density, getAccessRestrictionType, getAdmittedTransporters, getAgentsWaitingToEnter, getAttractors, getCapacity, getFillColor, getFillTexture, getLineColor, getLineStyle, getLineTexture, getLineWidth, getMaxSpeed, getNumberOfAdmittedAgents, getNumberOfAdmittedTransporters, getPositionChoiceMode, getRestrictedAgentClass, getSchedule, getSlope, getThroughput, getX, getY, getZ, getZ, isAccessRestricted, isAllowedToEnter, isApplied, isAvoidedIfClosed, isLimitSpeed, isOpen, isReadyToEnter, isSpeedRestricted, iterator, notifyCancelReadyToEnter, notifyReadyToEnter, notifyReadyToEnter2, notifyReadyToExit, onClose, onEnter, onEnterDenied, onExit, onOpen, open, recalculateAccessibility, removeAgent, removeAreaDataSource, removeFromQueue, restrictAccessByCapacity, restrictAccessBySchedule, restrictAccessByThroughput, restrictAccessManually, restrictSpeed, setAccessRestricted, setAccessRestrictionType, setAvoidedIfClosed, setCapacity, setLimitSpeed, setLineColor, setLineColor, setLineStyle, setLineWidth, setMaxSpeed, setOpen, setPos, setPositionChoiceMode, setRestrictedAgentClass, setSchedule, setSlope, setSpeedRestricted, setThroughput

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

addConnection, getCompatibleAgentExtensionClass, getConnection, getConnectionsCount, getMaterialLibraryDescriptor, getNumberOfTransporters, getTransferDistance, getTransferPositionByPercent, getTransporter, getTransporters, setFillColor, setFillColor

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

Methods inherited from class java.lang.Object

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

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

Constructor Detail

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,
                 java.awt.Paint fillColor,
                 java.awt.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,
                 java.awt.Paint fillColor,
                 java.awt.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,
                 java.awt.Paint fillColor,
                 java.awt.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,
                 java.awt.Paint fillColor,
                 java.awt.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,
                 java.awt.Paint fillColor,
                 java.awt.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,
                 java.awt.Paint fillColor,
                 java.awt.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 Detail

getPeds

public java.util.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()
How can we improve this article?