AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, AnimationStaticLocationProvider, HasLevel, INetworkMarkupElement, INode<ConveyorNode<?>,​ConveyorPath<?>>, MarkupPort, NetworkPort, SVGElement, java.io.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

Constructors 
ConveyorPortImpl​(Agent owner, ShapeDrawMode drawMode, boolean isPublic, PathEnd<ConveyorPath<?>> pathEnd)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
void addConnection​(ConveyorPath<?> path, PathEndType type)  
MarkupPort getPairedPort()
Returns the paired port for this markup port.
Position getPosition()
Returns the location (with rotation) of this element
Position getPosition​(Position out)
Returns the location (with rotation) of this element
double getTransferDistance​(ConveyorPath<?> path1, ConveyorPath<?> path2)  
Point getXYZ()
Returns the location of this element
Point getXYZ​(Point out)
Returns the location of this element
void postInitialize()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
void setPairedPort​(MarkupPort pairedPort)
Sets the paired port for this markup port.
Modifier and Type Method Description

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

contains, getCompatibleAgentExtensionClass, getConnection, getConnections, getConnectionsCount, getFillColor, getFillTexture, getIncomingPaths, getLineColor, getLineTexture, getNearestPoint, getNetwork, getOutgoingPaths, getPosition, getTransferPositionByPercent, getX, getY, getZ, randomPointInside, setFillColor, setFillColor, setLineColor, setLineColor, setXYZ

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

ConveyorPortImpl

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

Method Detail

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