AnyLogic
Expand
Font size
All Implemented Interfaces:
QueueUnit, Serializable

public class QueueSerpentine
extends QueuePath
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
QueueSerpentine() 
QueueSerpentine(double width, Color beltBarrierColor, MarkupSegment... segments) 
QueueSerpentine(int capacity, double width, Color beltBarrierColor, MarkupSegment... segments) 

Method Summary

Modifier and TypeMethodDescription
voidaddSegment(MarkupSegment segment)
Adds segment to this markup element
ColorgetBeltBarrierColor()
Returns the color of belt barrier
doublegetWidth()
Returns the width of the queue in pixels
voidsetBeltBarrierColor(Color beltBarrierColor)
Sets the color of belt barrier
voidsetWidth(double width)
Sets the width of this queue

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 Details

QueueSerpentine

public QueueSerpentine()

QueueSerpentine

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

QueueSerpentine

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

Method Details

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 Color getBeltBarrierColor()
Returns the color of belt barrier
Returns:
the color of belt barrier

setBeltBarrierColor

public void setBeltBarrierColor(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