Skip navigation links

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


oracle.spatial.network.lod
Class DummyCostFunction

java.lang.Object
  extended by oracle.spatial.network.lod.DummyCostFunction

All Implemented Interfaces:
HeuristicCostFunction

public class DummyCostFunction
extends java.lang.Object
implements HeuristicCostFunction

The A* cost function implemented in this class always returns 0.

Since:
Oracle Database 11g Release 2 (11.2)

Constructor Summary
DummyCostFunction(double cost)
           

 

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.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DummyCostFunction

public DummyCostFunction(double cost)

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 goal point.
Specified by:
getHeuristicCost in interface HeuristicCostFunction
Parameters:
currentPoint - current point
goalPoint - goal point
Returns:
emtimated cost from current node to goal node)

getUserDataCategories

public int[] getUserDataCategories()
Description copied from interface: HeuristicCostFunction
Returns the required user data categories.
Specified by:
getUserDataCategories in interface HeuristicCostFunction
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.