node-opcua-address-space 2.96.0 → 2.98.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 (433) hide show
  1. package/package.json +37 -37
  2. package/source/interfaces/alarms_and_conditions/ua_condition_ex.ts +4 -3
  3. package/source/loader/make_xml_extension_object_parser.ts +10 -9
  4. package/src/address_space.ts +6 -5
  5. package/src/alarms_and_conditions/ua_condition_impl.ts +14 -9
  6. package/src/base_node_impl.ts +6 -2
  7. package/src/base_node_private.ts +73 -28
  8. package/src/data_access/ua_two_state_discrete_impl.ts +2 -0
  9. package/src/ua_variable_impl.ts +2039 -2037
  10. package/src/ua_variable_type_impl.ts +35 -17
  11. package/dist/source/address_space_ts.d.ts +0 -118
  12. package/dist/source/address_space_ts.js +0 -18
  13. package/dist/source/address_space_ts.js.map +0 -1
  14. package/dist/source/continuation_points/continuation_point_manager.d.ts +0 -91
  15. package/dist/source/continuation_points/continuation_point_manager.js +0 -201
  16. package/dist/source/continuation_points/continuation_point_manager.js.map +0 -1
  17. package/dist/source/helpers/adjust_browse_direction.d.ts +0 -5
  18. package/dist/source/helpers/adjust_browse_direction.js +0 -12
  19. package/dist/source/helpers/adjust_browse_direction.js.map +0 -1
  20. package/dist/source/helpers/argument_list.d.ts +0 -33
  21. package/dist/source/helpers/argument_list.js +0 -255
  22. package/dist/source/helpers/argument_list.js.map +0 -1
  23. package/dist/source/helpers/call_helpers.d.ts +0 -6
  24. package/dist/source/helpers/call_helpers.js +0 -72
  25. package/dist/source/helpers/call_helpers.js.map +0 -1
  26. package/dist/source/helpers/coerce_enum_value.d.ts +0 -6
  27. package/dist/source/helpers/coerce_enum_value.js +0 -34
  28. package/dist/source/helpers/coerce_enum_value.js.map +0 -1
  29. package/dist/source/helpers/dump_tools.d.ts +0 -14
  30. package/dist/source/helpers/dump_tools.js +0 -79
  31. package/dist/source/helpers/dump_tools.js.map +0 -1
  32. package/dist/source/helpers/ensure_secure_access.d.ts +0 -9
  33. package/dist/source/helpers/ensure_secure_access.js +0 -77
  34. package/dist/source/helpers/ensure_secure_access.js.map +0 -1
  35. package/dist/source/helpers/make_optionals_map.d.ts +0 -21
  36. package/dist/source/helpers/make_optionals_map.js +0 -30
  37. package/dist/source/helpers/make_optionals_map.js.map +0 -1
  38. package/dist/source/helpers/multiform_func.d.ts +0 -11
  39. package/dist/source/helpers/multiform_func.js +0 -76
  40. package/dist/source/helpers/multiform_func.js.map +0 -1
  41. package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +0 -3
  42. package/dist/source/helpers/resolve_opaque_on_address_space.js +0 -37
  43. package/dist/source/helpers/resolve_opaque_on_address_space.js.map +0 -1
  44. package/dist/source/index.d.ts +0 -61
  45. package/dist/source/index.js +0 -90
  46. package/dist/source/index.js.map +0 -1
  47. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +0 -19
  48. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +0 -3
  49. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js.map +0 -1
  50. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +0 -193
  51. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js +0 -3
  52. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js.map +0 -1
  53. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +0 -12
  54. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js +0 -3
  55. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js.map +0 -1
  56. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +0 -10
  57. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js +0 -3
  58. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js.map +0 -1
  59. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +0 -7
  60. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +0 -3
  61. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js.map +0 -1
  62. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +0 -7
  63. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js +0 -3
  64. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js.map +0 -1
  65. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +0 -4
  66. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +0 -3
  67. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js.map +0 -1
  68. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +0 -4
  69. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +0 -3
  70. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js.map +0 -1
  71. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +0 -9
  72. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +0 -3
  73. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js.map +0 -1
  74. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +0 -4
  75. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +0 -3
  76. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js.map +0 -1
  77. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +0 -4
  78. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +0 -3
  79. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js.map +0 -1
  80. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +0 -20
  81. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +0 -3
  82. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js.map +0 -1
  83. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +0 -23
  84. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +0 -3
  85. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js.map +0 -1
  86. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +0 -32
  87. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +0 -3
  88. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js.map +0 -1
  89. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +0 -19
  90. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +0 -3
  91. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js.map +0 -1
  92. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +0 -42
  93. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js +0 -3
  94. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js.map +0 -1
  95. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +0 -7
  96. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +0 -26
  97. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +0 -1
  98. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +0 -5
  99. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +0 -3
  100. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js.map +0 -1
  101. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +0 -20
  102. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +0 -3
  103. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js.map +0 -1
  104. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +0 -26
  105. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +0 -3
  106. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js.map +0 -1
  107. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +0 -8
  108. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +0 -3
  109. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js.map +0 -1
  110. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +0 -10
  111. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +0 -3
  112. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js.map +0 -1
  113. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +0 -21
  114. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +0 -3
  115. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js.map +0 -1
  116. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +0 -24
  117. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +0 -3
  118. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js.map +0 -1
  119. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +0 -12
  120. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +0 -3
  121. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js.map +0 -1
  122. package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +0 -8
  123. package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +0 -3
  124. package/dist/source/interfaces/data_access/ua_y_array_item_ex.js.map +0 -1
  125. package/dist/source/interfaces/extension_object_constructor.d.ts +0 -10
  126. package/dist/source/interfaces/extension_object_constructor.js +0 -3
  127. package/dist/source/interfaces/extension_object_constructor.js.map +0 -1
  128. package/dist/source/interfaces/nodeset_loader_options.d.ts +0 -4
  129. package/dist/source/interfaces/nodeset_loader_options.js +0 -3
  130. package/dist/source/interfaces/nodeset_loader_options.js.map +0 -1
  131. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +0 -12
  132. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +0 -3
  133. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js.map +0 -1
  134. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +0 -49
  135. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +0 -3
  136. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js.map +0 -1
  137. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +0 -11
  138. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +0 -3
  139. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js.map +0 -1
  140. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +0 -30
  141. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js +0 -3
  142. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js.map +0 -1
  143. package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +0 -234
  144. package/dist/source/interfaces/state_machine/ua_state_machine_type.js +0 -3
  145. package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +0 -1
  146. package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +0 -6
  147. package/dist/source/interfaces/state_machine/ua_transition_ex.js +0 -3
  148. package/dist/source/interfaces/state_machine/ua_transition_ex.js.map +0 -1
  149. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +0 -8
  150. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +0 -3
  151. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +0 -1
  152. package/dist/source/loader/decode_xml_extension_object.d.ts +0 -6
  153. package/dist/source/loader/decode_xml_extension_object.js +0 -72
  154. package/dist/source/loader/decode_xml_extension_object.js.map +0 -1
  155. package/dist/source/loader/ensure_datatype_extracted.d.ts +0 -5
  156. package/dist/source/loader/ensure_datatype_extracted.js +0 -71
  157. package/dist/source/loader/ensure_datatype_extracted.js.map +0 -1
  158. package/dist/source/loader/generateAddressSpaceRaw.d.ts +0 -11
  159. package/dist/source/loader/generateAddressSpaceRaw.js +0 -46
  160. package/dist/source/loader/generateAddressSpaceRaw.js.map +0 -1
  161. package/dist/source/loader/load_nodeset2.d.ts +0 -17
  162. package/dist/source/loader/load_nodeset2.js +0 -1484
  163. package/dist/source/loader/load_nodeset2.js.map +0 -1
  164. package/dist/source/loader/make_semver_compatible.d.ts +0 -6
  165. package/dist/source/loader/make_semver_compatible.js +0 -26
  166. package/dist/source/loader/make_semver_compatible.js.map +0 -1
  167. package/dist/source/loader/make_xml_extension_object_parser.d.ts +0 -28
  168. package/dist/source/loader/make_xml_extension_object_parser.js +0 -326
  169. package/dist/source/loader/make_xml_extension_object_parser.js.map +0 -1
  170. package/dist/source/loader/namespace_post_step.d.ts +0 -10
  171. package/dist/source/loader/namespace_post_step.js +0 -62
  172. package/dist/source/loader/namespace_post_step.js.map +0 -1
  173. package/dist/source/loader/register_node_promoter.d.ts +0 -2
  174. package/dist/source/loader/register_node_promoter.js +0 -10
  175. package/dist/source/loader/register_node_promoter.js.map +0 -1
  176. package/dist/source/namespace.d.ts +0 -6
  177. package/dist/source/namespace.js +0 -3
  178. package/dist/source/namespace.js.map +0 -1
  179. package/dist/source/namespace_alarm_and_condition.d.ts +0 -32
  180. package/dist/source/namespace_alarm_and_condition.js +0 -3
  181. package/dist/source/namespace_alarm_and_condition.js.map +0 -1
  182. package/dist/source/namespace_data_access.d.ts +0 -42
  183. package/dist/source/namespace_data_access.js +0 -3
  184. package/dist/source/namespace_data_access.js.map +0 -1
  185. package/dist/source/namespace_machine_state.d.ts +0 -8
  186. package/dist/source/namespace_machine_state.js +0 -3
  187. package/dist/source/namespace_machine_state.js.map +0 -1
  188. package/dist/source/pseudo_session.d.ts +0 -72
  189. package/dist/source/pseudo_session.js +0 -255
  190. package/dist/source/pseudo_session.js.map +0 -1
  191. package/dist/source/session_context.d.ts +0 -111
  192. package/dist/source/session_context.js +0 -265
  193. package/dist/source/session_context.js.map +0 -1
  194. package/dist/source/set_namespace_meta_data.d.ts +0 -2
  195. package/dist/source/set_namespace_meta_data.js +0 -60
  196. package/dist/source/set_namespace_meta_data.js.map +0 -1
  197. package/dist/source/ua_root_folder.d.ts +0 -9
  198. package/dist/source/ua_root_folder.js +0 -3
  199. package/dist/source/ua_root_folder.js.map +0 -1
  200. package/dist/source/ua_two_state_variable_ex.d.ts +0 -23
  201. package/dist/source/ua_two_state_variable_ex.js +0 -3
  202. package/dist/source/ua_two_state_variable_ex.js.map +0 -1
  203. package/dist/source/xml_writer.d.ts +0 -18
  204. package/dist/source/xml_writer.js +0 -3
  205. package/dist/source/xml_writer.js.map +0 -1
  206. package/dist/src/address_space.d.ts +0 -387
  207. package/dist/src/address_space.js +0 -1385
  208. package/dist/src/address_space.js.map +0 -1
  209. package/dist/src/address_space_change_event_tools.d.ts +0 -6
  210. package/dist/src/address_space_change_event_tools.js +0 -153
  211. package/dist/src/address_space_change_event_tools.js.map +0 -1
  212. package/dist/src/address_space_private.d.ts +0 -43
  213. package/dist/src/address_space_private.js +0 -3
  214. package/dist/src/address_space_private.js.map +0 -1
  215. package/dist/src/alarms_and_conditions/condition.d.ts +0 -5
  216. package/dist/src/alarms_and_conditions/condition.js +0 -79
  217. package/dist/src/alarms_and_conditions/condition.js.map +0 -1
  218. package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +0 -26
  219. package/dist/src/alarms_and_conditions/condition_info_impl.js +0 -55
  220. package/dist/src/alarms_and_conditions/condition_info_impl.js.map +0 -1
  221. package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +0 -222
  222. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +0 -658
  223. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +0 -1
  224. package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +0 -9
  225. package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +0 -61
  226. package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +0 -1
  227. package/dist/src/alarms_and_conditions/index.d.ts +0 -16
  228. package/dist/src/alarms_and_conditions/index.js +0 -33
  229. package/dist/src/alarms_and_conditions/index.js.map +0 -1
  230. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +0 -44
  231. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +0 -245
  232. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +0 -1
  233. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +0 -93
  234. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +0 -419
  235. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +0 -1
  236. package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +0 -26
  237. package/dist/src/alarms_and_conditions/ua_base_event_impl.js +0 -39
  238. package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +0 -1
  239. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +0 -44
  240. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +0 -184
  241. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +0 -1
  242. package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +0 -153
  243. package/dist/src/alarms_and_conditions/ua_condition_impl.js +0 -1029
  244. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +0 -1
  245. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +0 -14
  246. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +0 -35
  247. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +0 -1
  248. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +0 -24
  249. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +0 -57
  250. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +0 -1
  251. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +0 -11
  252. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +0 -12
  253. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +0 -1
  254. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +0 -23
  255. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +0 -87
  256. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +0 -1
  257. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +0 -11
  258. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +0 -8
  259. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +0 -1
  260. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +0 -79
  261. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +0 -251
  262. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +0 -1
  263. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +0 -24
  264. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +0 -51
  265. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +0 -1
  266. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +0 -19
  267. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +0 -163
  268. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +0 -1
  269. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +0 -46
  270. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +0 -166
  271. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +0 -1
  272. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +0 -18
  273. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +0 -18
  274. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +0 -1
  275. package/dist/src/apply_condition_refresh.d.ts +0 -6
  276. package/dist/src/apply_condition_refresh.js +0 -28
  277. package/dist/src/apply_condition_refresh.js.map +0 -1
  278. package/dist/src/base_node_impl.d.ts +0 -283
  279. package/dist/src/base_node_impl.js +0 -1452
  280. package/dist/src/base_node_impl.js.map +0 -1
  281. package/dist/src/base_node_private.d.ts +0 -81
  282. package/dist/src/base_node_private.js +0 -804
  283. package/dist/src/base_node_private.js.map +0 -1
  284. package/dist/src/check_value_rank_compatibility.d.ts +0 -15
  285. package/dist/src/check_value_rank_compatibility.js +0 -82
  286. package/dist/src/check_value_rank_compatibility.js.map +0 -1
  287. package/dist/src/data_access/add_dataItem_stuff.d.ts +0 -11
  288. package/dist/src/data_access/add_dataItem_stuff.js +0 -62
  289. package/dist/src/data_access/add_dataItem_stuff.js.map +0 -1
  290. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +0 -1
  291. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +0 -35
  292. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +0 -1
  293. package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +0 -32
  294. package/dist/src/data_access/ua_multistate_discrete_impl.js +0 -131
  295. package/dist/src/data_access/ua_multistate_discrete_impl.js.map +0 -1
  296. package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +0 -52
  297. package/dist/src/data_access/ua_multistate_value_discrete_impl.js +0 -254
  298. package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +0 -1
  299. package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +0 -25
  300. package/dist/src/data_access/ua_two_state_discrete_impl.js +0 -154
  301. package/dist/src/data_access/ua_two_state_discrete_impl.js.map +0 -1
  302. package/dist/src/event_data.d.ts +0 -34
  303. package/dist/src/event_data.js +0 -65
  304. package/dist/src/event_data.js.map +0 -1
  305. package/dist/src/extension_object_array_node.d.ts +0 -23
  306. package/dist/src/extension_object_array_node.js +0 -249
  307. package/dist/src/extension_object_array_node.js.map +0 -1
  308. package/dist/src/historical_access/address_space_historical_data_node.d.ts +0 -26
  309. package/dist/src/historical_access/address_space_historical_data_node.js +0 -653
  310. package/dist/src/historical_access/address_space_historical_data_node.js.map +0 -1
  311. package/dist/src/idx_iterator.d.ts +0 -8
  312. package/dist/src/idx_iterator.js +0 -51
  313. package/dist/src/idx_iterator.js.map +0 -1
  314. package/dist/src/index_current.d.ts +0 -46
  315. package/dist/src/index_current.js +0 -78
  316. package/dist/src/index_current.js.map +0 -1
  317. package/dist/src/namespace_impl.d.ts +0 -456
  318. package/dist/src/namespace_impl.js +0 -1763
  319. package/dist/src/namespace_impl.js.map +0 -1
  320. package/dist/src/namespace_private.d.ts +0 -23
  321. package/dist/src/namespace_private.js +0 -33
  322. package/dist/src/namespace_private.js.map +0 -1
  323. package/dist/src/nodeid_manager.d.ts +0 -37
  324. package/dist/src/nodeid_manager.js +0 -184
  325. package/dist/src/nodeid_manager.js.map +0 -1
  326. package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +0 -2
  327. package/dist/src/nodeset_tools/adjust_namespace_array.js +0 -14
  328. package/dist/src/nodeset_tools/adjust_namespace_array.js.map +0 -1
  329. package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +0 -18
  330. package/dist/src/nodeset_tools/construct_namespace_dependency.js +0 -141
  331. package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +0 -1
  332. package/dist/src/nodeset_tools/dump_to_bsd.d.ts +0 -2
  333. package/dist/src/nodeset_tools/dump_to_bsd.js +0 -164
  334. package/dist/src/nodeset_tools/dump_to_bsd.js.map +0 -1
  335. package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +0 -10
  336. package/dist/src/nodeset_tools/nodeset_to_xml.js +0 -1288
  337. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +0 -1
  338. package/dist/src/private_namespace.d.ts +0 -5
  339. package/dist/src/private_namespace.js +0 -20
  340. package/dist/src/private_namespace.js.map +0 -1
  341. package/dist/src/reference_impl.d.ts +0 -43
  342. package/dist/src/reference_impl.js +0 -140
  343. package/dist/src/reference_impl.js.map +0 -1
  344. package/dist/src/role_permissions.d.ts +0 -2
  345. package/dist/src/role_permissions.js +0 -11
  346. package/dist/src/role_permissions.js.map +0 -1
  347. package/dist/src/state_machine/finite_state_machine.d.ts +0 -81
  348. package/dist/src/state_machine/finite_state_machine.js +0 -389
  349. package/dist/src/state_machine/finite_state_machine.js.map +0 -1
  350. package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +0 -38
  351. package/dist/src/state_machine/ua_shelving_state_machine_ex.js +0 -251
  352. package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +0 -1
  353. package/dist/src/state_machine/ua_two_state_variable.d.ts +0 -61
  354. package/dist/src/state_machine/ua_two_state_variable.js +0 -332
  355. package/dist/src/state_machine/ua_two_state_variable.js.map +0 -1
  356. package/dist/src/tool_isSubtypeOf.d.ts +0 -18
  357. package/dist/src/tool_isSubtypeOf.js +0 -125
  358. package/dist/src/tool_isSubtypeOf.js.map +0 -1
  359. package/dist/src/tool_isSupertypeOf.d.ts +0 -18
  360. package/dist/src/tool_isSupertypeOf.js +0 -125
  361. package/dist/src/tool_isSupertypeOf.js.map +0 -1
  362. package/dist/src/ua_condition_type.d.ts +0 -8
  363. package/dist/src/ua_condition_type.js +0 -3
  364. package/dist/src/ua_condition_type.js.map +0 -1
  365. package/dist/src/ua_data_type_impl.d.ts +0 -89
  366. package/dist/src/ua_data_type_impl.js +0 -369
  367. package/dist/src/ua_data_type_impl.js.map +0 -1
  368. package/dist/src/ua_method_impl.d.ts +0 -42
  369. package/dist/src/ua_method_impl.js +0 -218
  370. package/dist/src/ua_method_impl.js.map +0 -1
  371. package/dist/src/ua_object_impl.d.ts +0 -35
  372. package/dist/src/ua_object_impl.js +0 -169
  373. package/dist/src/ua_object_impl.js.map +0 -1
  374. package/dist/src/ua_object_type_impl.d.ts +0 -50
  375. package/dist/src/ua_object_type_impl.js +0 -127
  376. package/dist/src/ua_object_type_impl.js.map +0 -1
  377. package/dist/src/ua_reference_type_impl.d.ts +0 -45
  378. package/dist/src/ua_reference_type_impl.js +0 -142
  379. package/dist/src/ua_reference_type_impl.js.map +0 -1
  380. package/dist/src/ua_variable_impl.d.ts +0 -380
  381. package/dist/src/ua_variable_impl.js +0 -1738
  382. package/dist/src/ua_variable_impl.js.map +0 -1
  383. package/dist/src/ua_variable_impl_ext_obj.d.ts +0 -23
  384. package/dist/src/ua_variable_impl_ext_obj.js +0 -671
  385. package/dist/src/ua_variable_impl_ext_obj.js.map +0 -1
  386. package/dist/src/ua_variable_type_impl.d.ts +0 -74
  387. package/dist/src/ua_variable_type_impl.js +0 -582
  388. package/dist/src/ua_variable_type_impl.js.map +0 -1
  389. package/dist/src/ua_view_impl.d.ts +0 -19
  390. package/dist/src/ua_view_impl.js +0 -44
  391. package/dist/src/ua_view_impl.js.map +0 -1
  392. package/distHelpers/add_event_generator_object.d.ts +0 -3
  393. package/distHelpers/add_event_generator_object.js +0 -65
  394. package/distHelpers/add_event_generator_object.js.map +0 -1
  395. package/distHelpers/alarms_and_conditions_demo.d.ts +0 -9
  396. package/distHelpers/alarms_and_conditions_demo.js +0 -116
  397. package/distHelpers/alarms_and_conditions_demo.js.map +0 -1
  398. package/distHelpers/assertHasMatchingReference.d.ts +0 -19
  399. package/distHelpers/assertHasMatchingReference.js +0 -41
  400. package/distHelpers/assertHasMatchingReference.js.map +0 -1
  401. package/distHelpers/boiler_system.d.ts +0 -113
  402. package/distHelpers/boiler_system.js +0 -396
  403. package/distHelpers/boiler_system.js.map +0 -1
  404. package/distHelpers/create_minimalist_address_space_nodeset.d.ts +0 -5
  405. package/distHelpers/create_minimalist_address_space_nodeset.js +0 -172
  406. package/distHelpers/create_minimalist_address_space_nodeset.js.map +0 -1
  407. package/distHelpers/date_utils.d.ts +0 -3
  408. package/distHelpers/date_utils.js +0 -10
  409. package/distHelpers/date_utils.js.map +0 -1
  410. package/distHelpers/dump_statemachine.d.ts +0 -0
  411. package/distHelpers/dump_statemachine.js +0 -128
  412. package/distHelpers/dump_statemachine.js.map +0 -1
  413. package/distHelpers/get_address_space_fixture.d.ts +0 -1
  414. package/distHelpers/get_address_space_fixture.js +0 -31
  415. package/distHelpers/get_address_space_fixture.js.map +0 -1
  416. package/distHelpers/get_mini_address_space.d.ts +0 -7
  417. package/distHelpers/get_mini_address_space.js +0 -37
  418. package/distHelpers/get_mini_address_space.js.map +0 -1
  419. package/distHelpers/index.d.ts +0 -12
  420. package/distHelpers/index.js +0 -29
  421. package/distHelpers/index.js.map +0 -1
  422. package/distHelpers/mock_session.d.ts +0 -10
  423. package/distHelpers/mock_session.js +0 -26
  424. package/distHelpers/mock_session.js.map +0 -1
  425. package/distNodeJS/generate_address_space.d.ts +0 -6
  426. package/distNodeJS/generate_address_space.js +0 -53
  427. package/distNodeJS/generate_address_space.js.map +0 -1
  428. package/distNodeJS/index.d.ts +0 -1
  429. package/distNodeJS/index.js +0 -18
  430. package/distNodeJS/index.js.map +0 -1
  431. package/source/helpers/dump_tools.ts +0 -92
  432. package/src/nodeset_tools/dump_to_bsd.ts +0 -196
  433. package/test_helpers/dump_statemachine.ts +0 -155
@@ -1,166 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UAOffNormalAlarmImpl = void 0;
4
- const node_opcua_assert_1 = require("node-opcua-assert");
5
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
6
- const utils = require("node-opcua-utils");
7
- const node_opcua_variant_1 = require("node-opcua-variant");
8
- const ua_discrete_alarm_impl_1 = require("./ua_discrete_alarm_impl");
9
- function isEqual(value1, value2) {
10
- return value1 === value2;
11
- }
12
- /**
13
- * The OffNormalAlarmType is a specialization of the DiscreteAlarmType intended to represent a
14
- * discrete Condition that is considered to be not normal.
15
- * This sub type is usually used to indicate that a discrete value is in an Alarm state, it is active as
16
- * long as a non-normal value is present.
17
- */
18
- class UAOffNormalAlarmImpl extends ua_discrete_alarm_impl_1.UADiscreteAlarmImpl {
19
- /**
20
- * When the value of inputNode doesn't match the normalState node value, then the alarm is raised.
21
- *
22
- */
23
- static instantiate(namespace, limitAlarmTypeId, options, data) {
24
- const addressSpace = namespace.addressSpace;
25
- const offNormalAlarmType = addressSpace.findEventType("OffNormalAlarmType");
26
- /* istanbul ignore next */
27
- if (!offNormalAlarmType) {
28
- throw new Error("cannot find offNormalAlarmType");
29
- }
30
- (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "inputNode"), "must provide inputNode"); // must provide a inputNode
31
- (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "normalState"), "must provide a normalState Node"); // must provide a inputNode
32
- options.optionals = options.optionals || [];
33
- (0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(options, "inputNode"), "must provide inputNode"); // must provide a inputNode
34
- const alarmNode = ua_discrete_alarm_impl_1.UADiscreteAlarmImpl.instantiate(namespace, limitAlarmTypeId, options, data);
35
- Object.setPrototypeOf(alarmNode, UAOffNormalAlarmImpl.prototype);
36
- /**
37
- * The InputNode Property provides the NodeId of the Variable the Value of which is used as primary input in
38
- * the calculation of the Alarm state.
39
- *
40
- * If this Variable is not in the AddressSpace, a NULL NodeId shall be provided.
41
- *
42
- * In some systems, an Alarm may be calculated based on multiple Variables Values;
43
- * it is up to the system to determine which Variable’s NodeId is used.
44
- */
45
- const inputNode = addressSpace._coerceNode(options.inputNode);
46
- // note: alarmNode.inputNode.readValue() already set by DiscreteAlarmImpl.instantiate
47
- if (inputNode) {
48
- // install inputNode Node monitoring for change
49
- alarmNode.installInputNodeMonitoring(options.inputNode);
50
- }
51
- /**
52
- * The NormalState Property is a Property that points to a Variable which has a value that corresponds to one
53
- * of the possible values of the Variable pointed to by the InputNode Property where the NormalState Property
54
- * Variable value is the value that is considered to be the normal state of the Variable pointed to by the InputNode
55
- * Property. When the value of the Variable referenced by the InputNode Property is not equal to the value of the
56
- * NormalState Property the Alarm is Active.
57
- *
58
- * If this Variable is not in the AddressSpace, a NULL NodeId shall be provided.
59
- *
60
- */
61
- if (options.normalState) {
62
- const normalState = addressSpace._coerceNode(options.normalState);
63
- const normalStateNodeId = normalState ? normalState.nodeId : new node_opcua_nodeid_1.NodeId();
64
- alarmNode.normalState.setValueFromSource({ dataType: node_opcua_variant_1.DataType.NodeId, value: normalStateNodeId });
65
- alarmNode.normalState.on("value_changed", (newDataValue /*, oldDataValue: DataValue*/) => {
66
- // The node that contains the normalState value has changed.
67
- // we must remove the listener on current normalState and replace
68
- // normalState with the new one and set listener again
69
- // to do:
70
- });
71
- if (normalState) {
72
- // install normalState monitoring for change
73
- normalState.on("value_changed", (newDataValue /*, oldDataValue: DataValue*/) => {
74
- alarmNode._onNormalStateDataValueChange(newDataValue);
75
- });
76
- }
77
- }
78
- else {
79
- alarmNode.normalState.setValueFromSource({ dataType: node_opcua_variant_1.DataType.NodeId, value: node_opcua_nodeid_1.NodeId.nullNodeId });
80
- }
81
- alarmNode._mayBe_updateAlarmState();
82
- return alarmNode;
83
- }
84
- // HasProperty Variable NormalState NodeId PropertyType Mandatory
85
- // The NormalState Property is a Property that points to a Variable which has a value that
86
- // corresponds to one of the possible values of the Variable pointed to by the InputNode
87
- // Property where the NormalState Property Variable value is the value that is considered to be
88
- // the normal state of the Variable pointed to by the InputNode Property. When the value of the
89
- // Variable referenced by the InputNode Property is not equal to the value of the NormalState
90
- // Property the Alarm is Active. If this Variable is not in the AddressSpace, a Null NodeId shall
91
- // be provided.
92
- getNormalStateNode() {
93
- const nodeId = this.normalState.readValue().value.value;
94
- const node = this.addressSpace.findNode(nodeId);
95
- if (!node) {
96
- return null;
97
- }
98
- return node;
99
- }
100
- /**
101
- * @method getNormalStateValue
102
- */
103
- getNormalStateValue() {
104
- const normalStateNode = this.getNormalStateNode();
105
- if (!normalStateNode) {
106
- return null;
107
- }
108
- return normalStateNode.readValue().value.value;
109
- }
110
- /**
111
- * @method setNormalStateValue
112
- * @param value
113
- */
114
- setNormalStateValue(value) {
115
- const normalStateNode = this.getNormalStateNode();
116
- throw new Error("Not Implemented yet");
117
- }
118
- updateAlarmState(isActive, message) {
119
- if (isActive === this.activeState.getValue()) {
120
- // no change => ignore !
121
- return;
122
- }
123
- const stateName = isActive ? "Active" : "Inactive";
124
- // also raise the event
125
- this._signalNewCondition(stateName, isActive, message);
126
- if (!isActive) {
127
- this.currentBranch().setRetain(false);
128
- }
129
- }
130
- _mayBe_updateAlarmState(normalStateValue, inputValue) {
131
- if (utils.isNullOrUndefined(normalStateValue) || utils.isNullOrUndefined(inputValue)) {
132
- this.activeState.setValue(false);
133
- return;
134
- }
135
- const isActive = !isEqual(normalStateValue, inputValue);
136
- this.updateAlarmState(isActive, "automatique update");
137
- }
138
- _onInputDataValueChange(dataValue) {
139
- if (dataValue.statusCode.isNotGood()) {
140
- // what shall we do ?
141
- return;
142
- }
143
- if (dataValue.value.dataType === node_opcua_variant_1.DataType.Null) {
144
- // what shall we do ?
145
- return;
146
- }
147
- const inputValue = dataValue.value.value;
148
- const normalStateValue = this.getNormalStateValue();
149
- this._mayBe_updateAlarmState(normalStateValue, inputValue);
150
- }
151
- _onNormalStateDataValueChange(dataValue) {
152
- if (dataValue.statusCode.isNotGood()) {
153
- // what shall we do ?
154
- return;
155
- }
156
- if (dataValue.value.dataType === node_opcua_variant_1.DataType.Null) {
157
- // what shall we do ?
158
- return;
159
- }
160
- const normalStateValue = dataValue.value.value;
161
- const inputValue = this.getInputNodeValue();
162
- this._mayBe_updateAlarmState(normalStateValue, inputValue);
163
- }
164
- }
165
- exports.UAOffNormalAlarmImpl = UAOffNormalAlarmImpl;
166
- //# sourceMappingURL=ua_off_normal_alarm_impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_off_normal_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_off_normal_alarm_impl.ts"],"names":[],"mappings":";;;AAIA,yDAA2C;AAE3C,yDAAuD;AAKvD,0CAA0C;AAC1C,2DAA8D;AAI9D,qEAA+D;AAE/D,SAAS,OAAO,CAAC,MAAW,EAAE,MAAW;IACrC,OAAO,MAAM,KAAK,MAAM,CAAC;AAC7B,CAAC;AA0BD;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,4CAAmB;IACzD;;;OAGG;IACI,MAAM,CAAC,WAAW,CACrB,SAAqB,EACrB,gBAAiC,EACjC,OAAyC,EACzC,IAAqC;QAErC,MAAM,YAAY,GAAG,SAAS,CAAC,YAAmC,CAAC;QAEnE,MAAM,kBAAkB,GAAG,YAAY,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;QAC5E,0BAA0B;QAC1B,IAAI,CAAC,kBAAkB,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACrD;QAED,IAAA,0BAAM,EAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,2BAA2B;QACzH,IAAA,0BAAM,EAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,EAAE,iCAAiC,CAAC,CAAC,CAAC,2BAA2B;QACpI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,E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AK,6BAAQ,CAAC,IAAI,EAAE;YAC5C,qBAAqB;YACrB,OAAO;SACV;QACD,MAAM,gBAAgB,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;QAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IAC/D,CAAC;CACJ;AAtKD,oDAsKC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * @module node-opcua-address-space.AlarmsAndConditions
3
- */
4
- import { INamespace } from "node-opcua-address-space-base";
5
- import { NodeId } from "node-opcua-nodeid";
6
- import { VariantOptions } from "node-opcua-variant";
7
- import { InstantiateOffNormalAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options";
8
- import { UAOffNormalAlarmImpl } from "./ua_off_normal_alarm_impl";
9
- /**
10
- *
11
- * This Condition is used by a Server to indicate that an underlying system that is providing Alarm information is
12
- * having a communication problem and that the Server may have invalid or incomplete Condition state in the
13
- * Subscription.
14
- *
15
- */
16
- export declare class UASystemOffNormalAlarmImpl extends UAOffNormalAlarmImpl {
17
- static instantiate(namespace: INamespace, limitAlarmTypeId: string | NodeId, options: InstantiateOffNormalAlarmOptions, data?: Record<string, VariantOptions>): UASystemOffNormalAlarmImpl;
18
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UASystemOffNormalAlarmImpl = void 0;
4
- const ua_off_normal_alarm_impl_1 = require("./ua_off_normal_alarm_impl");
5
- /**
6
- *
7
- * This Condition is used by a Server to indicate that an underlying system that is providing Alarm information is
8
- * having a communication problem and that the Server may have invalid or incomplete Condition state in the
9
- * Subscription.
10
- *
11
- */
12
- class UASystemOffNormalAlarmImpl extends ua_off_normal_alarm_impl_1.UAOffNormalAlarmImpl {
13
- static instantiate(namespace, limitAlarmTypeId, options, data) {
14
- return ua_off_normal_alarm_impl_1.UAOffNormalAlarmImpl.instantiate(namespace, limitAlarmTypeId, options, data);
15
- }
16
- }
17
- exports.UASystemOffNormalAlarmImpl = UASystemOffNormalAlarmImpl;
18
- //# sourceMappingURL=ua_system_off_normal_alarm_impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ua_system_off_normal_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts"],"names":[],"mappings":";;;AAOA,yEAAkE;AAElE;;;;;;GAMG;AACH,MAAa,0BAA2B,SAAQ,+CAAoB;IACzD,MAAM,CAAC,WAAW,CACrB,SAAqB,EACrB,gBAAiC,EACjC,OAAyC,EACzC,IAAqC;QAErC,OAAO,+CAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAA+B,CAAC;IACtH,CAAC;CACJ;AATD,gEASC"}
@@ -1,6 +0,0 @@
1
- import { UAObject } from "node-opcua-address-space-base";
2
- import { BaseNodeImpl } from "./base_node_impl";
3
- export declare type ConditionRefreshCache = {
4
- [key in string]: UAObject;
5
- };
6
- export declare function apply_condition_refresh(this: BaseNodeImpl, cache?: ConditionRefreshCache): void;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.apply_condition_refresh = void 0;
4
- const ua_condition_impl_1 = require("./alarms_and_conditions/ua_condition_impl");
5
- function apply_condition_refresh(cache) {
6
- // visit all notifiers recursively
7
- cache = cache || {};
8
- const notifiers = this.getNotifiers();
9
- const eventSources = this.getEventSources();
10
- const conditions = this.findReferencesAsObject("HasCondition", true);
11
- for (const condition of conditions) {
12
- if (condition instanceof ua_condition_impl_1.UAConditionImpl) {
13
- condition._resend_conditionEvents();
14
- }
15
- }
16
- const arr = [].concat(notifiers, eventSources);
17
- for (const notifier of arr) {
18
- const key = notifier.nodeId.toString();
19
- if (!cache[key]) {
20
- cache[key] = notifier;
21
- if (notifier._conditionRefresh) {
22
- notifier._conditionRefresh(cache);
23
- }
24
- }
25
- }
26
- }
27
- exports.apply_condition_refresh = apply_condition_refresh;
28
- //# sourceMappingURL=apply_condition_refresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apply_condition_refresh.js","sourceRoot":"","sources":["../../src/apply_condition_refresh.ts"],"names":[],"mappings":";;;AACA,iFAA4E;AAK5E,SAAgB,uBAAuB,CAAqB,KAA6B;IACrF,kCAAkC;IAClC,KAAK,GAAG,KAAK,IAAI,EAAE,CAAC;IACpB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IACtC,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAChC,IAAI,SAAS,YAAY,mCAAe,EAAE;YACtC,SAAS,CAAC,uBAAuB,EAAE,CAAC;SACvC;KACJ;IACD,MAAM,GAAG,GAAI,EAAqB,CAAC,MAAM,CAAC,SAA2B,EAAE,YAA8B,CAAC,CAAC;IAEvG,KAAK,MAAM,QAAQ,IAAI,GAAG,EAAE;QACxB,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACb,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC;YACtB,IAAI,QAAQ,CAAC,iBAAiB,EAAE;gBAC5B,QAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;aACrC;SACJ;KACJ;AACL,CAAC;AAvBD,0DAuBC"}
@@ -1,283 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @module node-opcua-address-space
4
- */
5
- import { EventEmitter } from "events";
6
- import { AddReferenceOpts, ModellingRuleType, ISessionContext, UAMethod, UAObject, UAObjectType, UAReference, UAVariable, UAVariableType, BaseNode, UAReferenceType, IAddressSpace, INamespace, BrowseDescriptionOptions2 } from "node-opcua-address-space-base";
7
- import { AttributeIds, BrowseDirection, LocalizedText, LocalizedTextLike, NodeClass, QualifiedName, QualifiedNameLike, QualifiedNameOptions, AccessRestrictionsFlag } from "node-opcua-data-model";
8
- import { DataValue } from "node-opcua-data-value";
9
- import { NodeId, NodeIdLike } from "node-opcua-nodeid";
10
- import { NumericRange } from "node-opcua-numeric-range";
11
- import { ReferenceDescription } from "node-opcua-service-browse";
12
- import { StatusCode } from "node-opcua-status-code";
13
- import { RelativePathElement, RolePermissionType, RolePermissionTypeOptions, WriteValueOptions } from "node-opcua-types";
14
- import { UAStateVariable } from "node-opcua-nodeset-ua";
15
- import { XmlWriter } from "../source/xml_writer";
16
- import { AddressSpacePrivate } from "./address_space_private";
17
- export interface InternalBaseNodeOptions {
18
- /**
19
- * the parent address space
20
- */
21
- addressSpace: AddressSpacePrivate;
22
- browseName: QualifiedName;
23
- nodeId: NodeId;
24
- references?: UAReference[];
25
- displayName?: LocalizedTextLike | LocalizedTextLike[];
26
- description?: LocalizedTextLike | null;
27
- browseFilter?: (this: BaseNode, context?: ISessionContext) => boolean;
28
- /**
29
- * https://reference.opcfoundation.org/v104/Core/docs/Part3/8.56/
30
- */
31
- accessRestrictions?: AccessRestrictionsFlag;
32
- rolePermissions?: RolePermissionTypeOptions[];
33
- }
34
- export declare function makeAttributeEventName(attributeId: AttributeIds): string;
35
- /**
36
- * Base class for all Node classes
37
- *
38
- * BaseNode is the base class for all the OPCUA objects in the address space
39
- * It provides attributes and a set of references to other nodes.
40
- * see:
41
- * {{#crossLink "UAObject"}}{{/crossLink}},
42
- * {{#crossLink "UAVariable"}}{{/crossLink}},
43
- * {{#crossLink "Reference"}}{{/crossLink}},
44
- * {{#crossLink "UAMethod"}}{{/crossLink}},
45
- * {{#crossLink "UAView"}}{{/crossLink}},
46
- * {{#crossLink "UAObjectType"}}{{/crossLink}},
47
- * {{#crossLink "UADataType"}}{{/crossLink}},
48
- * {{#crossLink "UAVariableType"}}{{/crossLink}},
49
- *
50
- *
51
- */
52
- export declare class BaseNodeImpl extends EventEmitter implements BaseNode {
53
- static makeAttributeEventName(attributeId: AttributeIds): string;
54
- private _accessRestrictions?;
55
- private _rolePermissions?;
56
- onFirstBrowseAction?: (this: BaseNode) => Promise<void>;
57
- get addressSpace(): IAddressSpace;
58
- protected get addressSpacePrivate(): AddressSpacePrivate;
59
- get displayName(): LocalizedText[];
60
- setDisplayName(value: LocalizedText[]): void;
61
- get description(): LocalizedText;
62
- setDescription(value: LocalizedText): void;
63
- /**
64
- * returns the nodeId of this node's Type Definition
65
- */
66
- get typeDefinition(): NodeId;
67
- /**
68
- * returns the nodeId of this node's Type Definition
69
- */
70
- get typeDefinitionObj(): UAObjectType | UAVariableType;
71
- get parentNodeId(): NodeId | undefined;
72
- /**
73
- * namespace index
74
- */
75
- get namespaceIndex(): number;
76
- /**
77
- * namespace uri
78
- */
79
- get namespaceUri(): string;
80
- /**
81
- * the parent node
82
- */
83
- get parent(): BaseNode | null;
84
- /**
85
- * @property modellingRule
86
- * @type {String|undefined}
87
- */
88
- get modellingRule(): ModellingRuleType | undefined;
89
- readonly nodeClass: NodeClass;
90
- readonly nodeId: NodeId;
91
- readonly browseName: QualifiedName;
92
- protected _postInstantiateFunc?: any;
93
- /**
94
- * @internal
95
- * @param options
96
- */
97
- constructor(options: InternalBaseNodeOptions);
98
- getDisplayName(locale?: string): string;
99
- get namespace(): INamespace;
100
- findReferencesEx(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): UAReference[];
101
- findReferences_no_cache(referenceTypeNode: UAReferenceType, isForward?: boolean): UAReference[];
102
- findReferences(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): UAReference[];
103
- findReference(strReference: string | NodeId | UAReferenceType, isForward?: boolean): UAReference | null;
104
- findReferencesExAsObject(referenceType: string | NodeId | UAReferenceType, browseDirection?: BrowseDirection): BaseNode[];
105
- findReferencesAsObject(referenceType: string | NodeId | UAReferenceType, isForward?: boolean): BaseNode[];
106
- /**
107
- * return an array with the Aggregates of this object.
108
- */
109
- getAggregates(): BaseNode[];
110
- /**
111
- * return an array with the components of this object.
112
- */
113
- getComponents(): BaseNode[];
114
- /**
115
- * return a array with the properties of this object.
116
- */
117
- getProperties(): BaseNode[];
118
- /**
119
- * return a array with the notifiers of this object.
120
- */
121
- getNotifiers(): BaseNode[];
122
- /**
123
- * return a array with the event source of this object.
124
- */
125
- getEventSources(): BaseNode[];
126
- /**
127
- * return a array of the objects for which this node is an EventSource
128
- */
129
- getEventSourceOfs(): BaseNode[];
130
- /**
131
- * retrieve a component by name
132
- */
133
- getComponentByName(browseName: QualifiedNameOptions): UAVariable | UAObject | null;
134
- getComponentByName(browseName: string, namespaceIndex?: number): UAVariable | UAObject | null;
135
- /**
136
- * retrieve a property by name
137
- */
138
- getPropertyByName(browseName: QualifiedNameOptions): UAVariable | null;
139
- getPropertyByName(browseName: string, namespaceIndex?: number): UAVariable | null;
140
- /**
141
- * retrieve a folder element by name
142
- */
143
- getFolderElementByName(browseName: QualifiedNameOptions): BaseNode | null;
144
- getFolderElementByName(browseName: string, namespaceIndex?: number): BaseNode | null;
145
- /**
146
- * returns the list of nodes that this folder object organizes
147
- */
148
- getFolderElements(): BaseNodeImpl[];
149
- /**
150
- * returns the list of methods that this object provides
151
- * @method getMethods
152
- * @return an array with Method objects.
153
- *
154
- *
155
- * Note: internally, methods are special types of components
156
- */
157
- getMethods(): UAMethod[];
158
- /**
159
- * returns the method exposed by this object and with the given nodeId
160
- */
161
- getMethodById(nodeId: NodeId): UAMethod | null;
162
- getMethodByName(methodName: QualifiedNameOptions): UAMethod | null;
163
- getMethodByName(methodName: string, namespaceIndex?: number): UAMethod | null;
164
- getWriteMask(): number;
165
- getUserWriteMask(): number;
166
- readAttribute(context: ISessionContext | null, attributeId: AttributeIds, indexRange?: NumericRange, dataEncoding?: QualifiedNameLike | null): DataValue;
167
- writeAttribute(context: ISessionContext | null, writeValue: WriteValueOptions, callback: (err: Error | null, statusCode?: StatusCode) => void): void;
168
- fullName(): string;
169
- ownReferences(): UAReference[];
170
- /**
171
- * @method browseNodeByTargetName
172
- *
173
- * @param relativePathElement
174
- * @param isLast
175
- * @return {NodeId[]}
176
- */
177
- browseNodeByTargetName(relativePathElement: RelativePathElement, isLast: boolean): NodeId[];
178
- /**
179
- * browse the node to extract information requested in browseDescription
180
- * and returns an array with reference descriptions
181
- *
182
- *
183
- *
184
- */
185
- browseNode(browseDescription: BrowseDescriptionOptions2, context?: ISessionContext): ReferenceDescription[];
186
- allReferences(): UAReference[];
187
- /**
188
- * @method addReference
189
- * @param reference
190
- * @param reference.referenceType {String}
191
- * @param [reference.isForward = true] {Boolean}
192
- * @param reference.nodeId {Node|NodeId|String}
193
- *
194
- * @example
195
- *
196
- * view.addReference({ referenceType: "Organizes", nodeId: myDevice });
197
- *
198
- * or
199
- *
200
- * myDevice1.addReference({ referenceType: "OrganizedBy", nodeId: view });
201
- */
202
- addReference(reference: AddReferenceOpts): void;
203
- removeReference(referenceOpts: AddReferenceOpts): void;
204
- /**
205
- *
206
- */
207
- resolveNodeId(nodeId: NodeIdLike): NodeId;
208
- install_extra_properties(): void;
209
- uninstall_extra_properties(reference: UAReference): void;
210
- toString(): string;
211
- /**
212
- * @property isFalseSubStateOf
213
- * @type {BaseNode|null}
214
- */
215
- get isFalseSubStateOf(): BaseNode | null;
216
- /**
217
- * @property isTrueSubStateOf
218
- * @type {BaseNode|null}
219
- */
220
- get isTrueSubStateOf(): BaseNode | null;
221
- /**
222
- * @method getFalseSubStates
223
- * @return {UAStateVariable[]} return an array with the SubStates of this object.
224
- */
225
- getFalseSubStates(): UAStateVariable<LocalizedText>[];
226
- /**
227
- * @method getTrueSubStates
228
- * @return {UAStateVariable[]} return an array with the SubStates of this object.
229
- */
230
- getTrueSubStates(): UAStateVariable<LocalizedText>[];
231
- findHierarchicalReferences(): UAReference[];
232
- getChildByName(browseName: QualifiedNameOptions): BaseNode | null;
233
- getChildByName(browseName: string, namespaceIndex?: number): BaseNode | null;
234
- get toStateNode(): BaseNode | null;
235
- get fromStateNode(): BaseNode | null;
236
- /**
237
- * this methods propagates the forward references to the pointed node
238
- * by inserting backward references to the counter part node
239
- */
240
- propagate_back_references(): void;
241
- /**
242
- * the dispose method should be called when the node is no longer used, to release
243
- * back pointer to the address space and clear caches.
244
- *
245
- * @method dispose
246
- *
247
- */
248
- dispose(): void;
249
- dumpXML(xmlWriter: XmlWriter): void;
250
- /**
251
- * Undo the effect of propagate_back_references
252
- */
253
- unpropagate_back_references(): void;
254
- installPostInstallFunc(f: () => void): void;
255
- _on_child_added(): void;
256
- _on_child_removed(obj: BaseNode): void;
257
- /**
258
- * @private
259
- * @param reference
260
- */
261
- _add_backward_reference(reference: UAReference): void;
262
- protected _coerceReferenceType(referenceType: string | NodeId | UAReferenceType): UAReferenceType | null;
263
- private __addReference;
264
- private _setDisplayName;
265
- private _setDescription;
266
- private _notifyAttributeChange;
267
- private _clear_caches;
268
- canUserWriteAttribute(context: ISessionContext | null, attributeId: AttributeIds): boolean;
269
- private _readAccessRestrictions;
270
- private _readRolePermissions;
271
- private _readUserRolePermissions;
272
- /**
273
- *
274
- * @param rolePermissions
275
- */
276
- setRolePermissions(rolePermissions: RolePermissionTypeOptions[]): void;
277
- getRolePermissions(inherited: boolean): RolePermissionType[] | null;
278
- get rolePermissions(): RolePermissionType[] | undefined;
279
- setAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
280
- get accessRestrictions(): AccessRestrictionsFlag | undefined;
281
- getAccessRestrictions(inherited: boolean): AccessRestrictionsFlag;
282
- }
283
- export declare function getReferenceType(reference: UAReference): UAReferenceType;