Module com.esri.arcgisruntime
Class UtilityNetworkAttributeComparison
java.lang.Object
com.esri.arcgisruntime.utilitynetworks.UtilityTraceCondition
com.esri.arcgisruntime.utilitynetworks.UtilityTraceConditionalExpression
com.esri.arcgisruntime.utilitynetworks.UtilityNetworkAttributeComparison
A condition evaluating the value of a
UtilityNetworkAttribute
on nodes in the network, either to another
UtilityNetworkAttribute
or to a specific value.- Since:
- 100.7.0
-
Constructor Summary
ConstructorDescriptionUtilityNetworkAttributeComparison
(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, UtilityNetworkAttribute otherNetworkAttribute) Creates a condition comparing the value of oneUtilityNetworkAttribute
to another.UtilityNetworkAttributeComparison
(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, Object value) Creates a condition comparing aUtilityNetworkAttribute
to specified value. -
Method Summary
Modifier and TypeMethodDescriptionGet the type of comparison to do between the sourceUtilityNetworkAttribute
and either the secondUtilityNetworkAttribute
or the value.Get the sourceUtilityNetworkAttribute
that either the second utility network attribute or the value is compared to.Gets theUtilityNetworkAttribute
being compared against thegetNetworkAttribute()
on each of the nodes.getValue()
Gets the specific value to compare toUtilityNetworkAttribute
against for each node in the trace.
-
Constructor Details
-
UtilityNetworkAttributeComparison
public UtilityNetworkAttributeComparison(UtilityNetworkAttribute networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, 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:
IllegalArgumentException
- if networkAttribute is nullIllegalArgumentException
- if comparisonOperator is nullIllegalArgumentException
- if value is nullIllegalArgumentException
- 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:
IllegalArgumentException
- if networkAttribute is nullIllegalArgumentException
- if comparisonOperator is nullIllegalArgumentException
- if otherNetworkAttribute is null- Since:
- 100.7.0
-
-
Method Details
-
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
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
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
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
-