public class TrivialRemainingWeightHeuristic extends Object implements RemainingWeightHeuristic
Constructor and Description |
---|
TrivialRemainingWeightHeuristic() |
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) |
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)
RemainingWeightHeuristic
initialize
in interface RemainingWeightHeuristic
abortTime
- 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 RemainingWeightHeuristic
public void reset()
RemainingWeightHeuristic
reset
in interface RemainingWeightHeuristic
public void doSomeWork()
RemainingWeightHeuristic
doSomeWork
in interface RemainingWeightHeuristic
Copyright © 2019. All rights reserved.