Interface AStarSegmentOrientation<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>

  • Type Parameters:
    PT - is the type of node in the graph
    ST - is the type of edge in the graph
    All Known Implementing Classes:
    RoadAStarSegmentOrientation

    public interface AStarSegmentOrientation<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>
    This interface provides a way to the A* algorithm to retreive the orientation of a segment.
    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

      • isTraversable

        @Pure
        default boolean isTraversable​(ST entrySegment,
                                      GraphPoint.GraphPointConnection<PT,​ST> connection)
        Replies if the given segment s is traversable from the given connection point p.

        By default, this function uses the segment orientation tool passed as parameter of the constructor, or replies true.

        Parameters:
        entrySegment - is the last traversed segment.
        connection - is the graph connection to test.
        Returns:
        true if the segment s is traversable, otherwise false.