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:
ShortestPathData
Sets the direction and rotations from the target point to the specified argument point
- Specified by:
setFromTargetDirection
in classShortestPathData<GISNode,
GISRoute> - Parameters:
toPoint
- point to set direction to
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 classShortestPathData<GISNode,
GISRoute> - Parameters:
fromPoint
- point to set direction from
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 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:
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 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:
ShortestPathData
Resets the direction from target to the stored toPoint
- Specified by:
resetFromTargetDirection
in classShortestPathData<GISNode,
GISRoute>
public void resetToSourceDirection()
Description copied from class:
ShortestPathData
Resets the direction from the stored fromPoint to the source
- Specified by:
resetToSourceDirection
in classShortestPathData<GISNode,
GISRoute>