node-opcua-address-space 2.56.0 → 2.59.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 +20 -20
- package/dist/source/loader/load_nodeset2.js +29 -3
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/session_context.js +2 -2
- package/dist/source/session_context.js.map +1 -1
- package/dist/src/address_space.d.ts +2 -3
- package/dist/src/address_space.js +1 -1
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/address_space_private.d.ts +2 -3
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +2 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +2 -2
- package/dist/src/namespace_impl.js +6 -6
- 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.js +1 -1
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/ua_method_impl.d.ts +3 -2
- package/dist/src/ua_method_impl.js +5 -0
- package/dist/src/ua_method_impl.js.map +1 -1
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/generate.js +1 -1
- package/nodeJS.d.ts +1 -1
- package/package.json +27 -27
- package/source/loader/load_nodeset2.ts +39 -3
- package/source/session_context.ts +1 -1
- package/source_nodejs/index.ts +1 -1
- package/src/address_space.ts +6 -5
- package/src/address_space_private.ts +3 -3
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +7 -6
- package/src/alarms_and_conditions/ua_condition_impl.ts +13 -9
- package/src/namespace_impl.ts +4 -4
- package/src/nodeset_tools/nodeset_to_xml.ts +2 -2
- package/src/reference_impl.ts +3 -3
- package/src/state_machine/ua_shelving_state_machine_ex.ts +6 -5
- package/src/ua_method_impl.ts +11 -5
- package/testHelpers.d.ts +1 -1
- package/test_helpers/add_event_generator_object.ts +4 -3
- package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +150 -150
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +57 -57
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +135 -135
- package/test_helpers/test_fixtures/dataType_withEnumeration.xml +82 -82
- package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +194 -194
- package/test_helpers/test_fixtures/dataType_with_union.xml +1 -1
- package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +106 -106
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +1303 -1303
- package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +362 -362
- package/test_helpers/test_fixtures/issue_846.xml +3172 -3172
- package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +32 -32
- package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +194 -194
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +8 -8
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +16 -16
- package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +45 -45
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +0 -23
- 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 -6
- 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 -19
- 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 -70
- 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/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 -289
- package/dist/src/base_node.js +0 -1345
- 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 -24
- package/dist/src/data_access/ua_multistate_discrete.js +0 -132
- package/dist/src/data_access/ua_multistate_discrete.js.map +0 -1
- package/dist/src/namespace.d.ts +0 -472
- package/dist/src/namespace.js +0 -1751
- 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 -41
- package/dist/src/ua_method.js +0 -202
- package/dist/src/ua_method.js.map +0 -1
- package/dist/src/ua_object.d.ts +0 -28
- 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 -123
- 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 -339
- package/dist/src/ua_variable.js +0 -1706
- package/dist/src/ua_variable.js.map +0 -1
- package/dist/src/ua_variable_type.d.ts +0 -57
- package/dist/src/ua_variable_type.js +0 -530
- 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
|
@@ -5,9 +5,10 @@ import { UAAcknowledgeableCondition_Base, UAAcknowledgeableCondition, UAConditio
|
|
|
5
5
|
import { assert } from "node-opcua-assert";
|
|
6
6
|
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
|
|
7
7
|
import { NodeId } from "node-opcua-nodeid";
|
|
8
|
-
import { StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
8
|
+
import { CallbackT, StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
9
9
|
import { DataType, VariantLike } from "node-opcua-variant";
|
|
10
10
|
import { INamespace, RaiseEventData, ISessionContext, UAEventType, UAMethod } from "node-opcua-address-space-base";
|
|
11
|
+
import { CallMethodResultOptions } from "node-opcua-service-call";
|
|
11
12
|
|
|
12
13
|
import { UATwoStateVariableEx } from "../../source/ua_two_state_variable_ex";
|
|
13
14
|
import { AddressSpacePrivate } from "../address_space_private";
|
|
@@ -106,10 +107,10 @@ export class UAAcknowledgeableConditionImpl extends UAConditionImpl implements U
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
public static install_method_handle_on_type(addressSpace: AddressSpacePrivate): void {
|
|
109
|
-
const acknowledgeableConditionType = addressSpace.findEventType("AcknowledgeableConditionType");
|
|
110
|
+
const acknowledgeableConditionType = addressSpace.findEventType("AcknowledgeableConditionType") as unknown as UAAcknowledgeableCondition_Base;
|
|
110
111
|
assert(acknowledgeableConditionType !== null);
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
acknowledgeableConditionType.acknowledge.bindMethod(_acknowledge_method);
|
|
113
|
+
acknowledgeableConditionType.confirm?.bindMethod(_confirm_method);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
public _raiseAuditConditionAcknowledgeEvent(branch: ConditionSnapshot): void {
|
|
@@ -296,7 +297,7 @@ export class UAAcknowledgeableConditionImpl extends UAConditionImpl implements U
|
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
299
|
|
|
299
|
-
function _acknowledge_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
300
|
+
function _acknowledge_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
300
301
|
UAConditionImpl.with_condition_method(
|
|
301
302
|
inputArguments,
|
|
302
303
|
context,
|
|
@@ -321,7 +322,7 @@ function _acknowledge_method(inputArguments: VariantLike[], context: ISessionCon
|
|
|
321
322
|
*
|
|
322
323
|
* @private
|
|
323
324
|
*/
|
|
324
|
-
function _confirm_method(inputArguments: VariantLike[], context: ISessionContext,
|
|
325
|
+
function _confirm_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
325
326
|
UAConditionImpl.with_condition_method(
|
|
326
327
|
inputArguments,
|
|
327
328
|
context,
|
|
@@ -21,8 +21,8 @@ import { DataValue } from "node-opcua-data-value";
|
|
|
21
21
|
import { checkDebugFlag, make_debugLog, make_errorLog } from "node-opcua-debug";
|
|
22
22
|
import { minDate } from "node-opcua-factory";
|
|
23
23
|
import { coerceNodeId, makeNodeId, NodeId, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
24
|
-
import { StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
25
|
-
import { TimeZoneDataType } from "node-opcua-types";
|
|
24
|
+
import { CallbackT, StatusCode, StatusCodes } from "node-opcua-status-code";
|
|
25
|
+
import { CallMethodResultOptions, TimeZoneDataType } from "node-opcua-types";
|
|
26
26
|
import { DataType, Variant, VariantLike } from "node-opcua-variant";
|
|
27
27
|
import { UAVariable, INamespace, ISessionContext, UAEventType, BaseNode, UAObject } from "node-opcua-address-space-base";
|
|
28
28
|
import { UACondition_Base, UAConditionVariable, UACondition } from "node-opcua-nodeset-ua";
|
|
@@ -258,13 +258,13 @@ export class UAConditionImpl extends UABaseEventImpl implements UAConditionEx {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
public getBranches(): ConditionSnapshot[] {
|
|
261
|
-
return Object.keys(this._branches).map((x
|
|
261
|
+
return Object.keys(this._branches).map((x) => {
|
|
262
262
|
return this._branches[x];
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
public getBranchIds(): NodeId[] {
|
|
267
|
-
return this.getBranches().map((b
|
|
267
|
+
return this.getBranches().map((b) => b.getBranchId());
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/**
|
|
@@ -1028,7 +1028,7 @@ function UACondition_instantiate(
|
|
|
1028
1028
|
return conditionNode;
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
|
-
function _disable_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
1031
|
+
function _disable_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
1032
1032
|
assert(inputArguments.length === 0);
|
|
1033
1033
|
|
|
1034
1034
|
const conditionNode = context.object;
|
|
@@ -1047,7 +1047,7 @@ function _disable_method(inputArguments: VariantLike[], context: ISessionContext
|
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
function _enable_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
1050
|
+
function _enable_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
1051
1051
|
assert(inputArguments.length === 0);
|
|
1052
1052
|
const conditionNode = context.object;
|
|
1053
1053
|
assert(conditionNode);
|
|
@@ -1063,7 +1063,11 @@ function _enable_method(inputArguments: VariantLike[], context: ISessionContext,
|
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
function _condition_refresh_method(
|
|
1066
|
+
function _condition_refresh_method(
|
|
1067
|
+
inputArguments: VariantLike[],
|
|
1068
|
+
context: ISessionContext,
|
|
1069
|
+
callback: CallbackT<CallMethodResultOptions>
|
|
1070
|
+
) {
|
|
1067
1071
|
// arguments : IntegerId SubscriptionId
|
|
1068
1072
|
assert(inputArguments.length === 1);
|
|
1069
1073
|
const addressSpace = context.object!.addressSpace as AddressSpacePrivate;
|
|
@@ -1119,7 +1123,7 @@ function _perform_condition_refresh(addressSpace: AddressSpacePrivate, inputArgu
|
|
|
1119
1123
|
return StatusCodes.Good;
|
|
1120
1124
|
}
|
|
1121
1125
|
|
|
1122
|
-
function _condition_refresh2_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
1126
|
+
function _condition_refresh2_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
1123
1127
|
// arguments : IntegerId SubscriptionId
|
|
1124
1128
|
// arguments : IntegerId MonitoredItemId
|
|
1125
1129
|
assert(inputArguments.length === 2);
|
|
@@ -1142,7 +1146,7 @@ function _condition_refresh2_method(inputArguments: VariantLike[], context: ISes
|
|
|
1142
1146
|
});
|
|
1143
1147
|
}
|
|
1144
1148
|
|
|
1145
|
-
function _add_comment_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
1149
|
+
function _add_comment_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
1146
1150
|
//
|
|
1147
1151
|
// The AddComment Method is used to apply a comment to a specific state of a Condition
|
|
1148
1152
|
// instance. Normally, the NodeId of the object instance as the ObjectId is passed to the Call
|
package/src/namespace_impl.ts
CHANGED
|
@@ -194,7 +194,7 @@ function detachNode(node: BaseNode) {
|
|
|
194
194
|
* @params options.publicationDate="" {Date}
|
|
195
195
|
*
|
|
196
196
|
*/
|
|
197
|
-
export class
|
|
197
|
+
export class NamespaceImpl implements NamespacePrivate {
|
|
198
198
|
public static _handle_hierarchy_parent = _handle_hierarchy_parent;
|
|
199
199
|
public static isNonEmptyQualifiedName = isNonEmptyQualifiedName;
|
|
200
200
|
|
|
@@ -237,8 +237,8 @@ export class UANamespace implements NamespacePrivate {
|
|
|
237
237
|
this._nodeIdManager = new NodeIdManager(this.index, this.addressSpace);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
public getDefaultNamespace():
|
|
241
|
-
return this.index === 0 ? this : (this.addressSpace.getDefaultNamespace()
|
|
240
|
+
public getDefaultNamespace(): NamespacePrivate {
|
|
241
|
+
return this.index === 0 ? this : (this.addressSpace.getDefaultNamespace());
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
public dispose(): void {
|
|
@@ -1814,7 +1814,7 @@ export class UANamespace implements NamespacePrivate {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
const references: UAReference[] = [];
|
|
1816
1816
|
|
|
1817
|
-
function process_subtypeOf_options(this:
|
|
1817
|
+
function process_subtypeOf_options(this: NamespaceImpl, options2: any, references1: AddReferenceOpts[]) {
|
|
1818
1818
|
// check common misspelling mistake
|
|
1819
1819
|
assert(!options2.subTypeOf, "misspell error : it should be 'subtypeOf' instead");
|
|
1820
1820
|
if (Object.prototype.hasOwnProperty.call(options2, "hasTypeDefinition")) {
|
|
@@ -51,7 +51,7 @@ import { UAReferenceTypeImpl } from "../ua_reference_type_impl";
|
|
|
51
51
|
import { UAObjectTypeImpl } from "../ua_object_type_impl";
|
|
52
52
|
import { UAVariableImpl } from "../ua_variable_impl";
|
|
53
53
|
import { UAObjectImpl } from "../ua_object_impl";
|
|
54
|
-
import {
|
|
54
|
+
import { NamespaceImpl } from "../namespace_impl";
|
|
55
55
|
import { UAMethodImpl } from "../ua_method_impl";
|
|
56
56
|
import { UADataTypeImpl } from "../ua_data_type_impl";
|
|
57
57
|
import { UAVariableTypeImpl } from "../ua_variable_type_impl";
|
|
@@ -1199,7 +1199,7 @@ UADataTypeImpl.prototype.dumpXML = function (xw: XmlWriter) {
|
|
|
1199
1199
|
dumpUADataType(xw, this);
|
|
1200
1200
|
};
|
|
1201
1201
|
|
|
1202
|
-
|
|
1202
|
+
NamespaceImpl.prototype.toNodeset2XML = function (this: NamespaceImpl) {
|
|
1203
1203
|
const dependency = constructNamespaceDependency(this);
|
|
1204
1204
|
const translationTable = constructNamespaceTranslationTable(dependency);
|
|
1205
1205
|
|
package/src/reference_impl.ts
CHANGED
|
@@ -53,9 +53,9 @@ function _w(str: string, width: number): string {
|
|
|
53
53
|
return (str + " ").substr(0, width);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
function _localCoerceToNodeID(nodeIdLike: string |
|
|
57
|
-
if ((nodeIdLike
|
|
58
|
-
return (nodeIdLike as
|
|
56
|
+
function _localCoerceToNodeID(nodeIdLike: string | NodeIdLike | { nodeId: NodeId }): NodeId {
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(nodeIdLike, "nodeId")) {
|
|
58
|
+
return (nodeIdLike as { nodeId: NodeId }).nodeId;
|
|
59
59
|
}
|
|
60
60
|
return coerceNodeId(nodeIdLike);
|
|
61
61
|
}
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
// --------------------------------------------------------------------------------------------------
|
|
8
8
|
|
|
9
9
|
import { assert } from "node-opcua-assert";
|
|
10
|
-
import { StatusCodes } from "node-opcua-status-code";
|
|
10
|
+
import { CallbackT, StatusCodes } from "node-opcua-status-code";
|
|
11
11
|
import { DataType, Variant, VariantLike } from "node-opcua-variant";
|
|
12
12
|
|
|
13
|
-
import { UAProperty,
|
|
13
|
+
import { UAProperty, ISessionContext, UAMethod, UAObject } from "node-opcua-address-space-base";
|
|
14
14
|
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
|
|
15
15
|
import { UAShelvedStateMachine_Base, UAState } from "node-opcua-nodeset-ua";
|
|
16
|
+
import { CallMethodResultOptions } from "node-opcua-service-call";
|
|
16
17
|
|
|
17
18
|
import { UAAlarmConditionImpl } from "../alarms_and_conditions/ua_alarm_condition_impl";
|
|
18
19
|
import { UATransitionEx } from "../../source/interfaces/state_machine/ua_transition_ex";
|
|
@@ -93,7 +94,7 @@ export class UAShelvedStateMachineEx extends UAStateMachineImpl implements UAShe
|
|
|
93
94
|
// specifying ConditionId as the ObjectId. The Method cannot be called with an ObjectId of the
|
|
94
95
|
// ShelvedStateMachineType Node.
|
|
95
96
|
// output => BadConditionNotShelved
|
|
96
|
-
function _unshelve_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
97
|
+
function _unshelve_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
97
98
|
assert(inputArguments.length === 0);
|
|
98
99
|
// var alarmNode = context.object.parent;
|
|
99
100
|
// if (!(alarmNode instanceof UAAlarmConditionImpl)) {
|
|
@@ -188,7 +189,7 @@ function _start_timer_for_automatic_unshelve(shelvingState: UAShelvedStateMachin
|
|
|
188
189
|
// a reset of the shelved timer.
|
|
189
190
|
// BadShelvingTimeOutOfRange
|
|
190
191
|
|
|
191
|
-
function _timedShelve_method(inputArguments: VariantLike[], context: ISessionContext, callback:
|
|
192
|
+
function _timedShelve_method(inputArguments: VariantLike[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) {
|
|
192
193
|
assert(inputArguments.length === 1);
|
|
193
194
|
if (!context.object) {
|
|
194
195
|
return;
|
|
@@ -250,7 +251,7 @@ function _oneShotShelve_method(
|
|
|
250
251
|
this: UAMethod,
|
|
251
252
|
inputArguments: Variant[],
|
|
252
253
|
context: ISessionContext,
|
|
253
|
-
callback:
|
|
254
|
+
callback: CallbackT<CallMethodResultOptions>
|
|
254
255
|
) {
|
|
255
256
|
assert(inputArguments.length === 0);
|
|
256
257
|
const shelvingState = context.object! as UAShelvedStateMachineEx;
|
package/src/ua_method_impl.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
+
import { callbackify } from "util";
|
|
4
5
|
import * as chalk from "chalk";
|
|
5
6
|
import { assert } from "node-opcua-assert";
|
|
6
7
|
|
|
@@ -11,13 +12,14 @@ import { make_debugLog, make_errorLog, make_warningLog } from "node-opcua-debug"
|
|
|
11
12
|
import { NodeId } from "node-opcua-nodeid";
|
|
12
13
|
import { NumericRange } from "node-opcua-numeric-range";
|
|
13
14
|
import { Argument } from "node-opcua-service-call";
|
|
14
|
-
import { StatusCodes } from "node-opcua-status-code";
|
|
15
|
+
import { CallbackT, StatusCodes } from "node-opcua-status-code";
|
|
15
16
|
import { CallMethodResultOptions, PermissionType } from "node-opcua-types";
|
|
16
17
|
import { Variant } from "node-opcua-variant";
|
|
17
18
|
import { DataType, VariantLike } from "node-opcua-variant";
|
|
18
19
|
import {
|
|
19
20
|
MethodFunctor,
|
|
20
|
-
|
|
21
|
+
MethodFunctorA,
|
|
22
|
+
MethodFunctorC,
|
|
21
23
|
UAMethod,
|
|
22
24
|
UAObject,
|
|
23
25
|
CloneExtraInfo,
|
|
@@ -122,6 +124,10 @@ export class UAMethodImpl extends BaseNodeImpl implements UAMethod {
|
|
|
122
124
|
|
|
123
125
|
public bindMethod(async_func: MethodFunctor): void {
|
|
124
126
|
assert(typeof async_func === "function");
|
|
127
|
+
if (async_func.length === 2) {
|
|
128
|
+
async_func = callbackify(async_func as MethodFunctorA) as MethodFunctorC;
|
|
129
|
+
}
|
|
130
|
+
assert(async_func.length === 3);
|
|
125
131
|
this._asyncExecutionFunction = async_func;
|
|
126
132
|
}
|
|
127
133
|
public execute(
|
|
@@ -133,13 +139,13 @@ export class UAMethodImpl extends BaseNodeImpl implements UAMethod {
|
|
|
133
139
|
object: UAObject | UAObjectType | null,
|
|
134
140
|
inputArguments: null | VariantLike[],
|
|
135
141
|
context: ISessionContext,
|
|
136
|
-
callback:
|
|
142
|
+
callback: CallbackT<CallMethodResultOptions>
|
|
137
143
|
): void;
|
|
138
144
|
public execute(
|
|
139
145
|
object: UAObject | UAObjectType | null,
|
|
140
146
|
inputArguments: VariantLike[] | null,
|
|
141
147
|
context: ISessionContext,
|
|
142
|
-
callback?:
|
|
148
|
+
callback?: CallbackT<CallMethodResultOptions>
|
|
143
149
|
): any {
|
|
144
150
|
// istanbul ignore next
|
|
145
151
|
if (!callback) {
|
|
@@ -200,7 +206,7 @@ export class UAMethodImpl extends BaseNodeImpl implements UAMethod {
|
|
|
200
206
|
this as UAMethodImpl,
|
|
201
207
|
inputArguments as Variant[],
|
|
202
208
|
context,
|
|
203
|
-
(err: Error | null, callMethodResult
|
|
209
|
+
(err: Error | null, callMethodResult?: CallMethodResultOptions) => {
|
|
204
210
|
if (err) {
|
|
205
211
|
debugLog(err.message);
|
|
206
212
|
debugLog(err);
|
package/testHelpers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./distHelpers";
|
|
1
|
+
export * from "./distHelpers";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space
|
|
3
3
|
*/
|
|
4
|
-
import { StatusCodes } from "node-opcua-status-code";
|
|
4
|
+
import { CallbackT, StatusCodes } from "node-opcua-status-code";
|
|
5
5
|
import { DataType, Variant } from "node-opcua-variant";
|
|
6
|
-
import { INamespace, UAObject, ISessionContext
|
|
6
|
+
import { INamespace, UAObject, ISessionContext } from "node-opcua-address-space-base";
|
|
7
7
|
import { UAFolder } from "node-opcua-nodeset-ua";
|
|
8
|
+
import { CallMethodResultOptions } from "node-opcua-types";
|
|
8
9
|
|
|
9
10
|
export function add_eventGeneratorObject(namespace: INamespace, parentFolder: UAFolder | string): void {
|
|
10
11
|
const myEvtType = namespace.addEventType({
|
|
@@ -40,7 +41,7 @@ export function add_eventGeneratorObject(namespace: INamespace, parentFolder: UA
|
|
|
40
41
|
outputArguments: []
|
|
41
42
|
});
|
|
42
43
|
|
|
43
|
-
method.bindMethod((inputArguments: Variant[], context: ISessionContext, callback:
|
|
44
|
+
method.bindMethod((inputArguments: Variant[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) => {
|
|
44
45
|
// xx console.log("In Event Generator Method");
|
|
45
46
|
// xx console.log(this.toString());
|
|
46
47
|
// xx console.log(context.object.toString());
|
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
-
<UANodeSet xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" LastModified="2019-05-01T00:00:00Z"
|
|
4
|
-
xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd">
|
|
5
|
-
<NamespaceUris>
|
|
6
|
-
<Uri>http://opcfoundation.org/UA/DI/</Uri>
|
|
7
|
-
</NamespaceUris>
|
|
8
|
-
<Models>
|
|
9
|
-
<Model ModelUri="http://opcfoundation.org/UA/DI/" Version="1.02" PublicationDate="2019-05-01T00:00:00Z">
|
|
10
|
-
<RequiredModel ModelUri="http://opcfoundation.org/UA/" Version="1.04.4" PublicationDate="2020-01-08T00:00:00Z" />
|
|
11
|
-
</Model>
|
|
12
|
-
</Models>
|
|
13
|
-
<Aliases>
|
|
14
|
-
<Alias Alias="Boolean">i=1</Alias>
|
|
15
|
-
<Alias Alias="SByte">i=2</Alias>
|
|
16
|
-
<Alias Alias="Byte">i=3</Alias>
|
|
17
|
-
<Alias Alias="Int16">i=4</Alias>
|
|
18
|
-
<Alias Alias="UInt16">i=5</Alias>
|
|
19
|
-
<Alias Alias="Int32">i=6</Alias>
|
|
20
|
-
<Alias Alias="UInt32">i=7</Alias>
|
|
21
|
-
<Alias Alias="Int64">i=8</Alias>
|
|
22
|
-
<Alias Alias="UInt64">i=9</Alias>
|
|
23
|
-
<Alias Alias="Float">i=10</Alias>
|
|
24
|
-
<Alias Alias="Double">i=11</Alias>
|
|
25
|
-
<Alias Alias="DateTime">i=13</Alias>
|
|
26
|
-
<Alias Alias="String">i=12</Alias>
|
|
27
|
-
<Alias Alias="ByteString">i=15</Alias>
|
|
28
|
-
<Alias Alias="Guid">i=14</Alias>
|
|
29
|
-
<Alias Alias="XmlElement">i=16</Alias>
|
|
30
|
-
<Alias Alias="NodeId">i=17</Alias>
|
|
31
|
-
<Alias Alias="ExpandedNodeId">i=18</Alias>
|
|
32
|
-
<Alias Alias="QualifiedName">i=20</Alias>
|
|
33
|
-
<Alias Alias="LocalizedText">i=21</Alias>
|
|
34
|
-
<Alias Alias="StatusCode">i=19</Alias>
|
|
35
|
-
<Alias Alias="Structure">i=22</Alias>
|
|
36
|
-
<Alias Alias="Number">i=26</Alias>
|
|
37
|
-
<Alias Alias="Integer">i=27</Alias>
|
|
38
|
-
<Alias Alias="UInteger">i=28</Alias>
|
|
39
|
-
<Alias Alias="HasComponent">i=47</Alias>
|
|
40
|
-
<Alias Alias="HasProperty">i=46</Alias>
|
|
41
|
-
<Alias Alias="Organizes">i=35</Alias>
|
|
42
|
-
<Alias Alias="HasEventSource">i=36</Alias>
|
|
43
|
-
<Alias Alias="HasNotifier">i=48</Alias>
|
|
44
|
-
<Alias Alias="HasSubtype">i=45</Alias>
|
|
45
|
-
<Alias Alias="HasTypeDefinition">i=40</Alias>
|
|
46
|
-
<Alias Alias="HasModellingRule">i=37</Alias>
|
|
47
|
-
<Alias Alias="HasEncoding">i=38</Alias>
|
|
48
|
-
<Alias Alias="HasDescription">i=39</Alias>
|
|
49
|
-
</Aliases>
|
|
50
|
-
<UADataType NodeId="ns=1;i=6522" BrowseName="1:FetchResultDataType" IsAbstract="true">
|
|
51
|
-
<DisplayName>FetchResultDataType</DisplayName>
|
|
52
|
-
<References>
|
|
53
|
-
<Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
|
|
54
|
-
</References>
|
|
55
|
-
</UADataType>
|
|
56
|
-
<UADataType NodeId="ns=1;i=6525" BrowseName="1:ParameterResultDataType">
|
|
57
|
-
<DisplayName>ParameterResultDataType</DisplayName>
|
|
58
|
-
<References>
|
|
59
|
-
<Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
|
|
60
|
-
</References>
|
|
61
|
-
<Definition Name="1:ParameterResultDataType">
|
|
62
|
-
<Field Name="NodePath" DataType="i=20" ValueRank="1" />
|
|
63
|
-
<Field Name="StatusCode" DataType="i=19" />
|
|
64
|
-
<Field Name="Diagnostics" DataType="i=25" />
|
|
65
|
-
</Definition>
|
|
66
|
-
</UADataType>
|
|
67
|
-
<UADataType NodeId="ns=1;i=15889" BrowseName="1:TransferResultDataDataType">
|
|
68
|
-
<DisplayName>TransferResultDataDataType</DisplayName>
|
|
69
|
-
<References>
|
|
70
|
-
<Reference ReferenceType="HasSubtype" IsForward="false">ns=1;i=6522</Reference>
|
|
71
|
-
</References>
|
|
72
|
-
<Definition Name="1:TransferResultDataDataType">
|
|
73
|
-
<Field Name="SequenceNumber" DataType="i=6" />
|
|
74
|
-
<Field Name="EndOfResults" DataType="i=1" />
|
|
75
|
-
<Field Name="ParameterDefs" DataType="ns=1;i=6525" ValueRank="1" />
|
|
76
|
-
</Definition>
|
|
77
|
-
</UADataType>
|
|
78
|
-
<!-- A -->
|
|
79
|
-
<UAObject NodeId="ns=1;i=6554" BrowseName="Default Binary" SymbolicName="DefaultBinary">
|
|
80
|
-
<DisplayName>Default Binary</DisplayName>
|
|
81
|
-
<References>
|
|
82
|
-
<Reference ReferenceType="HasEncoding" IsForward="false">ns=1;i=6525</Reference>
|
|
83
|
-
<Reference ReferenceType="HasDescription">ns=1;i=6564</Reference>
|
|
84
|
-
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
|
|
85
|
-
</References>
|
|
86
|
-
</UAObject>
|
|
87
|
-
<UAVariable NodeId="ns=1;i=6564" BrowseName="1:ParameterResultDataType" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
88
|
-
<DisplayName>ParameterResultDataType</DisplayName>
|
|
89
|
-
<References>
|
|
90
|
-
<Reference ReferenceType="HasTypeDefinition">i=69</Reference>
|
|
91
|
-
<Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=6435</Reference>
|
|
92
|
-
</References>
|
|
93
|
-
<Value>
|
|
94
|
-
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">ParameterResultDataType</String>
|
|
95
|
-
</Value>
|
|
96
|
-
</UAVariable>
|
|
97
|
-
<!-- B-->
|
|
98
|
-
<UAObject NodeId="ns=1;i=15892" BrowseName="Default Binary" SymbolicName="DefaultBinary">
|
|
99
|
-
<DisplayName>Default Binary</DisplayName>
|
|
100
|
-
<References>
|
|
101
|
-
<Reference ReferenceType="HasEncoding" IsForward="false">ns=1;i=15889</Reference>
|
|
102
|
-
<Reference ReferenceType="HasDescription">ns=1;i=15897</Reference>
|
|
103
|
-
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
|
|
104
|
-
</References>
|
|
105
|
-
</UAObject>
|
|
106
|
-
<UAVariable NodeId="ns=1;i=15897" BrowseName="1:TransferResultDataDataType" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
107
|
-
<DisplayName>TransferResultDataDataType</DisplayName>
|
|
108
|
-
<References>
|
|
109
|
-
<Reference ReferenceType="HasTypeDefinition">i=69</Reference>
|
|
110
|
-
<Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=6435</Reference>
|
|
111
|
-
</References>
|
|
112
|
-
<Value>
|
|
113
|
-
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">TransferResultDataDataType</String>
|
|
114
|
-
</Value>
|
|
115
|
-
</UAVariable>
|
|
116
|
-
<!-- C -->
|
|
117
|
-
<UAVariable NodeId="ns=1;i=6435" BrowseName="1:Opc.Ua.Di" SymbolicName="OpcUaDi_BinarySchema" DataType="ByteString">
|
|
118
|
-
<DisplayName>Opc.Ua.Di</DisplayName>
|
|
119
|
-
<References>
|
|
120
|
-
<Reference ReferenceType="HasProperty">ns=1;i=6437</Reference>
|
|
121
|
-
<Reference ReferenceType="HasProperty">ns=1;i=15893</Reference>
|
|
122
|
-
|
|
123
|
-
<Reference ReferenceType="HasComponent">ns=1;i=15897</Reference>
|
|
124
|
-
<Reference ReferenceType="HasComponent">ns=1;i=6564</Reference>
|
|
125
|
-
<Reference ReferenceType="HasComponent" IsForward="false">i=93</Reference>
|
|
126
|
-
<Reference ReferenceType="HasTypeDefinition">i=72</Reference>
|
|
127
|
-
</References>
|
|
128
|
-
<Value/>
|
|
129
|
-
</UAVariable>
|
|
130
|
-
<UAVariable NodeId="ns=1;i=6437" BrowseName="NamespaceUri" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
131
|
-
<DisplayName>NamespaceUri</DisplayName>
|
|
132
|
-
<References>
|
|
133
|
-
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
|
|
134
|
-
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=6435</Reference>
|
|
135
|
-
</References>
|
|
136
|
-
<Value>
|
|
137
|
-
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">http://opcfoundation.org/UA/DI/</String>
|
|
138
|
-
</Value>
|
|
139
|
-
</UAVariable>
|
|
140
|
-
<UAVariable NodeId="ns=1;i=15893" BrowseName="Deprecated" ParentNodeId="ns=1;i=6435" DataType="Boolean">
|
|
141
|
-
<DisplayName>Deprecated</DisplayName>
|
|
142
|
-
<References>
|
|
143
|
-
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
|
|
144
|
-
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=6435</Reference>
|
|
145
|
-
</References>
|
|
146
|
-
<Value>
|
|
147
|
-
<Boolean xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">true</Boolean>
|
|
148
|
-
</Value>
|
|
149
|
-
</UAVariable>
|
|
150
|
-
</UANodeSet>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<UANodeSet xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" LastModified="2019-05-01T00:00:00Z"
|
|
4
|
+
xmlns="http://opcfoundation.org/UA/2011/03/UANodeSet.xsd">
|
|
5
|
+
<NamespaceUris>
|
|
6
|
+
<Uri>http://opcfoundation.org/UA/DI/</Uri>
|
|
7
|
+
</NamespaceUris>
|
|
8
|
+
<Models>
|
|
9
|
+
<Model ModelUri="http://opcfoundation.org/UA/DI/" Version="1.02" PublicationDate="2019-05-01T00:00:00Z">
|
|
10
|
+
<RequiredModel ModelUri="http://opcfoundation.org/UA/" Version="1.04.4" PublicationDate="2020-01-08T00:00:00Z" />
|
|
11
|
+
</Model>
|
|
12
|
+
</Models>
|
|
13
|
+
<Aliases>
|
|
14
|
+
<Alias Alias="Boolean">i=1</Alias>
|
|
15
|
+
<Alias Alias="SByte">i=2</Alias>
|
|
16
|
+
<Alias Alias="Byte">i=3</Alias>
|
|
17
|
+
<Alias Alias="Int16">i=4</Alias>
|
|
18
|
+
<Alias Alias="UInt16">i=5</Alias>
|
|
19
|
+
<Alias Alias="Int32">i=6</Alias>
|
|
20
|
+
<Alias Alias="UInt32">i=7</Alias>
|
|
21
|
+
<Alias Alias="Int64">i=8</Alias>
|
|
22
|
+
<Alias Alias="UInt64">i=9</Alias>
|
|
23
|
+
<Alias Alias="Float">i=10</Alias>
|
|
24
|
+
<Alias Alias="Double">i=11</Alias>
|
|
25
|
+
<Alias Alias="DateTime">i=13</Alias>
|
|
26
|
+
<Alias Alias="String">i=12</Alias>
|
|
27
|
+
<Alias Alias="ByteString">i=15</Alias>
|
|
28
|
+
<Alias Alias="Guid">i=14</Alias>
|
|
29
|
+
<Alias Alias="XmlElement">i=16</Alias>
|
|
30
|
+
<Alias Alias="NodeId">i=17</Alias>
|
|
31
|
+
<Alias Alias="ExpandedNodeId">i=18</Alias>
|
|
32
|
+
<Alias Alias="QualifiedName">i=20</Alias>
|
|
33
|
+
<Alias Alias="LocalizedText">i=21</Alias>
|
|
34
|
+
<Alias Alias="StatusCode">i=19</Alias>
|
|
35
|
+
<Alias Alias="Structure">i=22</Alias>
|
|
36
|
+
<Alias Alias="Number">i=26</Alias>
|
|
37
|
+
<Alias Alias="Integer">i=27</Alias>
|
|
38
|
+
<Alias Alias="UInteger">i=28</Alias>
|
|
39
|
+
<Alias Alias="HasComponent">i=47</Alias>
|
|
40
|
+
<Alias Alias="HasProperty">i=46</Alias>
|
|
41
|
+
<Alias Alias="Organizes">i=35</Alias>
|
|
42
|
+
<Alias Alias="HasEventSource">i=36</Alias>
|
|
43
|
+
<Alias Alias="HasNotifier">i=48</Alias>
|
|
44
|
+
<Alias Alias="HasSubtype">i=45</Alias>
|
|
45
|
+
<Alias Alias="HasTypeDefinition">i=40</Alias>
|
|
46
|
+
<Alias Alias="HasModellingRule">i=37</Alias>
|
|
47
|
+
<Alias Alias="HasEncoding">i=38</Alias>
|
|
48
|
+
<Alias Alias="HasDescription">i=39</Alias>
|
|
49
|
+
</Aliases>
|
|
50
|
+
<UADataType NodeId="ns=1;i=6522" BrowseName="1:FetchResultDataType" IsAbstract="true">
|
|
51
|
+
<DisplayName>FetchResultDataType</DisplayName>
|
|
52
|
+
<References>
|
|
53
|
+
<Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
|
|
54
|
+
</References>
|
|
55
|
+
</UADataType>
|
|
56
|
+
<UADataType NodeId="ns=1;i=6525" BrowseName="1:ParameterResultDataType">
|
|
57
|
+
<DisplayName>ParameterResultDataType</DisplayName>
|
|
58
|
+
<References>
|
|
59
|
+
<Reference ReferenceType="HasSubtype" IsForward="false">i=22</Reference>
|
|
60
|
+
</References>
|
|
61
|
+
<Definition Name="1:ParameterResultDataType">
|
|
62
|
+
<Field Name="NodePath" DataType="i=20" ValueRank="1" />
|
|
63
|
+
<Field Name="StatusCode" DataType="i=19" />
|
|
64
|
+
<Field Name="Diagnostics" DataType="i=25" />
|
|
65
|
+
</Definition>
|
|
66
|
+
</UADataType>
|
|
67
|
+
<UADataType NodeId="ns=1;i=15889" BrowseName="1:TransferResultDataDataType">
|
|
68
|
+
<DisplayName>TransferResultDataDataType</DisplayName>
|
|
69
|
+
<References>
|
|
70
|
+
<Reference ReferenceType="HasSubtype" IsForward="false">ns=1;i=6522</Reference>
|
|
71
|
+
</References>
|
|
72
|
+
<Definition Name="1:TransferResultDataDataType">
|
|
73
|
+
<Field Name="SequenceNumber" DataType="i=6" />
|
|
74
|
+
<Field Name="EndOfResults" DataType="i=1" />
|
|
75
|
+
<Field Name="ParameterDefs" DataType="ns=1;i=6525" ValueRank="1" />
|
|
76
|
+
</Definition>
|
|
77
|
+
</UADataType>
|
|
78
|
+
<!-- A -->
|
|
79
|
+
<UAObject NodeId="ns=1;i=6554" BrowseName="Default Binary" SymbolicName="DefaultBinary">
|
|
80
|
+
<DisplayName>Default Binary</DisplayName>
|
|
81
|
+
<References>
|
|
82
|
+
<Reference ReferenceType="HasEncoding" IsForward="false">ns=1;i=6525</Reference>
|
|
83
|
+
<Reference ReferenceType="HasDescription">ns=1;i=6564</Reference>
|
|
84
|
+
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
|
|
85
|
+
</References>
|
|
86
|
+
</UAObject>
|
|
87
|
+
<UAVariable NodeId="ns=1;i=6564" BrowseName="1:ParameterResultDataType" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
88
|
+
<DisplayName>ParameterResultDataType</DisplayName>
|
|
89
|
+
<References>
|
|
90
|
+
<Reference ReferenceType="HasTypeDefinition">i=69</Reference>
|
|
91
|
+
<Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=6435</Reference>
|
|
92
|
+
</References>
|
|
93
|
+
<Value>
|
|
94
|
+
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">ParameterResultDataType</String>
|
|
95
|
+
</Value>
|
|
96
|
+
</UAVariable>
|
|
97
|
+
<!-- B-->
|
|
98
|
+
<UAObject NodeId="ns=1;i=15892" BrowseName="Default Binary" SymbolicName="DefaultBinary">
|
|
99
|
+
<DisplayName>Default Binary</DisplayName>
|
|
100
|
+
<References>
|
|
101
|
+
<Reference ReferenceType="HasEncoding" IsForward="false">ns=1;i=15889</Reference>
|
|
102
|
+
<Reference ReferenceType="HasDescription">ns=1;i=15897</Reference>
|
|
103
|
+
<Reference ReferenceType="HasTypeDefinition">i=76</Reference>
|
|
104
|
+
</References>
|
|
105
|
+
</UAObject>
|
|
106
|
+
<UAVariable NodeId="ns=1;i=15897" BrowseName="1:TransferResultDataDataType" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
107
|
+
<DisplayName>TransferResultDataDataType</DisplayName>
|
|
108
|
+
<References>
|
|
109
|
+
<Reference ReferenceType="HasTypeDefinition">i=69</Reference>
|
|
110
|
+
<Reference ReferenceType="HasComponent" IsForward="false">ns=1;i=6435</Reference>
|
|
111
|
+
</References>
|
|
112
|
+
<Value>
|
|
113
|
+
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">TransferResultDataDataType</String>
|
|
114
|
+
</Value>
|
|
115
|
+
</UAVariable>
|
|
116
|
+
<!-- C -->
|
|
117
|
+
<UAVariable NodeId="ns=1;i=6435" BrowseName="1:Opc.Ua.Di" SymbolicName="OpcUaDi_BinarySchema" DataType="ByteString">
|
|
118
|
+
<DisplayName>Opc.Ua.Di</DisplayName>
|
|
119
|
+
<References>
|
|
120
|
+
<Reference ReferenceType="HasProperty">ns=1;i=6437</Reference>
|
|
121
|
+
<Reference ReferenceType="HasProperty">ns=1;i=15893</Reference>
|
|
122
|
+
|
|
123
|
+
<Reference ReferenceType="HasComponent">ns=1;i=15897</Reference>
|
|
124
|
+
<Reference ReferenceType="HasComponent">ns=1;i=6564</Reference>
|
|
125
|
+
<Reference ReferenceType="HasComponent" IsForward="false">i=93</Reference>
|
|
126
|
+
<Reference ReferenceType="HasTypeDefinition">i=72</Reference>
|
|
127
|
+
</References>
|
|
128
|
+
<Value/>
|
|
129
|
+
</UAVariable>
|
|
130
|
+
<UAVariable NodeId="ns=1;i=6437" BrowseName="NamespaceUri" ParentNodeId="ns=1;i=6435" DataType="String">
|
|
131
|
+
<DisplayName>NamespaceUri</DisplayName>
|
|
132
|
+
<References>
|
|
133
|
+
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
|
|
134
|
+
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=6435</Reference>
|
|
135
|
+
</References>
|
|
136
|
+
<Value>
|
|
137
|
+
<String xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">http://opcfoundation.org/UA/DI/</String>
|
|
138
|
+
</Value>
|
|
139
|
+
</UAVariable>
|
|
140
|
+
<UAVariable NodeId="ns=1;i=15893" BrowseName="Deprecated" ParentNodeId="ns=1;i=6435" DataType="Boolean">
|
|
141
|
+
<DisplayName>Deprecated</DisplayName>
|
|
142
|
+
<References>
|
|
143
|
+
<Reference ReferenceType="HasTypeDefinition">i=68</Reference>
|
|
144
|
+
<Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=6435</Reference>
|
|
145
|
+
</References>
|
|
146
|
+
<Value>
|
|
147
|
+
<Boolean xmlns="http://opcfoundation.org/UA/2008/02/Types.xsd">true</Boolean>
|
|
148
|
+
</Value>
|
|
149
|
+
</UAVariable>
|
|
150
|
+
</UANodeSet>
|