Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.PathConnector<P,
- All Implemented Interfaces:
Serializable
public class PathConnector<P extends IPath<N>,N extends INode<N, extends Object implements SerializableP>>
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 | Description |
---|---|
PathConnector |
A connection between two paths inside
PointNode |
Modifier and Type | Method | 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 | |
String | toString() |
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 String toString()