Skip To Content ArcGIS for Developers Sign In Dashboard

UtilityNetworkAttributeComparison Class

(Esri::ArcGISRuntime::UtilityNetworkAttributeComparison)

A condition evaluating the value of a UtilityNetworkAttribute on nodes in the network, either to another UtilityNetworkAttribute or to a specific value. More...

Header: #include <UtilityNetworkAttributeComparison>
Since: Esri::ArcGISRuntime 100.7
Inherits: UtilityTraceConditionalExpression

Public Functions

UtilityNetworkAttributeComparison(UtilityNetworkAttribute *networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, const QVariant &value, QObject *parent = nullptr)
UtilityNetworkAttributeComparison(UtilityNetworkAttribute *networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, UtilityNetworkAttribute *otherNetworkAttribute, QObject *parent = nullptr)
~UtilityNetworkAttributeComparison()
UtilityAttributeComparisonOperator comparisonOperator() const
UtilityNetworkAttribute *networkAttribute() const
UtilityNetworkAttribute *otherNetworkAttribute() const
QVariant value() const

Additional Inherited Members

Detailed Description

A condition evaluating the value of a UtilityNetworkAttribute on nodes in the network, either to another UtilityNetworkAttribute or to a specific value.

Member Function Documentation

UtilityNetworkAttributeComparison::UtilityNetworkAttributeComparison(UtilityNetworkAttribute *networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, const QVariant &value, QObject *parent = nullptr)

Creates a condition comparing an UtilityNetworkAttribute to a specific value.

Note: The UtilityNetworkAttribute::dataType of networkAttribute and value must match.

  • networkAttribute - The source UtilityNetworkAttribute that the value is compared to
  • comparisonOperator - The type of comparison to do between the source UtilityNetworkAttribute and the value
  • value - The specific value to compare networkAttribute against for each node in the trace. 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.
  • parent - The optional parent QObject.

UtilityNetworkAttributeComparison::UtilityNetworkAttributeComparison(UtilityNetworkAttribute *networkAttribute, UtilityAttributeComparisonOperator comparisonOperator, UtilityNetworkAttribute *otherNetworkAttribute, QObject *parent = nullptr)

Creates a condition comparing the value of one UtilityNetworkAttribute to another.

Note: The UtilityNetworkAttribute::dataType of networkAttribute and otherNetworkAttribute must match.

UtilityNetworkAttributeComparison::~UtilityNetworkAttributeComparison()

Destructor.

UtilityAttributeComparisonOperator UtilityNetworkAttributeComparison::comparisonOperator() const

Returns the type of comparison to do between the source UtilityNetworkAttribute and either the second UtilityNetworkAttribute or the value.

UtilityNetworkAttribute *UtilityNetworkAttributeComparison::networkAttribute() const

Returns the source UtilityNetworkAttribute that otherNetworkAttribute or value is compared to.

UtilityNetworkAttribute *UtilityNetworkAttributeComparison::otherNetworkAttribute() const

Returns the UtilityNetworkAttribute being compared against UtilityNetworkAttributeComparison::networkAttribute on each of the nodes.

This is null if the comparison is against a specific value.

QVariant UtilityNetworkAttributeComparison::value() const

Returns the specific value to compare networkAttribute against for each node in the trace.


Feedback on this topic?