Module org.arakhne.afc.gis.gisroad
Package org.arakhne.afc.gis.road
Class SubRoadNetwork.AbstractWrapConnection
- java.lang.Object
-
- org.arakhne.afc.gis.road.primitive.AbstractWrapRoadConnection
-
- org.arakhne.afc.gis.road.SubRoadNetwork.AbstractWrapConnection
-
- All Implemented Interfaces:
Comparable<GraphPoint<RoadConnection,RoadSegment>>
,RoadConnection
,GraphPoint<RoadConnection,RoadSegment>
- Direct Known Subclasses:
SubRoadNetwork.TerminalConnection
,SubRoadNetwork.WrapConnection
- Enclosing class:
- SubRoadNetwork
abstract class SubRoadNetwork.AbstractWrapConnection extends AbstractWrapRoadConnection
Internal 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.graph.GraphPoint
GraphPoint.GraphPointConnection<PT extends GraphPoint<PT,ST>,ST extends GraphSegment<ST,PT>>
-
Nested classes/interfaces inherited from interface org.arakhne.afc.gis.road.primitive.RoadConnection
RoadConnection.ClockwiseBoundType
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.gis.road.primitive.AbstractWrapRoadConnection
connection
-
Fields inherited from interface org.arakhne.afc.gis.road.primitive.RoadConnection
DEFAULT_CLOCKWHISE_TYPE
-
-
Constructor Summary
Constructors Constructor Description AbstractWrapConnection(RoadConnection connection)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoadSegment
getOtherSideSegment(RoadSegment refSegment)
Replies the other segment also connected to this point.String
toString()
-
Methods inherited from class org.arakhne.afc.gis.road.primitive.AbstractWrapRoadConnection
compareTo, compareTo, equals, getGeoLocation, getPoint, getUUID, getWrappedRoadConnection, hashCode, isEmpty, isFinalConnectionPoint, isNearPoint, isReallyCulDeSac
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.graph.GraphPoint
getConnectedSegmentsStartingFromInReverseOrder, getConnections, getConnectionsStartingFrom, getConnectionsStartingFromInReverseOrder
-
Methods inherited from interface org.arakhne.afc.gis.road.primitive.RoadConnection
getConnectedSegment, getConnectedSegmentCount, getConnectedSegments, getConnectedSegmentsStartingFrom, isConnectedSegment, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toClockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator, toCounterclockwiseIterator
-
-
-
-
Constructor Detail
-
AbstractWrapConnection
AbstractWrapConnection(RoadConnection connection)
Constructor.- Parameters:
connection
- the wrapped connection.
-
-
Method Detail
-
getOtherSideSegment
@Pure public RoadSegment getOtherSideSegment(RoadSegment refSegment)
Description copied from interface:RoadConnection
Replies the other segment also connected to this point. If more than 2 segments were connected to this point, this function repliesnull
.- Parameters:
refSegment
- the segment.- Returns:
- the first segment if ref_segment was the second one.
the second segment if ref_segment was the first one.
otherwise
null
.
-
toString
@Pure public String toString()
- Overrides:
toString
in classAbstractWrapRoadConnection
-
-