AnyLogic
Expand
Font size
All Implemented Interfaces:
IPathData, Serializable

public class ContinuousShortestPathData
extends ShortestPathData<Node,Path>
Implementation of ShortestPathData for continuous space.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Field Summary

Modifier and TypeFieldDescription
doublefromTargetNx 
doublefromTargetNy 
doublefromTargetNz 
doublesourceAutoRotation 
doublesourceAutoVerticalRotation 
doubletargetAutoRotation 
doubletargetAutoVerticalRotation 
doubletoSourceNx 
doubletoSourceNy 
doubletoSourceNz 

Constructor Summary

ConstructorDescription
ContinuousShortestPathData() 

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
voidreset() 
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

Methods inherited from class java.lang.Object

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

Field Details

toSourceNx

public double toSourceNx

toSourceNy

public double toSourceNy

toSourceNz

public double toSourceNz

sourceAutoRotation

public double sourceAutoRotation

sourceAutoVerticalRotation

public double sourceAutoVerticalRotation

fromTargetNx

public double fromTargetNx

fromTargetNy

public double fromTargetNy

fromTargetNz

public double fromTargetNz

targetAutoRotation

public double targetAutoRotation

targetAutoVerticalRotation

public double targetAutoVerticalRotation

Constructor Details

ContinuousShortestPathData

public ContinuousShortestPathData()

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<Node,Path>
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<Node,Path>
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<Node,Path>
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<Node,Path>
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<Node,Path>

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<Node,Path>

reset

public void reset()
Overrides:
reset in class ShortestPathData<Node,Path>