Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.ShortestPathData<Node,
- com.anylogic.engine.markup.ContinuousShortestPathData
- 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
Modifier and Type | Field | Description |
---|---|---|
double | fromTargetNx | |
double | fromTargetNy | |
double | fromTargetNz | |
double | sourceAutoRotation | |
double | sourceAutoVerticalRotation | |
double | targetAutoRotation | |
double | targetAutoVerticalRotation | |
double | toSourceNx | |
double | toSourceNy | |
double | toSourceNz |
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 |
---|---|
ContinuousShortestPathData() |
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 | reset() | |
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 double toSourceNx
public double toSourceNy
public double toSourceNz
public double sourceAutoRotation
public double sourceAutoVerticalRotation
public double fromTargetNx
public double fromTargetNy
public double fromTargetNz
public double targetAutoRotation
public double targetAutoVerticalRotation
public ContinuousShortestPathData()
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<Node,
Path> - 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<Node,
Path> - 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<Node,
Path> - 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<Node,
Path> - 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<Node,
Path>
public void resetToSourceDirection()
Description copied from class:
ShortestPathData
Resets the direction from the stored fromPoint to the source
- Specified by:
resetToSourceDirection
in classShortestPathData<Node,
Path>
public void reset()
- Overrides:
reset
in classShortestPathData<Node,
Path>