public class DummyCostFunction extends java.lang.Object implements HeuristicCostFunction
| Constructor and Description |
|---|
DummyCostFunction(double cost) |
| Modifier and Type | Method and Description |
|---|---|
double |
getHeuristicCost(HeavyPointOnNet currentPoint,
HeavyPointOnNet goalPoint)
Returns the heuristic cost from the current point to the target point.
|
int[] |
getUserDataCategories()
Returns the required user data categories.
|
void |
setUserData(PointOnNet point,
NetworkExplorer ne)
Sets the user data needed by the heuristic cost function for the input point.
|
public double getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
HeuristicCostFunctiongetHeuristicCost in interface HeuristicCostFunctioncurrentPoint - current pointgoalPoint - target pointpublic int[] getUserDataCategories()
HeuristicCostFunctiongetUserDataCategories in interface HeuristicCostFunctionpublic void setUserData(PointOnNet point, NetworkExplorer ne) throws LODNetworkException
HeuristicCostFunctionsetUserData in interface HeuristicCostFunctionLODNetworkException