public class PathConnector<P extends IPath<N>,N extends INode<N,P>>
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
PathConnector(P startPath,
P endPath,
boolean bidirectional,
MarkupSegment... segments)
A connection between two paths inside
PointNode |
Modifier and Type | Method and Description |
---|---|
P |
getEndPath()
Returns the path this connector ends at
|
Path |
getPathConnector()
This method is internal and shouldn't be called by user.
|
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() |
public PathConnector(P startPath, P endPath, boolean bidirectional, MarkupSegment... segments)
PointNode
startPath
- from which path a connection will be createdendPath
- to which path a connection will be createdbidirectional
- if true
allows agents to pass through the connection in reverse directionsegments
- the array of segmentspublic P getStartPath()
public P getEndPath()
public boolean isBidirectional()
true
for paths connected
in both directions, false
for paths connected
from getStartPath()
to getEndPath()
only@AnyLogicInternalAPI public Path getPathConnector()
@AnyLogicInternalAPI public double length(LengthUnits units)
@AnyLogicInternalAPI public double length()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © AnyLogic North America, LLC. All Rights Reserved.