Uses of Class
rgu.transport.geospatial.osm.RoadEdge
Packages that use RoadEdge
Package
Description
Multimodal geospatial data such as public transport networks.
Implementation of OpenStreetMap (OSM) data loading.
Transport modelling utility classes.
-
Uses of RoadEdge in rgu.transport.geospatial.multimodal
Method parameters in rgu.transport.geospatial.multimodal with type arguments of type RoadEdgeModifier and TypeMethodDescriptionstatic TransitNetworkNetworkAndRoadJoiner.join(TransitNetwork transitNetwork, Graph<GeoLocation, RoadEdge> roadGraph, Speed drivingSpeed, Speed walkingSpeed, Distance maxDistanceToNearbyRoad, BiConsumer<GeoLocation, GeoLocation> consumerRoadEdge, BiConsumer<GeoLocation, GeoLocation> consumerTransitEdge, BiConsumer<GeoLocation, GeoLocation> consumerArtificialEdge, ProgressListener progress) Joins a transit network to a road network.Constructor parameters in rgu.transport.geospatial.multimodal with type arguments of type RoadEdgeModifierConstructorDescriptionNetworkJoiner(Graph<GeoLocation, RoadEdge> roadGraph, TwoDTree<GeoLocation> tree, Collection<TransitNetwork> networks, Speed speed, Duration maxTime, Distance maxDistanceToNearbyRoad) Creates a joiner which will connect multiple transit networks to one another. -
Uses of RoadEdge in rgu.transport.geospatial.osm
Methods in rgu.transport.geospatial.osm that return RoadEdgeMethods in rgu.transport.geospatial.osm that return types with arguments of type RoadEdgeModifier and TypeMethodDescriptionNoSpeedOSMBuilder.build()static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsBothEndPoints(Predicate<GeoLocation> filter) A predicate which is true if both end points of a graph edge match the given predicate.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsEitherEndPoint(Predicate<GeoLocation> filter) A predicate which is true if either end point of a graph edge matches the given predicate.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasDefinedSpeed()A predicate which is true if the edge has a defined speed, whether positive or zero.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasUndefinedSpeed()A predicate which is true if the edge has a undefined speed.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasZeroSpeed()A predicate which is true if the edge has a defined speed, and the speed value is 0 m/s.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedDefault(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed defaultSpeed) A function which applies a default speed to edges with undefined speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedDefault(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed defaultSpeed) A function which applies a default speed to edges with undefined speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedMultiplier(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, double multiplicationFactor) A function which multiplies the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedMultiplier(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, double multiplicationFactor) A function which multiplies the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedReplacement(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed newSpeed) A function which replaces the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedReplacement(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed newSpeed) A function which replaces the speed limit by a given amount.Method parameters in rgu.transport.geospatial.osm with type arguments of type RoadEdgeModifier and TypeMethodDescriptionstatic Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph) Adapts the specified graph using the speed defined by the road edges.static Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph, Speed speed) Adapts the specified graph using the specified fixed speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedDefault(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed defaultSpeed) A function which applies a default speed to edges with undefined speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedMultiplier(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, double multiplicationFactor) A function which multiplies the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedReplacement(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed newSpeed) A function which replaces the speed limit by a given amount. -
Uses of RoadEdge in rgu.transport.util
Methods in rgu.transport.util that return types with arguments of type RoadEdgeModifier and TypeMethodDescriptionPercentSpeedCap.apply()Applies the speed cap to the given graph, returning a new speed-capped graph.PercentSpeedCap.apply(boolean verbose) Applies the speed cap to the given graph, returning a new speed-capped graph.static Graph<GeoLocation, RoadEdge> Reads a road graph from the specified file.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.Method parameters in rgu.transport.util with type arguments of type RoadEdgeModifier and TypeMethodDescriptionstatic voidDataIO.writeRoads(File file, Graph<GeoLocation, RoadEdge> graph) Writes the given roads graph to the specified file.Constructor parameters in rgu.transport.util with type arguments of type RoadEdgeModifierConstructorDescriptionPercentSpeedCap(Graph<GeoLocation, RoadEdge> graph) Creates an instance of percent speed cap.