The Serpentine Queue element is an integral part of the Service with Lines markup element. It enables you to configure the individual serpentine queue comprising the service: limit the number of people standing in this queue, and so on.
Name – The name of the serpentine queue. The name is used to identify and access the queue from code.
Show name – If selected, the queue name is displayed in the graphical editor.
Visible on upper agent
– If selected, the serpentine queue is also visible on the upper agent where this agent lives.
Limit the number of people in the queue – If selected, the number of people that can stand in the queue 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.
Belt barrier color - the color of the serpentine queue belt barriers
X – X-coordinate of the queue's start point.
– Y-coordinate of the queue's start point.
Z – Z-coordinate of the queue's start point.
The table located in the Points properties section allows you to view and adjust coordinates of the serpentine queue 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.
java.util.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).
- Sets the capacity of the queue.
Parameter: capacity - the new capacity value.
getBeltBarrierColor() - Returns the color of the serpentine queue barrier belt.
- Sets the color of the serpentine queue barrier belt.
Parameter: color - the color of the serpentine queue barrier belt. It is defined with a color constant, or the new Color( <red>, <green>, <blue>) constructor.
Service with lines
Service with area
API reference: QueueSerpentine class