Package org.arakhne.afc.math.graph.astar
Interface AStarSegmentOrientation<ST extends GraphSegment<ST,PT>,PT extends GraphPoint<PT,ST>>
-
- Type Parameters:
PT- is the type of node in the graphST- 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 theA* algorithmto 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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisTraversable(ST entrySegment, GraphPoint.GraphPointConnection<PT,ST> connection)Replies if the given segmentsis traversable from the given connection pointp.
-
-
-
Method Detail
-
isTraversable
@Pure default boolean isTraversable(ST entrySegment, GraphPoint.GraphPointConnection<PT,ST> connection)
Replies if the given segmentsis traversable from the given connection pointp.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:
trueif the segmentsis traversable, otherwisefalse.
-
-