Class DistanceBasedRoadNetworkIterator

    • Constructor Detail

      • DistanceBasedRoadNetworkIterator

        @Deprecated(since="16.0",
                    forRemoval=true)
        DistanceBasedRoadNetworkIterator​(RoadSegmentContainer network,
                                         double depth,
                                         double position_from_starting_point,
                                         RoadSegment segment,
                                         RoadConnection starting_point,
                                         boolean allowManyReplies,
                                         boolean assumeOrientedSegments)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Constructor.
        Parameters:
        network - is the road network to iterator on.
        depth - is the maximal depth to reach (in the metric coordiante system).
        position_from_starting_point - is the starting position from the starting_point (in meters).
        segment - is the segment from which to start.
        starting_point - is the segment's point indicating the direction.
        allowManyReplies - may be true to allow to reply many times the same segment, otherwhise false.
        assumeOrientedSegments - indicates if the iterator is taking into account the orientation of the road segments. If true it assumes that a segment could be reached by both its end points. If false it assumes that a segment could be reach only one time.
      • DistanceBasedRoadNetworkIterator

        DistanceBasedRoadNetworkIterator​(RoadSegmentContainer network,
                                         double depth,
                                         double position_from_starting_point,
                                         RoadSegment segment,
                                         RoadConnection starting_point,
                                         boolean allowManyReplies,
                                         boolean assumeOrientedSegments,
                                         DynamicDepthUpdater<RoadSegment,​RoadConnection> dynamicDepthUpdate)
        Constructor.
        Parameters:
        network - is the road network to iterator on.
        depth - is the maximal depth to reach (in the metric coordiante system).
        position_from_starting_point - is the starting position from the starting_point (in meters).
        segment - is the segment from which to start.
        starting_point - is the segment's point indicating the direction.
        allowManyReplies - may be true to allow to reply many times the same segment, otherwhise false.
        assumeOrientedSegments - indicates if the iterator is taking into account the orientation of the road segments. If true it assumes that a segment could be reached by both its end points. If false it assumes that a segment could be reach only one time.
        dynamicDepthUpdate - if not null, it is used to dynamically update the depth.
        Since:
        16.0
    • Method Detail

      • createVisitedSegmentComparator

        protected Comparator<GraphIterationElement<RoadSegment,​RoadConnection>> createVisitedSegmentComparator​(boolean assumeOrientedSegments)
        Description copied from class: GraphIterator
        Invoked when a comparator on visited segments is required.
        Overrides:
        createVisitedSegmentComparator in class GraphIterator<RoadSegment,​RoadConnection>
        Parameters:
        assumeOrientedSegments - may be true to assume that the same segment has two different instances for graph iteration: the first instance is associated the first point of the segment and the second instance is associated to the last point of the segment. If this parameter is false to assume that the end points of a segment are not distinguished.
        Returns:
        the graph element iterator, or null to use the default comparation behaviour of the GraphIterationElement.