Package oracle.spatial.network.lod
Class DummyNodeCostCalculator
- java.lang.Object
-
- oracle.spatial.network.lod.DummyNodeCostCalculator
-
- All Implemented Interfaces:
NodeCostCalculator
public class DummyNodeCostCalculator extends java.lang.Object implements NodeCostCalculator
This implementation of NodeCostCalculator always returns a fixed number as node cost.- Since:
- 11gR2
-
-
Constructor Summary
Constructors Constructor Description DummyNodeCostCalculator()
DummyNodeCostCalculator(double cost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getNodeCost(LODAnalysisInfo analysisInfo)
Computes the cost of the current node in the analysis info.int[]
getUserDataCategories()
Returns the required user data categories.
-
-
-
Method Detail
-
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 interfaceNodeCostCalculator
- 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 interfaceNodeCostCalculator
- Returns:
-
-