public class InterleavedBidirectionalHeuristic extends Object implements RemainingWeightHeuristic
| Constructor and Description |
|---|
InterleavedBidirectionalHeuristic() |
| Modifier and Type | Method and Description |
|---|---|
void |
doSomeWork()
Move backward N steps through the transit network.
|
double |
estimateRemainingWeight(State s)
This function supplies the main search with an (under)estimate of the remaining path weight to the target.
|
void |
initialize(RoutingRequest request,
long abortTime)
Before the main search begins, the heuristic must search on the streets around the origin and destination.
|
void |
reset()
Reset any cached data in the heuristic, before reuse in a search with the same destination.
|
public void initialize(RoutingRequest request, long abortTime)
initialize 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()
doSomeWork in interface RemainingWeightHeuristicCopyright © 2018. All rights reserved.