Package oracle.spatial.network.lod
Class DefaultLinkCostCalculator
- java.lang.Object
-
- 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 useLinkCostCalculator lcc = DefaultLinkCostCalculator.getLinkCostCalculator();
- Since:
- 11gR1
-
-
Constructor Summary
Constructors Constructor Description DefaultLinkCostCalculator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceLinkCostCalculator
- 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 interfaceLinkCostCalculator
- Returns:
-
-