public class BeelineWeightApproximator extends Object implements WeightApproximator
| Constructor and Description |
|---|
BeelineWeightApproximator(NodeAccess nodeAccess,
Weighting weighting) |
| Modifier and Type | Method and Description |
|---|---|
double |
approximate(int fromNode) |
WeightApproximator |
reverse()
Makes a 'reverse' copy of itself to make it possible using the two objects independent e.g.
|
BeelineWeightApproximator |
setDistanceCalc(DistanceCalc distanceCalc) |
WeightApproximator |
setEpsilon(double epsilon) |
void |
setTo(int toNode) |
String |
toString() |
public BeelineWeightApproximator(NodeAccess nodeAccess, Weighting weighting)
public void setTo(int toNode)
setTo in interface WeightApproximatorpublic WeightApproximator setEpsilon(double epsilon)
public WeightApproximator reverse()
WeightApproximatorreverse in interface WeightApproximatorpublic double approximate(int fromNode)
approximate in interface WeightApproximatorpublic BeelineWeightApproximator setDistanceCalc(DistanceCalc distanceCalc)
Copyright © 2012–2018. All rights reserved.