UtilityCategoryComparison Class

  • UtilityCategoryComparison
  • class Esri::ArcGISRuntime::UtilityCategoryComparison

    A condition evaluating whether a particular UtilityCategory exists on a feature in the trace. More...

    Header: #include <UtilityCategoryComparison.h>
    Since: Esri::ArcGISRuntime 100.7
    Inherits: Esri::ArcGISRuntime::UtilityTraceConditionalExpression

    Public Functions

    UtilityCategoryComparison(const QString &categoryName, Esri::ArcGISRuntime::UtilityCategoryComparisonOperator comparisonOperator, QObject *parent = nullptr)
    UtilityCategoryComparison(Esri::ArcGISRuntime::UtilityCategory *category, Esri::ArcGISRuntime::UtilityCategoryComparisonOperator comparisonOperator, QObject *parent = nullptr)
    virtual ~UtilityCategoryComparison() override
    Esri::ArcGISRuntime::UtilityCategory *category() const
    Esri::ArcGISRuntime::UtilityCategoryComparisonOperator comparisonOperator() const

    Detailed Description

    Relevant samples:

    • Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
    • Create load report: Create a simple electric distribution report that displays the count of customers and total load per phase by tracing downstream from a given point.
    • Perform valve isolation trace: Run a filtered trace to locate operable features that will isolate an area from the flow of network resources.

    Member Function Documentation

    [since Esri::ArcGISRuntime 200.1] UtilityCategoryComparison::UtilityCategoryComparison(const QString &categoryName, Esri::ArcGISRuntime::UtilityCategoryComparisonOperator comparisonOperator, QObject *parent = nullptr)

    Creates a condition evaluating whether a category with this name exists on a feature.

    • categoryName - The name of the category to evaluate as part of the condition.
    • comparisonOperator - The type of comparison to do between the category name and each feature in the trace.
    • parent - The optional parent QObject.

    This function was introduced in Esri::ArcGISRuntime 200.1.

    UtilityCategoryComparison::UtilityCategoryComparison(Esri::ArcGISRuntime::UtilityCategory *category, Esri::ArcGISRuntime::UtilityCategoryComparisonOperator comparisonOperator, QObject *parent = nullptr)

    Creates a condition evaluating whether a UtilityCategory exists on a feature.

    • category - The UtilityCategory to evaluate as part of the condition.
    • comparisonOperator - The type of comparison to do between the UtilityCategory and each feature in the trace.
    • parent - The optional parent QObject.

    [override virtual] UtilityCategoryComparison::~UtilityCategoryComparison()

    Destructor.

    Esri::ArcGISRuntime::UtilityCategory *UtilityCategoryComparison::category() const

    Returns the category to evaluate as part of the condition.

    Esri::ArcGISRuntime::UtilityCategoryComparisonOperator UtilityCategoryComparison::comparisonOperator() const

    Returns the type of comparison to do between the UtilityCategory and each feature in the trace.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.