Module org.arakhne.afc.gis.gisroad
Package org.arakhne.afc.gis.road
Class SubRoadNetwork.WrapGraphPointConnection
- java.lang.Object
-
- org.arakhne.afc.gis.road.SubRoadNetwork.WrapGraphPointConnection
-
- All Implemented Interfaces:
GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Enclosing class:
- SubRoadNetwork
class SubRoadNetwork.WrapGraphPointConnection extends Object implements GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
Internal graph point connection.- Since:
- 16.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 WrapGraphPointConnection(GraphPoint.GraphPointConnection<RoadConnection,RoadSegment> source)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoadConnectiongetGraphPoint()Replies the connection point.RoadSegmentgetGraphSegment()Replies the connected segment.booleanisSegmentStartConnected()Replies if the connected segment is connected by its start point or not.
-
-
-
Constructor Detail
-
WrapGraphPointConnection
WrapGraphPointConnection(GraphPoint.GraphPointConnection<RoadConnection,RoadSegment> source)
Constructor.- Parameters:
source- the wrapped element.
-
-
Method Detail
-
getGraphSegment
public RoadSegment getGraphSegment()
Description copied from interface:GraphPoint.GraphPointConnectionReplies the connected segment.- Specified by:
getGraphSegmentin interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>- Returns:
- the connected segment.
-
getGraphPoint
public RoadConnection getGraphPoint()
Description copied from interface:GraphPoint.GraphPointConnectionReplies the connection point.- Specified by:
getGraphPointin interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>- Returns:
- the connection point.
-
isSegmentStartConnected
public boolean isSegmentStartConnected()
Description copied from interface:GraphPoint.GraphPointConnectionReplies if the connected segment is connected by its start point or not.- Specified by:
isSegmentStartConnectedin interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>- Returns:
trueif the segment replied byGraphPoint.GraphPointConnection.getGraphSegment()is connected to the point replied byGraphPoint.GraphPointConnection.getGraphPoint()by its start end, otherwisefalse
-
-