Skip to content
ESM: import Subcircuit from "@arcgis/core/networks/support/Subcircuit.js";
CDN: const Subcircuit = await $arcgis.import("@arcgis/core/networks/support/Subcircuit.js");
Class: @arcgis/core/networks/support/Subcircuit
Inheritance: SubcircuitAccessor
Since: ArcGIS Maps SDK for JavaScript 4.34
beta

Represents a subcircuit in a telecom domain network.

See also

Constructors

Subcircuit

Constructor
new Subcircuit(properties)
Parameter
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
Show inherited properties Hide inherited properties
Name Type Summary Class

User-defined attributes on the subcircuit.

Subcircuit

The global ID of the circuit that consumes the subcircuit.

Subcircuit

The name of the class.

Accessor

The global ID of the subcircuit.

Subcircuit

Whether the subcircuit is reserved for use by its own circuit.

Subcircuit

The name of the subcircuit.

Subcircuit

The global ID of the provider circuit in which the subcircuit participates.

Subcircuit

Property Details

attributes

Property
attributes HashMap<any> |null |undefined

User-defined attributes on the subcircuit.

consumerId

Property
consumerId String |null |undefined

The global ID of the circuit that consumes the subcircuit.

declaredClass

Inherited
Property
declaredClass Stringreadonly
Inherited from Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

globalId

Property
globalId String |null |undefined

The global ID of the subcircuit.

isReserved

Property
isReserved Boolean

Whether the subcircuit is reserved for use by its own circuit.

When a subcircuit is reserved, it is assigned to its provider circuit and is not available for consumption by other circuits. A subcircuit is reserved when provider ID and consumer ID are the same.

name

Property
name String

The name of the subcircuit. This name is unique within a circuit.

providerId

Property
providerId String |null |undefined

The global ID of the provider circuit in which the subcircuit participates.

Method Overview

Show inherited methods Hide inherited methods
Name Return Type Summary Class

Adds one or more handles which are to be tied to the lifecycle of the object.

Accessor
*

Returns the value of the specified attribute.

Subcircuit

Returns true if a named group of handles exist.

Accessor

Removes a group of handles owned by the object.

Accessor
void

Sets a new value for the specified attribute.

Subcircuit

Method Details

addHandles

Inherited
Method
addHandles(handleOrHandles, groupKey)
Inherited from Accessor

Adds one or more handles which are to be tied to the lifecycle of the object. The handles will be removed when the object is destroyed.

// Manually manage handles
const handle = reactiveUtils.when(
  () => !view.updating,
  () => {
    wkidSelect.disabled = false;
  },
  { once: true }
);

this.addHandles(handle);

// Destroy the object
this.destroy();
Parameters
handleOrHandles WatchHandle|WatchHandle[]

Handles marked for removal once the object is destroyed.

groupKey *
optional

Key identifying the group to which the handles should be added. All the handles in the group can later be removed with Accessor.removeHandles(). If no key is provided the handles are added to a default group.

getAttribute

Method
getAttribute(name){*}

Returns the value of the specified attribute.

Parameter
name String

The name of the attribute.

Returns
Type Description
* Returns the value of the attribute specified by name.

hasHandles

Inherited
Method
hasHandles(groupKey){Boolean}
Inherited from Accessor

Returns true if a named group of handles exist.

Parameter
groupKey *
optional

A group key.

Returns
Type Description
Boolean Returns true if a named group of handles exist.
Example
// Remove a named group of handles if they exist.
if (obj.hasHandles("watch-view-updates")) {
  obj.removeHandles("watch-view-updates");
}

removeHandles

Inherited
Method
removeHandles(groupKey)
Inherited from Accessor

Removes a group of handles owned by the object.

Parameter
groupKey *
optional

A group key or an array or collection of group keys to remove.

Example
obj.removeHandles(); // removes handles from default group

obj.removeHandles("handle-group");
obj.removeHandles("other-handle-group");

setAttribute

Method
setAttribute(name, newValue){void}

Sets a new value for the specified attribute.

Parameters
name String

The name of the attribute to set.

newValue *

The new value to set on the named attribute.

Returns
Type Description
void

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