node-opcua-address-space 2.90.1 → 2.91.1
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/address_space_ts.d.ts +3 -3
- package/dist/source/address_space_ts.js +3 -3
- package/dist/source/address_space_ts.js.map +1 -1
- package/dist/source/helpers/argument_list.js +3 -3
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/call_helpers.d.ts +1 -1
- package/dist/source/helpers/multiform_func.d.ts +8 -8
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +1 -1
- package/dist/source/interfaces/extension_object_constructor.d.ts +1 -1
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +15 -3
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +2 -2
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +1 -1
- package/dist/source/loader/namespace_post_step.d.ts +1 -1
- package/dist/source/session_context.d.ts +1 -1
- package/dist/src/address_space.js +19 -19
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +2 -2
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/src/apply_condition_refresh.d.ts +1 -1
- package/dist/src/base_node_impl.js +47 -47
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.js +4 -4
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/event_data.d.ts +2 -2
- package/dist/src/extension_object_array_node.js +3 -3
- package/dist/src/extension_object_array_node.js.map +1 -1
- package/dist/src/index_current.d.ts +1 -1
- package/dist/src/index_current.js +2 -1
- package/dist/src/index_current.js.map +1 -1
- package/dist/src/nodeid_manager.d.ts +3 -3
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +9 -9
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/reference_impl.js +6 -6
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/state_machine/finite_state_machine.d.ts +16 -2
- package/dist/src/state_machine/finite_state_machine.js +83 -44
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/tool_isSubtypeOf.d.ts +18 -0
- package/dist/src/tool_isSubtypeOf.js +125 -0
- package/dist/src/tool_isSubtypeOf.js.map +1 -0
- package/dist/src/ua_data_type_impl.d.ts +6 -4
- package/dist/src/ua_data_type_impl.js +24 -22
- package/dist/src/ua_data_type_impl.js.map +1 -1
- package/dist/src/ua_method_impl.js +6 -6
- package/dist/src/ua_method_impl.js.map +1 -1
- package/dist/src/ua_object_impl.js +7 -7
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +4 -2
- package/dist/src/ua_object_type_impl.js +12 -10
- package/dist/src/ua_object_type_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +5 -3
- package/dist/src/ua_reference_type_impl.js +12 -10
- package/dist/src/ua_reference_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.d.ts +7 -7
- package/dist/src/ua_variable_impl.js +30 -30
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_impl_ext_obj.js +3 -3
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.d.ts +4 -2
- package/dist/src/ua_variable_type_impl.js +15 -10
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view_impl.js +3 -3
- package/dist/src/ua_view_impl.js.map +1 -1
- package/distHelpers/boiler_system.js +5 -5
- package/distHelpers/boiler_system.js.map +1 -1
- package/package.json +7 -7
- package/source/helpers/argument_list.ts +3 -3
- package/source/interfaces/state_machine/ua_state_machine_type.ts +19 -1
- package/src/address_space.ts +8 -8
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +1 -1
- package/src/alarms_and_conditions/ua_condition_impl.ts +2 -2
- package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +1 -1
- package/src/base_node_impl.ts +3 -3
- package/src/base_node_private.ts +3 -3
- package/src/extension_object_array_node.ts +3 -3
- package/src/index_current.ts +1 -1
- package/src/nodeset_tools/nodeset_to_xml.ts +9 -9
- package/src/state_machine/finite_state_machine.ts +105 -60
- package/src/{tool_isSupertypeOf.ts → tool_isSubtypeOf.ts} +9 -9
- package/src/ua_data_type_impl.ts +21 -19
- package/src/ua_object_type_impl.ts +9 -3
- package/src/ua_reference_type_impl.ts +7 -4
- package/src/ua_variable_impl.ts +2033 -2033
- package/src/ua_variable_impl_ext_obj.ts +3 -3
- package/src/ua_variable_type_impl.ts +11 -4
- package/test_helpers/boiler_system.ts +5 -5
|
@@ -255,7 +255,7 @@ function installExt(uaVariable: UAVariableImpl, ext: ExtensionObject) {
|
|
|
255
255
|
if (field.dataType) {
|
|
256
256
|
const dataTypeNode = addressSpace.findDataType(field.dataType);
|
|
257
257
|
// istanbul ignore next
|
|
258
|
-
if (dataTypeNode && dataTypeNode.
|
|
258
|
+
if (dataTypeNode && dataTypeNode.isSubtypeOf(structure)) {
|
|
259
259
|
// sub structure .. let make an handler too
|
|
260
260
|
const camelCaseName = lowerFirstLetter(field.name!);
|
|
261
261
|
|
|
@@ -389,7 +389,7 @@ function isVariableContainingExtensionObject(uaVariable: UAVariableImpl): boolea
|
|
|
389
389
|
assert(structure.browseName.toString() === "Structure", "expecting DataType Structure to be in IAddressSpace");
|
|
390
390
|
|
|
391
391
|
const dt = uaVariable.getDataTypeNode() as UADataTypeImpl;
|
|
392
|
-
if (!dt.
|
|
392
|
+
if (!dt.isSubtypeOf(structure)) {
|
|
393
393
|
return false;
|
|
394
394
|
}
|
|
395
395
|
return true;
|
|
@@ -469,7 +469,7 @@ export function _bindExtensionObject(
|
|
|
469
469
|
const dataTypeNode = addressSpace.findNode(parentDataType) as UADataType;
|
|
470
470
|
const structure = addressSpace.findDataType("Structure")!;
|
|
471
471
|
// istanbul ignore next
|
|
472
|
-
if (dataTypeNode && dataTypeNode.
|
|
472
|
+
if (dataTypeNode && dataTypeNode.isSubtypeOf(structure)) {
|
|
473
473
|
// warningLog(
|
|
474
474
|
// "Ignoring bindExtensionObject on sub extension object",
|
|
475
475
|
// "child=",
|
|
@@ -37,9 +37,9 @@ import { makeOptionalsMap, OptionalMap } from "../source/helpers/make_optionals_
|
|
|
37
37
|
import { AddressSpacePrivate } from "./address_space_private";
|
|
38
38
|
import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
|
|
39
39
|
import { _clone_children_references, ToStringBuilder, UAVariableType_toString } from "./base_node_private";
|
|
40
|
-
import * as tools from "./
|
|
41
|
-
import { get_subtypeOfObj } from "./
|
|
42
|
-
import { get_subtypeOf } from "./
|
|
40
|
+
import * as tools from "./tool_isSubtypeOf";
|
|
41
|
+
import { get_subtypeOfObj } from "./tool_isSubtypeOf";
|
|
42
|
+
import { get_subtypeOf } from "./tool_isSubtypeOf";
|
|
43
43
|
import { checkValueRankCompatibility } from "./check_value_rank_compatibility";
|
|
44
44
|
|
|
45
45
|
const debugLog = make_debugLog(__filename);
|
|
@@ -103,6 +103,10 @@ export interface UAVariableTypeOptions extends InternalBaseNodeOptions {
|
|
|
103
103
|
value?: any;
|
|
104
104
|
dataType: NodeIdLike;
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
function deprecate<T>(func: T):T {
|
|
108
|
+
return func;
|
|
109
|
+
}
|
|
106
110
|
export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
|
|
107
111
|
public readonly nodeClass = NodeClass.VariableType;
|
|
108
112
|
|
|
@@ -114,7 +118,10 @@ export class UAVariableTypeImpl extends BaseNodeImpl implements UAVariableType {
|
|
|
114
118
|
return get_subtypeOfObj.call(this) as UAVariableType;
|
|
115
119
|
}
|
|
116
120
|
|
|
117
|
-
public
|
|
121
|
+
public isSubtypeOf = tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl);
|
|
122
|
+
|
|
123
|
+
/** @deprecated - use isSubtypeOf instead */
|
|
124
|
+
public isSupertypeOf = deprecate(tools.construct_isSubtypeOf<UAVariableType>(UAVariableTypeImpl));
|
|
118
125
|
|
|
119
126
|
public readonly isAbstract: boolean;
|
|
120
127
|
public dataType: NodeId;
|
|
@@ -248,11 +248,11 @@ export function createBoilerType(namespace: Namespace): BoilerType {
|
|
|
248
248
|
}) as SignalToReference;
|
|
249
249
|
|
|
250
250
|
const addressSpace = namespace.addressSpace;
|
|
251
|
-
flowTo.
|
|
252
|
-
flowTo.
|
|
253
|
-
hotFlowTo.
|
|
254
|
-
hotFlowTo.
|
|
255
|
-
hotFlowTo.
|
|
251
|
+
flowTo.isSubtypeOf(addressSpace.findReferenceType("References")!);
|
|
252
|
+
flowTo.isSubtypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
|
|
253
|
+
hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("References")!);
|
|
254
|
+
hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("NonHierarchicalReferences")!);
|
|
255
|
+
hotFlowTo.isSubtypeOf(addressSpace.findReferenceType("FlowTo", namespace.index)!);
|
|
256
256
|
|
|
257
257
|
const NonHierarchicalReferences = addressSpace.findReferenceType("NonHierarchicalReferences");
|
|
258
258
|
|