Module org.arakhne.afc.gis.gisroad
Class RoadAStar.VirtualConnection
- java.lang.Object
-
- org.arakhne.afc.gis.road.path.astar.RoadAStar.VirtualConnection
-
- All Implemented Interfaces:
GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Enclosing class:
- RoadAStar
static class RoadAStar.VirtualConnection extends Object implements GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
This is the relationship between aRoadAStar.VirtualPoint
and aRoadAStar.VirtualSegment
.- 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 VirtualConnection(RoadAStar.VirtualPoint point, RoadAStar.VirtualSegment segment)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoadConnection
getGraphPoint()
Replies the connection point.RoadSegment
getGraphSegment()
Replies the connected segment.boolean
isSegmentStartConnected()
Replies if the connected segment is connected by its start point or not.
-
-
-
Constructor Detail
-
VirtualConnection
VirtualConnection(RoadAStar.VirtualPoint point, RoadAStar.VirtualSegment segment)
Constructor.- Parameters:
point
- the point.segment
- the segment.
-
-
Method Detail
-
getGraphPoint
public RoadConnection getGraphPoint()
Description copied from interface:GraphPoint.GraphPointConnection
Replies the connection point.- Specified by:
getGraphPoint
in interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Returns:
- the connection point.
-
getGraphSegment
public RoadSegment getGraphSegment()
Description copied from interface:GraphPoint.GraphPointConnection
Replies the connected segment.- Specified by:
getGraphSegment
in interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Returns:
- the connected segment.
-
isSegmentStartConnected
public boolean isSegmentStartConnected()
Description copied from interface:GraphPoint.GraphPointConnection
Replies if the connected segment is connected by its start point or not.- Specified by:
isSegmentStartConnected
in interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Returns:
true
if the segment replied byGraphPoint.GraphPointConnection.getGraphSegment()
is connected to the point replied byGraphPoint.GraphPointConnection.getGraphPoint()
by its start end, otherwisefalse
-
-