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

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

Method Summary

All Methods Instance Methods Concrete Methods 
ConveyorPath<? extends T> getConveyor()
Returns conveyor on which the conveyor part is located.
double getOffset()
Returns offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
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.
void setConveyor​(ConveyorPath<? extends T> conveyor)
Sets conveyor on which the conveyor part is located.
void setOffset​(double offset)
Sets offset from the beginning of conveyor to the end of this conveyor part in XY-projection, in pixels.
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.
Modifier and Type Method Description

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

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
How can we improve this article?