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 the A* 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 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 replace
        segment - is the segment to replace.
        Returns:
        the replacement, or null.