Module org.arakhne.afc.gis.gisroad
Class RoadAStarSegmentOrientation
- java.lang.Object
-
- org.arakhne.afc.gis.road.path.astar.RoadAStarSegmentOrientation
-
- All Implemented Interfaces:
AStarSegmentOrientation<RoadSegment,RoadConnection>
public class RoadAStarSegmentOrientation extends Object implements AStarSegmentOrientation<RoadSegment,RoadConnection>
This class implements the default road segment orientation tool for theA* algorithm.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:55
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisroad
-
-
Constructor Summary
Constructors Constructor Description RoadAStarSegmentOrientation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTraversable(RoadSegment entrySegment, GraphPoint.GraphPointConnection<RoadConnection,RoadSegment> connection)Replies if the given segmentsis traversable from the given connection pointp.
-
-
-
Method Detail
-
isTraversable
public boolean isTraversable(RoadSegment entrySegment, GraphPoint.GraphPointConnection<RoadConnection,RoadSegment> connection)
Description copied from interface:AStarSegmentOrientationReplies 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.- Specified by:
isTraversablein interfaceAStarSegmentOrientation<RoadSegment,RoadConnection>- Parameters:
entrySegment- is the last traversed segment.connection- is the graph connection to test.- Returns:
trueif the segmentsis traversable, otherwisefalse.
-
-