node-opcua-address-space 2.131.0 → 2.133.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/source/helpers/argument_list.d.ts +1 -6
  2. package/dist/source/helpers/argument_list.js +1 -6
  3. package/dist/source/helpers/argument_list.js.map +1 -1
  4. package/dist/source/helpers/dump_tools.d.ts +0 -4
  5. package/dist/source/helpers/dump_tools.js +0 -4
  6. package/dist/source/helpers/dump_tools.js.map +1 -1
  7. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +4 -53
  8. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -1
  9. package/dist/source/loader/generateAddressSpaceRaw.js +1 -1
  10. package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
  11. package/dist/source/loader/load_nodeset2.js +0 -3
  12. package/dist/source/loader/load_nodeset2.js.map +1 -1
  13. package/dist/source/session_context.d.ts +0 -4
  14. package/dist/source/session_context.js +0 -4
  15. package/dist/source/session_context.js.map +1 -1
  16. package/dist/src/address_space.d.ts +0 -27
  17. package/dist/src/address_space.js +0 -29
  18. package/dist/src/address_space.js.map +1 -1
  19. package/dist/src/alarms_and_conditions/condition.js +14 -13
  20. package/dist/src/alarms_and_conditions/condition.js.map +1 -1
  21. package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +2 -10
  22. package/dist/src/alarms_and_conditions/condition_info_impl.js +2 -10
  23. package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
  24. package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +132 -77
  25. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +121 -128
  26. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
  27. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -10
  28. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +1 -10
  29. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
  30. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +3 -15
  31. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +3 -15
  32. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
  33. package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +1 -7
  34. package/dist/src/alarms_and_conditions/ua_base_event_impl.js +1 -7
  35. package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
  36. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +4 -4
  37. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
  38. package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +0 -28
  39. package/dist/src/alarms_and_conditions/ua_condition_impl.js +2 -33
  40. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
  41. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +0 -1
  42. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +0 -1
  43. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
  44. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +0 -28
  45. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +0 -28
  46. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
  47. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +0 -3
  48. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +0 -3
  49. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
  50. package/dist/src/base_node_impl.d.ts +2 -6
  51. package/dist/src/base_node_impl.js +3 -7
  52. package/dist/src/base_node_impl.js.map +1 -1
  53. package/dist/src/base_node_private.d.ts +1 -1
  54. package/dist/src/base_node_private.js +1 -1
  55. package/dist/src/event_data.d.ts +0 -3
  56. package/dist/src/event_data.js +0 -3
  57. package/dist/src/event_data.js.map +1 -1
  58. package/dist/src/extension_object_array_node.d.ts +1 -1
  59. package/dist/src/extension_object_array_node.js +1 -1
  60. package/dist/src/historical_access/address_space_historical_data_node.d.ts +0 -5
  61. package/dist/src/historical_access/address_space_historical_data_node.js +0 -5
  62. package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
  63. package/dist/src/namespace_impl.d.ts +21 -28
  64. package/dist/src/namespace_impl.js +22 -29
  65. package/dist/src/namespace_impl.js.map +1 -1
  66. package/dist/src/nodeset_tools/nodeset_to_xml.js +1 -1
  67. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
  68. package/dist/src/reference_impl.d.ts +1 -1
  69. package/dist/src/reference_impl.js +1 -1
  70. package/dist/src/state_machine/finite_state_machine.d.ts +0 -5
  71. package/dist/src/state_machine/finite_state_machine.js +0 -8
  72. package/dist/src/state_machine/finite_state_machine.js.map +1 -1
  73. package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +1 -1
  74. package/dist/src/state_machine/ua_shelving_state_machine_ex.js +7 -7
  75. package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
  76. package/dist/src/state_machine/ua_two_state_variable.d.ts +0 -8
  77. package/dist/src/state_machine/ua_two_state_variable.js +0 -8
  78. package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
  79. package/dist/src/ua_object_type_impl.d.ts +1 -1
  80. package/dist/src/ua_object_type_impl.js +1 -1
  81. package/dist/src/ua_variable_impl.d.ts +4 -4
  82. package/dist/src/ua_variable_impl.js +3 -3
  83. package/dist/src/ua_variable_impl_ext_obj.js +0 -2
  84. package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
  85. package/dist/src/ua_variable_type_impl.js +1 -1
  86. package/dist/tsconfig_common.tsbuildinfo +1 -1
  87. package/distHelpers/assertHasMatchingReference.d.ts +1 -1
  88. package/distHelpers/assertHasMatchingReference.js +1 -1
  89. package/package.json +36 -36
  90. package/source/helpers/argument_list.ts +1 -6
  91. package/source/helpers/dump_tools.ts +0 -4
  92. package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +4 -53
  93. package/source/interfaces/state_machine/ua_shelved_state_machine_ex.ts +1 -1
  94. package/source/loader/generateAddressSpaceRaw.ts +2 -2
  95. package/source/loader/load_nodeset2.ts +0 -3
  96. package/source/session_context.ts +0 -4
  97. package/src/address_space.ts +0 -29
  98. package/src/alarms_and_conditions/condition.ts +15 -14
  99. package/src/alarms_and_conditions/condition_info_impl.ts +2 -10
  100. package/src/alarms_and_conditions/condition_snapshot_impl.ts +122 -126
  101. package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -10
  102. package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +3 -15
  103. package/src/alarms_and_conditions/ua_base_event_impl.ts +1 -7
  104. package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +5 -5
  105. package/src/alarms_and_conditions/ua_condition_impl.ts +3 -34
  106. package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +0 -1
  107. package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +0 -28
  108. package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +0 -3
  109. package/src/base_node_impl.ts +3 -7
  110. package/src/base_node_private.ts +1 -1
  111. package/src/event_data.ts +2 -3
  112. package/src/extension_object_array_node.ts +1 -1
  113. package/src/historical_access/address_space_historical_data_node.ts +0 -5
  114. package/src/namespace_impl.ts +22 -29
  115. package/src/nodeset_tools/nodeset_to_xml.ts +5 -6
  116. package/src/reference_impl.ts +1 -1
  117. package/src/state_machine/finite_state_machine.ts +0 -8
  118. package/src/state_machine/ua_shelving_state_machine_ex.ts +8 -8
  119. package/src/state_machine/ua_two_state_variable.ts +0 -8
  120. package/src/ua_object_type_impl.ts +1 -1
  121. package/src/ua_variable_impl.ts +4 -4
  122. package/src/ua_variable_impl_ext_obj.ts +0 -2
  123. package/src/ua_variable_type_impl.ts +1 -1
@@ -22,61 +22,51 @@ export declare class ConditionSnapshotImpl extends EventEmitter implements Condi
22
22
  private _map;
23
23
  private _node_index;
24
24
  /**
25
- * @class ConditionSnapshot
26
- * @extends EventEmitter
27
- * @param condition
28
- * @param branchId
29
- * @constructor
30
25
  */
31
26
  constructor(condition: BaseNode, branchId: NodeId);
32
27
  _constructEventData(): IEventData;
28
+ /**
29
+ * @internal
30
+ */
33
31
  _get_var(varName: string): any;
32
+ /**
33
+ * @internal
34
+ */
34
35
  _set_var(varName: string, dataType: DataType, value: unknown, options?: IConditionVariableTypeSetterOptions): void;
35
36
  /**
36
- * @method getBrandId
37
- * @return {NodeId}
37
+ *
38
38
  */
39
39
  getBranchId(): NodeId;
40
40
  /**
41
- * @method getEventId
42
- * @return {ByteString}
41
+ *
43
42
  */
44
43
  getEventId(): Buffer;
45
44
  /**
46
- * @method getRetain
47
- * @return {Boolean}
45
+ *
48
46
  */
49
47
  getRetain(): boolean;
50
48
  /**
51
49
  *
52
- * @method setRetain
53
- * @param retainFlag {Boolean}
54
50
  */
55
51
  setRetain(retainFlag: boolean): void;
56
52
  /**
57
- * @method renewEventId
58
53
  *
59
54
  */
60
55
  renewEventId(): void;
61
56
  /**
62
- * @method getEnabledState
63
- * @return {Boolean}
57
+ *
64
58
  */
65
59
  getEnabledState(): boolean;
66
60
  /**
67
- * @method setEnabledState
68
- * @param value {Boolean}
69
- * @return void
61
+ *
70
62
  */
71
63
  setEnabledState(value: boolean, options?: ISetStateOptions): void;
72
64
  /**
73
- * @method getEnabledStateAsString
74
- * @return {String}
65
+ *
75
66
  */
76
67
  getEnabledStateAsString(): string;
77
68
  /**
78
- * @method getComment
79
- * @return {LocalizedText}
69
+ *
80
70
  */
81
71
  getComment(): LocalizedText;
82
72
  /**
@@ -88,57 +78,131 @@ export declare class ConditionSnapshotImpl extends EventEmitter implements Condi
88
78
  * a Method provides as an option the ability to set a Comment, then the value of this Variable is
89
79
  * reset to null if an optional comment is not provided.
90
80
  *
91
- * @method setComment
92
- * @param txtMessage {LocalizedText}
93
81
  */
94
82
  setComment(txtMessage: LocalizedTextLike, options?: IConditionVariableTypeSetterOptions): void;
95
83
  /**
96
- *
97
- * @method setMessage
98
- * @param txtMessage {LocalizedText}
84
+ * set the condition message (localized text)
99
85
  */
100
86
  setMessage(txtMessage: LocalizedTextLike | LocalizedText): void;
101
87
  /**
102
- * @method setClientUserId
103
- * @param userIdentity {String}
88
+ *
104
89
  */
105
90
  setClientUserId(userIdentity: string): void;
106
91
  /**
107
92
  * set the condition quality
108
- * @method setQuality
109
- * @param quality {StatusCode}
93
+ *
94
+ *
95
+ * as per spec 1.0.3 - Part 9
96
+ *
97
+ * Quality reveals the status of process values or other resources that this Condition
98
+ * instance is based upon.
99
+ *
100
+ * If, for example, a process value is “Uncertain”, the associated “LevelAlarm”
101
+ * Condition is also questionable.
102
+ *
103
+ * Values for the Quality can be any of the OPC StatusCodes defined in Part 8
104
+ * as well as Good, Uncertain and Bad as defined in Part 4.
105
+ *
106
+ * These StatusCodes are similar to but slightly more generic than the description
107
+ * of data quality in the various field bus specifications.
108
+ *
109
+ * It is the responsibility of the Server to map internal status information to these codes.
110
+ *
111
+ * A Server which supports no quality information shall return Good.
112
+ *
113
+ * This quality can also reflect the communication status associated with the system that this
114
+ * value or resource is based on and from which this Alarm was received. For communication
115
+ * errors to the underlying system, especially those that result in some unavailable
116
+ * Event fields, the quality shall be BadNoCommunication error.
117
+ *
118
+ * Quality refers to the quality of the data value(s) upon which this Condition is based.
119
+ *
120
+ * Since a Condition is usually based on one or more Variables, the Condition inherits
121
+ * the quality of these Variables. E.g., if the process value is “Uncertain”,
122
+ * the “LevelAlarm” Condition is also questionable.
123
+ *
124
+ * If more than one variable is represented by a given condition or if the condition
125
+ * is from an underlining system and no direct mapping to a variable is available,
126
+ * it is up to the application to determine what quality is displayed as part of the condition.
110
127
  */
111
128
  setQuality(quality: StatusCode, options?: IConditionVariableTypeSetterOptions): void;
112
129
  /**
113
- * @method getQuality
114
- * @return {StatusCode}
130
+ *
115
131
  */
116
132
  getQuality(): StatusCode;
117
133
  /**
118
- * @method setSeverity
119
- * @param severity {UInt16}
134
+ * **as per spec 1.0.3 - Part 9**
135
+ *
136
+ * The Severity of a Condition is inherited from the base Event model defined in Part 5. It
137
+ * indicates the urgency of the Condition and is also commonly called ‘priority’, especially in
138
+ * relation to Alarms in the ProcessConditionClass.
139
+ *
140
+ * **as per spec 1.0.3 - Part 5**
141
+ *
142
+ * Severity is an indication of the urgency of the Event. This is also commonly
143
+ * called “priority”.
144
+ *
145
+ * Values will range from 1 to 1 000, with 1 being the lowest severity and 1 000
146
+ * being the highest.
147
+ *
148
+ * Typically, a severity of 1 would indicate an Event which is informational in nature,
149
+ * while a value of 1 000 would indicate an Event of catastrophic nature, which could
150
+ * potentially result in severe financial loss or loss of life.
151
+ *
152
+ * It is expected that very few Server implementations will support 1 000 distinct
153
+ * severity levels.
154
+ *
155
+ * Therefore, Server developers are responsible for distributing their severity levels
156
+ * across the 1 to 1 000 range in such a manner that clients can assume a linear
157
+ * distribution.
158
+ *
159
+ *
160
+ * For example, a client wishing to present five severity levels to a user should be
161
+ * able to do the following mapping:
162
+ *
163
+ *
164
+ * Client Severity OPC Severity
165
+ * HIGH 801 – 1 000
166
+ * MEDIUM HIGH 601 – 800
167
+ * MEDIUM 401 – 600
168
+ * MEDIUM LOW 201 – 400
169
+ * LOW 1 – 200
170
+ *
171
+ * In many cases a strict linear mapping of underlying source severities to the OPC
172
+ * Severity range is not appropriate. The Server developer will instead intelligently
173
+ * map the underlying source severities to the 1 to 1 000 OPC Severity range in some
174
+ * other fashion.
175
+ *
176
+ * In particular, it it recommended that Server developers map Events of high urgency
177
+ * into the OPC severity range of 667 to 1 000, Events of medium urgency into the
178
+ * OPC severity range of 334 to 666 and Events of low urgency into OPC severities
179
+ * of 1 to 333.
120
180
  */
121
181
  setSeverity(severity: UInt16, options?: IConditionVariableTypeSetterOptions): void;
122
182
  /**
123
- * @method getSeverity
124
- * @return {UInt16}
125
183
  */
126
184
  getSeverity(): UInt16;
127
185
  getSeveritySourceTimestamp(): Date;
128
186
  /**
129
- * @method setLastSeverity
130
- * @param severity {UInt16}
187
+ * LastSeverity provides the previous severity of the ConditionBranch.
188
+ *
189
+ * **as per spec 1.0.3 - part 9**
190
+ *
191
+ *
192
+ * Initially this Variable contains a zero value;
193
+ * it will return a value only after a severity change. The new severity is
194
+ * supplied via the Severity Property which is inherited from the BaseEventType.
195
+ *
131
196
  */
132
197
  setLastSeverity(severity: UInt16, options?: IConditionVariableTypeSetterOptions): void;
133
198
  /**
134
- * @method getLastSeverity
135
- * @return {UInt16}
199
+ *
136
200
  */
137
201
  getLastSeverity(): UInt16;
138
202
  /**
139
203
  * setReceiveTime
140
204
  *
141
- * (as per OPCUA 1.0.3 part 5)
205
+ * **as per OPCUA 1.0.3 part 5**:
142
206
  *
143
207
  * ReceiveTime provides the time the OPC UA Server received the Event from the underlying
144
208
  * device of another Server.
@@ -151,40 +215,42 @@ export declare class ConditionSnapshotImpl extends EventEmitter implements Condi
151
215
  * The ReceiveTime shall always be returned as value and the Server is not allowed to return a
152
216
  * StatusCode for the ReceiveTime indicating an error.
153
217
  *
154
- * @method setReceiveTime
155
- * @param time {Date} : UTCTime
156
218
  */
157
219
  setReceiveTime(time: UtcTime): void;
158
220
  /**
159
- * (as per OPCUA 1.0.3 part 5)
160
- * Time provides the time the Event occurred. This value is set as close to the event generator as
161
- * possible. It often comes from the underlying system or device. Once set, intermediate OPC UA
162
- * Servers shall not alter the value.
221
+ * Time provides the time the Event occurred.
222
+ *
223
+ * **as per OPCUA 1.0.3 part 5**:
224
+ *
225
+ * This value is set as close to the event generator as
226
+ * possible. It often comes from the underlying system or device.
227
+ *
228
+ * Once set, intermediate OPC UA Servers shall not alter the value.
163
229
  *
164
- * @method setTime
165
- * @param time {Date}
166
230
  */
167
231
  setTime(time: Date): void;
168
232
  /**
169
- * LocalTime is a structure containing the Offset and the DaylightSavingInOffset flag. The Offset
170
- * specifies the time difference (in minutes) between the Time Property and the time at the location
171
- * in which the event was issued. If DaylightSavingInOffset is TRUE, then Standard/Daylight
172
- * savings time (DST) at the originating location is in effect and Offset includes the DST c orrection.
173
- * If FALSE then the Offset does not include DST correction and DST may or may not have been
233
+ * LocalTime is a structure containing the Offset and the DaylightSavingInOffset flag.
234
+ *
235
+ * The Offset specifies the time difference (in minutes) between the Time Property
236
+ * and the time at the location in which the event was issued.
237
+ *
238
+ *
239
+ * If DaylightSavingInOffset is TRUE, then Standard/Daylight savings time (DST) at
240
+ * the originating location is in effect and Offset includes the DST correction.
241
+ *
242
+ * If `false` then the Offset does not include DST correction and DST may or may not have been
174
243
  * in effect.
175
- * @method setLocalTime
176
- * @param localTime {TimeZone}
244
+ *
177
245
  */
178
246
  setLocalTime(localTime: TimeZoneDataType): void;
179
247
  getSourceName(): LocalizedText;
180
248
  /**
181
- * @method getSourceNode
182
- * return {NodeId}
249
+ *
183
250
  */
184
251
  getSourceNode(): NodeId;
185
252
  /**
186
- * @method getEventType
187
- * return {NodeId}
253
+ *
188
254
  */
189
255
  getEventType(): NodeId;
190
256
  getMessage(): LocalizedText;
@@ -194,18 +260,7 @@ export declare class ConditionSnapshotImpl extends EventEmitter implements Condi
194
260
  getConfirmedState(): boolean;
195
261
  setConfirmedStateIfExists(confirmedState: boolean, options?: ISetStateOptions): void;
196
262
  setConfirmedState(confirmedState: boolean): void;
197
- /**
198
- * @class ConditionSnapshot
199
- */
200
- /**
201
- * @method getSuppressedState
202
- * @return {Boolean}
203
- */
204
263
  getSuppressedState(): boolean;
205
- /**
206
- * @method setSuppressedState
207
- * @param suppressed {Boolean}
208
- */
209
264
  setSuppressedState(suppressed: boolean, options?: ISetStateOptions): void;
210
265
  getActiveState(): boolean;
211
266
  setActiveState(newActiveState: boolean, options?: ISetStateOptions): StatusCode;
@@ -218,12 +273,12 @@ export declare class ConditionSnapshotImpl extends EventEmitter implements Condi
218
273
  setShelvingState(): void;
219
274
  toString(): string;
220
275
  /**
221
- * @class ConditionSnapshot
222
- * @param varName
223
- * @param value
224
- * @private
276
+ * @internal
225
277
  */
226
278
  _set_twoStateVariable(varName: string, value: boolean, options?: ISetStateOptions): void;
279
+ /**
280
+ * @internal
281
+ */
227
282
  protected _get_twoStateVariable(varName: string): any;
228
283
  }
229
284
  export {};