Package org.arakhne.afc.math.graph.astar
Interface AStarSegmentReplacer<ST extends GraphSegment<ST,?>>
-
- Type Parameters:
ST
- is the type of edge in the graph
public interface AStarSegmentReplacer<ST extends GraphSegment<ST,?>>
This interface provides a way to replace the segments of the paths found by theA* algorithm
.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:42
- Author:
- Stéphane GALLAND
- See Also:
AStar
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgraph
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ST
replaceSegment(int index, ST segment)
Replies a instance of segment to add inside the shortest path in place of the given segment.
-
-
-
Method Detail
-
replaceSegment
default ST replaceSegment(int index, ST segment)
Replies a instance of segment to add inside the shortest path in place of the given segment. If this function replies,null
the given segment is added.- Parameters:
index
- is the position in the shortest path of the segment to replacesegment
- is the segment to replace.- Returns:
- the replacement, or
null
.
-
-