public class GISShortestPathData extends ShortestPathData<GISNode,GISRoute>
ShortestPathData
for GIS space.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 and Description |
---|
GISShortestPathData() |
Modifier and Type | Method and Description |
---|---|
Position |
getFromTargetPosition(double offset,
Position out)
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(double offset,
Position out)
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(Point toPoint)
Sets the direction and rotations from the target point to the specified argument point
|
void |
setToSourceDirection(Point fromPoint)
Sets the direction and rotations from the specified argument point to the source point
|
getNetwork, isPlainMovement, reset
public void setFromTargetDirection(Point toPoint)
ShortestPathData
setFromTargetDirection
in class ShortestPathData<GISNode,GISRoute>
toPoint
- point to set direction topublic void setToSourceDirection(Point fromPoint)
ShortestPathData
setToSourceDirection
in class ShortestPathData<GISNode,GISRoute>
fromPoint
- point to set direction frompublic Position getToSourcePosition(double offset, Position out)
ShortestPathData
getToSourcePosition
in class ShortestPathData<GISNode,GISRoute>
offset
- the distanceout
- output object, may be nullpublic Position getFromTargetPosition(double offset, Position out)
ShortestPathData
getFromTargetPosition
in class ShortestPathData<GISNode,GISRoute>
offset
- the distanceout
- output object, may be nullpublic void resetFromTargetDirection()
ShortestPathData
resetFromTargetDirection
in class ShortestPathData<GISNode,GISRoute>
public void resetToSourceDirection()
ShortestPathData
resetToSourceDirection
in class ShortestPathData<GISNode,GISRoute>
Copyright © AnyLogic North America, LLC. All Rights Reserved.