Skip to content
import TerminalConfiguration from "@arcgis/core/networks/support/TerminalConfiguration.js";
Inheritance:
TerminalConfigurationAccessor
Since
ArcGIS Maps SDK for JavaScript 4.20

A device feature can be assigned a terminal configuration which could have one or more terminals. The terminal configuration defines the terminals and the permissable paths between them. For example, a device feature could have a Dual Terminal configuration which has a High and a Low terminal. A downstream trace starting from High side terminal will return the Low side terminal however the same trace starting from the Low side terminal won't return the High side terminal.

Another example, a transformer with tri-state terminal configuration (3 terminals) H, X1, X2. The allowed paths are H->X1 and H->X2 with a default path H->X1. Running a downstream trace from the H terminal will select X1 and anything underneath it but not X2. The device path can be altered with the terminalConfiguration field.

H
/ \
X1 X2

The terminal class defines terminal properties.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

defaultConfiguration

Property
Type
string | null | undefined

The default terminal configuration path defined.

id

Property
Type
number | null | undefined

A unique numeric identifier of the terminal configuration.

name

Property
Type
string | null | undefined

The name of the terminal configuration.

terminals

autocast Property
Type
Terminal[]

An array of terminals defined in this configuration.

traversabilityModel

Property
Type
TraversabilityModelType | null | undefined

Terminal configurations can be defined as directional or bidirectional. In a directional traversability model, one or more terminals can be defined as upstream where the flow of commodity enters or leaves.

Methods

MethodSignatureClass
fromJSON
inherited static
fromJSON(json: any): any
toJSON
inherited
toJSON(): any

fromJSON

inheritedstatic Method
Signature
fromJSON (json: any): any
Inherited from: JSONSupportMixin

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
ParameterTypeDescriptionRequired
json
any

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.

toJSON

inherited Method
Signature
toJSON (): any
Inherited from: JSONSupportMixin

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.

Type definitions

TraversabilityModelType

Type definition
Type
"directional" | "bidirectional"