Module com.esri.arcgisruntime
Class UtilityNetworkDefinition
java.lang.Object
com.esri.arcgisruntime.utilitynetworks.UtilityNetworkDefinition
Defines the metadata (for example domain networks, network sources etc.) of a utility network.
- Since:
- 100.6.0
-
Method Summary
Modifier and TypeMethodDescriptionGets a value indicating the supported utility network capabilities.Gets an unmodifiable list of utility network categories.getDomainNetwork
(String domainNetworkName) Gets the domain network with the specified name.Gets an unmodifiable list of the domain networks in the utility network metadata.Gets theEnvelope
representing the service territory area used to define theUtilityNetwork
.getNetworkAttribute
(String name) Gets the network attribute specified by the name argument.Gets an unmodifiable list of the network attributes in the utility network definition.getNetworkSource
(String name) Gets the network source specified by the name argument.Gets an unmodifiable list of the network sources in the utility network definition.getRulesAsync
(Iterable<UtilityAssetType> assetTypes) Queries for a subset ofUtilityRule
objects that apply to a set ofUtilityAssetType
.int
Gets the utility network schema version number reported by the utility network metadata.Gets an unmodifiable list of the utility terminal configurations in the utility network definition.
-
Method Details
-
getCapabilities
Gets a value indicating the supported utility network capabilities.Use this property to determine which operations are available for this utility network.
- Returns:
- gets a value indicating the supported utility network capabilities
- Since:
- 200.0.0
-
getCategories
Gets an unmodifiable list of utility network categories. This is a set of system-provided network categories that incorporate semantics of the utility network for subnetwork management and tracing operations.- Returns:
- an unmodifiable list of the categories
- Since:
- 100.6.0
-
getNetworkAttribute
Gets the network attribute specified by the name argument.- Parameters:
name
- the name of the network attribute to retrieve- Returns:
- the network attribute or null if name not found
- Throws:
IllegalArgumentException
- if name is null or empty- Since:
- 100.6.0
-
getNetworkAttributes
Gets an unmodifiable list of the network attributes in the utility network definition.- Returns:
- an unmodifiable list of the network attributes
- Since:
- 100.6.0
-
getNetworkSource
Gets the network source specified by the name argument.- Parameters:
name
- the name of the network source to retrieve- Returns:
- the network source or null if name not found
- Throws:
IllegalArgumentException
- if name is null or empty- Since:
- 100.6.0
-
getNetworkSources
Gets an unmodifiable list of the network sources in the utility network definition.- Returns:
- an unmodifiable list of the network sources
- Since:
- 100.6.0
-
getTerminalConfigurations
Gets an unmodifiable list of the utility terminal configurations in the utility network definition.- Returns:
- an unmodifiable list of the utility terminal configurations
- Since:
- 100.7.0
-
getSchemaVersion
public int getSchemaVersion()Gets the utility network schema version number reported by the utility network metadata. Only certain schema versions are supported by this API.- Returns:
- the schema version
- Since:
- 100.6.0
-
getDomainNetwork
Gets the domain network with the specified name.- Parameters:
domainNetworkName
- the name of the domain network- Returns:
- the domain network or null if domainNetworkName not found
- Throws:
IllegalArgumentException
- if domainNetworkName is null or empty- Since:
- 100.7.0
-
getDomainNetworks
Gets an unmodifiable list of the domain networks in the utility network metadata.Domain networks organize features in a utility network based on what utility service they provide, such as natural gas, water, electricity, or structural elements like poles or conduits.
- Returns:
- an unmodifiable list of domain networks
- Since:
- 100.7.0
-
getExtent
Gets theEnvelope
representing the service territory area used to define theUtilityNetwork
.This is the extent of the network topology (i.e., the extent of the service territory plus a small buffer).
- Returns:
Envelope
representing the service territory area used to define theUtilityNetwork
- Since:
- 100.8.0
-
getRulesAsync
Queries for a subset ofUtilityRule
objects that apply to a set ofUtilityAssetType
.Use this method to return network rules applicable to features of specific asset types. Limiting these asset types to those features being edited can substantially reduce the number of network rules returned.
These asset types will be matched against the
If the collection ofUtilityRuleElement.getAssetType()
of the following rule elements:UtilityAssetType
is empty or no matching rules are found for these asset types, an empty collection ofUtilityRule
objects is returned.- Parameters:
assetTypes
- the collection ofUtilityAssetType
objects to query applicableUtilityRule
objects- Returns:
- a
ListenableFuture
that provides a collection ofUtilityRule
objects - Throws:
NullPointerException
- if assetTypes is null- Since:
- 200.1.0
- See Also:
-