node-opcua-address-space 2.131.0 → 2.133.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/source/helpers/argument_list.d.ts +1 -6
- package/dist/source/helpers/argument_list.js +1 -6
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/dump_tools.d.ts +0 -4
- package/dist/source/helpers/dump_tools.js +0 -4
- package/dist/source/helpers/dump_tools.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +4 -53
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -1
- package/dist/source/loader/generateAddressSpaceRaw.js +1 -1
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js +0 -3
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/session_context.d.ts +0 -4
- package/dist/source/session_context.js +0 -4
- package/dist/source/session_context.js.map +1 -1
- package/dist/src/address_space.d.ts +0 -27
- package/dist/src/address_space.js +0 -29
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js +14 -13
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +2 -10
- package/dist/src/alarms_and_conditions/condition_info_impl.js +2 -10
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +132 -77
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +121 -128
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -10
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +1 -10
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +3 -15
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +3 -15
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +1 -7
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +1 -7
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +4 -4
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +0 -28
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +2 -33
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +0 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +0 -28
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +0 -28
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +0 -3
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +0 -3
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/base_node_impl.d.ts +2 -6
- package/dist/src/base_node_impl.js +3 -7
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.d.ts +1 -1
- package/dist/src/base_node_private.js +1 -1
- package/dist/src/event_data.d.ts +0 -3
- package/dist/src/event_data.js +0 -3
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.d.ts +1 -1
- package/dist/src/extension_object_array_node.js +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +0 -5
- package/dist/src/historical_access/address_space_historical_data_node.js +0 -5
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +21 -28
- package/dist/src/namespace_impl.js +22 -29
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/reference_impl.d.ts +1 -1
- package/dist/src/reference_impl.js +1 -1
- package/dist/src/state_machine/finite_state_machine.d.ts +0 -5
- package/dist/src/state_machine/finite_state_machine.js +0 -8
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +7 -7
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.d.ts +0 -8
- package/dist/src/state_machine/ua_two_state_variable.js +0 -8
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +1 -1
- package/dist/src/ua_object_type_impl.js +1 -1
- package/dist/src/ua_variable_impl.d.ts +4 -4
- package/dist/src/ua_variable_impl.js +3 -3
- package/dist/src/ua_variable_impl_ext_obj.js +0 -2
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.js +1 -1
- package/dist/tsconfig_common.tsbuildinfo +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -1
- package/distHelpers/assertHasMatchingReference.js +1 -1
- package/package.json +36 -36
- package/source/helpers/argument_list.ts +1 -6
- package/source/helpers/dump_tools.ts +0 -4
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +4 -53
- package/source/interfaces/state_machine/ua_shelved_state_machine_ex.ts +1 -1
- package/source/loader/generateAddressSpaceRaw.ts +2 -2
- package/source/loader/load_nodeset2.ts +0 -3
- package/source/session_context.ts +0 -4
- package/src/address_space.ts +0 -29
- package/src/alarms_and_conditions/condition.ts +15 -14
- package/src/alarms_and_conditions/condition_info_impl.ts +2 -10
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +122 -126
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -10
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +3 -15
- package/src/alarms_and_conditions/ua_base_event_impl.ts +1 -7
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +5 -5
- package/src/alarms_and_conditions/ua_condition_impl.ts +3 -34
- package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +0 -1
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +0 -28
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +0 -3
- package/src/base_node_impl.ts +3 -7
- package/src/base_node_private.ts +1 -1
- package/src/event_data.ts +2 -3
- package/src/extension_object_array_node.ts +1 -1
- package/src/historical_access/address_space_historical_data_node.ts +0 -5
- package/src/namespace_impl.ts +22 -29
- package/src/nodeset_tools/nodeset_to_xml.ts +5 -6
- package/src/reference_impl.ts +1 -1
- package/src/state_machine/finite_state_machine.ts +0 -8
- package/src/state_machine/ua_shelving_state_machine_ex.ts +8 -8
- package/src/state_machine/ua_two_state_variable.ts +0 -8
- package/src/ua_object_type_impl.ts +1 -1
- package/src/ua_variable_impl.ts +4 -4
- package/src/ua_variable_impl_ext_obj.ts +0 -2
- package/src/ua_variable_type_impl.ts +1 -1
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
QualifiedName
|
|
19
19
|
} from "node-opcua-data-model";
|
|
20
20
|
import { checkDebugFlag, make_debugLog, make_errorLog, make_warningLog } from "node-opcua-debug";
|
|
21
|
-
import {
|
|
21
|
+
import { getMinOPCUADate } from "node-opcua-basic-types";
|
|
22
22
|
import { coerceNodeId, makeNodeId, NodeId, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
23
23
|
import { CallbackT, StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
24
24
|
import { CallMethodResultOptions, TimeZoneDataType } from "node-opcua-types";
|
|
@@ -195,7 +195,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
195
195
|
private _branches: { [key: string]: ConditionSnapshot } = {};
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
* @method initialize
|
|
199
198
|
* @private
|
|
200
199
|
*/
|
|
201
200
|
public initialize(): void {
|
|
@@ -203,7 +202,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
/**
|
|
206
|
-
* @method post_initialize
|
|
207
205
|
* @private
|
|
208
206
|
*/
|
|
209
207
|
public post_initialize(): void {
|
|
@@ -236,8 +234,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
236
234
|
}
|
|
237
235
|
|
|
238
236
|
/**
|
|
239
|
-
* @method createBranch
|
|
240
|
-
* @return {ConditionSnapshot}
|
|
241
237
|
*/
|
|
242
238
|
public createBranch(): ConditionSnapshot {
|
|
243
239
|
const branchId = _create_new_branch_id();
|
|
@@ -247,8 +243,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
247
243
|
}
|
|
248
244
|
|
|
249
245
|
/**
|
|
250
|
-
* @method deleteBranch
|
|
251
|
-
* @param branch {ConditionSnapshot}
|
|
252
246
|
*/
|
|
253
247
|
public deleteBranch(branch: ConditionSnapshot): void {
|
|
254
248
|
const key = branch.getBranchId().toString();
|
|
@@ -259,16 +253,12 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
259
253
|
}
|
|
260
254
|
|
|
261
255
|
/**
|
|
262
|
-
* @method getEnabledState
|
|
263
|
-
* @return {Boolean}
|
|
264
256
|
*/
|
|
265
257
|
public getEnabledState(): boolean {
|
|
266
258
|
return this.enabledState.getValue();
|
|
267
259
|
}
|
|
268
260
|
|
|
269
261
|
/**
|
|
270
|
-
* @method getEnabledStateAsString
|
|
271
|
-
* @return {String}
|
|
272
262
|
*/
|
|
273
263
|
public getEnabledStateAsString(): string {
|
|
274
264
|
return this.enabledState.getValueAsString();
|
|
@@ -343,8 +333,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
343
333
|
|
|
344
334
|
/**
|
|
345
335
|
*
|
|
346
|
-
* @method setEnabledState
|
|
347
|
-
* @param requestedEnabledState {Boolean}
|
|
348
336
|
* @private
|
|
349
337
|
*/
|
|
350
338
|
public setEnabledState(requestedEnabledState: boolean, options?: ISetStateOptions): StatusCode {
|
|
@@ -352,24 +340,18 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
352
340
|
}
|
|
353
341
|
|
|
354
342
|
/**
|
|
355
|
-
* @method setReceiveTime
|
|
356
|
-
* @param time {Date}
|
|
357
343
|
*/
|
|
358
344
|
public setReceiveTime(time: Date): void {
|
|
359
345
|
return this._branch0.setReceiveTime(time);
|
|
360
346
|
}
|
|
361
347
|
|
|
362
348
|
/**
|
|
363
|
-
* @method setLocalTime (optional)
|
|
364
|
-
* @param time
|
|
365
349
|
*/
|
|
366
350
|
public setLocalTime(time: TimeZoneDataType): void {
|
|
367
351
|
return this._branch0.setLocalTime(time);
|
|
368
352
|
}
|
|
369
353
|
|
|
370
354
|
/**
|
|
371
|
-
* @method setTime
|
|
372
|
-
* @param time {Date}
|
|
373
355
|
*/
|
|
374
356
|
public setTime(time: Date): void {
|
|
375
357
|
return this._branch0.setTime(time);
|
|
@@ -395,8 +377,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
395
377
|
}
|
|
396
378
|
|
|
397
379
|
/**
|
|
398
|
-
* @method conditionOfNode
|
|
399
|
-
* @return {UAObject}
|
|
400
380
|
*/
|
|
401
381
|
public conditionOfNode(): UAObject | UAVariable | null {
|
|
402
382
|
const refs = this.findReferencesExAsObject("HasCondition", BrowseDirection.Inverse);
|
|
@@ -414,7 +394,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
414
394
|
}
|
|
415
395
|
|
|
416
396
|
/**
|
|
417
|
-
* @method raiseConditionEvent
|
|
418
397
|
* Raise a Instance Event
|
|
419
398
|
* (see also UAObject#raiseEvent to raise a transient event)
|
|
420
399
|
* @param branch the condition branch to raise
|
|
@@ -466,7 +445,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
466
445
|
|
|
467
446
|
/**
|
|
468
447
|
*
|
|
469
|
-
* @method raiseNewCondition
|
|
470
448
|
* @param conditionInfo {ConditionInfo}
|
|
471
449
|
*
|
|
472
450
|
*/
|
|
@@ -542,8 +520,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
542
520
|
}
|
|
543
521
|
|
|
544
522
|
/**
|
|
545
|
-
* @method currentBranch
|
|
546
|
-
* @return {ConditionSnapshot}
|
|
547
523
|
*/
|
|
548
524
|
public currentBranch(): ConditionSnapshot {
|
|
549
525
|
return this._branch0;
|
|
@@ -564,10 +540,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
564
540
|
// Acknowledgeable
|
|
565
541
|
// ------------------------------------------------------------------------------------
|
|
566
542
|
/**
|
|
567
|
-
* @method _raiseAuditConditionCommentEvent
|
|
568
|
-
* @param sourceName {string}
|
|
569
|
-
* @param conditionEventId {Buffer}
|
|
570
|
-
* @param comment {LocalizedText}
|
|
571
543
|
* @private
|
|
572
544
|
*/
|
|
573
545
|
public _raiseAuditConditionCommentEvent(sourceName: string, conditionEventId: Buffer, comment: LocalizedTextLike): void {
|
|
@@ -657,7 +629,6 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
657
629
|
/**
|
|
658
630
|
* instantiate a Condition.
|
|
659
631
|
* this will create the unique EventId and will set eventType
|
|
660
|
-
* @method instantiate
|
|
661
632
|
* @param namespace {INamespace}
|
|
662
633
|
* @param conditionTypeId {String|NodeId} the EventType to instantiate
|
|
663
634
|
* @param options {object}
|
|
@@ -997,8 +968,8 @@ function UACondition_instantiate(
|
|
|
997
968
|
);
|
|
998
969
|
branch0.setMessage("");
|
|
999
970
|
|
|
1000
|
-
branch0.setReceiveTime(
|
|
1001
|
-
branch0.setTime(
|
|
971
|
+
branch0.setReceiveTime(getMinOPCUADate());
|
|
972
|
+
branch0.setTime(getMinOPCUADate());
|
|
1002
973
|
|
|
1003
974
|
return conditionNode;
|
|
1004
975
|
}
|
|
@@ -1223,7 +1194,6 @@ function _install_condition_variable_type<T, DT extends DataType>(node: UACondit
|
|
|
1223
1194
|
}
|
|
1224
1195
|
|
|
1225
1196
|
/**
|
|
1226
|
-
* @method _getCompositeKey
|
|
1227
1197
|
* @param node {BaseNode}
|
|
1228
1198
|
* @param key {String}
|
|
1229
1199
|
* @return {BaseNode}
|
|
@@ -1249,7 +1219,6 @@ function _getCompositeKey(node: BaseNode, key: string): UAVariableImpl {
|
|
|
1249
1219
|
|
|
1250
1220
|
/**
|
|
1251
1221
|
* verify that the subscription id belongs to the session that make the call.
|
|
1252
|
-
* @method _check_subscription_id_is_valid
|
|
1253
1222
|
* @param subscriptionId {Number}
|
|
1254
1223
|
* @param context {Object}
|
|
1255
1224
|
* @private
|
|
@@ -19,7 +19,6 @@ export declare interface UAExclusiveLimitAlarmImpl extends UAExclusiveLimitAlarm
|
|
|
19
19
|
export class UAExclusiveLimitAlarmImpl extends UALimitAlarmImpl implements UAExclusiveLimitAlarmEx {
|
|
20
20
|
/***
|
|
21
21
|
*
|
|
22
|
-
* @method (static)instantiate
|
|
23
22
|
* @param namespace {INamespace}
|
|
24
23
|
* @param type
|
|
25
24
|
* @param options
|
|
@@ -38,18 +38,6 @@ export interface UALimitAlarmImpl extends UALimitAlarmEx {
|
|
|
38
38
|
}
|
|
39
39
|
export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAlarmEx {
|
|
40
40
|
/**
|
|
41
|
-
* @method (static)UALimitAlarm.instantiate
|
|
42
|
-
* @param namespace {INamespace}
|
|
43
|
-
* @param limitAlarmTypeId
|
|
44
|
-
* @param options
|
|
45
|
-
* @param options.inputNode
|
|
46
|
-
* @param options.optionals
|
|
47
|
-
* @param options.highHighLimit {Double}
|
|
48
|
-
* @param options.highLimit {Double}
|
|
49
|
-
* @param options.lowLimit {Double}
|
|
50
|
-
* @param options.lowLowLimit {Double}
|
|
51
|
-
* @param data
|
|
52
|
-
* @return {UALimitAlarm}
|
|
53
41
|
*/
|
|
54
42
|
public static instantiate(
|
|
55
43
|
namespace: NamespacePrivate,
|
|
@@ -155,8 +143,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
155
143
|
}
|
|
156
144
|
|
|
157
145
|
/**
|
|
158
|
-
* @method getHighHighLimit
|
|
159
|
-
* @return {Number}
|
|
160
146
|
*/
|
|
161
147
|
public getHighHighLimit(): number {
|
|
162
148
|
if (!this.highHighLimit) {
|
|
@@ -166,8 +152,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
166
152
|
}
|
|
167
153
|
|
|
168
154
|
/**
|
|
169
|
-
* @method getHighLimit
|
|
170
|
-
* @return {Number}
|
|
171
155
|
*/
|
|
172
156
|
public getHighLimit(): number {
|
|
173
157
|
if (!this.highLimit) {
|
|
@@ -177,8 +161,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
177
161
|
}
|
|
178
162
|
|
|
179
163
|
/**
|
|
180
|
-
* @method getLowLimit
|
|
181
|
-
* @return {Float}
|
|
182
164
|
*/
|
|
183
165
|
public getLowLimit(): number {
|
|
184
166
|
if (!this.lowLimit) {
|
|
@@ -188,8 +170,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
188
170
|
}
|
|
189
171
|
|
|
190
172
|
/**
|
|
191
|
-
* @method getLowLowLimit
|
|
192
|
-
* @return {Float}
|
|
193
173
|
*/
|
|
194
174
|
public getLowLowLimit(): number {
|
|
195
175
|
if (!this.lowLowLimit) {
|
|
@@ -199,8 +179,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
199
179
|
}
|
|
200
180
|
|
|
201
181
|
/**
|
|
202
|
-
* @method setHighHighLimit
|
|
203
|
-
* @param value {Float}
|
|
204
182
|
*/
|
|
205
183
|
public setHighHighLimit(value: number): void {
|
|
206
184
|
if (!this.highHighLimit) {
|
|
@@ -210,8 +188,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
210
188
|
}
|
|
211
189
|
|
|
212
190
|
/**
|
|
213
|
-
* @method setHighLimit
|
|
214
|
-
* @param value {Float}
|
|
215
191
|
*/
|
|
216
192
|
public setHighLimit(value: number): void {
|
|
217
193
|
if (!this.highLimit) {
|
|
@@ -221,8 +197,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
221
197
|
}
|
|
222
198
|
|
|
223
199
|
/**
|
|
224
|
-
* @method setLowLimit
|
|
225
|
-
* @param value {Float}
|
|
226
200
|
*/
|
|
227
201
|
public setLowLimit(value: number): void {
|
|
228
202
|
if (!this.lowLimit) {
|
|
@@ -232,8 +206,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
232
206
|
}
|
|
233
207
|
|
|
234
208
|
/**
|
|
235
|
-
* @method setLowLowLimit
|
|
236
|
-
* @param value {Float}
|
|
237
209
|
*/
|
|
238
210
|
public setLowLowLimit(value: number): void {
|
|
239
211
|
if (!this.lowLowLimit) {
|
|
@@ -146,7 +146,6 @@ export class UAOffNormalAlarmImpl extends UADiscreteAlarmImpl implements UAOffNo
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* @method getNormalStateValue
|
|
150
149
|
*/
|
|
151
150
|
public getNormalStateValue(): NodeId | null {
|
|
152
151
|
const normalStateNode = this.getNormalStateNode();
|
|
@@ -157,8 +156,6 @@ export class UAOffNormalAlarmImpl extends UADiscreteAlarmImpl implements UAOffNo
|
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
/**
|
|
160
|
-
* @method setNormalStateValue
|
|
161
|
-
* @param value
|
|
162
159
|
*/
|
|
163
160
|
public setNormalStateValue(value: NodeIdLike): void {
|
|
164
161
|
const normalStateNode = this.getNormalStateNode();
|
package/src/base_node_impl.ts
CHANGED
|
@@ -598,7 +598,6 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
600
|
* returns the list of methods that this object provides
|
|
601
|
-
* @method getMethods
|
|
602
601
|
* @return an array with Method objects.
|
|
603
602
|
*
|
|
604
603
|
*
|
|
@@ -746,7 +745,6 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
746
745
|
}
|
|
747
746
|
|
|
748
747
|
/**
|
|
749
|
-
* @method browseNodeByTargetName
|
|
750
748
|
*
|
|
751
749
|
* @param relativePathElement
|
|
752
750
|
* @param isLast
|
|
@@ -904,7 +902,6 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
904
902
|
}
|
|
905
903
|
|
|
906
904
|
/**
|
|
907
|
-
* @method addReference
|
|
908
905
|
* @param reference
|
|
909
906
|
* @param reference.referenceType {String}
|
|
910
907
|
* @param [reference.isForward = true] {Boolean}
|
|
@@ -1073,7 +1070,6 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
1073
1070
|
}
|
|
1074
1071
|
|
|
1075
1072
|
/**
|
|
1076
|
-
* @method getFalseSubStates
|
|
1077
1073
|
* @return {UAStateVariable[]} return an array with the SubStates of this object.
|
|
1078
1074
|
*/
|
|
1079
1075
|
public getFalseSubStates(): UAStateVariable<LocalizedText>[] {
|
|
@@ -1081,7 +1077,7 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
1081
1077
|
}
|
|
1082
1078
|
|
|
1083
1079
|
/**
|
|
1084
|
-
|
|
1080
|
+
|
|
1085
1081
|
* @return {UAStateVariable[]} return an array with the SubStates of this object.
|
|
1086
1082
|
*/
|
|
1087
1083
|
public getTrueSubStates(): UAStateVariable<LocalizedText>[] {
|
|
@@ -1152,7 +1148,7 @@ export class BaseNodeImpl extends EventEmitter implements BaseNode {
|
|
|
1152
1148
|
* the dispose method should be called when the node is no longer used, to release
|
|
1153
1149
|
* back pointer to the address space and clear caches.
|
|
1154
1150
|
*
|
|
1155
|
-
|
|
1151
|
+
|
|
1156
1152
|
*
|
|
1157
1153
|
*/
|
|
1158
1154
|
public dispose(): void {
|
|
@@ -1606,7 +1602,7 @@ function nodeid_is_nothing(nodeid: NodeId): boolean {
|
|
|
1606
1602
|
}
|
|
1607
1603
|
|
|
1608
1604
|
/**
|
|
1609
|
-
|
|
1605
|
+
|
|
1610
1606
|
* @param addressSpace {IAddressSpace}
|
|
1611
1607
|
* @param referenceTypeId {String|NodeId|null} : the referenceType either as a string or a nodeId
|
|
1612
1608
|
* @return {NodeId}
|
package/src/base_node_private.ts
CHANGED
package/src/event_data.ts
CHANGED
|
@@ -12,10 +12,9 @@ import { lowerFirstLetter } from "node-opcua-utils";
|
|
|
12
12
|
|
|
13
13
|
type NodeIdString = string;
|
|
14
14
|
type FullBrowsePath = string;
|
|
15
|
+
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
|
-
* @class EventData
|
|
17
|
-
* @param eventTypeNode {BaseNode}
|
|
18
|
-
* @constructor
|
|
19
18
|
*/
|
|
20
19
|
export class EventData implements IEventData {
|
|
21
20
|
public eventId: NodeId;
|
|
@@ -193,7 +193,7 @@ export function bindExtObjArrayNode<T extends ExtensionObject>(
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
|
|
196
|
+
|
|
197
197
|
* add a new element in a ExtensionObject Array variable
|
|
198
198
|
* @param options {Object} data used to construct the underlying ExtensionObject
|
|
199
199
|
* @param uaArrayVariableNode {UAVariable}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
|
-
* @class IAddressSpace
|
|
4
3
|
*/
|
|
5
4
|
// tslint:disable:no-console
|
|
6
5
|
|
|
@@ -684,10 +683,6 @@ function on_value_change(this: UAVariableImpl, newDataValue: DataValue): void {
|
|
|
684
683
|
}
|
|
685
684
|
|
|
686
685
|
/**
|
|
687
|
-
* @method installHistoricalDataNode
|
|
688
|
-
* @param node UAVariable
|
|
689
|
-
* @param [options] {Object}
|
|
690
|
-
* @param [options.maxOnlineValues = 1000]
|
|
691
686
|
*/
|
|
692
687
|
export function AddressSpace_installHistoricalDataNode(
|
|
693
688
|
this: IAddressSpace,
|
package/src/namespace_impl.ts
CHANGED
|
@@ -378,7 +378,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* find a ReferenceType by its inverse name.
|
|
381
|
-
|
|
381
|
+
|
|
382
382
|
* @param inverseName {String} the inverse name of the ReferenceType to find
|
|
383
383
|
* @return {ReferenceType}
|
|
384
384
|
*/
|
|
@@ -391,7 +391,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
*
|
|
394
|
-
|
|
394
|
+
|
|
395
395
|
* @param alias_name {String} the alias name
|
|
396
396
|
* @param nodeId {NodeId} NodeId must belong to this namespace
|
|
397
397
|
*/
|
|
@@ -408,7 +408,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
410
|
* add a new Object type to the address space
|
|
411
|
-
|
|
411
|
+
|
|
412
412
|
* @param options
|
|
413
413
|
* @param options.browseName {String} the object type name
|
|
414
414
|
* @param [options.displayName] {String|LocalizedText} the display name
|
|
@@ -432,7 +432,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
432
432
|
|
|
433
433
|
/**
|
|
434
434
|
* add a new Variable type to the address space
|
|
435
|
-
|
|
435
|
+
|
|
436
436
|
* @param options
|
|
437
437
|
* @param options.browseName {String} the object type name
|
|
438
438
|
* @param [options.displayName] {String|LocalizedText} the display name
|
|
@@ -528,7 +528,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
530
|
*
|
|
531
|
-
|
|
531
|
+
|
|
532
532
|
* @param parentFolder
|
|
533
533
|
* @param options {String|Object}
|
|
534
534
|
* @param options.browseName {String} the name of the folder
|
|
@@ -556,7 +556,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
|
-
|
|
559
|
+
|
|
560
560
|
* @param options
|
|
561
561
|
* @param options.isAbstract
|
|
562
562
|
* @param options.browseName
|
|
@@ -595,7 +595,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
|
-
|
|
598
|
+
|
|
599
599
|
*/
|
|
600
600
|
public createDataType(options: CreateDataTypeOptions): UADataType {
|
|
601
601
|
assert(Object.prototype.hasOwnProperty.call(options, "isAbstract"), "must provide isAbstract");
|
|
@@ -632,7 +632,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
|
-
|
|
635
|
+
|
|
636
636
|
* @param options
|
|
637
637
|
* @param options.nodeClass
|
|
638
638
|
* @param [options.nodeVersion {String} = "0" ] install nodeVersion
|
|
@@ -677,7 +677,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
677
677
|
/**
|
|
678
678
|
* remove the specified Node from the address space
|
|
679
679
|
*
|
|
680
|
-
|
|
680
|
+
|
|
681
681
|
* @param nodeOrNodeId
|
|
682
682
|
*
|
|
683
683
|
*
|
|
@@ -750,7 +750,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
/**
|
|
753
|
-
* @
|
|
753
|
+
* @internal
|
|
754
754
|
*/
|
|
755
755
|
public getStandardsNodeIds(): { referenceTypeIds: { [key: string]: string }; objectTypeIds: { [key: string]: string } } {
|
|
756
756
|
const standardNodeIds = {
|
|
@@ -770,7 +770,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
770
770
|
// - Events --------------------------------------------------------------------------------------
|
|
771
771
|
/**
|
|
772
772
|
* add a new event type to the address space
|
|
773
|
-
|
|
773
|
+
|
|
774
774
|
* @param options
|
|
775
775
|
* @param options.browseName {String} the eventType name
|
|
776
776
|
* @param [options.subtypeOf ="BaseEventType"]
|
|
@@ -800,7 +800,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
800
800
|
|
|
801
801
|
// ---------------------------------------------------------------------------------------------------
|
|
802
802
|
/**
|
|
803
|
-
|
|
803
|
+
|
|
804
804
|
* @param options
|
|
805
805
|
* @param options.browseName {String}
|
|
806
806
|
* @param options.definition {String}
|
|
@@ -832,7 +832,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
832
832
|
|
|
833
833
|
/**
|
|
834
834
|
*
|
|
835
|
-
|
|
835
|
+
|
|
836
836
|
*
|
|
837
837
|
* AnalogDataItem DataItems that represent continuously-variable physical quantities ( e.g., length, temperature),
|
|
838
838
|
* in contrast to the digital representation of data in discrete items
|
|
@@ -961,7 +961,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
961
961
|
|
|
962
962
|
/**
|
|
963
963
|
*
|
|
964
|
-
|
|
964
|
+
|
|
965
965
|
* @param options {Object}
|
|
966
966
|
* @param options.browseName {String}
|
|
967
967
|
* @param [options.nodeId {NodeId}]
|
|
@@ -1012,7 +1012,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1012
1012
|
// -
|
|
1013
1013
|
/**
|
|
1014
1014
|
*
|
|
1015
|
-
|
|
1015
|
+
|
|
1016
1016
|
* @param options
|
|
1017
1017
|
* @param options.componentOf {NodeId}
|
|
1018
1018
|
* @param options.browseName {String}
|
|
@@ -1123,7 +1123,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1123
1123
|
|
|
1124
1124
|
// - Methods ----------------------------------------------------------------------------------------------------
|
|
1125
1125
|
/**
|
|
1126
|
-
|
|
1126
|
+
|
|
1127
1127
|
* @param parentObject {Object}
|
|
1128
1128
|
* @param options {Object}
|
|
1129
1129
|
* @param [options.nodeId=null] {NodeId} the object nodeid.
|
|
@@ -1218,7 +1218,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1218
1218
|
|
|
1219
1219
|
/**
|
|
1220
1220
|
*
|
|
1221
|
-
|
|
1221
|
+
|
|
1222
1222
|
* @param options
|
|
1223
1223
|
* @param options.browseName {String}
|
|
1224
1224
|
* @param options.enumeration {Array}
|
|
@@ -1422,14 +1422,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1422
1422
|
// State and Transition
|
|
1423
1423
|
// -------------------------------------------------------------------------
|
|
1424
1424
|
/**
|
|
1425
|
-
|
|
1426
|
-
* @method addState
|
|
1427
|
-
* @param component
|
|
1428
|
-
* @param stateName {string}
|
|
1429
|
-
* @param stateNumber {number}
|
|
1430
|
-
* @param isInitialState {boolean}
|
|
1431
|
-
* @return {UAObject} {StateType|InitialStateType}
|
|
1432
|
-
*/
|
|
1425
|
+
*/
|
|
1433
1426
|
public addState(
|
|
1434
1427
|
component: UAStateMachineEx,
|
|
1435
1428
|
stateName: QualifiedNameLike,
|
|
@@ -1533,7 +1526,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1533
1526
|
}
|
|
1534
1527
|
|
|
1535
1528
|
/**
|
|
1536
|
-
|
|
1529
|
+
|
|
1537
1530
|
*
|
|
1538
1531
|
* @return {UATwoStateVariable}
|
|
1539
1532
|
*/
|
|
@@ -1542,7 +1535,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1542
1535
|
}
|
|
1543
1536
|
|
|
1544
1537
|
/**
|
|
1545
|
-
|
|
1538
|
+
|
|
1546
1539
|
*
|
|
1547
1540
|
* Add a TwoStateDiscrete Variable
|
|
1548
1541
|
* @return {UATwoStateDiscrete}
|
|
@@ -1721,7 +1714,7 @@ export class NamespaceImpl implements NamespacePrivate {
|
|
|
1721
1714
|
}
|
|
1722
1715
|
|
|
1723
1716
|
/**
|
|
1724
|
-
|
|
1717
|
+
|
|
1725
1718
|
* @internal
|
|
1726
1719
|
*/
|
|
1727
1720
|
public internalCreateNode(options: CreateNodeOptions): BaseNode {
|
|
@@ -2089,7 +2082,7 @@ const _constructors_map: any = {
|
|
|
2089
2082
|
};
|
|
2090
2083
|
|
|
2091
2084
|
/**
|
|
2092
|
-
|
|
2085
|
+
|
|
2093
2086
|
* convert a 'string' , NodeId or Object into a valid and existing object
|
|
2094
2087
|
* @param addressSpace {IAddressSpace}
|
|
2095
2088
|
* @param value
|
|
@@ -17,13 +17,12 @@ import {
|
|
|
17
17
|
makeAccessLevelFlag,
|
|
18
18
|
QualifiedName
|
|
19
19
|
} from "node-opcua-data-model";
|
|
20
|
-
import {
|
|
20
|
+
import { NodeId, NodeIdType, resolveNodeId } from "node-opcua-nodeid";
|
|
21
21
|
import { lowerFirstLetter, isNullOrUndefined } from "node-opcua-utils";
|
|
22
22
|
import { Variant, VariantArrayType, DataType } from "node-opcua-variant";
|
|
23
23
|
import {
|
|
24
24
|
IAddressSpace,
|
|
25
25
|
BaseNode,
|
|
26
|
-
INamespace,
|
|
27
26
|
UADataType,
|
|
28
27
|
UAMethod,
|
|
29
28
|
UAObject,
|
|
@@ -33,10 +32,10 @@ import {
|
|
|
33
32
|
UAVariableType,
|
|
34
33
|
UAView
|
|
35
34
|
} from "node-opcua-address-space-base";
|
|
36
|
-
import { AttributeIds, Int64,
|
|
35
|
+
import { AttributeIds, Int64, isMinDate, StatusCode } from "node-opcua-basic-types";
|
|
37
36
|
import { BrowseDescription, EnumDefinition, StructureDefinition, StructureType } from "node-opcua-types";
|
|
38
37
|
|
|
39
|
-
import {
|
|
38
|
+
import { XmlWriter } from "../../source/xml_writer";
|
|
40
39
|
import { ReferenceImpl } from "../reference_impl";
|
|
41
40
|
import { BaseNodeImpl, getReferenceType } from "../base_node_impl";
|
|
42
41
|
import { UAReferenceTypeImpl } from "../ua_reference_type_impl";
|
|
@@ -50,7 +49,7 @@ import { UAVariableTypeImpl } from "../ua_variable_type_impl";
|
|
|
50
49
|
import { SessionContext } from "../index_current";
|
|
51
50
|
import { UAViewImpl } from "../ua_view_impl";
|
|
52
51
|
|
|
53
|
-
import { DefinitionMap2
|
|
52
|
+
import { DefinitionMap2 } from "../../source/loader/make_xml_extension_object_parser";
|
|
54
53
|
import { makeDefinitionMap } from "../../source/loader/decode_xml_extension_object";
|
|
55
54
|
import {
|
|
56
55
|
_constructNamespaceTranslationTable,
|
|
@@ -558,7 +557,7 @@ function _isDefaultValue(value: Variant): boolean {
|
|
|
558
557
|
}
|
|
559
558
|
break;
|
|
560
559
|
case DataType.DateTime:
|
|
561
|
-
if (!value.value || value.value
|
|
560
|
+
if (!value.value || isMinDate(value.value)) {
|
|
562
561
|
return true;
|
|
563
562
|
}
|
|
564
563
|
break;
|
package/src/reference_impl.ts
CHANGED
|
@@ -128,7 +128,7 @@ export class ReferenceImpl implements UAReference {
|
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* turn reference into a arrow : ---- ReferenceType --> [NodeId]
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
* @return {String}
|
|
133
133
|
*/
|
|
134
134
|
public toString(options?: { addressSpace?: any }): string {
|
|
@@ -133,9 +133,6 @@ export function getFiniteStateMachineTypeStateByName(uaFiniteStateMachineType: U
|
|
|
133
133
|
/*
|
|
134
134
|
*
|
|
135
135
|
* @class StateMachine
|
|
136
|
-
* @constructor
|
|
137
|
-
* @extends UAObject
|
|
138
|
-
*
|
|
139
136
|
*
|
|
140
137
|
*/
|
|
141
138
|
export class UAStateMachineImpl extends UAObjectImpl implements UAStateMachineEx {
|
|
@@ -149,7 +146,6 @@ export class UAStateMachineImpl extends UAObjectImpl implements UAStateMachineEx
|
|
|
149
146
|
}
|
|
150
147
|
|
|
151
148
|
/**
|
|
152
|
-
* @method getStateByName
|
|
153
149
|
* @param name the name of the state to get
|
|
154
150
|
* @return the state with the given name
|
|
155
151
|
*/
|
|
@@ -202,9 +198,6 @@ export class UAStateMachineImpl extends UAObjectImpl implements UAStateMachineEx
|
|
|
202
198
|
}
|
|
203
199
|
|
|
204
200
|
/**
|
|
205
|
-
* @method isValidTransition
|
|
206
|
-
* @param toStateNode
|
|
207
|
-
* @return {boolean}
|
|
208
201
|
*/
|
|
209
202
|
public isValidTransition(toStateNode: UAState | string, predicate?: TransitionSelector): boolean {
|
|
210
203
|
// is it legal to go from state currentState to toStateNode;
|
|
@@ -308,7 +301,6 @@ export class UAStateMachineImpl extends UAObjectImpl implements UAStateMachineEx
|
|
|
308
301
|
}
|
|
309
302
|
|
|
310
303
|
/**
|
|
311
|
-
* @method setState
|
|
312
304
|
*/
|
|
313
305
|
public setState(toStateNode: string | UAState | null, predicate?: TransitionSelector): void {
|
|
314
306
|
if (!toStateNode) {
|