Skip navigation links

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


oracle.spatial.network.lod
Class DefaultLinkCostCalculator

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

All Implemented Interfaces:
LinkCostCalculator

public class DefaultLinkCostCalculator
extends java.lang.Object
implements LinkCostCalculator

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

    LinkCostCalculator lcc = DefaultLinkCostCalculator.getLinkCostCalculator();
  
Since:
11gR1

Method Summary
 double getLinkCost(LODAnalysisInfo analysisInfo)
          Computes the cost of the next link in the analysis info.
static LinkCostCalculator getLinkCostCalculator()
           
 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

getLinkCostCalculator

public static LinkCostCalculator getLinkCostCalculator()

getLinkCost

public double getLinkCost(LODAnalysisInfo analysisInfo)
Description copied from interface: LinkCostCalculator
Computes the cost of the next link in the analysis info.
Specified by:
getLinkCost in interface LinkCostCalculator
Parameters:
analysisInfo - analysis info
Returns:
link cost

getUserDataCategories

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