Skip navigation links

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


oracle.spatial.network.lod
Class DefaultNodeCostCalculator

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

All Implemented Interfaces:
NodeCostCalculator

public class DefaultNodeCostCalculator
extends java.lang.Object
implements NodeCostCalculator

This is the default node cost calculator implementation. It uses the cost attribute of the node as the node cost. This class is implemented as a singleton. To get the singleton instance use

    NodeCostCalculator lcc = DefaultNodeCostCalculator.getNodeCostCalculator();
  
Since:
11gR1

Method Summary
 double getNodeCost(LODAnalysisInfo analysisInfo)
          Computes the cost of the current node in the analysis info.
static NodeCostCalculator getNodeCostCalculator()
           
 int[] getUserDataCategories()
          Returns the required user data categories.

 

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(LODAnalysisInfo analysisInfo)
Description copied from interface: NodeCostCalculator
Computes the cost of the current node in the analysis info.
Specified by:
getNodeCost in interface NodeCostCalculator
Parameters:
analysisInfo - analysis info
Returns:
node cost

getUserDataCategories

public int[] getUserDataCategories()
Description copied from interface: NodeCostCalculator
Returns the required user data categories.
Specified by:
getUserDataCategories in interface NodeCostCalculator
Returns:

Skip navigation links

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


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