public class EuclideanRemainingWeightHeuristic extends Object implements RemainingWeightHeuristic
| Constructor and Description |
|---|
EuclideanRemainingWeightHeuristic() |
| Modifier and Type | Method and Description |
|---|---|
void |
doSomeWork()
Call to cause the heuristic to perform some predetermined amount of work improving its
estimate.
|
double |
estimateRemainingWeight(State s)
On a non-transit trip, the remaining weight is simply distance / street speed.
|
void |
initialize(RoutingRequest options,
long abortTime)
Perform any one-time setup and pre-computation that will be needed by later calls to
computeForwardWeight/computeReverseWeight.
|
void |
reset()
Reset any cached data in the heuristic, before reuse in a search with the same destination.
|
public void initialize(RoutingRequest options, long abortTime)
RemainingWeightHeuristicinitialize in interface RemainingWeightHeuristicabortTime - time since the Epoch in milliseconds at which we should bail out of initialization,
or Long.MAX_VALUE for no limit.public double estimateRemainingWeight(State s)
estimateRemainingWeight in interface RemainingWeightHeuristicpublic void reset()
RemainingWeightHeuristicreset in interface RemainingWeightHeuristicpublic void doSomeWork()
RemainingWeightHeuristicdoSomeWork in interface RemainingWeightHeuristicCopyright © 2018. All rights reserved.