AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, INetworkMarkupElement, SVGElement, Serializable
Direct Known Subclasses:
ConveyorSpur, ConveyorStation, PositionOnConveyor

public abstract class ConveyorPathPart<T extends Agent>
extends ConveyorMarkupElement<T>
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
ConveyorPath<? extends T>getConveyor()
Returns conveyor on which the conveyor part is located.
doublegetOffset()
Returns offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
doublegetOffset(LengthUnits units)
Returns offset from the beginning of conveyor to the end of this conveyor part in XY-projection, measured in the given units.
voidsetConveyor(ConveyorPath<? extends T> conveyor)
Sets conveyor on which the conveyor part is located.
voidsetOffset(double offset)
Sets offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
voidsetOffset(double offset, LengthUnits units)
Sets offset from the beginning of conveyor to the end of this conveyor part in XY-projection, measured in the given units.

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

getLevel, getNetwork, setNetwork

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

contains, error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

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

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

postInitialize

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

contains, getNearestPoint, getSpace, randomPointInside, randomPointInside, randomPointInside, randomPointInside

Method Details

getConveyor

public ConveyorPath<? extends T> getConveyor()
Returns conveyor on which the conveyor part is located.
Returns:
conveyor on which the conveyor part is located.

setConveyor

public void setConveyor(ConveyorPath<? extends T> conveyor)
Sets conveyor on which the conveyor part is located.
Parameters:
conveyor - conveyor on which the conveyor part is located.

getOffset

public double getOffset()
Returns offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
Returns:
offset in XY-projection, in pixels.

getOffset

public double getOffset(LengthUnits units)
Returns offset from the beginning of conveyor to the end of this conveyor part in XY-projection, measured in the given units.
Returns:
offset in XY-projection, measured in the given units.

setOffset

public void setOffset(double offset)
Sets offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
Parameters:
offset - offset, in pixels

setOffset

public void setOffset(double offset,
 LengthUnits units)
Sets offset from the beginning of conveyor to the end of this conveyor part in XY-projection, measured in the given units.
Parameters:
offset - offset, measured in the given units