The Queue Line element is an integral part of the Service with Lines markup element. It enables you to configure the individual queue line comprising the service: set the limitation on the number of people standing in this queue, and so on.
Name – The name of the line. The name is used to identify and access the queue line from code.
Show name – If selected, the queue name is displayed in the graphical editor.
Visible on upper agent – If selected, the line is also visible on the upper agent where this agent lives.
When the
drawn line is fully occupied by people – The
options define the queue behavior in case new people join the
line
when the queue line shape is already fully occupied by people
(this option does not deal with the queue capacity limitation defined
by the Maximum number of people in the queue parameter).
Limit the number of people in the queue – If selected, the number of people that can stand in the line is limited to the Maximum number of people in the queue.
Maximum number of people in the queue – Defines the logical capacity of the queue: the maximum number of people that can stand in the queue.
X – X-coordinate of the line's start point.
Y
– Y-coordinate
of the line's start point.
Z-coordinate is defined by the level containing this element. You can, however, adjust the Z-coordinate of individual points of the line within the Points section.
The table located in the Points properties section allows you to view and adjust coordinates of the line points.
Here you define
relative coordinates, not the absolute
ones. The first point always has coordinates (0, 0,
0)
that cannot be
changed.
Other rows of the table
define relative coordinates of the successive points.
Coordinates of
each point are
actually offsets of the corresponding point from the start
point along X, Y
(and optionally Z) axes correspondingly.
Show in - Here you can choose whether you want the shape to be shown both in 2D and 3D animation, or in 2D only, or in 3D only.
boolean isReverse() - Returns true if the queue is reverse; returns false otherwise.
int size() - Returns the number of pedestrians currently standing in the queue.
List<Agent> getPeds() - Returns the collection of pedestrians standing in the queue. The first pedestrian is the queue head, the last pedestrian is the queue tail.
boolean isCapacityLimited() - Returns true if the queue has limited capacity; returns false otherwise.
int capacity() - Returns the capacity of the queue (the maximum number of pedestrians that can stand in the queue).
setCapacity(int
capacity)
- Sets the capacity of the queue.
Parameter: capacity
- the new capacity value.