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 aUtilityNetworkAttribute
on nodes in the network, either to anotherUtilityNetworkAttribute
or 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 oneUtilityNetworkAttribute
to another.UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, java.lang.Object value)
Creates a condition comparing aUtilityNetworkAttribute
to specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UtilityAttributeComparisonOperator
getComparisonOperator()
Get the type of comparison to do between the sourceUtilityNetworkAttribute
and either the secondUtilityNetworkAttribute
or the value.UtilityNetworkAttribute
getNetworkAttribute()
Get the sourceUtilityNetworkAttribute
that either the second utility network attribute or the value is compared to.UtilityNetworkAttribute
getOtherNetworkAttribute()
Gets theUtilityNetworkAttribute
being compared against thegetNetworkAttribute()
on each of the nodes.java.lang.Object
getValue()
Gets the specific value to compare toUtilityNetworkAttribute
against for each node in the trace.
-
-
-
Constructor Detail
-
UtilityNetworkAttributeComparison
public UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, java.lang.Object value)
Creates a condition comparing aUtilityNetworkAttribute
to 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.DataType
of 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 oneUtilityNetworkAttribute
to 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 sourceUtilityNetworkAttribute
and either the secondUtilityNetworkAttribute
or the value.- Returns:
- the type of comparison to do
- Since:
- 100.7.0
-
getNetworkAttribute
public UtilityNetworkAttribute getNetworkAttribute()
Get the sourceUtilityNetworkAttribute
that 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 theUtilityNetworkAttribute
being 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 toUtilityNetworkAttribute
against 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
-
-