Class UtilityTraceFunction
- java.lang.Object
- 
- com.esri.arcgisruntime.utilitynetworks.UtilityTraceFunction
 
- 
 public final class UtilityTraceFunction extends Object Functions allow the computation of values during a network trace. Functions are evaluated at each applicable network element. The meaning of applicable varies depending on the Tracer. For an upstream trace, the functions are evaluated for each upstream element. For a downstream trace, the functions are evaluated for each element in the subnetwork, and so on.- Since:
- 100.7.0
 
- 
- 
Constructor SummaryConstructors Constructor Description UtilityTraceFunction(UtilityTraceFunctionType functionType, UtilityNetworkAttribute networkAttribute)Creates a function to compute a value from a network attribute.UtilityTraceFunction(UtilityTraceFunctionType functionType, UtilityNetworkAttribute networkAttribute, UtilityTraceCondition condition)Creates a function object to compute a value from a network attribute.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UtilityTraceConditiongetCondition()Gets the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition.UtilityTraceFunctionTypegetFunctionType()Gets the calculation to perform.UtilityNetworkAttributegetNetworkAttribute()Gets theUtilityNetworkAttributeto use with the calculation.voidsetCondition(UtilityTraceCondition condition)Sets the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition.
 
- 
- 
- 
Constructor Detail- 
UtilityTraceFunctionpublic UtilityTraceFunction(UtilityTraceFunctionType functionType, UtilityNetworkAttribute networkAttribute) Creates a function to compute a value from a network attribute.- Parameters:
- functionType- the calculation to perform
- networkAttribute- the- UtilityNetworkAttributeto use with the calculation
- Throws:
- IllegalArgumentException- if functionType is null
- IllegalArgumentException- if networkAttribute is null
- Since:
- 100.7.0
 
 - 
UtilityTraceFunctionpublic UtilityTraceFunction(UtilityTraceFunctionType functionType, UtilityNetworkAttribute networkAttribute, UtilityTraceCondition condition) Creates a function object to compute a value from a network attribute.- Parameters:
- functionType- the calculation to perform
- networkAttribute- the- UtilityNetworkAttributeto use with the calculation
- condition- a- UtilityTraceConditionto use to restrict the functional calculation to features that satisfy the condition
- Throws:
- IllegalArgumentException- if functionType is null
- IllegalArgumentException- if networkAttribute is null
- IllegalArgumentException- if condition is null
- Since:
- 100.9.0
 
 
- 
 - 
Method Detail- 
getFunctionTypepublic UtilityTraceFunctionType getFunctionType() Gets the calculation to perform.- Returns:
- the calculation to perform
- Since:
- 100.7.0
 
 - 
getNetworkAttributepublic UtilityNetworkAttribute getNetworkAttribute() Gets theUtilityNetworkAttributeto use with the calculation.- Returns:
- the utility network attribute to use with the calculation
- Since:
- 100.7.0
 
 - 
getConditionpublic UtilityTraceCondition getCondition() Gets the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition.- Returns:
- the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition
- Since:
- 100.9.0
 
 - 
setConditionpublic void setCondition(UtilityTraceCondition condition) Sets the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition.- Parameters:
- condition- the UtilityTraceCondition to use to restrict the functional calculation to features that satisfy the condition, or null if none
- Since:
- 100.9.0
 
 
- 
 
-