|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-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 node to another node. 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 node to the goal node must be smaller than the minimum cost from the current node to the goal node.
Method Summary | |
---|---|
double |
getHeuristicCost(LogicalNode currentNode, LogicalNode goalNode) Returns the heuristic cost from the currnet node to the goal node. |
boolean |
requiresUserData() Returns true if the cost function requires node user data information. |
Method Detail |
---|
double getHeuristicCost(LogicalNode currentNode, LogicalNode goalNode)
currentNode
- current nodegoalNode
- goal nodeboolean requiresUserData()
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |