AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, AnimationStaticLocationProvider, HasLevel, INetworkMarkupElement, INode<ConveyorNode<?>,ConveyorPath<?>>, MarkupPort, NetworkPort, SVGElement, Serializable

@AnyLogicInternalAPI
public class ConveyorPortImpl
extends ConveyorNode<Agent>
implements NetworkPort
This class has no user constructors. Network ports should be created using factory, ConveyorNetwork.createPort(..).
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
ConveyorPortImpl(Agent owner, ShapeDrawMode drawMode, boolean isPublic, PathEnd<ConveyorPath<?>> pathEnd) 

Method Summary

Modifier and TypeMethodDescription
voidaddConnection(ConveyorPath<?> path, PathEndType type) 
MarkupPortgetPairedPort()
Returns the paired port for this markup port.
PositiongetPosition()
Returns the location (with rotation) of this element
PositiongetPosition(Position out)
Returns the location (with rotation) of this element
doublegetTransferDistance(ConveyorPath<?> path1, ConveyorPath<?> path2) 
PointgetXYZ()
Returns the location of this element
PointgetXYZ(Point out)
Returns the location of this element
voidpostInitialize()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidsetPairedPort(MarkupPort pairedPort)
Sets the paired port for this markup port.

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

getLevel, setNetwork

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

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.AnimationStaticLocationProvider

getSpace

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

getSpace, randomPointInside, randomPointInside, randomPointInside

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

getName

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

getFullName, getLevel, getName

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

getNetwork

Constructor Details

ConveyorPortImpl

@AnyLogicInternalAPI
public ConveyorPortImpl(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 PathEnd<ConveyorPath<?>> pathEnd)

Method Details

setPairedPort

@AnyLogicInternalCodegenAPI
public void setPairedPort(MarkupPort pairedPort)
Description copied from interface: MarkupPort
Sets the paired port for this markup port.
Specified by:
setPairedPort in interface MarkupPort
Parameters:
pairedPort - - a markup port from another

getPairedPort

public MarkupPort getPairedPort()
Description copied from interface: MarkupPort
Returns the paired port for this markup port.
Specified by:
getPairedPort in interface MarkupPort
Returns:
the paired port for this markup port

postInitialize

public void postInitialize()
Description copied from interface: AggregatableAnimationElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Specified by:
postInitialize in interface AggregatableAnimationElement
Overrides:
postInitialize in class ConveyorNode<Agent>

addConnection

public void addConnection(ConveyorPath<?> path,
 PathEndType type)
Specified by:
addConnection in interface INode<ConveyorNode<?>,ConveyorPath<?>>
Overrides:
addConnection in class ConveyorNode<Agent>

getXYZ

public Point getXYZ()
Returns the location of this element
Specified by:
getXYZ in interface MarkupPort
Returns:
the Point object with coordinates of the node

getXYZ

public Point getXYZ(Point out)
Description copied from class: ConveyorNode
Returns the location of this element
Overrides:
getXYZ in class ConveyorNode<Agent>
Parameters:
out - output object to write to, may be null
Returns:
the Point object with coordinates of the node

getPosition

public Position getPosition()
Returns the location (with rotation) of this element
Returns:
the Position object with coordinates of the node

getPosition

public Position getPosition(Position out)
Returns the location (with rotation) of this element
Parameters:
out - output object to write to, may be null
Returns:
the Position object with coordinates of the node

getTransferDistance

public double getTransferDistance(ConveyorPath<?> path1,
 ConveyorPath<?> path2)
Specified by:
getTransferDistance in interface INode<ConveyorNode<?>,ConveyorPath<?>>