Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


oracle.spatial.network.lod
Interface HeuristicCostFunction

All Known Implementing Classes:
DummyCostFunction, EuclideanCostFunction, GeodeticCostFunction

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.

Since:
Oracle Database 11g Release 2 (11.2)

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

getHeuristicCost

double getHeuristicCost(HeavyPointOnNet currentPoint,
                        HeavyPointOnNet goalPoint)
Returns the heuristic cost from the current point to the goal point.
Parameters:
currentPoint - current point
goalPoint - goal point
Returns:
emtimated cost from current node to goal node)

getUserDataCategories

int[] getUserDataCategories()
Returns the required user data categories.
Returns:

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 2 (11.2)
E11829-02


Copyright © 2007, 2011, Oracle and/or its affiliates. All Rights Reserved.