Interface WeightApproximator
- All Known Implementing Classes:
BeelineWeightApproximator,LMApproximator,PerfectApproximator
public interface WeightApproximator
Specifies a weight approximation between an node and the goalNode according to the specified
weighting.
- Author:
- jansoe, Peter Karich
-
Method Summary
Modifier and TypeMethodDescriptiondoubleapproximate(int currentNode) doublegetSlack()reverse()Makes a 'reverse' copy of itself to make it possible using the two objects independent e.g.voidsetTo(int to)
-
Method Details
-
approximate
double approximate(int currentNode) - Returns:
- minimal weight of the specified currentNode to the 'to' node
-
setTo
void setTo(int to) -
reverse
WeightApproximator reverse()Makes a 'reverse' copy of itself to make it possible using the two objects independent e.g. on different threads. Do not copy state depending on the current approximate calls. 'reverse' means the WeightApproximator should handle approximate calls towards the 'from' instead towards the 'to'. -
getSlack
double getSlack()
-