Class UtilityNetworkAttributeComparison
- java.lang.Object
-
- com.esri.arcgisruntime.utilitynetworks.UtilityTraceCondition
-
- com.esri.arcgisruntime.utilitynetworks.UtilityTraceConditionalExpression
-
- com.esri.arcgisruntime.utilitynetworks.UtilityNetworkAttributeComparison
-
public final class UtilityNetworkAttributeComparison extends UtilityTraceConditionalExpression
A condition evaluating the value of aUtilityNetworkAttributeon nodes in the network, either to anotherUtilityNetworkAttributeor to a specific value.- Since:
- 100.7.0
-
-
Constructor Summary
Constructors Constructor Description UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, UtilityNetworkAttribute otherNetworkAttribute)Creates a condition comparing the value of oneUtilityNetworkAttributeto another.UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, java.lang.Object value)Creates a condition comparing aUtilityNetworkAttributeto specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UtilityAttributeComparisonOperatorgetComparisonOperator()Get the type of comparison to do between the sourceUtilityNetworkAttributeand either the secondUtilityNetworkAttributeor the value.UtilityNetworkAttributegetNetworkAttribute()Get the sourceUtilityNetworkAttributethat either the second utility network attribute or the value is compared to.UtilityNetworkAttributegetOtherNetworkAttribute()Gets theUtilityNetworkAttributebeing compared against thegetNetworkAttribute()on each of the nodes.java.lang.ObjectgetValue()Gets the specific value to compare toUtilityNetworkAttributeagainst for each node in the trace.
-
-
-
Constructor Detail
-
UtilityNetworkAttributeComparison
public UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, java.lang.Object value)
Creates a condition comparing aUtilityNetworkAttributeto specified value.- Parameters:
networkAttribute- the source utility network attribute that the value is compared tocomparisonOperator- the type of comparison to do between the source utility network attribute and the valuevalue- the specific value to compare networkAttribute against for each node in the trace. This must match theUtilityNetworkAttribute.DataTypeof networkAttribute.- Throws:
java.lang.IllegalArgumentException- if networkAttribute is nulljava.lang.IllegalArgumentException- if comparisonOperator is nulljava.lang.IllegalArgumentException- if value is nulljava.lang.IllegalArgumentException- if value is not a valid network attribute datatype- Since:
- 100.7.0
-
UtilityNetworkAttributeComparison
public UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, UtilityNetworkAttribute otherNetworkAttribute)
Creates a condition comparing the value of oneUtilityNetworkAttributeto another.- Parameters:
networkAttribute- the source utility network attribute that the value is compared tocomparisonOperator- the type of comparison to do between the source utility network attribute and another utility network attributeotherNetworkAttribute- the utility network attribute being compared against another utility network attribute on each of the nodes- Throws:
java.lang.IllegalArgumentException- if networkAttribute is nulljava.lang.IllegalArgumentException- if comparisonOperator is nulljava.lang.IllegalArgumentException- if otherNetworkAttribute is null- Since:
- 100.7.0
-
-
Method Detail
-
getComparisonOperator
public UtilityAttributeComparisonOperator getComparisonOperator()
Get the type of comparison to do between the sourceUtilityNetworkAttributeand either the secondUtilityNetworkAttributeor the value.- Returns:
- the type of comparison to do
- Since:
- 100.7.0
-
getNetworkAttribute
public UtilityNetworkAttribute getNetworkAttribute()
Get the sourceUtilityNetworkAttributethat either the second utility network attribute or the value is compared to.- Returns:
- the source utility network attribute
- Since:
- 100.7.0
-
getOtherNetworkAttribute
public UtilityNetworkAttribute getOtherNetworkAttribute()
Gets theUtilityNetworkAttributebeing compared against thegetNetworkAttribute()on each of the nodes.- Returns:
- the utility network attribute being compared against or null if none
- Since:
- 100.7.0
-
getValue
public java.lang.Object getValue()
Gets the specific value to compare toUtilityNetworkAttributeagainst for each node in the trace. SeegetNetworkAttribute()The value can be an integer data type, which can contain a small or large integer, or it can be double data type, which can contain a double or a date (in milliseconds since January 1, 1970 at 00:00:00 GMT).
- Returns:
- the specific value or null if none
- Since:
- 100.7.0
-
-