public interface RemainingWeightHeuristic extends Serializable
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.
|
void initialize(RoutingRequest options, long abortTime)
abortTime
- time since the Epoch in milliseconds at which we should bail out of initialization,
or Long.MAX_VALUE for no limit.double estimateRemainingWeight(State s)
void reset()
void doSomeWork()
Copyright © 2018. All rights reserved.