The Serpentine Queue 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.
To select a serpentine queue
- Click the serpentine queue. First click selects the Service with Lines element.
- Click the queue again to select the serpentine queue.
To extend a serpentine queue
- Right-click the queue shape and select Append from the context menu.
- Click one of the end points of the queue to toggle the drawing mode.
- Add new segments by clicking.
- Finish the drawing by double-clicking at the spot where you want to place the end point of the serpentine queue.
To remove a serpentine queue point
- Double-click the point you want to remove.
- General
-
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.
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.
- Appearance
-
Belt barrier color — The color of the serpentine queue belt barriers
- Position
-
X — The X-coordinate of the queue’s start point.
Y — The Y-coordinate of the queue’s start point.
Z — The Z-coordinate of the queue’s start point.
- Points
-
The table located in the Points property section enables users to view and adjust coordinates of the serpentine queue points.
The table defines relative coordinates, not absolute coordinates. The first point always has coordinates (0,0) that cannot be changed.
Other rows of the table define relative coordinates of the successive points. The coordinates of each point are actually offsets of the corresponding point from the start point along the X, Y and optionally Z axes, respectively.
- Visibility and presentation
-
Show in — Select whether the shape is displayed in both 2D and 3D animation, 2D only, or 3D only.
Agent presentation — If selected, the network is also visible on the upper-level agent that hosts the agent containing this network.
- Queue line type
-
Function Description boolean isReverse() Returns true if the queue is reverse; returns false otherwise. - Statistics
-
Function Description 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. - Capacity
-
Function Description int capacity() Returns the capacity of the queue (the maximum number of pedestrians that can stand in the queue). boolean isCapacityLimited() Returns true if the queue has limited capacity; returns false otherwise. setCapacity(int capacity) Sets the capacity of the queue.
capacity — the new capacity value. - Belt barrier color
-
Function Description getBeltBarrierColor() Returns the color of the serpentine queue barrier belt. setBeltBarrierColor(Color color) Sets the color of the serpentine queue barrier belt.
color — the color of the serpentine queue barrier belt. It is defined with a color constant, or the new Color(‘red’, ‘green’, ‘blue’) constructor.
-
How can we improve this article?
-