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 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.
-
-
-
Method Detail
-
getHeuristicCost
public double getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
Description copied from interface:HeuristicCostFunction
Returns the heuristic cost from the current point to the target point.- Specified by:
getHeuristicCost
in interfaceHeuristicCostFunction
- Parameters:
currentPoint
- current pointgoalPoint
- target point- Returns:
- estimated cost from current point to target point)
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:HeuristicCostFunction
Returns the required user data categories.- Specified by:
getUserDataCategories
in interfaceHeuristicCostFunction
- Returns:
-
setUserData
public void setUserData(PointOnNet point, NetworkExplorer ne) throws LODNetworkException
Description copied from interface:HeuristicCostFunction
Sets the user data needed by the heuristic cost function for the input point.- Specified by:
setUserData
in interfaceHeuristicCostFunction
- Throws:
LODNetworkException
-
-