|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HeuristicCostFunction
This interface defines the heuristic cost function from one point to another. This interface is used in A* search and dynamic link level selector. This package provides two heuristic cost implementations for spatial networks: GeodeticCostFunction and EuclideanCostFunction. Users can provide their own cost eistimates to guide the A* search. In order to guarantee optimality of A* search result, the heuristic cost from the current point to the goal point must be smaller than the minimum cost from the current point to the goal point.
Method Summary | |
---|---|
double |
getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint) Returns the heuristic cost from the current point to the goal point. |
int[] |
getUserDataCategories() Returns the required user data categories. |
Method Detail |
---|
double getHeuristicCost(HeavyPointOnNet currentPoint, HeavyPointOnNet goalPoint)
currentPoint
- current pointgoalPoint
- goal pointint[] getUserDataCategories()
|
Oracle® Spatial Java API Reference 11g Release 2 (11.2) E11829-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |