import Terminal from "@arcgis/core/networks/support/Terminal.js";const Terminal = await $arcgis.import("@arcgis/core/networks/support/Terminal.js");- Inheritance:
- Terminal→
Accessor
- 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 X2The terminal class defines terminal properties.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| |
isUpstreamTerminal
- Type
- boolean
Returns whether this terminal is the upstream terminal. Applicable in a directional terminal configuration; always false otherwise.
Methods
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.
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.