Class AnalysisCost


  • public class AnalysisCost
    extends java.lang.Object
    An 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 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
    • Constructor Detail

      • AnalysisCost

        public AnalysisCost()
    • 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