Class SubRoadNetwork.AbstractWrapConnection

    • 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 replies null.
        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.