Package oracle.spatial.network.nfe.beans
Class AnalysisCost
- java.lang.Object
-
- oracle.spatial.network.nfe.beans.AnalysisCost
-
public class AnalysisCost extends java.lang.ObjectAn AnalysisCost describes the NFE analysis cost. The cost options are AnalysisCost.LINE_LENGTH (default) and AnalysisCost.CUSTOM. If AnalysisCost.LINE_LENGTH is chosen the costs that are defined in the node and link tables will be used, also it is possible to define the NodeCostCalculator and LinkCostCalculator. If AnalysisCost.CUSTOM is chosen then the cost has to be defined by the feature attributes using analysisCustomizedCosts, with this option the nodes and links calculators are define automatically.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCUSTOMCost option custom.static java.lang.StringLINE_LENGTHCost option Line length.
-
Constructor Summary
Constructors Constructor Description AnalysisCost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AnalysisCustomizedCost>getAnalysisCustomizedCosts()Returns the analysis customized costs.java.lang.StringgetCostOption()Returns the cost option.LinkCostCalculatorgetLinkCostCalculator()Returns the link cost calculator.NodeCostCalculatorgetNodeCostCalculator()Returns the node cost calculator.voidsetAnalysisCustomizedCosts(java.util.List<AnalysisCustomizedCost> analysisCustomizedCosts)Sets the analysis customized costs.voidsetCostOption(java.lang.String costOption)Sets the cost option.voidsetLinkCostCalculator(LinkCostCalculator linkCostCalculator)Sets the link cost calculator.voidsetNodeCostCalculator(NodeCostCalculator nodeCostCalculator)Sets the node cost calculator.
-
-
-
Field Detail
-
LINE_LENGTH
public static final java.lang.String LINE_LENGTH
Cost option Line length. The costs that are defined in the node and link tables will be used.- See Also:
- Constant Field Values
-
CUSTOM
public static final java.lang.String CUSTOM
Cost option custom. The analysisCustomizedCost will be used.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAnalysisCustomizedCosts
public java.util.List<AnalysisCustomizedCost> getAnalysisCustomizedCosts()
Returns the analysis customized costs.- Returns:
- analysis customized costs
-
setAnalysisCustomizedCosts
public void setAnalysisCustomizedCosts(java.util.List<AnalysisCustomizedCost> analysisCustomizedCosts)
Sets the analysis customized costs.- Parameters:
analysisCustomizedCosts- analysis customized costs.
-
getCostOption
public java.lang.String getCostOption()
Returns the cost option. One of the following constants: AnalysisCost.LINE_LENGTH or AnalysisCost.CUSTOM.- Returns:
- cost option. One of the following constants: AnalysisCost.LINE_LENGTH or AnalysisCost.CUSTOM.
-
setCostOption
public void setCostOption(java.lang.String costOption)
Sets the cost option. One of the following constants: AnalysisCost.LINE_LENGTH or AnalysisCost.CUSTOM.- Parameters:
costOption- cost option. One of the following constants: AnalysisCost.LINE_LENGTH or AnalysisCost.CUSTOM.
-
getNodeCostCalculator
public NodeCostCalculator getNodeCostCalculator()
Returns the node cost calculator. The node cost calculator is used if the LINE_LENGTH option is chosen.- Returns:
- node cost calculator
-
setNodeCostCalculator
public void setNodeCostCalculator(NodeCostCalculator nodeCostCalculator)
Sets the node cost calculator. The node cost calculator is used if the LINE_LENGTH option is chosen.- Parameters:
nodeCostCalculator- node cost calculator
-
getLinkCostCalculator
public LinkCostCalculator getLinkCostCalculator()
Returns the link cost calculator. The link cost calculator is used if the LINE_LENGTH option is chosen.- Returns:
- link cost calculator
-
setLinkCostCalculator
public void setLinkCostCalculator(LinkCostCalculator linkCostCalculator)
Sets the link cost calculator. The link cost calculator is used if the LINE_LENGTH option is chosen.- Parameters:
linkCostCalculator- link cost calculator
-
-