import CircuitManager from "@arcgis/core/networks/CircuitManager.js";const CircuitManager = await $arcgis.import("@arcgis/core/networks/CircuitManager.js");- Inheritance:
- CircuitManager→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.34
A CircuitManager provides access to circuit management capabilities for a telecom domain network in a utility network.
Example
const utilityNetwork = new UtilityNetwork({ layerUrl: "https://host.com/arcgis/rest/services/Test/FeatureServer/0",});
await utilityNetwork.load();
const domainNetworks = utilityNetwork.dataElement?.domainNetworks;const telecomDomainNetwork = domainNetworks.find((dn) => dn.isTelecomNetwork);
const circuitManager = await utilityNetwork.getCircuitManager(telecomDomainNetwork.domainNetworkName);Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
circuitSectionTable readonly | | |
circuitTable readonly | | |
declaredClass readonly inherited | ||
featureServiceUrl readonly | | |
gdbVersion readonly | | |
historicMoment readonly | | |
networkServiceUrl readonly | | |
subcircuitTable readonly | | |
telecomDomainNetwork readonly | | |
telecomDomainNetworkName readonly | | |
utilityNetwork readonly | |
circuitSectionTable
- Type
- FeatureLayer
A FeatureLayer for the telecom domain network's circuit section table.
circuitTable
- Type
- FeatureLayer
A FeatureLayer for the telecom domain network's circuit table.
featureServiceUrl
- Type
- string
Returns the root feature service URL which the utility network is part of.
Example
`https://utilitynetwork.esri.com/server/rest/services/NapervilleElectric/FeatureServer/` gdbVersion
The version of the geodatabase of the feature service data used by the utility network. Read the Overview of versioning topic for more details about this capability.
networkServiceUrl
- Type
- string
The URL of the network server.
Example
`https://utilitynetwork.esri.com/server/rest/services/NapervilleElectric/UtilityNetworkServer/` subcircuitTable
- Type
- FeatureLayer
A FeatureLayer for the telecom domain network's subcircuit table.
telecomDomainNetwork
- Type
- DomainNetworkJSON
An object representing the telecom domain network in the utility network data element.
utilityNetwork
- Type
- UtilityNetwork
The UtilityNetwork that contains the telecom domain network being managed.
Methods
| Method | Signature | Class |
|---|---|---|
fromJSON inherited static | fromJSON(json: any): any | |
alter(circuit: Circuit): Promise<void> | | |
create(circuit: Circuit): Promise<void> | | |
delete(circuitNames: string[]): Promise<void> | | |
export(props: ExportCircuitsProperties): Promise<CircuitExportResult[]> | | |
getCircuit(circuitName: string, isSectioned?: boolean): Circuit | | |
loadCircuitSectionTable(): Promise<FeatureLayer> | | |
loadCircuitTable(): Promise<FeatureLayer> | | |
loadSubcircuitTable(): Promise<FeatureLayer> | | |
queryCircuitNames(props: QueryCircuitProperties): Promise<string[]> | | |
queryCircuits(input: string[] | QueryCircuitProperties): Promise<Circuit[]> | | |
toJSON inherited | toJSON(): any | |
verify(props: VerifyCircuitsProperties): Promise<CircuitVerifyResult[]> | |
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
alter
- Signature
-
alter (circuit: Circuit): Promise<void>
Modifies circuit information for an existing circuit in a telecom domain network. This method replaces the existing circuit definition with the provided circuit. If any properties are excluded from the provided circuit definition, it is removed from the circuit.
To alter an existing circuit, the provided Circuit must
have a valid globalId property, else this method will throw an exception.
export
- Signature
-
export (props: ExportCircuitsProperties): Promise<CircuitExportResult[]>
Exports feature and connectivity information about provided circuits in a telecom domain network into JSON files for consumption by external systems. Each circuit exported is output to a separate JSON file.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| props | An object specifying configuration settings for the export. | |
- Returns
- Promise<CircuitExportResult[]>
Resolves to an object specifying the export location and status for each circuit.
getCircuit
- Signature
-
getCircuit (circuitName: string, isSectioned?: boolean): Circuit
Returns a Circuit instance
with its circuitManager property set to the current CircuitManager instance.
loadCircuitSectionTable
- Signature
-
loadCircuitSectionTable (): Promise<FeatureLayer>
Loads the telecom domain network's circuit section table.
- Returns
- Promise<FeatureLayer>
Resolves to a loaded FeatureLayer for the circuit section table.
loadCircuitTable
- Signature
-
loadCircuitTable (): Promise<FeatureLayer>
Loads the telecom domain network's circuit table.
- Returns
- Promise<FeatureLayer>
Resolves to a loaded FeatureLayer for the circuit table.
loadSubcircuitTable
- Signature
-
loadSubcircuitTable (): Promise<FeatureLayer>
Loads the telecom domain network's subcircuit table.
- Returns
- Promise<FeatureLayer>
Resolves to a loaded FeatureLayer for the subcircuit table.
queryCircuitNames
- Signature
-
queryCircuitNames (props: QueryCircuitProperties): Promise<string[]>
Returns the names of circuits in a telecom domain network with specified start/stop locations.
Querying circuits by location is not supported and will fail as of Telecom Domain Network Beta 2.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| props | The start/stop location of the circuits to query. | |
queryCircuits
- Signature
-
queryCircuits (input: string[] | QueryCircuitProperties): Promise<Circuit[]>
Returns circuits from a telecom domain network that satisfy a specified query. This method accepts two types of input: an array of circuit names, or an object specifying a trace location from which the circuits to query either start or stop.
If specifying a trace location: If returnConsumingCircuits is false, only the immediate circuits that pass
through the specified feature are returned. Otherwise, all the circuits that consume the immediate circuits are returned.
Querying circuits by location is not supported and will fail as of Telecom Domain Network Beta 2.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| input | The names or start/stop location of the circuits to query. | |
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.
verify
- Signature
-
verify (props: VerifyCircuitsProperties): Promise<CircuitVerifyResult[]>
Checks the validity of circuits in a telecom domain network. The operation confirms that a circuit can be traced from the starting location to the stopping location and ensures that circuit sections and subcircuits are properly configured.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| props | An object specifying configuration settings for the verify operation. | |
- Returns
- Promise<CircuitVerifyResult[]>
Resolves to an array of objects specifying the verification status for each circuit.
Type definitions
QueryCircuitProperties
Describes a start/stop circuit location for circuit queries.
- Supertypes
- Pick<QueryCircuitsParametersProperties‚ "location" | "locationType" | "returnConsumerCircuits">
ExportCircuitsProperties
- Supertypes
- Pick<ExportCircuitsParametersProperties‚ "circuitNames" | "exportAcknowledgement" | "resultTypes">
VerifyCircuitsProperties
- Supertypes
- Pick<VerifyCircuitsParametersProperties‚ "circuitNames" | "continueOnFailure" | "forceVerify" | "synthesizeGeometries">