org.neo4j.graphalgo.impl.util
Class GeoEstimateEvaluator

java.lang.Object
  extended by org.neo4j.graphalgo.impl.util.GeoEstimateEvaluator
All Implemented Interfaces:
EstimateEvaluator<Double>

public class GeoEstimateEvaluator
extends Object
implements EstimateEvaluator<Double>


Constructor Summary
GeoEstimateEvaluator(String latitudePropertyKey, String longitudePropertyKey)
           
 
Method Summary
 Double getCost(Node node, Node goal)
          Estimate the weight of the remaining path from one node to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoEstimateEvaluator

public GeoEstimateEvaluator(String latitudePropertyKey,
                            String longitudePropertyKey)
Method Detail

getCost

public Double getCost(Node node,
                      Node goal)
Description copied from interface: EstimateEvaluator
Estimate the weight of the remaining path from one node to another.

Specified by:
getCost in interface EstimateEvaluator<Double>
Parameters:
node - the node to estimate the weight from.
goal - the node to estimate the weight to.
Returns:
an estimation of the weight of the path from the first node to the second.


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.