AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

public class PathConnector<P extends IPath<N>,N extends INode<N,P>>
extends Object
implements 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

ConstructorDescription
PathConnector(P startPath, P endPath, boolean bidirectional, MarkupSegment... segments)
A connection between two paths inside PointNode

Method Summary

Modifier and TypeMethodDescription
PgetEndPath()
Returns the path this connector ends at
PathgetPathConnector()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
PgetStartPath()
Returns the path this connector starts at
booleanisBidirectional()
Returns the 'bidirectional' property
doublelength() 
doublelength(LengthUnits units) 
StringtoString() 

Methods inherited from class java.lang.Object

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

Constructor Details

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 Details

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 String toString()
Overrides:
toString in class Object