Class AnalysisCustomizedCost


  • public class AnalysisCustomizedCost
    extends java.lang.Object

    Skip navigation links

    An AnalysisCustomizedCost describes a customized cost.

    The feature layer and feature class will provide the attributes that will be used in the expression.
    If feature class is null then the cost expression will apply to all the feature classes of the feature layer.

    As example assume that the feature layer is Conductor and the feature class is HT Conductor, one of the attributes is LENGTH. Using the default expression analyzer ExpressionLexicalAnalyzer then valid expressions would be:

     1) LENGTH
     2) LENGTH*(4-3)
     
    If LENGTH is chosen then the length attribute of the HT Conductor is used as cost in an NFE analysis.

    • Constructor Detail

      • AnalysisCustomizedCost

        public AnalysisCustomizedCost()
    • Method Detail

      • getNFEFeatureLayer

        public NFEFeatureLayer getNFEFeatureLayer()
        Returns the feature layer.
        Returns:
        feature layer
      • setNFEFeatureLayer

        public void setNFEFeatureLayer​(NFEFeatureLayer nfeFeatureLayer)
        Sets the feature layer.
        Parameters:
        nfeFeatureLayer - feature layer
      • getNFEFeatureClass

        public NFEFeatureClass getNFEFeatureClass()
        Returns the feature class.
        Returns:
        feature class
      • setNFEFeatureClass

        public void setNFEFeatureClass​(NFEFeatureClass nfeFeatureClass)
        Sets the feature class.
        Parameters:
        nfeFeatureClass - feature class
      • getExpression

        public java.lang.String getExpression()
        Returns the cost expression.
        Returns:
        cost expression
      • setExpression

        public void setExpression​(java.lang.String expression)
        Sets the cost expression
        Parameters:
        expression - cost expression