AnyLogic
Expand
Font size
All Implemented Interfaces:
IPathData, java.io.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

Field Summary

Fields inherited from class com.anylogic.engine.markup.ShortestPathData

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 Summary

Constructors 
GISShortestPathData()  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
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
Modifier and Type Method Description

Methods inherited from class com.anylogic.engine.markup.ShortestPathData

getNetwork, isPlainMovement, reset

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

GISShortestPathData

public GISShortestPathData()

Method Detail

setFromTargetDirection

public void setFromTargetDirection​(Point toPoint)
Description copied from class: ShortestPathData
Sets the direction and rotations from the target point to the specified argument point
Specified by:
setFromTargetDirection in class ShortestPathData<GISNode,​GISRoute>
Parameters:
toPoint - point to set direction to

setToSourceDirection

public void setToSourceDirection​(Point fromPoint)
Description copied from class: ShortestPathData
Sets the direction and rotations from the specified argument point to the source point
Specified by:
setToSourceDirection in class ShortestPathData<GISNode,​GISRoute>
Parameters:
fromPoint - point to set direction from

getToSourcePosition

public Position getToSourcePosition​(double offset,
                                    Position out)
Description copied from class: ShortestPathData
Returns 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:
getToSourcePosition in class ShortestPathData<GISNode,​GISRoute>
Parameters:
offset - the distance
out - output object, may be null
Returns:
position at offset from start point towards source point

getFromTargetPosition

public Position getFromTargetPosition​(double offset,
                                      Position out)
Description copied from class: ShortestPathData
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
Specified by:
getFromTargetPosition in class ShortestPathData<GISNode,​GISRoute>
Parameters:
offset - the distance
out - output object, may be null
Returns:
position at offset from target point towards end point

resetFromTargetDirection

public void resetFromTargetDirection()
Description copied from class: ShortestPathData
Resets the direction from target to the stored toPoint
Specified by:
resetFromTargetDirection in class ShortestPathData<GISNode,​GISRoute>

resetToSourceDirection

public void resetToSourceDirection()
Description copied from class: ShortestPathData
Resets the direction from the stored fromPoint to the source
Specified by:
resetToSourceDirection in class ShortestPathData<GISNode,​GISRoute>
How can we improve this article?