Module org.arakhne.afc.gis.gisroad
Package org.arakhne.afc.gis.road
Class StandardRoadConnection.Connection
- java.lang.Object
-
- org.arakhne.afc.gis.road.StandardRoadConnection.Connection
-
- All Implemented Interfaces:
GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
- Enclosing class:
- StandardRoadConnection
protected class StandardRoadConnection.Connection extends Object implements GraphPoint.GraphPointConnection<RoadConnection,RoadSegment>
This class represents the information on a connected segment.- 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
-
-
Field Summary
Fields Modifier and Type Field Description booleanconnectedWithStartPointIndicates if this connection is done with a start point.
-
Constructor Summary
Constructors Constructor Description Connection(RoadPolyline segment, boolean connectedWithStartPoint)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)RoadConnectiongetGraphPoint()Replies the connection point.RoadSegmentgetGraphSegment()Replies the connected segment.RoadPolylinegetRoadPolyline()Replies the linked road polyline.inthashCode()booleanisSegmentStartConnected()Replies if the connected segment is connected by its start point or not.StringtoString()
-
-
-
Constructor Detail
-
Connection
public Connection(RoadPolyline segment, boolean connectedWithStartPoint)
Constructor.- Parameters:
segment- the connected segmentconnectedWithStartPoint- indicates if the segment is connected by its start point, or not.
-
-
Method Detail
-
getRoadPolyline
@Pure public RoadPolyline getRoadPolyline()
Replies the linked road polyline.- Returns:
- the connected segment.
-
getGraphPoint
@Pure public RoadConnection getGraphPoint()
Description copied from interface:GraphPoint.GraphPointConnectionReplies the connection point.- Specified by:
getGraphPointin interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>- Returns:
- the connection point.
-
getGraphSegment
@Pure public RoadSegment getGraphSegment()
Description copied from interface:GraphPoint.GraphPointConnectionReplies the connected segment.- Specified by:
getGraphSegmentin interfaceGraphPoint.GraphPointConnection<RoadConnection,RoadSegment>- Returns:
- the connected segment.
-
isSegmentStartConnected
@Pure 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
-
-