public class AnalysisCustomizedCost
extends java.lang.Object
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 and Description |
---|
AnalysisCustomizedCost() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression()
Returns the cost expression.
|
NFEFeatureClass |
getNFEFeatureClass()
Returns the feature class.
|
NFEFeatureLayer |
getNFEFeatureLayer()
Returns the feature layer.
|
void |
setExpression(java.lang.String expression)
Sets the cost expression
|
void |
setNFEFeatureClass(NFEFeatureClass nfeFeatureClass)
Sets the feature class.
|
void |
setNFEFeatureLayer(NFEFeatureLayer nfeFeatureLayer)
Sets the feature layer.
|
public NFEFeatureLayer getNFEFeatureLayer()
public void setNFEFeatureLayer(NFEFeatureLayer nfeFeatureLayer)
nfeFeatureLayer
- feature layerpublic NFEFeatureClass getNFEFeatureClass()
public void setNFEFeatureClass(NFEFeatureClass nfeFeatureClass)
nfeFeatureClass
- feature classpublic java.lang.String getExpression()
public void setExpression(java.lang.String expression)
expression
- cost expression