Package com.anylogic.engine.markup
- 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
PathConnector(P startPath,
P endPath,
boolean bidirectional,
MarkupSegment... segments) |
A connection between two paths inside
PointNode |
Constructor | Description |
---|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 createdendPath
- to which path a connection will be createdbidirectional
- iftrue
allows agents to pass through the connection in reverse directionsegments
- the array of segments
public P getStartPath()
Returns the path this connector starts at
- Returns:
- the reference to path this connector starts at
public P getEndPath()
Returns the path this connector ends at
- Returns:
- the reference to path this connector ends at
public boolean isBidirectional()
Returns the 'bidirectional' property
- Returns:
true
for paths connected in both directions,false
for paths connected fromgetStartPath()
togetEndPath()
only
@AnyLogicInternalAPI public Path getPathConnector()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public double length(LengthUnits units)
@AnyLogicInternalAPI public double length()
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
How can we improve this article?
-