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 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.
-
-
-
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 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:
-
-