Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.ShortestPathData<GISNode,
- com.anylogic.engine.markup.GISShortestPathData
- All Implemented Interfaces:
IPathData,Serializable
public class GISShortestPathData extends ShortestPathData<GISNode,GISRoute>
Implementation of
ShortestPathData for GIS space.- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
distance, fromDirection, fromNode, fromOffset, fromPath, fromX, fromY, fromZ, network, source, sourceRotation, sourceSegmentDistance, sourceVerticalRotation, target, targetRotation, targetSegmentDistance, targetVerticalRotation, toDirectionReverse, toHubIncomingPath, toNode, toOffset, toPath, toX, toY, toZ| Constructor | Description |
|---|---|
GISShortestPathData() |
| Modifier and Type | Method | Description |
|---|---|---|
Position | getFromTargetPosition |
Returns the Position object that corresponds to the point that lies
at a certain distance from target point in the direction to the end point
|
Position | getToSourcePosition |
Returns the Position object that corresponds to the point that lies
at a certain distance from start point in the direction to source point
|
void | resetFromTargetDirection() |
Resets the direction from target to the stored toPoint
|
void | resetToSourceDirection() |
Resets the direction from the stored fromPoint to the source
|
void | setFromTargetDirection |
Sets the direction and rotations from the target point to the specified argument point
|
void | setToSourceDirection |
Sets the direction and rotations from the specified argument point to the source point
|
public GISShortestPathData()
public void setFromTargetDirection(Point toPoint)
Description copied from class:
ShortestPathDataSets the direction and rotations from the target point to the specified argument point
- Specified by:
setFromTargetDirectionin classShortestPathData<GISNode,GISRoute> - Parameters:
toPoint- point to set direction to
public void setToSourceDirection(Point fromPoint)
Description copied from class:
ShortestPathDataSets the direction and rotations from the specified argument point to the source point
- Specified by:
setToSourceDirectionin classShortestPathData<GISNode,GISRoute> - Parameters:
fromPoint- point to set direction from
public Position getToSourcePosition(double offset, Position out)
Description copied from class:
ShortestPathDataReturns the Position object that corresponds to the point that lies
at a certain distance from start point in the direction to source point
- Specified by:
getToSourcePositionin classShortestPathData<GISNode,GISRoute> - Parameters:
offset- the distanceout- output object, may be null- Returns:
- position at offset from start point towards source point
public Position getFromTargetPosition(double offset, Position out)
Description copied from class:
ShortestPathDataReturns the Position object that corresponds to the point that lies
at a certain distance from target point in the direction to the end point
- Specified by:
getFromTargetPositionin classShortestPathData<GISNode,GISRoute> - Parameters:
offset- the distanceout- output object, may be null- Returns:
- position at offset from target point towards end point
public void resetFromTargetDirection()
Description copied from class:
ShortestPathDataResets the direction from target to the stored toPoint
- Specified by:
resetFromTargetDirectionin classShortestPathData<GISNode,GISRoute>
public void resetToSourceDirection()
Description copied from class:
ShortestPathDataResets the direction from the stored fromPoint to the source
- Specified by:
resetToSourceDirectionin classShortestPathData<GISNode,GISRoute>