Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.network.lod
Class DummyNodeCostCalculator

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

All Implemented Interfaces:
NodeCostCalculator

public class DummyNodeCostCalculator
extends java.lang.Object
implements NodeCostCalculator

This implementation of NodeCostCalculator always returns 0 for node cost. This class is implemented as a singleton.

Since:
11gR2

Method Summary
 double getNodeCost(LogicalNode node)
          Computes the cost of the specified logical node.
static NodeCostCalculator getNodeCostCalculator()
           
 boolean requiresUserData()
          Returns true if calculating node cost requires user data information.

 

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

 

Method Detail

getNodeCostCalculator

public static NodeCostCalculator getNodeCostCalculator()

getNodeCost

public double getNodeCost(LogicalNode node)
Description copied from interface: NodeCostCalculator
Computes the cost of the specified logical node.
Specified by:
getNodeCost in interface NodeCostCalculator
Parameters:
node - a standalone logical node
Returns:
node cost

requiresUserData

public boolean requiresUserData()
Description copied from interface: NodeCostCalculator
Returns true if calculating node cost requires user data information.
Specified by:
requiresUserData in interface NodeCostCalculator
Returns:
true if calculating node cost requires user data information, false otherwise.

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.