AnyLogic
Expand
Font size
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

Field Summary

Constructor Summary

ConstructorDescription
GISShortestPathData() 

Method Summary

Modifier and TypeMethodDescription
PositiongetFromTargetPosition(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
PositiongetToSourcePosition(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
voidresetFromTargetDirection()
Resets the direction from target to the stored toPoint
voidresetToSourceDirection()
Resets the direction from the stored fromPoint to the source
voidsetFromTargetDirection(Point toPoint)
Sets the direction and rotations from the target point to the specified argument point
voidsetToSourceDirection(Point fromPoint)
Sets the direction and rotations from the specified argument point to the source point

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 Details

GISShortestPathData

public GISShortestPathData()

Method Details

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>