Skip navigation links

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


oracle.spatial.network.lod
Interface LinkCostCalculator

All Known Implementing Classes:
DefaultLinkCostCalculator, DummyLinkCostCalculator

public interface LinkCostCalculator

This interface defines the method supported by a link cost calculator.

Since:
11gR1

Method Summary
 double getLinkCost(LODAnalysisInfo analysisInfo)
          Computes the cost of the next link in the analysis info.
 int[] getUserDataCategories()
          Returns the required user data categories.

 

Method Detail

getLinkCost

double getLinkCost(LODAnalysisInfo analysisInfo)
Computes the cost of the next link in the analysis info.
Parameters:
analysisInfo - analysis info
direction - direction the network is being searched, which can take the following two values: NetworkExplorer.DIRECTION_FORWARD or NetworkExplorer.DIRECTION_BACKWARD. Forward direction means that the network search direction is the same as the traveling direction, i.e., the traveling direction is from current node to next node. Backward direction means that the network search direction is the reverse of the traveling direction, i.e., the traveling direction is from next node to current node.
Returns:
link cost

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.