node-opcua-address-space 2.59.0 → 2.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/address_space_ts.d.ts +0 -2
- package/dist/source/helpers/argument_list.js +12 -1
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js +47 -64
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/set_namespace_meta_data.js +1 -1
- package/dist/src/address_space.js +8 -5
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot.js +3 -3
- package/dist/src/alarms_and_conditions/condition_snapshot.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 +8 -6
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/base_node_private.js +2 -2
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/event_data.js +1 -1
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/namespace_impl.js +5 -5
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.js +15 -9
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/nodeset_tools/typedictionary_to_xml.js +17 -10
- package/dist/src/nodeset_tools/typedictionary_to_xml.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +20 -13
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/ua_data_type_impl.d.ts +15 -5
- package/dist/src/ua_data_type_impl.js +129 -51
- package/dist/src/ua_data_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.d.ts +6 -6
- package/dist/src/ua_variable_impl.js +236 -188
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_type_impl.d.ts +3 -4
- package/dist/src/ua_variable_type_impl.js +13 -18
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/distHelpers/mock_session.js +1 -1
- package/distHelpers/mock_session.js.map +1 -1
- package/package.json +35 -35
- package/source/address_space_ts.ts +0 -1
- package/source/helpers/argument_list.ts +13 -3
- package/source/loader/load_nodeset2.ts +64 -80
- package/source/set_namespace_meta_data.ts +1 -1
- package/src/address_space.ts +15 -9
- package/src/alarms_and_conditions/condition_snapshot.ts +4 -4
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +2 -2
- package/src/alarms_and_conditions/ua_condition_impl.ts +18 -8
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +1 -1
- package/src/base_node_private.ts +6 -2
- package/src/event_data.ts +1 -1
- package/src/namespace_impl.ts +6 -6
- package/src/nodeset_tools/nodeset_to_xml.ts +20 -10
- package/src/nodeset_tools/typedictionary_to_xml.ts +17 -7
- package/src/state_machine/ua_shelving_state_machine_ex.ts +28 -16
- package/src/ua_data_type_impl.ts +168 -61
- package/src/ua_variable_impl.ts +290 -218
- package/src/ua_variable_type_impl.ts +9 -15
- package/test_helpers/mock_session.ts +1 -1
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +9 -0
- package/test_helpers/test_fixtures/mini.Node.Set2.xml +14 -0
|
@@ -6,20 +6,6 @@
|
|
|
6
6
|
import * as chalk from "chalk";
|
|
7
7
|
|
|
8
8
|
import { assert } from "node-opcua-assert";
|
|
9
|
-
import { UInt32 } from "node-opcua-basic-types";
|
|
10
|
-
import { ReferenceTypeIds } from "node-opcua-constants";
|
|
11
|
-
import { coerceQualifiedName, NodeClass, QualifiedName } from "node-opcua-data-model";
|
|
12
|
-
import { BrowseDirection } from "node-opcua-data-model";
|
|
13
|
-
import { AttributeIds } from "node-opcua-data-model";
|
|
14
|
-
import { DataValue, DataValueLike } from "node-opcua-data-value";
|
|
15
|
-
import { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
16
|
-
import { coerceNodeId, makeNodeId, NodeId, NodeIdLike, sameNodeId } from "node-opcua-nodeid";
|
|
17
|
-
import { StatusCodes } from "node-opcua-status-code";
|
|
18
|
-
import { isNullOrUndefined } from "node-opcua-utils";
|
|
19
|
-
import { DataType } from "node-opcua-variant";
|
|
20
|
-
import { Variant } from "node-opcua-variant";
|
|
21
|
-
import { VariantArrayType } from "node-opcua-variant";
|
|
22
|
-
|
|
23
9
|
import {
|
|
24
10
|
IAddressSpace,
|
|
25
11
|
AddVariableOptions,
|
|
@@ -35,6 +21,15 @@ import {
|
|
|
35
21
|
UAVariableType,
|
|
36
22
|
CloneFilter
|
|
37
23
|
} from "node-opcua-address-space-base";
|
|
24
|
+
import { ReferenceTypeIds } from "node-opcua-constants";
|
|
25
|
+
import { coerceQualifiedName, NodeClass, QualifiedName, BrowseDirection, AttributeIds } from "node-opcua-data-model";
|
|
26
|
+
import { DataValue, DataValueLike } from "node-opcua-data-value";
|
|
27
|
+
import { checkDebugFlag, make_debugLog, make_warningLog } from "node-opcua-debug";
|
|
28
|
+
import { coerceNodeId, makeNodeId, NodeId, NodeIdLike, sameNodeId } from "node-opcua-nodeid";
|
|
29
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
30
|
+
import { UInt32 } from "node-opcua-basic-types";
|
|
31
|
+
import { isNullOrUndefined } from "node-opcua-utils";
|
|
32
|
+
import { DataType, Variant, VariantArrayType, verifyRankAndDimensions } from "node-opcua-variant";
|
|
38
33
|
|
|
39
34
|
import { SessionContext } from "../source/session_context";
|
|
40
35
|
import { makeOptionalsMap, OptionalMap } from "../source/helpers/make_optionals_map";
|
|
@@ -45,7 +40,6 @@ import { _clone_children_references, ToStringBuilder, UAVariableType_toString }
|
|
|
45
40
|
import * as tools from "./tool_isSupertypeOf";
|
|
46
41
|
import { get_subtypeOfObj } from "./tool_isSupertypeOf";
|
|
47
42
|
import { get_subtypeOf } from "./tool_isSupertypeOf";
|
|
48
|
-
import { verifyRankAndDimensions } from "./ua_variable_impl";
|
|
49
43
|
|
|
50
44
|
const debugLog = make_debugLog(__filename);
|
|
51
45
|
const doDebug = checkDebugFlag(__filename);
|
|
@@ -28,7 +28,7 @@ export class MockContinuationPointManager implements IContinuationPointManager {
|
|
|
28
28
|
|
|
29
29
|
export const mockSession = {
|
|
30
30
|
getSessionId() {
|
|
31
|
-
return NodeId
|
|
31
|
+
return new NodeId();
|
|
32
32
|
},
|
|
33
33
|
continuationPointManager: new MockContinuationPointManager()
|
|
34
34
|
};
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<Alias Alias="HasTypeDefinition">i=40</Alias>
|
|
14
14
|
<Alias Alias="HasProperty">i=46</Alias>
|
|
15
15
|
<Alias Alias="HasNotifier">i=48</Alias>
|
|
16
|
+
<Alias Alias="HasEncoding">i=38</Alias>
|
|
16
17
|
<Alias Alias="LocalizedText">i=21</Alias>
|
|
17
18
|
</Aliases>
|
|
18
19
|
<UADataType NodeId="i=6" BrowseName="Int32">
|
|
@@ -231,6 +232,14 @@
|
|
|
231
232
|
</References>
|
|
232
233
|
<InverseName>MayBeEffectedBy</InverseName>
|
|
233
234
|
</UAReferenceType>
|
|
235
|
+
<UAReferenceType NodeId="i=38" BrowseName="HasEncoding">
|
|
236
|
+
<DisplayName>HasEncoding</DisplayName>
|
|
237
|
+
<Description>The type for references from data type nodes to to data type encoding nodes.</Description>
|
|
238
|
+
<References>
|
|
239
|
+
<Reference ReferenceType="HasSubtype" IsForward="false">i=32</Reference>
|
|
240
|
+
</References>
|
|
241
|
+
<InverseName>EncodingOf</InverseName>
|
|
242
|
+
</UAReferenceType>
|
|
234
243
|
<UAObjectType NodeId="i=58" BrowseName="BaseObjectType">
|
|
235
244
|
<DisplayName>BaseObjectType</DisplayName>
|
|
236
245
|
<Description>The base type for all object nodes.</Description>
|
|
@@ -4505,4 +4505,18 @@
|
|
|
4505
4505
|
<Reference ReferenceType="HasProperty" IsForward="false">i=11646</Reference>
|
|
4506
4506
|
</References>
|
|
4507
4507
|
</UAVariable>
|
|
4508
|
+
<UADataType NodeId="i=256" BrowseName="IdType">
|
|
4509
|
+
<DisplayName>IdType</DisplayName>
|
|
4510
|
+
<Documentation>https://reference.opcfoundation.org/v104/Core/docs/Part3/8.2.3</Documentation>
|
|
4511
|
+
<References>
|
|
4512
|
+
<Reference ReferenceType="HasProperty">i=7591</Reference>
|
|
4513
|
+
<Reference ReferenceType="HasSubtype" IsForward="false">i=29</Reference>
|
|
4514
|
+
</References>
|
|
4515
|
+
<Definition Name="IdType">
|
|
4516
|
+
<Field Name="Numeric" Value="0" />
|
|
4517
|
+
<Field Name="String" Value="1" />
|
|
4518
|
+
<Field Name="Guid" Value="2" />
|
|
4519
|
+
<Field Name="Opaque" Value="3" />
|
|
4520
|
+
</Definition>
|
|
4521
|
+
</UADataType>
|
|
4508
4522
|
</UANodeSet>
|