Package oracle.spatial.network.lod
Class DummyCostFunction
- java.lang.Object
-
- oracle.spatial.network.lod.DummyCostFunction
-
- All Implemented Interfaces:
HeuristicCostFunction
public class DummyCostFunction extends java.lang.Object implements HeuristicCostFunction
The heuristic cost function implemented in this class always returns 0.- Since:
- 11gR2
-
-
Constructor Summary
Constructors Constructor Description DummyCostFunction(double cost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)Returns the heuristic cost from the current point to the target point.int[]getUserDataCategories()Returns the required user data categories.voidsetUserData(PointOnNet point, NetworkExplorer ne)Sets the user data needed by the heuristic cost function for the input point.
-
-
-
Method Detail
-
getHeuristicCost
public double getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
Description copied from interface:HeuristicCostFunctionReturns the heuristic cost from the current point to the target point.- Specified by:
getHeuristicCostin interfaceHeuristicCostFunction- Parameters:
currentPoint- current pointgoalPoint- target point- Returns:
- estimated cost from current point to target point)
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:HeuristicCostFunctionReturns the required user data categories.- Specified by:
getUserDataCategoriesin interfaceHeuristicCostFunction- Returns:
-
setUserData
public void setUserData(PointOnNet point, NetworkExplorer ne) throws LODNetworkException
Description copied from interface:HeuristicCostFunctionSets the user data needed by the heuristic cost function for the input point.- Specified by:
setUserDatain interfaceHeuristicCostFunction- Throws:
LODNetworkException
-
-