node-opcua-address-space 2.51.0 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/namespace_impl.d.ts +8 -8
- package/dist/src/namespace_impl.js +19 -28
- package/dist/src/namespace_impl.js.map +1 -1
- package/package.json +38 -38
- package/src/namespace_impl.ts +69 -80
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +0 -1
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +0 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +0 -4
- package/dist/source/interfaces/data_access/ua_discrete_item.js +0 -3
- package/dist/source/interfaces/data_access/ua_discrete_item.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +0 -25
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +0 -27
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +0 -17
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js +0 -3
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +0 -1
- package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +0 -4
- package/dist/source/interfaces/data_access/ua_y_array_item.js +0 -3
- package/dist/source/interfaces/data_access/ua_y_array_item.js.map +0 -1
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +0 -11
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +0 -69
- package/dist/source/interfaces/state_machine/finite_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/finite_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +0 -74
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/state_machine.d.ts +0 -342
- package/dist/source/interfaces/state_machine/state_machine.js +0 -3
- package/dist/source/interfaces/state_machine/state_machine.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +0 -18
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +0 -29
- package/dist/source/interfaces/state_machine/ua_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_state_variable.js.map +0 -1
- package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +0 -26
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js +0 -3
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +0 -1
- package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +0 -41
- package/dist/source/interfaces/subscription_diagnostics_variable.js +0 -3
- package/dist/source/interfaces/subscription_diagnostics_variable.js.map +0 -1
- package/dist/source/interfaces/ua_authorisation_service.d.ts +0 -1
- package/dist/source/interfaces/ua_authorisation_service.js +0 -3
- package/dist/source/interfaces/ua_authorisation_service.js.map +0 -1
- package/dist/source/ua_namespace_meta_data_type.d.ts +0 -71
- package/dist/source/ua_namespace_meta_data_type.js +0 -3
- package/dist/source/ua_namespace_meta_data_type.js.map +0 -1
- package/dist/src/alarms_and_conditions/base_event_type.d.ts +0 -26
- package/dist/src/alarms_and_conditions/base_event_type.js +0 -41
- package/dist/src/alarms_and_conditions/base_event_type.js.map +0 -1
- package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +0 -22
- package/dist/src/alarms_and_conditions/shelving_state_machine.js +0 -241
- package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +0 -1
- package/dist/src/alarms_and_conditions/trip_alarm.d.ts +0 -16
- package/dist/src/alarms_and_conditions/trip_alarm.js +0 -21
- package/dist/src/alarms_and_conditions/trip_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +0 -54
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +0 -255
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +0 -138
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +0 -460
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +0 -35
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +0 -32
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +0 -191
- package/dist/src/alarms_and_conditions/ua_condition_base.js +0 -1029
- package/dist/src/alarms_and_conditions/ua_condition_base.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +0 -11
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +0 -58
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +0 -24
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +0 -59
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +0 -14
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +0 -17
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +0 -22
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +0 -87
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +0 -6
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +0 -11
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +0 -76
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js +0 -237
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +0 -27
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +0 -62
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +0 -49
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +0 -176
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +0 -47
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +0 -151
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +0 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +0 -16
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +0 -18
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +0 -1
- package/dist/src/base_node.d.ts +0 -279
- package/dist/src/base_node.js +0 -1364
- package/dist/src/base_node.js.map +0 -1
- package/dist/src/data_access/ua_analog_item.d.ts +0 -13
- package/dist/src/data_access/ua_analog_item.js +0 -37
- package/dist/src/data_access/ua_analog_item.js.map +0 -1
- package/dist/src/data_access/ua_data_item.d.ts +0 -16
- package/dist/src/data_access/ua_data_item.js +0 -66
- package/dist/src/data_access/ua_data_item.js.map +0 -1
- package/dist/src/data_access/ua_multistate_discrete.d.ts +0 -23
- package/dist/src/data_access/ua_multistate_discrete.js +0 -131
- package/dist/src/data_access/ua_multistate_discrete.js.map +0 -1
- package/dist/src/namespace.d.ts +0 -475
- package/dist/src/namespace.js +0 -1775
- package/dist/src/namespace.js.map +0 -1
- package/dist/src/reference.d.ts +0 -43
- package/dist/src/reference.js +0 -138
- package/dist/src/reference.js.map +0 -1
- package/dist/src/session_context.d.ts +0 -4
- package/dist/src/session_context.js +0 -9
- package/dist/src/session_context.js.map +0 -1
- package/dist/src/ua_data_type.d.ts +0 -83
- package/dist/src/ua_data_type.js +0 -289
- package/dist/src/ua_data_type.js.map +0 -1
- package/dist/src/ua_method.d.ts +0 -42
- package/dist/src/ua_method.js +0 -204
- package/dist/src/ua_method.js.map +0 -1
- package/dist/src/ua_object.d.ts +0 -29
- package/dist/src/ua_object.js +0 -153
- package/dist/src/ua_object.js.map +0 -1
- package/dist/src/ua_object_type.d.ts +0 -49
- package/dist/src/ua_object_type.js +0 -124
- package/dist/src/ua_object_type.js.map +0 -1
- package/dist/src/ua_reference_type.d.ts +0 -42
- package/dist/src/ua_reference_type.js +0 -138
- package/dist/src/ua_reference_type.js.map +0 -1
- package/dist/src/ua_variable.d.ts +0 -346
- package/dist/src/ua_variable.js +0 -1721
- package/dist/src/ua_variable.js.map +0 -1
- package/dist/src/ua_variable_type.d.ts +0 -54
- package/dist/src/ua_variable_type.js +0 -555
- package/dist/src/ua_variable_type.js.map +0 -1
- package/dist/src/ua_view.d.ts +0 -16
- package/dist/src/ua_view.js +0 -42
- package/dist/src/ua_view.js.map +0 -1
package/src/namespace_impl.ts
CHANGED
|
@@ -57,6 +57,20 @@ import {
|
|
|
57
57
|
UAVariableType,
|
|
58
58
|
UAView
|
|
59
59
|
} from "node-opcua-address-space-base";
|
|
60
|
+
import { UAAnalogItem, UADataItem, UAInitialState, UAState, UAYArrayItem } from "node-opcua-nodeset-ua";
|
|
61
|
+
|
|
62
|
+
import {
|
|
63
|
+
AddMultiStateDiscreteOptions,
|
|
64
|
+
AddMultiStateValueDiscreteOptions,
|
|
65
|
+
AddTwoStateDiscreteOptions,
|
|
66
|
+
AddTwoStateVariableOptions
|
|
67
|
+
} from "../source/address_space_ts";
|
|
68
|
+
import { UAStateMachineEx } from "../source/interfaces/state_machine/ua_state_machine_type";
|
|
69
|
+
import { UATransitionEx } from "../source/interfaces/state_machine/ua_transition_ex";
|
|
70
|
+
import { UAAlarmConditionEx, UAAlarmConditionImpl, UATwoStateDiscreteEx, UAYArrayItemEx } from "../source";
|
|
71
|
+
import { AddAnalogDataItemOptions, AddDataItemOptions } from "../source/namespace_data_access";
|
|
72
|
+
import { UATwoStateVariableEx } from "../source/ua_two_state_variable_ex";
|
|
73
|
+
import { UAMultiStateValueDiscreteEx } from "../source/interfaces/data_access/ua_multistate_value_discrete_ex";
|
|
60
74
|
|
|
61
75
|
import { _handle_delete_node_model_change_event, _handle_model_change_event } from "./address_space_change_event_tools";
|
|
62
76
|
import { AddressSpacePrivate } from "./address_space_private";
|
|
@@ -92,31 +106,12 @@ import { ConstructNodeIdOptions, NodeIdManager } from "./nodeid_manager";
|
|
|
92
106
|
import { _addTwoStateDiscrete } from "./data_access/ua_two_state_discrete";
|
|
93
107
|
import { coerceRolePermissions } from "./role_permissions";
|
|
94
108
|
import { UAObjectImpl } from "./ua_object_impl";
|
|
95
|
-
import {
|
|
96
|
-
AddMultiStateDiscreteOptions,
|
|
97
|
-
AddMultiStateValueDiscreteOptions,
|
|
98
|
-
AddTwoStateDiscreteOptions,
|
|
99
|
-
AddTwoStateVariableOptions
|
|
100
|
-
} from "../source/address_space_ts";
|
|
101
109
|
import { UADataTypeImpl } from "./ua_data_type_impl";
|
|
102
|
-
import { UAStateMachineEx } from "../source/interfaces/state_machine/ua_state_machine_type";
|
|
103
|
-
import { UATransitionEx } from "../source/interfaces/state_machine/ua_transition_ex";
|
|
104
110
|
import { UAObjectTypeImpl } from "./ua_object_type_impl";
|
|
105
111
|
import { UAMethodImpl } from "./ua_method_impl";
|
|
106
112
|
import { UAVariableTypeImpl } from "./ua_variable_type_impl";
|
|
107
113
|
import { UAReferenceTypeImpl } from "./ua_reference_type_impl";
|
|
108
|
-
import { UAAlarmConditionEx, UAAlarmConditionImpl, UATwoStateDiscreteEx, UAYArrayItemEx } from "../source";
|
|
109
|
-
import {
|
|
110
|
-
UAAnalogItem,
|
|
111
|
-
UADataItem,
|
|
112
|
-
UAInitialState,
|
|
113
|
-
UAState,
|
|
114
|
-
UAYArrayItem
|
|
115
|
-
} from "node-opcua-nodeset-ua";
|
|
116
|
-
import { AddAnalogDataItemOptions, AddDataItemOptions } from "../source/namespace_data_access";
|
|
117
|
-
import { UATwoStateVariableEx } from "../source/ua_two_state_variable_ex";
|
|
118
114
|
import { UAViewImpl } from "./ua_view_impl";
|
|
119
|
-
import { UAMultiStateValueDiscreteEx } from "../source/interfaces/data_access/ua_multistate_value_discrete_ex";
|
|
120
115
|
import { UAStateMachineImpl, UATransitionImpl } from "./state_machine/finite_state_machine";
|
|
121
116
|
import { _addMultiStateValueDiscrete } from "./data_access/ua_multistate_value_discrete";
|
|
122
117
|
|
|
@@ -207,7 +202,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
207
202
|
public addressSpace: AddressSpacePrivate;
|
|
208
203
|
public readonly index: number;
|
|
209
204
|
|
|
210
|
-
public version
|
|
205
|
+
public version = 0;
|
|
211
206
|
public publicationDate: Date = new Date(1900, 0, 1);
|
|
212
207
|
|
|
213
208
|
private _objectTypeMap: Map<string, UAObjectType>;
|
|
@@ -246,7 +241,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
246
241
|
return this.index === 0 ? this : (this.addressSpace.getDefaultNamespace() as UANamespace);
|
|
247
242
|
}
|
|
248
243
|
|
|
249
|
-
public dispose() {
|
|
244
|
+
public dispose(): void {
|
|
250
245
|
for (const node of this.nodeIterator()) {
|
|
251
246
|
(<BaseNodeImpl>node).dispose();
|
|
252
247
|
}
|
|
@@ -390,9 +385,12 @@ export class UANamespace implements NamespacePrivate {
|
|
|
390
385
|
*
|
|
391
386
|
*/
|
|
392
387
|
public addObjectType(options: AddObjectTypeOptions): UAObjectType {
|
|
393
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"dataType"), "an objectType should not have a dataType");
|
|
394
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"valueRank"), "an objectType should not have a valueRank");
|
|
395
|
-
assert(
|
|
388
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "dataType"), "an objectType should not have a dataType");
|
|
389
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "valueRank"), "an objectType should not have a valueRank");
|
|
390
|
+
assert(
|
|
391
|
+
!Object.prototype.hasOwnProperty.call(options, "arrayDimensions"),
|
|
392
|
+
"an objectType should not have a arrayDimensions"
|
|
393
|
+
);
|
|
396
394
|
return this._addObjectOrVariableType(options, "BaseObjectType", NodeClass.ObjectType) as UAObjectType;
|
|
397
395
|
}
|
|
398
396
|
|
|
@@ -412,7 +410,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
412
410
|
*
|
|
413
411
|
*/
|
|
414
412
|
public addVariableType(options: AddVariableTypeOptions): UAVariableType {
|
|
415
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"arrayDimension"), "Do you mean ArrayDimensions ?");
|
|
413
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "arrayDimension"), "Do you mean ArrayDimensions ?");
|
|
416
414
|
|
|
417
415
|
// dataType
|
|
418
416
|
options.dataType = options.dataType || "Int32";
|
|
@@ -446,7 +444,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
446
444
|
*/
|
|
447
445
|
public addVariable(options: AddVariableOptions): UAVariable {
|
|
448
446
|
assert(arguments.length === 1, "Invalid arguments IAddressSpace#addVariable now takes only one argument.");
|
|
449
|
-
if (Object.prototype.hasOwnProperty.call(options,"propertyOf") && options.propertyOf) {
|
|
447
|
+
if (Object.prototype.hasOwnProperty.call(options, "propertyOf") && options.propertyOf) {
|
|
450
448
|
assert(!options.typeDefinition || options.typeDefinition === "PropertyType");
|
|
451
449
|
options.typeDefinition = options.typeDefinition || "PropertyType";
|
|
452
450
|
} else {
|
|
@@ -458,8 +456,8 @@ export class UANamespace implements NamespacePrivate {
|
|
|
458
456
|
public addView(options: AddViewOptions): UAView {
|
|
459
457
|
assert(arguments.length === 1, "Namespace#addView expecting a single argument");
|
|
460
458
|
assert(options);
|
|
461
|
-
assert(Object.prototype.hasOwnProperty.call(options,"browseName"));
|
|
462
|
-
assert(Object.prototype.hasOwnProperty.call(options,"organizedBy"));
|
|
459
|
+
assert(Object.prototype.hasOwnProperty.call(options, "browseName"));
|
|
460
|
+
assert(Object.prototype.hasOwnProperty.call(options, "organizedBy"));
|
|
463
461
|
const browseName = options.browseName;
|
|
464
462
|
assert(typeof browseName === "string");
|
|
465
463
|
|
|
@@ -541,8 +539,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
541
539
|
* @param options.inverseName
|
|
542
540
|
*/
|
|
543
541
|
public addReferenceType(options: AddReferenceTypeOptions): UAReferenceType {
|
|
544
|
-
const
|
|
545
|
-
const addressSpace = namespace.addressSpace;
|
|
542
|
+
const addressSpace = this.addressSpace;
|
|
546
543
|
|
|
547
544
|
const options1 = options as any;
|
|
548
545
|
options1.nodeClass = NodeClass.ReferenceType;
|
|
@@ -559,7 +556,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
559
556
|
referenceType: "HasSubtype"
|
|
560
557
|
});
|
|
561
558
|
}
|
|
562
|
-
const node =
|
|
559
|
+
const node = this.internalCreateNode(options1) as UAReferenceType;
|
|
563
560
|
|
|
564
561
|
node.propagate_back_references();
|
|
565
562
|
|
|
@@ -576,9 +573,9 @@ export class UANamespace implements NamespacePrivate {
|
|
|
576
573
|
* @method createDataType
|
|
577
574
|
*/
|
|
578
575
|
public createDataType(options: CreateDataTypeOptions): UADataType {
|
|
579
|
-
assert(Object.prototype.hasOwnProperty.call(options,"isAbstract"), "must provide isAbstract");
|
|
580
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"nodeClass"));
|
|
581
|
-
assert(Object.prototype.hasOwnProperty.call(options,"browseName"), "must provide a browseName");
|
|
576
|
+
assert(Object.prototype.hasOwnProperty.call(options, "isAbstract"), "must provide isAbstract");
|
|
577
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "nodeClass"));
|
|
578
|
+
assert(Object.prototype.hasOwnProperty.call(options, "browseName"), "must provide a browseName");
|
|
582
579
|
|
|
583
580
|
const options1 = options as any;
|
|
584
581
|
options1.nodeClass = NodeClass.DataType;
|
|
@@ -622,7 +619,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
622
619
|
assert(isNonEmptyQualifiedName(options.browseName));
|
|
623
620
|
// xx assert(Object.prototype.hasOwnProperty.call(options,"browseName") && options.browseName.length > 0);
|
|
624
621
|
|
|
625
|
-
assert(Object.prototype.hasOwnProperty.call(options,"nodeClass"));
|
|
622
|
+
assert(Object.prototype.hasOwnProperty.call(options, "nodeClass"));
|
|
626
623
|
options.references = addressSpace.normalizeReferenceTypes(options.references);
|
|
627
624
|
|
|
628
625
|
const references = _copy_references(options.references);
|
|
@@ -769,7 +766,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
769
766
|
options.subtypeOf = options.subtypeOf || "BaseEventType";
|
|
770
767
|
// are eventType always abstract ?? No => Condition can be instantiated!
|
|
771
768
|
// but, by default is abstract is true
|
|
772
|
-
options.isAbstract = Object.prototype.hasOwnProperty.call(options,"isAbstract") ? !!options.isAbstract : true;
|
|
769
|
+
options.isAbstract = Object.prototype.hasOwnProperty.call(options, "isAbstract") ? !!options.isAbstract : true;
|
|
773
770
|
return this.addObjectType(options);
|
|
774
771
|
}
|
|
775
772
|
|
|
@@ -786,15 +783,14 @@ export class UANamespace implements NamespacePrivate {
|
|
|
786
783
|
* @return {UAVariable}
|
|
787
784
|
*/
|
|
788
785
|
public addDataItem<T, DT extends DataType>(options: AddDataItemOptions): UADataItem<T, DT> {
|
|
789
|
-
const
|
|
790
|
-
const addressSpace = namespace.addressSpace;
|
|
786
|
+
const addressSpace = this.addressSpace;
|
|
791
787
|
const dataType = options.dataType || "Number";
|
|
792
788
|
|
|
793
789
|
const dataItemType = addressSpace.findVariableType("DataItemType");
|
|
794
790
|
if (!dataItemType) {
|
|
795
791
|
throw new Error("Cannot find DataItemType");
|
|
796
792
|
}
|
|
797
|
-
const variable =
|
|
793
|
+
const variable = this.addVariable({
|
|
798
794
|
...options,
|
|
799
795
|
dataType,
|
|
800
796
|
typeDefinition: dataItemType.nodeId
|
|
@@ -854,10 +850,9 @@ export class UANamespace implements NamespacePrivate {
|
|
|
854
850
|
* @return {UAVariable}
|
|
855
851
|
*/
|
|
856
852
|
public addAnalogDataItem<T, DT extends DataType>(options: AddAnalogDataItemOptions): UAAnalogItem<T, DT> {
|
|
857
|
-
const
|
|
858
|
-
const addressSpace = namespace.addressSpace;
|
|
853
|
+
const addressSpace = this.addressSpace;
|
|
859
854
|
|
|
860
|
-
assert(Object.prototype.hasOwnProperty.call(options,"engineeringUnitsRange"), "expecting engineeringUnitsRange");
|
|
855
|
+
assert(Object.prototype.hasOwnProperty.call(options, "engineeringUnitsRange"), "expecting engineeringUnitsRange");
|
|
861
856
|
|
|
862
857
|
const dataType = options.dataType || "Number";
|
|
863
858
|
|
|
@@ -869,7 +864,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
869
864
|
|
|
870
865
|
const clone_options = { ...options, dataType, typeDefinition: analogItemType.nodeId } as AddVariableOptions;
|
|
871
866
|
|
|
872
|
-
const variable =
|
|
867
|
+
const variable = this.addVariable(clone_options) as UAVariableImpl;
|
|
873
868
|
|
|
874
869
|
// var variable = namespace.addVariable({
|
|
875
870
|
// componentOf: options.componentOf,
|
|
@@ -898,7 +893,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
898
893
|
// prepared to handle this.
|
|
899
894
|
// Example: EURange ::= {-200.0,1400.0}
|
|
900
895
|
|
|
901
|
-
const euRange =
|
|
896
|
+
const euRange = this.addVariable({
|
|
902
897
|
browseName: { name: "EURange", namespaceIndex: 0 },
|
|
903
898
|
dataType: "Range",
|
|
904
899
|
minimumSamplingInterval: 0,
|
|
@@ -916,8 +911,8 @@ export class UANamespace implements NamespacePrivate {
|
|
|
916
911
|
const handler = variable.handle_semantic_changed.bind(variable);
|
|
917
912
|
euRange.on("value_changed", handler);
|
|
918
913
|
|
|
919
|
-
if (Object.prototype.hasOwnProperty.call(options,"instrumentRange")) {
|
|
920
|
-
const instrumentRange =
|
|
914
|
+
if (Object.prototype.hasOwnProperty.call(options, "instrumentRange")) {
|
|
915
|
+
const instrumentRange = this.addVariable({
|
|
921
916
|
accessLevel: "CurrentRead | CurrentWrite",
|
|
922
917
|
browseName: { name: "InstrumentRange", namespaceIndex: 0 },
|
|
923
918
|
dataType: "Range",
|
|
@@ -934,14 +929,14 @@ export class UANamespace implements NamespacePrivate {
|
|
|
934
929
|
instrumentRange.on("value_changed", handler);
|
|
935
930
|
}
|
|
936
931
|
|
|
937
|
-
if (Object.prototype.hasOwnProperty.call(options,"engineeringUnits")) {
|
|
932
|
+
if (Object.prototype.hasOwnProperty.call(options, "engineeringUnits")) {
|
|
938
933
|
const engineeringUnits = new EUInformation(options.engineeringUnits);
|
|
939
934
|
assert(engineeringUnits instanceof EUInformation, "expecting engineering units");
|
|
940
935
|
|
|
941
936
|
// EngineeringUnits specifies the units for the DataItem‟s value (e.g., degree, hertz, seconds). The
|
|
942
937
|
// EUInformation type is specified in 5.6.3.
|
|
943
938
|
|
|
944
|
-
const eu =
|
|
939
|
+
const eu = this.addVariable({
|
|
945
940
|
accessLevel: "CurrentRead",
|
|
946
941
|
browseName: { name: "EngineeringUnits", namespaceIndex: 0 },
|
|
947
942
|
dataType: "EUInformation",
|
|
@@ -1044,8 +1039,8 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1044
1039
|
* @param options.value
|
|
1045
1040
|
*/
|
|
1046
1041
|
public addYArrayItem<DT extends DataType.Double | DataType.Float>(options: AddYArrayItemOptions): UAYArrayItemEx<DT> {
|
|
1047
|
-
assert(Object.prototype.hasOwnProperty.call(options,"engineeringUnitsRange"), "expecting engineeringUnitsRange");
|
|
1048
|
-
assert(Object.prototype.hasOwnProperty.call(options,"axisScaleType"), "expecting axisScaleType");
|
|
1042
|
+
assert(Object.prototype.hasOwnProperty.call(options, "engineeringUnitsRange"), "expecting engineeringUnitsRange");
|
|
1043
|
+
assert(Object.prototype.hasOwnProperty.call(options, "axisScaleType"), "expecting axisScaleType");
|
|
1049
1044
|
assert(options.xAxisDefinition !== null && typeof options.xAxisDefinition === "object", "expecting a xAxisDefinition");
|
|
1050
1045
|
|
|
1051
1046
|
const addressSpace = this.addressSpace;
|
|
@@ -1059,14 +1054,14 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1059
1054
|
if (!options) {
|
|
1060
1055
|
return resolveNodeId(DataType.Float);
|
|
1061
1056
|
}
|
|
1062
|
-
if (Object.prototype.hasOwnProperty.call(options,"nodeId") || options instanceof BaseNodeImpl) {
|
|
1057
|
+
if (Object.prototype.hasOwnProperty.call(options, "nodeId") || options instanceof BaseNodeImpl) {
|
|
1063
1058
|
return (options as UADataType).nodeId;
|
|
1064
1059
|
}
|
|
1065
1060
|
return resolveNodeId(options as NodeIdLike);
|
|
1066
1061
|
}
|
|
1067
1062
|
const dataType = toNodeId(options.dataType as any);
|
|
1068
1063
|
const optionals = [];
|
|
1069
|
-
if (Object.prototype.hasOwnProperty.call(options,"instrumentRange")) {
|
|
1064
|
+
if (Object.prototype.hasOwnProperty.call(options, "instrumentRange")) {
|
|
1070
1065
|
optionals.push("InstrumentRange");
|
|
1071
1066
|
}
|
|
1072
1067
|
const variable = YArrayItemType.instantiate({
|
|
@@ -1074,7 +1069,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1074
1069
|
componentOf: options.componentOf,
|
|
1075
1070
|
dataType,
|
|
1076
1071
|
optionals
|
|
1077
|
-
}) as UAYArrayItemEx<DataType.Float|DataType.Double>;
|
|
1072
|
+
}) as UAYArrayItemEx<DataType.Float | DataType.Double>;
|
|
1078
1073
|
|
|
1079
1074
|
function coerceAxisScale(value: any) {
|
|
1080
1075
|
const ret = AxisScaleEnumeration[value];
|
|
@@ -1091,7 +1086,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1091
1086
|
})
|
|
1092
1087
|
);
|
|
1093
1088
|
|
|
1094
|
-
if (Object.prototype.hasOwnProperty.call(options,"instrumentRange") && variable.instrumentRange) {
|
|
1089
|
+
if (Object.prototype.hasOwnProperty.call(options, "instrumentRange") && variable.instrumentRange) {
|
|
1095
1090
|
variable.instrumentRange.setValueFromSource(
|
|
1096
1091
|
new Variant({
|
|
1097
1092
|
dataType: DataType.ExtensionObject,
|
|
@@ -1145,9 +1140,9 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1145
1140
|
"expecting a valid parent object"
|
|
1146
1141
|
);
|
|
1147
1142
|
|
|
1148
|
-
assert(Object.prototype.hasOwnProperty.call(options,"browseName"));
|
|
1149
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"inputArguments") || Array.isArray(options.inputArguments));
|
|
1150
|
-
assert(!Object.prototype.hasOwnProperty.call(options,"outputArguments") || Array.isArray(options.outputArguments));
|
|
1143
|
+
assert(Object.prototype.hasOwnProperty.call(options, "browseName"));
|
|
1144
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "inputArguments") || Array.isArray(options.inputArguments));
|
|
1145
|
+
assert(!Object.prototype.hasOwnProperty.call(options, "outputArguments") || Array.isArray(options.outputArguments));
|
|
1151
1146
|
|
|
1152
1147
|
options.componentOf = parentObject;
|
|
1153
1148
|
|
|
@@ -1287,12 +1282,11 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1287
1282
|
// When it is used to define the string representation of an Enumeration DataType, the value range
|
|
1288
1283
|
// is limited to Int32, because the Enumeration DataType is a subtype of Int32. Part 8 specifies
|
|
1289
1284
|
// other usages where the actual value might be between 8 and 64 Bit.
|
|
1290
|
-
const self = this;
|
|
1291
1285
|
|
|
1292
1286
|
assert(typeof options.browseName === "string");
|
|
1293
1287
|
assert(Array.isArray(options.enumeration));
|
|
1294
1288
|
|
|
1295
|
-
const addressSpace =
|
|
1289
|
+
const addressSpace = this.addressSpace;
|
|
1296
1290
|
let definition;
|
|
1297
1291
|
const enumerationType = addressSpace.findDataType("Enumeration")!;
|
|
1298
1292
|
assert(enumerationType.nodeId instanceof NodeId);
|
|
@@ -1308,7 +1302,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1308
1302
|
references
|
|
1309
1303
|
};
|
|
1310
1304
|
|
|
1311
|
-
const enumType =
|
|
1305
|
+
const enumType = this.internalCreateNode(opts) as UADataType; // as UAEnumeration;
|
|
1312
1306
|
|
|
1313
1307
|
enumType.propagate_back_references();
|
|
1314
1308
|
|
|
@@ -1323,7 +1317,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1323
1317
|
value: definition
|
|
1324
1318
|
});
|
|
1325
1319
|
|
|
1326
|
-
const enumStrings =
|
|
1320
|
+
const enumStrings = this.addVariable({
|
|
1327
1321
|
browseName: { name: "EnumStrings", namespaceIndex: 0 },
|
|
1328
1322
|
dataType: "LocalizedText",
|
|
1329
1323
|
description: "",
|
|
@@ -1371,7 +1365,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1371
1365
|
value: definition
|
|
1372
1366
|
});
|
|
1373
1367
|
|
|
1374
|
-
const enumValues =
|
|
1368
|
+
const enumValues = this.addVariable({
|
|
1375
1369
|
browseName: { name: "EnumValues", namespaceIndex: 0 },
|
|
1376
1370
|
dataType: "EnumValueType",
|
|
1377
1371
|
description: undefined,
|
|
@@ -1439,8 +1433,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1439
1433
|
stateNumber: number,
|
|
1440
1434
|
isInitialState: boolean
|
|
1441
1435
|
): UAState | UAInitialState {
|
|
1442
|
-
const
|
|
1443
|
-
const addressSpace = namespace.addressSpace;
|
|
1436
|
+
const addressSpace = this.addressSpace;
|
|
1444
1437
|
|
|
1445
1438
|
isInitialState = !!isInitialState;
|
|
1446
1439
|
|
|
@@ -1481,8 +1474,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1481
1474
|
toState: string,
|
|
1482
1475
|
transitionNumber: number
|
|
1483
1476
|
): UATransitionEx {
|
|
1484
|
-
const
|
|
1485
|
-
const addressSpace = namespace.addressSpace;
|
|
1477
|
+
const addressSpace = this.addressSpace;
|
|
1486
1478
|
|
|
1487
1479
|
const _component = component as UAStateMachineImpl;
|
|
1488
1480
|
|
|
@@ -1541,8 +1533,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1541
1533
|
* @return {UATwoStateVariable}
|
|
1542
1534
|
*/
|
|
1543
1535
|
public addTwoStateVariable(options: AddTwoStateVariableOptions): UATwoStateVariableEx {
|
|
1544
|
-
|
|
1545
|
-
return _addTwoStateVariable(namespace, options);
|
|
1536
|
+
return _addTwoStateVariable(this, options);
|
|
1546
1537
|
}
|
|
1547
1538
|
|
|
1548
1539
|
/**
|
|
@@ -1552,8 +1543,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1552
1543
|
* @return {UATwoStateDiscrete}
|
|
1553
1544
|
*/
|
|
1554
1545
|
public addTwoStateDiscrete(options: AddTwoStateDiscreteOptions): UATwoStateDiscreteEx {
|
|
1555
|
-
|
|
1556
|
-
return _addTwoStateDiscrete(namespace, options);
|
|
1546
|
+
return _addTwoStateDiscrete(this, options);
|
|
1557
1547
|
}
|
|
1558
1548
|
|
|
1559
1549
|
// --- Alarms & Conditions -------------------------------------------------
|
|
@@ -1566,7 +1556,6 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1566
1556
|
options: any,
|
|
1567
1557
|
data: any
|
|
1568
1558
|
): UAAcknowledgeableConditionImpl {
|
|
1569
|
-
// @ts-ignore
|
|
1570
1559
|
return UAAcknowledgeableConditionImpl.instantiate(this, conditionTypeId, options, data);
|
|
1571
1560
|
}
|
|
1572
1561
|
|
|
@@ -1639,7 +1628,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1639
1628
|
throw new Error("node must belongs to this namespace");
|
|
1640
1629
|
}
|
|
1641
1630
|
assert(node.nodeId.namespace === this.index, "node must belongs to this namespace");
|
|
1642
|
-
assert(Object.prototype.hasOwnProperty.call(node,"browseName"), "Node must have a browseName");
|
|
1631
|
+
assert(Object.prototype.hasOwnProperty.call(node, "browseName"), "Node must have a browseName");
|
|
1643
1632
|
// assert(node.browseName.namespaceIndex === this.index,"browseName must belongs to this namespace");
|
|
1644
1633
|
|
|
1645
1634
|
const hashKey = _makeHashKey(node.nodeId);
|
|
@@ -1820,7 +1809,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1820
1809
|
assert(!options.nodeClass);
|
|
1821
1810
|
assert(options.browseName);
|
|
1822
1811
|
assert(typeof options.browseName === "string");
|
|
1823
|
-
if (Object.prototype.hasOwnProperty.call(options,"references")) {
|
|
1812
|
+
if (Object.prototype.hasOwnProperty.call(options, "references")) {
|
|
1824
1813
|
throw new Error("options.references should not be provided, use options.subtypeOf instead");
|
|
1825
1814
|
}
|
|
1826
1815
|
const references: UAReference[] = [];
|
|
@@ -1828,7 +1817,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1828
1817
|
function process_subtypeOf_options(this: UANamespace, options2: any, references1: AddReferenceOpts[]) {
|
|
1829
1818
|
// check common misspelling mistake
|
|
1830
1819
|
assert(!options2.subTypeOf, "misspell error : it should be 'subtypeOf' instead");
|
|
1831
|
-
if (
|
|
1820
|
+
if (Object.prototype.hasOwnProperty.call(options2, "hasTypeDefinition")) {
|
|
1832
1821
|
throw new Error("hasTypeDefinition option is invalid. Do you mean typeDefinition instead ?");
|
|
1833
1822
|
}
|
|
1834
1823
|
assert(!options2.typeDefinition, " do you mean subtypeOf ?");
|
|
@@ -1931,15 +1920,15 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1931
1920
|
}
|
|
1932
1921
|
const baseDataVariableTypeId = baseDataVariableType.nodeId;
|
|
1933
1922
|
|
|
1934
|
-
assert(Object.prototype.hasOwnProperty.call(options,"browseName"), "options.browseName must be provided");
|
|
1935
|
-
assert(Object.prototype.hasOwnProperty.call(options,"dataType"), "options.dataType must be provided");
|
|
1923
|
+
assert(Object.prototype.hasOwnProperty.call(options, "browseName"), "options.browseName must be provided");
|
|
1924
|
+
assert(Object.prototype.hasOwnProperty.call(options, "dataType"), "options.dataType must be provided");
|
|
1936
1925
|
|
|
1937
1926
|
options.historizing = !!options.historizing;
|
|
1938
1927
|
|
|
1939
1928
|
// xx assert(this.FolderTypeId && this.BaseObjectTypeId); // is default address space generated.?
|
|
1940
1929
|
|
|
1941
1930
|
// istanbul ignore next
|
|
1942
|
-
if (Object.prototype.hasOwnProperty.call(options,"hasTypeDefinition")) {
|
|
1931
|
+
if (Object.prototype.hasOwnProperty.call(options, "hasTypeDefinition")) {
|
|
1943
1932
|
throw new Error("hasTypeDefinition option is invalid. Do you mean typeDefinition instead ?");
|
|
1944
1933
|
}
|
|
1945
1934
|
// ------------------------------------------ TypeDefinition
|
|
@@ -2134,9 +2123,9 @@ export function _handle_hierarchy_parent(addressSpace: AddressSpacePrivate, refe
|
|
|
2134
2123
|
}
|
|
2135
2124
|
|
|
2136
2125
|
function _copy_reference(reference: UAReference): AddReferenceOpts {
|
|
2137
|
-
assert(Object.prototype.hasOwnProperty.call(reference,"referenceType"));
|
|
2138
|
-
assert(Object.prototype.hasOwnProperty.call(reference,"isForward"));
|
|
2139
|
-
assert(Object.prototype.hasOwnProperty.call(reference,"nodeId"));
|
|
2126
|
+
assert(Object.prototype.hasOwnProperty.call(reference, "referenceType"));
|
|
2127
|
+
assert(Object.prototype.hasOwnProperty.call(reference, "isForward"));
|
|
2128
|
+
assert(Object.prototype.hasOwnProperty.call(reference, "nodeId"));
|
|
2140
2129
|
assert(reference.nodeId instanceof NodeId);
|
|
2141
2130
|
return {
|
|
2142
2131
|
isForward: reference.isForward,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_condition_base_i.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/ua_condition_base_i.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_discrete_item.js","sourceRoot":"","sources":["../../../../source/interfaces/data_access/ua_discrete_item.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-address-space
|
|
3
|
-
*/
|
|
4
|
-
import { LocalizedText } from "node-opcua-data-model";
|
|
5
|
-
import { DataType } from "node-opcua-variant";
|
|
6
|
-
import { Property } from "../../address_space_ts";
|
|
7
|
-
import { UADiscreteItem } from "./ua_discrete_item";
|
|
8
|
-
/**
|
|
9
|
-
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.3
|
|
10
|
-
*/
|
|
11
|
-
export interface UAMultiStateDiscrete extends UADiscreteItem {
|
|
12
|
-
/**
|
|
13
|
-
* The EnumStrings Property only applies for Enumeration DataTypes.
|
|
14
|
-
* It shall not be applied for other DataTypes. If the EnumValues
|
|
15
|
-
* Property is provided, the EnumStrings Property shall not be provided.
|
|
16
|
-
* Each entry of the array of LocalizedText in this Property represents
|
|
17
|
-
* the human-readable representation of an enumerated value. The
|
|
18
|
-
* Integer representation of the enumeration value points to a position of the array.
|
|
19
|
-
*/
|
|
20
|
-
enumStrings: Property<LocalizedText[], DataType.LocalizedText>;
|
|
21
|
-
getValue(): number;
|
|
22
|
-
getValueAsString(): string;
|
|
23
|
-
getIndex(value: string): number;
|
|
24
|
-
setValue(value: string | number): void;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_multistate_discrete.js","sourceRoot":"","sources":["../../../../source/interfaces/data_access/ua_multistate_discrete.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-address-space
|
|
3
|
-
*/
|
|
4
|
-
import { Int64 } from "node-opcua-basic-types";
|
|
5
|
-
import { LocalizedText } from "node-opcua-data-model";
|
|
6
|
-
import { EnumValueType } from "node-opcua-types";
|
|
7
|
-
import { DataType } from "node-opcua-variant";
|
|
8
|
-
import { Property } from "../../address_space_ts";
|
|
9
|
-
import { UADiscreteItem } from "./ua_discrete_item";
|
|
10
|
-
/**
|
|
11
|
-
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.4
|
|
12
|
-
*/
|
|
13
|
-
export interface UAMultiStateValueDiscrete extends UADiscreteItem {
|
|
14
|
-
/**
|
|
15
|
-
* EnumValues is an array of EnumValueType. Each entry of the array represents one enumeration
|
|
16
|
-
* value with its integer notation, a human-readable representation, and help information.
|
|
17
|
-
* This represents enumerations with integers that are not zero-based or have gaps (e.g. 1, 2, 4, 8, 16).
|
|
18
|
-
* See OPC 10000-3 for the definition of this type. MultiStateValueDiscrete Variables expose the
|
|
19
|
-
* current integer notation in their Value Attribute. Clients will often read the EnumValues
|
|
20
|
-
* Property in advance and cache it to lookup a name or help whenever they receive the numeric representation.
|
|
21
|
-
*/
|
|
22
|
-
enumValues: Property<EnumValueType[], DataType.ExtensionObject>;
|
|
23
|
-
valueAsText: Property<LocalizedText, DataType.LocalizedText>;
|
|
24
|
-
getValueAsString(): string;
|
|
25
|
-
getValueAsNumber(): number;
|
|
26
|
-
setValue(value: string | number | Int64): void;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_multistate_value_discrete.js","sourceRoot":"","sources":["../../../../source/interfaces/data_access/ua_multistate_value_discrete.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-address-space
|
|
3
|
-
*/
|
|
4
|
-
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
|
|
5
|
-
import { DataType } from "node-opcua-variant";
|
|
6
|
-
import { UAVariableT } from "../..";
|
|
7
|
-
import { UADiscreteItem } from "./ua_discrete_item";
|
|
8
|
-
/**
|
|
9
|
-
* @see https://reference.opcfoundation.org/v104/Core/VariableTypes/TwoStateDiscreteType/
|
|
10
|
-
*/
|
|
11
|
-
export interface UATwoStateDiscrete extends UADiscreteItem {
|
|
12
|
-
falseState: UAVariableT<LocalizedText, DataType.LocalizedText>;
|
|
13
|
-
trueState: UAVariableT<LocalizedText, DataType.LocalizedText>;
|
|
14
|
-
getValue(): boolean;
|
|
15
|
-
getValueAsString(): string;
|
|
16
|
-
setValue(value: boolean | LocalizedTextLike): void;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_two_state_discrete.js","sourceRoot":"","sources":["../../../../source/interfaces/data_access/ua_two_state_discrete.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ua_y_array_item.js","sourceRoot":"","sources":["../../../../source/interfaces/data_access/ua_y_array_item.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module node-opcua-address-space
|
|
3
|
-
*/
|
|
4
|
-
import { InstantiateObjectOptions } from "../../address_space_ts";
|
|
5
|
-
import { StateMachine, StateMachineType } from "./state_machine";
|
|
6
|
-
export interface ExclusiveLimitStateMachine extends StateMachine {
|
|
7
|
-
}
|
|
8
|
-
export interface ExclusiveLimitStateMachineType extends StateMachineType {
|
|
9
|
-
isAbstract: false;
|
|
10
|
-
instantiate(options: InstantiateObjectOptions): ExclusiveLimitStateMachine;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exclusive_limit_state_machine.js","sourceRoot":"","sources":["../../../../source/interfaces/state_machine/exclusive_limit_state_machine.ts"],"names":[],"mappings":""}
|