node-opcua-address-space 2.73.0 → 2.75.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/LICENSE +3 -1
- package/dist/source/helpers/argument_list.d.ts +1 -2
- package/dist/source/helpers/argument_list.js +2 -29
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/multiform_func.js +4 -2
- package/dist/source/helpers/multiform_func.js.map +1 -1
- package/dist/source/index.d.ts +0 -2
- package/dist/source/index.js +1 -5
- package/dist/source/index.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +5 -11
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js +0 -7
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +4 -6
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +16 -1
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +1 -1
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +2 -4
- package/dist/source/namespace_alarm_and_condition.d.ts +19 -11
- package/dist/src/address_space.js +17 -12
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +3 -12
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +84 -93
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +3 -2
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +27 -12
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/src/alarms_and_conditions/index.d.ts +0 -2
- package/dist/src/alarms_and_conditions/index.js +0 -2
- package/dist/src/alarms_and_conditions/index.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +5 -5
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +4 -6
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +13 -13
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +15 -15
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +3 -3
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +18 -13
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/event_data.d.ts +22 -17
- package/dist/src/event_data.js +33 -64
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/index_current.d.ts +0 -1
- package/dist/src/index_current.js +0 -1
- package/dist/src/index_current.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +14 -11
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +16 -4
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.js +1 -1
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/ua_object_impl.js +0 -1
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +1 -1
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.js +2 -1
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/package.json +38 -38
- package/source/helpers/argument_list.ts +4 -36
- package/source/helpers/multiform_func.ts +5 -3
- package/source/index.ts +0 -2
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +12 -30
- package/source/interfaces/alarms_and_conditions/deviation_stuff.ts +8 -6
- package/source/interfaces/alarms_and_conditions/install_setpoint_options.ts +9 -0
- package/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.ts +4 -0
- package/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.ts +4 -0
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.ts +4 -0
- package/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.ts +16 -1
- package/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.ts +1 -0
- package/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.ts +1 -2
- package/source/namespace_alarm_and_condition.ts +48 -23
- package/src/address_space.ts +22 -16
- package/src/alarms_and_conditions/condition.ts +1 -1
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +95 -102
- package/src/alarms_and_conditions/deviation_alarm_helper.ts +33 -18
- package/src/alarms_and_conditions/index.ts +0 -2
- package/src/alarms_and_conditions/ua_condition_impl.ts +5 -5
- package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +5 -6
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +6 -8
- package/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +5 -3
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +18 -16
- package/src/event_data.ts +47 -77
- package/src/index_current.ts +0 -1
- package/src/namespace_impl.ts +47 -26
- package/src/nodeset_tools/nodeset_to_xml.ts +18 -6
- package/src/state_machine/ua_two_state_variable.ts +1 -1
- package/src/ua_object_impl.ts +1 -2
- package/src/ua_variable_impl.ts +3 -11
- package/test_helpers/alarms_and_conditions_demo.ts +4 -1
- package/test_helpers/test_fixtures/variabletype_with_value.xml +10 -10
- package/source/helpers/check_event_clause.ts +0 -55
- package/src/alarms_and_conditions/check_where_clause.ts +0 -147
- package/src/alarms_and_conditions/extract_event_fields.ts +0 -103
package/LICENSE
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2022 Sterfive SAS - 833264583 RCS ORLEANS - France (https://www.sterfive.com)
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2014-2022 Etienne Rossignon
|
|
4
6
|
|
|
5
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
8
|
this software and associated documentation files (the "Software"), to deal in
|
|
@@ -27,8 +27,7 @@ export declare function isArgumentValid(addressSpace: IAddressSpace, argDefiniti
|
|
|
27
27
|
* @param inputArguments
|
|
28
28
|
* @return statusCode,inputArgumentResults
|
|
29
29
|
*/
|
|
30
|
-
export declare function verifyArguments_ArgumentList(addressSpace: IAddressSpace, methodInputArguments: Argument[], inputArguments
|
|
30
|
+
export declare function verifyArguments_ArgumentList(addressSpace: IAddressSpace, methodInputArguments: Argument[], inputArguments: Variant[]): {
|
|
31
31
|
inputArgumentResults?: StatusCode[];
|
|
32
32
|
statusCode: StatusCode;
|
|
33
33
|
};
|
|
34
|
-
export declare function build_retrieveInputArgumentsDefinition(addressSpace: IAddressSpace): (objectId: NodeId, methodId: NodeId) => Argument[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.verifyArguments_ArgumentList = exports.isArgumentValid = exports.getMethodDeclaration_ArgumentList = exports.binaryStoreSize_ArgumentList = exports.decode_ArgumentList = exports.encode_ArgumentList = void 0;
|
|
4
4
|
/* eslint-disable complexity */
|
|
5
5
|
/**
|
|
6
6
|
* @module node-opcua-address-space
|
|
@@ -46,6 +46,7 @@ function encode_ArgumentList(definition, args, stream) {
|
|
|
46
46
|
}
|
|
47
47
|
exports.encode_ArgumentList = encode_ArgumentList;
|
|
48
48
|
function decode_ArgumentList(definition, stream) {
|
|
49
|
+
// istanbul ignore next
|
|
49
50
|
if (!Array.isArray(definition)) {
|
|
50
51
|
throw new Error("This BaseDataType cannot be decoded because it has no definition.\n" +
|
|
51
52
|
"Please construct a BaseDataType({definition : [{dataType: DataType.UInt32 }]});");
|
|
@@ -209,12 +210,6 @@ exports.isArgumentValid = isArgumentValid;
|
|
|
209
210
|
* @return statusCode,inputArgumentResults
|
|
210
211
|
*/
|
|
211
212
|
function verifyArguments_ArgumentList(addressSpace, methodInputArguments, inputArguments) {
|
|
212
|
-
if (!inputArguments) {
|
|
213
|
-
// it is possible to not provide inputArguments when method has no arguments
|
|
214
|
-
return methodInputArguments.length === 0
|
|
215
|
-
? { statusCode: node_opcua_status_code_1.StatusCodes.Good }
|
|
216
|
-
: { statusCode: node_opcua_status_code_1.StatusCodes.BadArgumentsMissing };
|
|
217
|
-
}
|
|
218
213
|
const inputArgumentResults = methodInputArguments.map((methodInputArgument, index) => {
|
|
219
214
|
const argument = inputArguments[index];
|
|
220
215
|
if (!argument) {
|
|
@@ -261,26 +256,4 @@ function verifyArguments_ArgumentList(addressSpace, methodInputArguments, inputA
|
|
|
261
256
|
};
|
|
262
257
|
}
|
|
263
258
|
exports.verifyArguments_ArgumentList = verifyArguments_ArgumentList;
|
|
264
|
-
function build_retrieveInputArgumentsDefinition(addressSpace) {
|
|
265
|
-
const the_address_space = addressSpace;
|
|
266
|
-
return (objectId, methodId) => {
|
|
267
|
-
const response = getMethodDeclaration_ArgumentList(the_address_space, objectId, methodId);
|
|
268
|
-
/* istanbul ignore next */
|
|
269
|
-
if (response.statusCode !== node_opcua_status_code_1.StatusCodes.Good) {
|
|
270
|
-
debugLog(" StatusCode = " + response.statusCode.toString());
|
|
271
|
-
throw new Error("Invalid Method " +
|
|
272
|
-
response.statusCode.toString() +
|
|
273
|
-
" ObjectId= " +
|
|
274
|
-
objectId.toString() +
|
|
275
|
-
"Method Id =" +
|
|
276
|
-
methodId.toString());
|
|
277
|
-
}
|
|
278
|
-
const methodDeclaration = response.methodDeclaration;
|
|
279
|
-
// verify input Parameters
|
|
280
|
-
const methodInputArguments = methodDeclaration.getInputArguments();
|
|
281
|
-
(0, node_opcua_assert_1.assert)(Array.isArray(methodInputArguments));
|
|
282
|
-
return methodInputArguments;
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
exports.build_retrieveInputArgumentsDefinition = build_retrieveInputArgumentsDefinition;
|
|
286
259
|
//# sourceMappingURL=argument_list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argument_list.js","sourceRoot":"","sources":["../../../source/helpers/argument_list.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B;;GAEG;AACH,yDAA2C;AAC3C,6CAA6C;AAC7C,uEAAwG;AACxG,uDAAkF;AAClF,gDAAgD;AAChD,yDAAwE;AAExE,mE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SACL;QACD,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,oCAAW,CAAC,mBAAmB,EAAE,CAAC;KAChF;IAED,OAAO;QACH,oBAAoB;QACpB,UAAU,EACN,oBAAoB,CAAC,QAAQ,CAAC,oCAAW,CAAC,eAAe,CAAC,IAAI,oBAAoB,CAAC,QAAQ,CAAC,oCAAW,CAAC,aAAa,CAAC;YAClH,CAAC,CAAC,oCAAW,CAAC,kBAAkB;YAChC,CAAC,CAAC,oCAAW,CAAC,IAAI;KAC7B,CAAC;AACN,CAAC;AA1DD,oEA0DC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToCallbackFunction1 = exports.convertToCallbackFunction = void 0;
|
|
4
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
5
|
+
const warningLog = (0, node_opcua_debug_1.make_warningLog)(__filename);
|
|
4
6
|
function convertToCallbackFunction(func) {
|
|
5
7
|
if (func.length === 0) {
|
|
6
8
|
return function (callback) {
|
|
@@ -29,7 +31,7 @@ function convertToCallbackFunction(func) {
|
|
|
29
31
|
func.call(this, callback);
|
|
30
32
|
}
|
|
31
33
|
catch (err) {
|
|
32
|
-
|
|
34
|
+
warningLog("internal error", err.message);
|
|
33
35
|
callback(err);
|
|
34
36
|
}
|
|
35
37
|
};
|
|
@@ -64,7 +66,7 @@ function convertToCallbackFunction1(func) {
|
|
|
64
66
|
func.call(this, param, callback);
|
|
65
67
|
}
|
|
66
68
|
catch (err) {
|
|
67
|
-
|
|
69
|
+
warningLog("internal error", err.message);
|
|
68
70
|
callback(err);
|
|
69
71
|
}
|
|
70
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiform_func.js","sourceRoot":"","sources":["../../../source/helpers/multiform_func.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"multiform_func.js","sourceRoot":"","sources":["../../../source/help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KAAQ,EAAE,QAAsB;YACzD,MAAM;YACN,IAAI,cAA8B,CAAC;YACnC,IAAI;gBACA,cAAc,GAAI,IAAiD,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACzF;YAAC,OAAO,GAAG,EAAE;gBACV,OAAO,QAAQ,CAAC,GAAY,CAAC,CAAC;aACjC;YACD,IAAI,cAAc,YAAY,OAAO,EAAE;gBACnC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;aAC1F;iBAAM;gBACH,OAAO,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;aACzC;QACL,CAAC,CAAC;KACL;SAAM;QACH,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;SAClE;QAED,OAAO,UAAsB,KAAQ,EAAE,QAAsB;YACzD,IAAI;gBACC,IAAkC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aACnE;YAAC,OAAO,GAAG,EAAE;gBACV,UAAU,CAAC,gBAAgB,EAAG,GAAa,CAAC,OAAO,CAAC,CAAC;gBACrD,QAAQ,CAAC,GAAY,CAAC,CAAC;aAC1B;QACL,CAAC,CAAC;KACL;AACL,CAAC;AA9BD,gEA8BC"}
|
package/dist/source/index.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export * from "./session_context";
|
|
|
38
38
|
export * from "./pseudo_session";
|
|
39
39
|
export * from "./helpers/dump_tools";
|
|
40
40
|
export * from "./helpers/make_optionals_map";
|
|
41
|
-
export * from "./helpers/check_event_clause";
|
|
42
41
|
export * from "./helpers/argument_list";
|
|
43
42
|
export * from "./helpers/call_helpers";
|
|
44
43
|
export * from "./helpers/ensure_secure_access";
|
|
@@ -49,7 +48,6 @@ export { ensureDatatypeExtracted, ensureDatatypeExtractedWithCallback } from "./
|
|
|
49
48
|
export * from "./loader/generateAddressSpaceRaw";
|
|
50
49
|
export * from "./namespace";
|
|
51
50
|
export * from "./namespace_data_access";
|
|
52
|
-
export { extractEventFields, checkWhereClause } from "../src/alarms_and_conditions";
|
|
53
51
|
export { instantiateCertificateExpirationAlarm } from "../src/alarms_and_conditions/ua_certificate_expiration_alarm_impl";
|
|
54
52
|
export { NodeIdManager, ConstructNodeIdOptions } from "../src/nodeid_manager";
|
|
55
53
|
export * from "../src/event_data";
|
package/dist/source/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.NodeIdManager = exports.instantiateCertificateExpirationAlarm = exports.
|
|
17
|
+
exports.NodeIdManager = exports.instantiateCertificateExpirationAlarm = exports.ensureDatatypeExtractedWithCallback = exports.ensureDatatypeExtracted = exports.ContinuationPointManager = exports.resolveOpaqueOnAddressSpace = exports.adjustBrowseDirection = exports.promoteToTwoStateDiscrete = exports.promoteToMultiStateValueDiscrete = exports.promoteToMultiStateDiscrete = void 0;
|
|
18
18
|
/**
|
|
19
19
|
* @module node-opcua-address-space
|
|
20
20
|
*/
|
|
@@ -58,7 +58,6 @@ __exportStar(require("./session_context"), exports);
|
|
|
58
58
|
__exportStar(require("./pseudo_session"), exports);
|
|
59
59
|
__exportStar(require("./helpers/dump_tools"), exports);
|
|
60
60
|
__exportStar(require("./helpers/make_optionals_map"), exports);
|
|
61
|
-
__exportStar(require("./helpers/check_event_clause"), exports);
|
|
62
61
|
__exportStar(require("./helpers/argument_list"), exports);
|
|
63
62
|
__exportStar(require("./helpers/call_helpers"), exports);
|
|
64
63
|
__exportStar(require("./helpers/ensure_secure_access"), exports);
|
|
@@ -74,9 +73,6 @@ Object.defineProperty(exports, "ensureDatatypeExtractedWithCallback", { enumerab
|
|
|
74
73
|
__exportStar(require("./loader/generateAddressSpaceRaw"), exports);
|
|
75
74
|
__exportStar(require("./namespace"), exports);
|
|
76
75
|
__exportStar(require("./namespace_data_access"), exports);
|
|
77
|
-
var alarms_and_conditions_1 = require("../src/alarms_and_conditions");
|
|
78
|
-
Object.defineProperty(exports, "extractEventFields", { enumerable: true, get: function () { return alarms_and_conditions_1.extractEventFields; } });
|
|
79
|
-
Object.defineProperty(exports, "checkWhereClause", { enumerable: true, get: function () { return alarms_and_conditions_1.checkWhereClause; } });
|
|
80
76
|
var ua_certificate_expiration_alarm_impl_1 = require("../src/alarms_and_conditions/ua_certificate_expiration_alarm_impl");
|
|
81
77
|
Object.defineProperty(exports, "instantiateCertificateExpirationAlarm", { enumerable: true, get: function () { return ua_certificate_expiration_alarm_impl_1.instantiateCertificateExpirationAlarm; } });
|
|
82
78
|
var nodeid_manager_1 = require("../src/nodeid_manager");
|
package/dist/source/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qDAAmC;AAEnC,mFAAiE;AACjE,sGAAoF;AACpF,0FAAwE;AACxE,2FAAyE;AACzE,yFAAuE;AAEvE,8EAA4D;AAE5D,uFAAqE;AAErE,qFAAmE;AACnE,2FAAyE;AACzE,oFAAkE;AAClE,8EAA4D;AAG5D,sFAAoE;AACpE,wFAAsE;AACtE,yGAAuF;AACvF,mGAAiF;AACjF,+GAA6F;AAC7F,qGAAmF;AACnF,0GAAwF;AACxF,qGAAmF;AACnF,2FAAyE;AACzE,wGAAsF;AACtF,qFAAmE;AACnE,0FAAwE;AACxE,qGAAmF;AACnF,iGAA+E;AAC/E,uFAAqE;AACr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AACjD,8CAA4B;AAC5B,0DAAwC;AAExC,0HAA0H;AAAjH,6JAAA,qCAAqC,OAAA;AAE9C,wDAA8E;AAArE,+GAAA,aAAa,OAAA;AACtB,oDAAkC;AAClC,4DAA0C;AAE1C,gEAA8C;AAC9C,wDAAsC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/**
|
|
4
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
5
|
+
*/
|
|
3
6
|
import { EventEmitter } from "events";
|
|
4
7
|
import { Variant } from "node-opcua-variant";
|
|
5
|
-
import { IEventData, UAVariable, BaseNode
|
|
8
|
+
import { IEventData, UAVariable, BaseNode } from "node-opcua-address-space-base";
|
|
6
9
|
import { UInt16 } from "node-opcua-basic-types";
|
|
7
10
|
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
|
|
8
11
|
import { NodeId } from "node-opcua-nodeid";
|
|
9
12
|
import { StatusCode } from "node-opcua-status-code";
|
|
10
|
-
import {
|
|
13
|
+
import { TimeZoneDataType } from "node-opcua-types";
|
|
11
14
|
import { UtcTime } from "../state_machine/ua_state_machine_type";
|
|
12
15
|
export interface ConditionSnapshot {
|
|
13
16
|
on(eventName: "value_changed", eventHandler: (node: UAVariable, variant: Variant) => void): this;
|
|
@@ -16,15 +19,6 @@ export interface ConditionSnapshot extends EventEmitter {
|
|
|
16
19
|
condition: BaseNode;
|
|
17
20
|
eventData: IEventData | null;
|
|
18
21
|
branchId: NodeId | null;
|
|
19
|
-
/**
|
|
20
|
-
* @method resolveSelectClause
|
|
21
|
-
* @param selectClause {SelectClause}
|
|
22
|
-
*/
|
|
23
|
-
resolveSelectClause(selectClause: SimpleAttributeOperand): NodeId | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
readValue(sessionContext: ISessionContext, nodeId: NodeId, selectClause: SimpleAttributeOperand): Variant;
|
|
28
22
|
/**
|
|
29
23
|
* @method getBrandId
|
|
30
24
|
* @return {NodeId}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils = require("node-opcua-utils");
|
|
4
|
-
/**
|
|
5
|
-
* @module node-opcua-address-space.AlarmsAndConditions
|
|
6
|
-
*/
|
|
7
|
-
function normalizeName(str) {
|
|
8
|
-
return str.split(".").map(utils.lowerFirstLetter).join(".");
|
|
9
|
-
}
|
|
10
3
|
//# sourceMappingURL=condition_snapshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition_snapshot.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/condition_snapshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"condition_snapshot.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/condition_snapshot.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { UAVariableT,
|
|
1
|
+
import { UAVariableT, IAddressSpace } from "node-opcua-address-space-base";
|
|
2
2
|
import { DataType } from "node-opcua-basic-types";
|
|
3
3
|
import { DataValue } from "node-opcua-data-value";
|
|
4
|
-
import {
|
|
5
|
-
export interface DeviationStuff {
|
|
6
|
-
setpointNode: UAVariableT<NodeId, DataType.NodeId>;
|
|
7
|
-
setpointNodeNode: UAVariable;
|
|
4
|
+
import { SetPointSupport } from "./install_setpoint_options";
|
|
5
|
+
export interface DeviationStuff extends SetPointSupport {
|
|
8
6
|
_onSetpointDataValueChange(dataValue: DataValue): void;
|
|
9
7
|
_setStateBasedOnInputValue(value: any): void;
|
|
10
|
-
getSetpointNodeNode():
|
|
8
|
+
getSetpointNodeNode(): UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float> | undefined;
|
|
11
9
|
getInputNodeValue(): any;
|
|
12
10
|
getSetpointValue(): number | null;
|
|
13
11
|
readonly addressSpace: IAddressSpace;
|
|
@@ -2,5 +2,9 @@ import { UAVariableT } from "node-opcua-address-space-base";
|
|
|
2
2
|
import { DataType } from "node-opcua-basic-types";
|
|
3
3
|
import { NodeId } from "node-opcua-nodeid";
|
|
4
4
|
export interface InstallSetPointOptions {
|
|
5
|
+
setpointNode?: UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float> | null;
|
|
6
|
+
}
|
|
7
|
+
export interface SetPointSupport {
|
|
8
|
+
setpointNodeNode?: UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float>;
|
|
5
9
|
setpointNode: UAVariableT<NodeId, DataType.NodeId>;
|
|
6
10
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InstallSetPointOptions } from "./install_setpoint_options";
|
|
2
|
+
import { InstantiateLimitAlarmOptions } from "./instantiate_limit_alarm_options";
|
|
3
|
+
export interface InstantiateExclusiveDeviationAlarmOptions extends InstantiateLimitAlarmOptions, InstallSetPointOptions {
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instantiate_exclusive_deviation_alarm_options.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UAVariable } from "node-opcua-address-space-base";
|
|
2
2
|
import { InstantiateAlarmConditionOptions } from "./instantiate_alarm_condition_options";
|
|
3
3
|
export interface InstantiateLimitAlarmOptions extends InstantiateAlarmConditionOptions {
|
|
4
|
-
highHighLimit
|
|
4
|
+
highHighLimit?: number;
|
|
5
5
|
highLimit: number;
|
|
6
6
|
lowLimit: number;
|
|
7
|
-
lowLowLimit
|
|
7
|
+
lowLowLimit?: number;
|
|
8
8
|
inputNode: UAVariable;
|
|
9
9
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InstallSetPointOptions } from "./install_setpoint_options";
|
|
2
|
+
import { InstantiateLimitAlarmOptions } from "./instantiate_limit_alarm_options";
|
|
3
|
+
export interface InstantiateNonExclusiveDeviationAlarmOptions extends InstantiateLimitAlarmOptions, InstallSetPointOptions {
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instantiate_non_exclusive_deviation_alarm_options.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InstallSetPointOptions } from "./install_setpoint_options";
|
|
2
|
+
import { InstantiateLimitAlarmOptions } from "./instantiate_limit_alarm_options";
|
|
3
|
+
export interface InstantiateNonExclusiveLimitAlarmOptions extends InstantiateLimitAlarmOptions, InstallSetPointOptions {
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instantiate_non_exclusive_limit_alarm_options.js","sourceRoot":"","sources":["../../../../source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.ts"],"names":[],"mappings":""}
|
package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
import { UAVariable } from "node-opcua-address-space-base";
|
|
1
2
|
import { NodeIdLike } from "node-opcua-nodeid";
|
|
2
3
|
import { InstantiateAlarmConditionOptions } from "./instantiate_alarm_condition_options";
|
|
3
4
|
export interface InstantiateOffNormalAlarmOptions extends InstantiateAlarmConditionOptions {
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* https://reference.opcfoundation.org/v105/Core/docs/Part9/5.8.23/#5.8.23.2
|
|
8
|
+
*
|
|
9
|
+
* The NormalState Property is a Property that points to a Variable which has a value that corresponds
|
|
10
|
+
* to one of the possible values of the Variable pointed to by the InputNode Property where the NormalState
|
|
11
|
+
* Property Variable value is the value that is considered to be the normal state of the Variable
|
|
12
|
+
* pointed to by the InputNode Property.
|
|
13
|
+
*
|
|
14
|
+
* When the value of the Variable referenced by the InputNode Property is not equal to the value of
|
|
15
|
+
* the NormalState Property the Alarm is Active. If this Variable is not in the AddressSpace,
|
|
16
|
+
* a NULL NodeId shall be provided.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
normalState?: NodeIdLike | UAVariable | null;
|
|
5
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UAExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
2
2
|
import { DeviationStuff } from "./deviation_stuff";
|
|
3
3
|
import { UAExclusiveLimitAlarmEx } from "./ua_exclusive_limit_alarm_ex";
|
|
4
|
-
export interface UAExclusiveDeviationAlarmEx extends Omit<UAExclusiveDeviationAlarm_Base, "ackedState" | "activeState" | "confirmedState" | "enabledState" | "latchedState" | "limitState" | "outOfServiceState" | "shelvingState" | "silenceState" | "suppressedState">, UAExclusiveLimitAlarmEx, DeviationStuff {
|
|
4
|
+
export interface UAExclusiveDeviationAlarmEx extends Omit<UAExclusiveDeviationAlarm_Base, "ackedState" | "activeState" | "confirmedState" | "enabledState" | "latchedState" | "limitState" | "outOfServiceState" | "shelvingState" | "silenceState" | "suppressedState" | "setpointNode">, UAExclusiveLimitAlarmEx, DeviationStuff {
|
|
5
5
|
}
|
package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
2
2
|
import { DataType } from "node-opcua-basic-types";
|
|
3
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
4
3
|
import { UANonExclusiveDeviationAlarm_Base } from "node-opcua-nodeset-ua";
|
|
5
4
|
import { DeviationStuff } from "./deviation_stuff";
|
|
6
5
|
import { UANonExclusiveLimitAlarmEx } from "./ua_non_exclusive_limit_alarm_ex";
|
|
7
6
|
export interface UANonExclusiveDeviationAlarmEx extends Omit<UANonExclusiveDeviationAlarm_Base, "ackedState" | "activeState" | "confirmedState" | "enabledState" | "latchedState" | "limitState" | "outOfServiceState" | "shelvingState" | "silenceState" | "suppressedState" | "highHighState" | "highState" | "lowState" | "lowLowState">, UANonExclusiveLimitAlarmEx, DeviationStuff {
|
|
8
|
-
|
|
9
|
-
setpointNodeNode: UAVariable;
|
|
7
|
+
setpointNodeNode: UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float>;
|
|
10
8
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { UAEventType } from "node-opcua-address-space-base";
|
|
2
1
|
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
+
import { UAEventType } from "node-opcua-address-space-base";
|
|
3
|
+
import { VariantOptions } from "node-opcua-variant";
|
|
3
4
|
import { UAOffNormalAlarmEx } from "../src/alarms_and_conditions/ua_off_normal_alarm_impl";
|
|
5
|
+
import { InstantiateAlarmConditionOptions } from "./interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
6
|
+
import { InstantiateExclusiveLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options";
|
|
7
|
+
import { InstantiateLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
8
|
+
import { InstantiateNonExclusiveDeviationAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options";
|
|
9
|
+
import { InstantiateOffNormalAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options";
|
|
4
10
|
import { UAAcknowledgeableConditionEx } from "./interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex";
|
|
5
11
|
import { UAAlarmConditionEx } from "./interfaces/alarms_and_conditions/ua_alarm_condition_ex";
|
|
6
12
|
import { UAConditionEx } from "./interfaces/alarms_and_conditions/ua_condition_ex";
|
|
@@ -10,15 +16,17 @@ import { UAExclusiveLimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_e
|
|
|
10
16
|
import { UALimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_limit_alarm_ex";
|
|
11
17
|
import { UANonExclusiveDeviationAlarmEx } from "./interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex";
|
|
12
18
|
import { UANonExclusiveLimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex";
|
|
19
|
+
import { InstantiateNonExclusiveLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options";
|
|
20
|
+
import { InstantiateExclusiveDeviationAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options";
|
|
13
21
|
export interface INamespaceAlarmAndCondition {
|
|
14
|
-
instantiateCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?:
|
|
15
|
-
instantiateAcknowledgeableCondition(conditionTypeId: UAEventType | NodeId | string, options:
|
|
16
|
-
instantiateAlarmCondition(alarmConditionTypeId: UAEventType | NodeId | string, options:
|
|
17
|
-
instantiateLimitAlarm(limitAlarmTypeId: UAEventType | NodeId | string, options:
|
|
18
|
-
instantiateExclusiveLimitAlarm(exclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options:
|
|
19
|
-
instantiateExclusiveDeviationAlarm(options:
|
|
20
|
-
instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options:
|
|
21
|
-
instantiateNonExclusiveDeviationAlarm(options:
|
|
22
|
-
instantiateDiscreteAlarm(discreteAlarmType: UAEventType | NodeId | string, options:
|
|
23
|
-
instantiateOffNormalAlarm(options:
|
|
22
|
+
instantiateCondition(conditionTypeId: UAEventType | NodeId | string, options: any, data?: Record<string, VariantOptions>): UAConditionEx;
|
|
23
|
+
instantiateAcknowledgeableCondition(conditionTypeId: UAEventType | NodeId | string, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAcknowledgeableConditionEx;
|
|
24
|
+
instantiateAlarmCondition(alarmConditionTypeId: UAEventType | NodeId | string, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAlarmConditionEx;
|
|
25
|
+
instantiateLimitAlarm(limitAlarmTypeId: UAEventType | NodeId | string, options: InstantiateLimitAlarmOptions, data?: Record<string, VariantOptions>): UALimitAlarmEx;
|
|
26
|
+
instantiateExclusiveLimitAlarm(exclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: InstantiateExclusiveLimitAlarmOptions, data?: Record<string, VariantOptions>): UAExclusiveLimitAlarmEx;
|
|
27
|
+
instantiateExclusiveDeviationAlarm(options: InstantiateExclusiveDeviationAlarmOptions, data?: Record<string, VariantOptions>): UAExclusiveDeviationAlarmEx;
|
|
28
|
+
instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmTypeId: UAEventType | NodeId | string, options: InstantiateNonExclusiveLimitAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveLimitAlarmEx;
|
|
29
|
+
instantiateNonExclusiveDeviationAlarm(options: InstantiateNonExclusiveDeviationAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveDeviationAlarmEx;
|
|
30
|
+
instantiateDiscreteAlarm(discreteAlarmType: UAEventType | NodeId | string, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UADiscreteAlarmEx;
|
|
31
|
+
instantiateOffNormalAlarm(options: InstantiateOffNormalAlarmOptions, data?: Record<string, VariantOptions>): UAOffNormalAlarmEx;
|
|
24
32
|
}
|
|
@@ -636,19 +636,23 @@ class AddressSpace {
|
|
|
636
636
|
if (!baseObjectType) {
|
|
637
637
|
throw new Error("BaseObjectType must be defined in the address space");
|
|
638
638
|
}
|
|
639
|
+
const hasProperty = (data, propertyName) => Object.prototype.hasOwnProperty.call(data, propertyName);
|
|
639
640
|
const visitedProperties = {};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
if (
|
|
646
|
-
|
|
647
|
-
|
|
641
|
+
const alreadyVisited = (key) => Object.prototype.hasOwnProperty.call(visitedProperties, key);
|
|
642
|
+
const markAsVisited = (key) => visitedProperties[key] = 1;
|
|
643
|
+
function _process_var(self, prefixLower, prefixStandard, node) {
|
|
644
|
+
const lowerName = prefixLower + (0, node_opcua_utils_1.lowerFirstLetter)(node.browseName.name);
|
|
645
|
+
const fullBrowsePath = prefixStandard + node.browseName.toString();
|
|
646
|
+
if (alreadyVisited(lowerName)) {
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
markAsVisited(lowerName);
|
|
650
|
+
if (hasProperty(data, lowerName)) {
|
|
651
|
+
eventData._createValue(fullBrowsePath, node, data[lowerName]);
|
|
648
652
|
}
|
|
649
653
|
else {
|
|
650
654
|
// add a property , but with a null variant
|
|
651
|
-
eventData.
|
|
655
|
+
eventData._createValue(fullBrowsePath, node, { dataType: node_opcua_variant_1.DataType.Null });
|
|
652
656
|
if (doDebug) {
|
|
653
657
|
if (node.modellingRule === "Mandatory") {
|
|
654
658
|
// tslint:disable:no-console
|
|
@@ -673,7 +677,7 @@ class AddressSpace {
|
|
|
673
677
|
return;
|
|
674
678
|
}
|
|
675
679
|
/* istanbul ignore next */
|
|
676
|
-
if (!
|
|
680
|
+
if (!alreadyVisited(k)) {
|
|
677
681
|
throw new Error(" cannot find property '" +
|
|
678
682
|
k +
|
|
679
683
|
"' in [ " +
|
|
@@ -717,16 +721,17 @@ class AddressSpace {
|
|
|
717
721
|
// xx console.log(" skipping method ", node.browseName.toString());
|
|
718
722
|
continue;
|
|
719
723
|
}
|
|
720
|
-
_process_var(self, "", node);
|
|
724
|
+
_process_var(self, "", "", node);
|
|
721
725
|
// also store value in index
|
|
722
726
|
// xx eventData.__nodes[node.nodeId.toString()] = eventData[lowerName];
|
|
723
727
|
const children2 = node.getAggregates();
|
|
724
728
|
if (children2.length > 0) {
|
|
725
729
|
const lowerName = (0, node_opcua_utils_1.lowerFirstLetter)(node.browseName.name);
|
|
730
|
+
const standardName = node.browseName.toString();
|
|
726
731
|
// console.log(" Children to visit = ",lowerName,
|
|
727
732
|
// children.map(function(a){ return a.browseName.toString();}).join(" "));
|
|
728
733
|
for (const child2 of children2) {
|
|
729
|
-
_process_var(self, lowerName + ".", child2);
|
|
734
|
+
_process_var(self, lowerName + ".", standardName + ".", child2);
|
|
730
735
|
}
|
|
731
736
|
}
|
|
732
737
|
}
|