AnyLogic AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.markup.PathConnector<P,​N>
All Implemented Interfaces:
java.io.Serializable

public class PathConnector<P extends IPath<N>,​N extends INode<N,​P>>
extends java.lang.Object
implements java.io.Serializable
Path connector inside a point node connects one path with another one. If moving in the opposite direction is possible then connector is also bidirectional.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Constructor Summary

Constructors 
PathConnector​(P startPath, P endPath, boolean bidirectional, MarkupSegment... segments)
A connection between two paths inside PointNode
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
P getEndPath()
Returns the path this connector ends at
Path getPathConnector()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
P getStartPath()
Returns the path this connector starts at
boolean isBidirectional()
Returns the 'bidirectional' property
double length()  
double length​(LengthUnits units)  
java.lang.String toString()  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Constructor Detail

PathConnector

public PathConnector​(P startPath,
                     P endPath,
                     boolean bidirectional,
                     MarkupSegment... segments)
A connection between two paths inside PointNode
Parameters:
startPath - from which path a connection will be created
endPath - to which path a connection will be created
bidirectional - if true allows agents to pass through the connection in reverse direction
segments - the array of segments

Method Detail

getStartPath

public P getStartPath()
Returns the path this connector starts at
Returns:
the reference to path this connector starts at

getEndPath

public P getEndPath()
Returns the path this connector ends at
Returns:
the reference to path this connector ends at

isBidirectional

public boolean isBidirectional()
Returns the 'bidirectional' property
Returns:
true for paths connected in both directions, false for paths connected from getStartPath() to getEndPath() only

getPathConnector

@AnyLogicInternalAPI
public Path getPathConnector()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

length

@AnyLogicInternalAPI
public double length​(LengthUnits units)

length

@AnyLogicInternalAPI
public double length()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
How can we improve this article?