AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
QueueUnit, java.io.Serializable

public class QueueSerpentine
extends QueuePath
See Also:
Serialized Form

Constructor Summary

Constructors 
QueueSerpentine()  
QueueSerpentine​(double width, java.awt.Color beltBarrierColor, MarkupSegment... segments)  
QueueSerpentine​(int capacity, double width, java.awt.Color beltBarrierColor, MarkupSegment... segments)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
void addSegment​(MarkupSegment segment)
Adds segment to this markup element
java.awt.Color getBeltBarrierColor()
Returns the color of belt barrier
double getWidth()
Returns the width of the queue in pixels
void setBeltBarrierColor​(java.awt.Color beltBarrierColor)
Sets the color of belt barrier
void setWidth​(double width)
Sets the width of this queue
Modifier and Type Method Description

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

arcTo, capacity, contains, contains, containsSq, getBoundingRectangle, getBounds, getEndPoint, getEndPoint, getEndPosition, getEndPosition, getExceededQueuePolicy, getNearestPoint, getPeds, getPositionAtOffset, getPositionAtOffsetFromEnd, getSegment, getSegmentCount, getStartPoint, getStartPoint, getStartPosition, getStartPosition, isCapacityLimited, isReverse, iterator, length, lineTo, setCapacity, size, startDrawing

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

getName, getOwner

Methods inherited from class java.lang.Object

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

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

getName

Constructor Detail

QueueSerpentine

public QueueSerpentine()

QueueSerpentine

public QueueSerpentine​(double width,
                       java.awt.Color beltBarrierColor,
                       MarkupSegment... segments)

QueueSerpentine

public QueueSerpentine​(int capacity,
                       double width,
                       java.awt.Color beltBarrierColor,
                       MarkupSegment... segments)

Method Detail

getWidth

public double getWidth()
Returns the width of the queue in pixels
Returns:
the width of the queue in pixels

setWidth

public void setWidth​(double width)
Sets the width of this queue
Parameters:
width - new width (in pixels)

getBeltBarrierColor

public java.awt.Color getBeltBarrierColor()
Returns the color of belt barrier
Returns:
the color of belt barrier

setBeltBarrierColor

public void setBeltBarrierColor​(java.awt.Color beltBarrierColor)
Sets the color of belt barrier
Parameters:
beltBarrierColor - the color of belt barrier

addSegment

public void addSegment​(MarkupSegment segment)
Description copied from class: QueuePath
Adds segment to this markup element
Overrides:
addSegment in class QueuePath
Parameters:
segment - the segment, should be initialized if was created using no-argument constructor
How can we improve this article?