Package oracle.spatial.network.lod
Class DefaultNodeCostCalculator
- java.lang.Object
-
- 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 useNodeCostCalculator lcc = DefaultNodeCostCalculator.getNodeCostCalculator();- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description DefaultNodeCostCalculator()DefaultNodeCostCalculator(boolean ignoreStartNodeCost)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetNodeCost(LODAnalysisInfo analysisInfo)Computes the cost of the current node in the analysis info.static NodeCostCalculatorgetNodeCostCalculator()int[]getUserDataCategories()Returns the required user data categories.
-
-
-
Method Detail
-
getNodeCostCalculator
public static NodeCostCalculator getNodeCostCalculator()
-
getNodeCost
public double getNodeCost(LODAnalysisInfo analysisInfo)
Description copied from interface:NodeCostCalculatorComputes the cost of the current node in the analysis info.- Specified by:
getNodeCostin interfaceNodeCostCalculator- Parameters:
analysisInfo- analysis info- Returns:
- node cost
-
getUserDataCategories
public int[] getUserDataCategories()
Description copied from interface:NodeCostCalculatorReturns the required user data categories.- Specified by:
getUserDataCategoriesin interfaceNodeCostCalculator- Returns:
-
-