Skip To Content ArcGIS for Developers Sign In Dashboard

UtilityTraceConfiguration Class

(Esri::ArcGISRuntime::UtilityTraceConfiguration)

The set of utility network parameters that define elements of a trace or of a subnetwork. More...

Header: #include <UtilityTraceConfiguration>
Since: Esri::ArcGISRuntime 100.7
Inherits: Object

Public Functions

UtilityTraceConfiguration(QObject *parent = nullptr)
~UtilityTraceConfiguration()
UtilityDomainNetwork *domainNetwork() const
bool ignoreBarriersAtStartingPoints() const
bool isIncludeBarriers() const
bool isIncludeContainers() const
bool isIncludeContent() const
bool isIncludeStructures() const
UtilityPropagatorListModel *propagators() const
void setDomainNetwork(UtilityDomainNetwork *domainNetwork)
void setIgnoreBarriersAtStartingPoints(bool ignoreBarriersAtStartingPoints)
void setIncludeBarriers(bool includeBarriers)
void setIncludeContainers(bool includeContainers)
void setIncludeContent(bool includeContent)
void setIncludeStructures(bool includeStructures)
void setSourceTier(UtilityTier *sourceTier)
void setTargetTier(UtilityTier *targetTier)
void setTraversability(UtilityTraversability *traversability)
void setValidateConsistency(bool validateConsistency)
UtilityTier *sourceTier() const
UtilityTier *targetTier() const
UtilityTraversability *traversability() const
bool validateConsistency() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

The set of utility network parameters that define elements of a trace or of a subnetwork.

Member Function Documentation

UtilityTraceConfiguration::UtilityTraceConfiguration(QObject *parent = nullptr)

Creates a UtilityTraceConfiguration with default values.

  • parent - The optional parent object.

UtilityTraceConfiguration::~UtilityTraceConfiguration()

Destructor.

UtilityDomainNetwork *UtilityTraceConfiguration::domainNetwork() const

Returns the UtilityDomainNetwork from which to start the trace.

The UtilityDomainNetwork property is required and only used with subnetwork-based traces (UtilityTraceType::Subnetwork, UtilityTraceType::Upstream, and so on).

See also setDomainNetwork().

bool UtilityTraceConfiguration::ignoreBarriersAtStartingPoints() const

Returns the whether to ignore barriers at starting points.

The default is false.

One example of how this can be used is with an upstream protective device trace. The first call to the trace will return the first upstream device that meets the protective device criteria. To find the next device upstream, you would set a starting point on the device returned by the first trace. With IgnoreBarriersAtStartingPoints set to false, this second trace would immediately stop at the starting point, since it meets the trace termination criteria. Setting this option to true will allow the trace to ignore the starting point, and continue to the subsequent device upstream.

See also setIgnoreBarriersAtStartingPoints().

bool UtilityTraceConfiguration::isIncludeBarriers() const

Returns whether to include barriers in the trace results or subnetwork.

The default is true.

bool UtilityTraceConfiguration::isIncludeContainers() const

Returns whether to include containment features in the trace results or subnetwork.

The default is false.

bool UtilityTraceConfiguration::isIncludeContent() const

Returns whether to include content in the trace results or subnetwork.

The default is false.

bool UtilityTraceConfiguration::isIncludeStructures() const

Returns whether to include structure features in the trace results or subnetwork.

The default is false.

UtilityPropagatorListModel *UtilityTraceConfiguration::propagators() const

Returns a collection of UtilityPropagator objects to execute while performing the trace.

Propagator objects allow a subset of UtilityNetworkAttribute values to propagate through a network while executing a trace. For example, in phase propagation, open devices along the network will restrict some phases from continuing along the trace. Propagators only apply to subnetwork-based traces. (UtilityTraceType::Upstream, UtilityTraceType::Downstream, and so on).

void UtilityTraceConfiguration::setDomainNetwork(UtilityDomainNetwork *domainNetwork)

Sets the domainNetwork to domainNetwork.

See also domainNetwork.

void UtilityTraceConfiguration::setIgnoreBarriersAtStartingPoints(bool ignoreBarriersAtStartingPoints)

Sets the ignoreBarriersAtStartingPoints to ignoreBarriersAtStartingPoints.

See also ignoreBarriersAtStartingPoints.

void UtilityTraceConfiguration::setIncludeBarriers(bool includeBarriers)

Sets the includeBarriers to includeBarriers.

See also isIncludeBarriers.

void UtilityTraceConfiguration::setIncludeContainers(bool includeContainers)

Sets the includeContainers to includeContainers.

See also isIncludeContainers.

void UtilityTraceConfiguration::setIncludeContent(bool includeContent)

Sets the includeContent to includeContent.

See also isIncludeContent.

void UtilityTraceConfiguration::setIncludeStructures(bool includeStructures)

Sets the includeStructures to includeStructures.

See also isIncludeStructures.

void UtilityTraceConfiguration::setSourceTier(UtilityTier *sourceTier)

Sets the sourceTier to sourceTier.

See also sourceTier.

void UtilityTraceConfiguration::setTargetTier(UtilityTier *targetTier)

Sets the targetTier to targetTier.

See also targetTier.

void UtilityTraceConfiguration::setTraversability(UtilityTraversability *traversability)

Sets the traversability to traversability.

See also traversability.

void UtilityTraceConfiguration::setValidateConsistency(bool validateConsistency)

Sets the validateConsistency to validateConsistency.

See also validateConsistency.

UtilityTier *UtilityTraceConfiguration::sourceTier() const

Returns the UtilityTier that is used as the start of the trace.

This property is only used with subnetwork-based traces (such as subnetwork upstream). If UtilityTraceConfiguration::domainNetwork represents a partitioned network, this property is optional. If not null, the trace routines will perform an additional check to validate that the starting points and barriers belong to this tier. If UtilityTraceConfiguration::domainNetwork represents a hierarchical network, this property is required. Since rows in hierarchical networks can belong to multiple tiers, this property tells the subnetwork tracer which tier to use for tracing.

See also setSourceTier().

UtilityTier *UtilityTraceConfiguration::targetTier() const

Returns the UtilityTier that is used to constrain the tiers returned by the upstream and downstream traces.

This property is optional. If null, the upstream and downstream traces will stop in the current tier. If a target tier is specified, the trace will continue upstream or downstream into the specified tier (inclusive).

See also setTargetTier().

UtilityTraversability *UtilityTraceConfiguration::traversability() const

Returns the traversability conditions for the trace.

See also setTraversability().

bool UtilityTraceConfiguration::validateConsistency() const

Returns whether to validate network consistency as part of the trace operation.

If set to true, trace operations will fail if dirty areas are encountered during the trace. The default is true.

See also setValidateConsistency().


Feedback on this topic?