public class ProfileRouter extends Object
Modifier and Type | Field and Description |
---|---|
Graph |
graph |
static int |
MAX_DURATION |
ProfileRequest |
request |
static int |
SLACK |
TimeSurface.RangeSet |
timeSurfaceRangeSet |
Constructor and Description |
---|
ProfileRouter(Graph graph,
ProfileRequest request) |
Modifier and Type | Method and Description |
---|---|
int |
cleanup()
Destroy all routing contexts created during this search.
|
boolean |
dominated(Ride newRide,
StopCluster atCluster)
Check whether a new ride has too long a duration relative to existing rides at the given location,
or relative to the global travel time limit.
|
void |
finalize()
This finalizer is intended as a failsafe to prevent memory leakage in case someone does
not clean up routing contexts.
|
com.google.common.collect.Multimap<TripPattern,StopAtDistance> |
findClosestPatterns(com.google.common.collect.Multimap<StopCluster,StopAtDistance> stopClusters) |
void |
printStopsForPatterns(String prefix,
com.google.common.collect.Multimap<TripPattern,StopAtDistance> stopClustersByPattern) |
ProfileResponse |
route() |
public static final int SLACK
public static final int MAX_DURATION
public final Graph graph
public final ProfileRequest request
public TimeSurface.RangeSet timeSurfaceRangeSet
public ProfileRouter(Graph graph, ProfileRequest request)
public void printStopsForPatterns(String prefix, com.google.common.collect.Multimap<TripPattern,StopAtDistance> stopClustersByPattern)
public ProfileResponse route()
public boolean dominated(Ride newRide, StopCluster atCluster)
public com.google.common.collect.Multimap<TripPattern,StopAtDistance> findClosestPatterns(com.google.common.collect.Multimap<StopCluster,StopAtDistance> stopClusters)
stopClusters
- a multimap from stop clusters to one or more StopAtDistance objects at the corresponding cluster.public int cleanup()
Copyright © 2018. All rights reserved.