node-opcua-address-space 2.98.0 → 2.98.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.
Files changed (460) hide show
  1. package/dist/source/address_space_ts.d.ts +118 -0
  2. package/dist/source/address_space_ts.js +18 -0
  3. package/dist/source/address_space_ts.js.map +1 -0
  4. package/dist/source/continuation_points/continuation_point_manager.d.ts +91 -0
  5. package/dist/source/continuation_points/continuation_point_manager.js +201 -0
  6. package/dist/source/continuation_points/continuation_point_manager.js.map +1 -0
  7. package/dist/source/helpers/adjust_browse_direction.d.ts +5 -0
  8. package/dist/source/helpers/adjust_browse_direction.js +12 -0
  9. package/dist/source/helpers/adjust_browse_direction.js.map +1 -0
  10. package/dist/source/helpers/argument_list.d.ts +33 -0
  11. package/dist/source/helpers/argument_list.js +255 -0
  12. package/dist/source/helpers/argument_list.js.map +1 -0
  13. package/dist/source/helpers/call_helpers.d.ts +6 -0
  14. package/dist/source/helpers/call_helpers.js +72 -0
  15. package/dist/source/helpers/call_helpers.js.map +1 -0
  16. package/dist/source/helpers/coerce_enum_value.d.ts +6 -0
  17. package/dist/source/helpers/coerce_enum_value.js +34 -0
  18. package/dist/source/helpers/coerce_enum_value.js.map +1 -0
  19. package/dist/source/helpers/dump_tools.d.ts +14 -0
  20. package/dist/source/helpers/dump_tools.js +79 -0
  21. package/dist/source/helpers/dump_tools.js.map +1 -0
  22. package/dist/source/helpers/ensure_secure_access.d.ts +9 -0
  23. package/dist/source/helpers/ensure_secure_access.js +77 -0
  24. package/dist/source/helpers/ensure_secure_access.js.map +1 -0
  25. package/dist/source/helpers/make_optionals_map.d.ts +21 -0
  26. package/dist/source/helpers/make_optionals_map.js +30 -0
  27. package/dist/source/helpers/make_optionals_map.js.map +1 -0
  28. package/dist/source/helpers/multiform_func.d.ts +11 -0
  29. package/dist/source/helpers/multiform_func.js +76 -0
  30. package/dist/source/helpers/multiform_func.js.map +1 -0
  31. package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +3 -0
  32. package/dist/source/helpers/resolve_opaque_on_address_space.js +37 -0
  33. package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -0
  34. package/dist/source/index.d.ts +61 -0
  35. package/dist/source/index.js +90 -0
  36. package/dist/source/index.js.map +1 -0
  37. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +19 -0
  38. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +3 -0
  39. package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -0
  40. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +193 -0
  41. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js +3 -0
  42. package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js.map +1 -0
  43. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +12 -0
  44. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js +3 -0
  45. package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js.map +1 -0
  46. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +10 -0
  47. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js +3 -0
  48. package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js.map +1 -0
  49. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +7 -0
  50. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +3 -0
  51. package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js.map +1 -0
  52. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +7 -0
  53. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js +3 -0
  54. package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js.map +1 -0
  55. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +4 -0
  56. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +3 -0
  57. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js.map +1 -0
  58. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +4 -0
  59. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +3 -0
  60. package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js.map +1 -0
  61. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +9 -0
  62. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +3 -0
  63. package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js.map +1 -0
  64. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +4 -0
  65. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +3 -0
  66. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js.map +1 -0
  67. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +4 -0
  68. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +3 -0
  69. package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js.map +1 -0
  70. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +20 -0
  71. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +3 -0
  72. package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js.map +1 -0
  73. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +23 -0
  74. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +3 -0
  75. package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js.map +1 -0
  76. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +32 -0
  77. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +3 -0
  78. package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js.map +1 -0
  79. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +19 -0
  80. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +3 -0
  81. package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js.map +1 -0
  82. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +45 -0
  83. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js +3 -0
  84. package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js.map +1 -0
  85. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +7 -0
  86. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +26 -0
  87. package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +1 -0
  88. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +5 -0
  89. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +3 -0
  90. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js.map +1 -0
  91. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +20 -0
  92. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +3 -0
  93. package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js.map +1 -0
  94. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +26 -0
  95. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +3 -0
  96. package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js.map +1 -0
  97. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +8 -0
  98. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +3 -0
  99. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js.map +1 -0
  100. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +10 -0
  101. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +3 -0
  102. package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js.map +1 -0
  103. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +21 -0
  104. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +3 -0
  105. package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js.map +1 -0
  106. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +24 -0
  107. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +3 -0
  108. package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js.map +1 -0
  109. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +12 -0
  110. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +3 -0
  111. package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js.map +1 -0
  112. package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +8 -0
  113. package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +3 -0
  114. package/dist/source/interfaces/data_access/ua_y_array_item_ex.js.map +1 -0
  115. package/dist/source/interfaces/extension_object_constructor.d.ts +10 -0
  116. package/dist/source/interfaces/extension_object_constructor.js +3 -0
  117. package/dist/source/interfaces/extension_object_constructor.js.map +1 -0
  118. package/dist/source/interfaces/nodeset_loader_options.d.ts +4 -0
  119. package/dist/source/interfaces/nodeset_loader_options.js +3 -0
  120. package/dist/source/interfaces/nodeset_loader_options.js.map +1 -0
  121. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +12 -0
  122. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +3 -0
  123. package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js.map +1 -0
  124. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +49 -0
  125. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +3 -0
  126. package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js.map +1 -0
  127. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +11 -0
  128. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +3 -0
  129. package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js.map +1 -0
  130. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +30 -0
  131. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js +3 -0
  132. package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js.map +1 -0
  133. package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +234 -0
  134. package/dist/source/interfaces/state_machine/ua_state_machine_type.js +3 -0
  135. package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +1 -0
  136. package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +6 -0
  137. package/dist/source/interfaces/state_machine/ua_transition_ex.js +3 -0
  138. package/dist/source/interfaces/state_machine/ua_transition_ex.js.map +1 -0
  139. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +8 -0
  140. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +3 -0
  141. package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -0
  142. package/dist/source/loader/decode_xml_extension_object.d.ts +6 -0
  143. package/dist/source/loader/decode_xml_extension_object.js +72 -0
  144. package/dist/source/loader/decode_xml_extension_object.js.map +1 -0
  145. package/dist/source/loader/ensure_datatype_extracted.d.ts +5 -0
  146. package/dist/source/loader/ensure_datatype_extracted.js +71 -0
  147. package/dist/source/loader/ensure_datatype_extracted.js.map +1 -0
  148. package/dist/source/loader/generateAddressSpaceRaw.d.ts +11 -0
  149. package/dist/source/loader/generateAddressSpaceRaw.js +46 -0
  150. package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -0
  151. package/dist/source/loader/load_nodeset2.d.ts +17 -0
  152. package/dist/source/loader/load_nodeset2.js +1484 -0
  153. package/dist/source/loader/load_nodeset2.js.map +1 -0
  154. package/dist/source/loader/make_semver_compatible.d.ts +6 -0
  155. package/dist/source/loader/make_semver_compatible.js +26 -0
  156. package/dist/source/loader/make_semver_compatible.js.map +1 -0
  157. package/dist/source/loader/make_xml_extension_object_parser.d.ts +28 -0
  158. package/dist/source/loader/make_xml_extension_object_parser.js +327 -0
  159. package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -0
  160. package/dist/source/loader/namespace_post_step.d.ts +10 -0
  161. package/dist/source/loader/namespace_post_step.js +62 -0
  162. package/dist/source/loader/namespace_post_step.js.map +1 -0
  163. package/dist/source/loader/register_node_promoter.d.ts +2 -0
  164. package/dist/source/loader/register_node_promoter.js +10 -0
  165. package/dist/source/loader/register_node_promoter.js.map +1 -0
  166. package/dist/source/namespace.d.ts +6 -0
  167. package/dist/source/namespace.js +3 -0
  168. package/dist/source/namespace.js.map +1 -0
  169. package/dist/source/namespace_alarm_and_condition.d.ts +32 -0
  170. package/dist/source/namespace_alarm_and_condition.js +3 -0
  171. package/dist/source/namespace_alarm_and_condition.js.map +1 -0
  172. package/dist/source/namespace_data_access.d.ts +42 -0
  173. package/dist/source/namespace_data_access.js +3 -0
  174. package/dist/source/namespace_data_access.js.map +1 -0
  175. package/dist/source/namespace_machine_state.d.ts +8 -0
  176. package/dist/source/namespace_machine_state.js +3 -0
  177. package/dist/source/namespace_machine_state.js.map +1 -0
  178. package/dist/source/pseudo_session.d.ts +72 -0
  179. package/dist/source/pseudo_session.js +255 -0
  180. package/dist/source/pseudo_session.js.map +1 -0
  181. package/dist/source/session_context.d.ts +111 -0
  182. package/dist/source/session_context.js +265 -0
  183. package/dist/source/session_context.js.map +1 -0
  184. package/dist/source/set_namespace_meta_data.d.ts +2 -0
  185. package/dist/source/set_namespace_meta_data.js +60 -0
  186. package/dist/source/set_namespace_meta_data.js.map +1 -0
  187. package/dist/source/ua_root_folder.d.ts +9 -0
  188. package/dist/source/ua_root_folder.js +3 -0
  189. package/dist/source/ua_root_folder.js.map +1 -0
  190. package/dist/source/ua_two_state_variable_ex.d.ts +23 -0
  191. package/dist/source/ua_two_state_variable_ex.js +3 -0
  192. package/dist/source/ua_two_state_variable_ex.js.map +1 -0
  193. package/dist/source/xml_writer.d.ts +18 -0
  194. package/dist/source/xml_writer.js +3 -0
  195. package/dist/source/xml_writer.js.map +1 -0
  196. package/dist/src/address_space.d.ts +387 -0
  197. package/dist/src/address_space.js +1386 -0
  198. package/dist/src/address_space.js.map +1 -0
  199. package/dist/src/address_space_change_event_tools.d.ts +6 -0
  200. package/dist/src/address_space_change_event_tools.js +153 -0
  201. package/dist/src/address_space_change_event_tools.js.map +1 -0
  202. package/dist/src/address_space_private.d.ts +43 -0
  203. package/dist/src/address_space_private.js +3 -0
  204. package/dist/src/address_space_private.js.map +1 -0
  205. package/dist/src/alarms_and_conditions/condition.d.ts +5 -0
  206. package/dist/src/alarms_and_conditions/condition.js +79 -0
  207. package/dist/src/alarms_and_conditions/condition.js.map +1 -0
  208. package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +26 -0
  209. package/dist/src/alarms_and_conditions/condition_info_impl.js +55 -0
  210. package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -0
  211. package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +222 -0
  212. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +658 -0
  213. package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -0
  214. package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +9 -0
  215. package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +61 -0
  216. package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -0
  217. package/dist/src/alarms_and_conditions/index.d.ts +16 -0
  218. package/dist/src/alarms_and_conditions/index.js +33 -0
  219. package/dist/src/alarms_and_conditions/index.js.map +1 -0
  220. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +44 -0
  221. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +245 -0
  222. package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -0
  223. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +93 -0
  224. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +419 -0
  225. package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -0
  226. package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +26 -0
  227. package/dist/src/alarms_and_conditions/ua_base_event_impl.js +39 -0
  228. package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -0
  229. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +44 -0
  230. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +184 -0
  231. package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -0
  232. package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +155 -0
  233. package/dist/src/alarms_and_conditions/ua_condition_impl.js +1029 -0
  234. package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -0
  235. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +14 -0
  236. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +35 -0
  237. package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -0
  238. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +24 -0
  239. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +57 -0
  240. package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -0
  241. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +11 -0
  242. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +12 -0
  243. package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -0
  244. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +23 -0
  245. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +87 -0
  246. package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -0
  247. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +11 -0
  248. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +8 -0
  249. package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -0
  250. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +79 -0
  251. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +251 -0
  252. package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -0
  253. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +24 -0
  254. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +51 -0
  255. package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -0
  256. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +19 -0
  257. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +163 -0
  258. package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -0
  259. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +46 -0
  260. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +166 -0
  261. package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -0
  262. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +18 -0
  263. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +18 -0
  264. package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -0
  265. package/dist/src/apply_condition_refresh.d.ts +6 -0
  266. package/dist/src/apply_condition_refresh.js +28 -0
  267. package/dist/src/apply_condition_refresh.js.map +1 -0
  268. package/dist/src/base_node_impl.d.ts +284 -0
  269. package/dist/src/base_node_impl.js +1455 -0
  270. package/dist/src/base_node_impl.js.map +1 -0
  271. package/dist/src/base_node_private.d.ts +81 -0
  272. package/dist/src/base_node_private.js +833 -0
  273. package/dist/src/base_node_private.js.map +1 -0
  274. package/dist/src/check_value_rank_compatibility.d.ts +15 -0
  275. package/dist/src/check_value_rank_compatibility.js +82 -0
  276. package/dist/src/check_value_rank_compatibility.js.map +1 -0
  277. package/dist/src/data_access/add_dataItem_stuff.d.ts +11 -0
  278. package/dist/src/data_access/add_dataItem_stuff.js +62 -0
  279. package/dist/src/data_access/add_dataItem_stuff.js.map +1 -0
  280. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +1 -0
  281. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +35 -0
  282. package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +1 -0
  283. package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +32 -0
  284. package/dist/src/data_access/ua_multistate_discrete_impl.js +131 -0
  285. package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -0
  286. package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +52 -0
  287. package/dist/src/data_access/ua_multistate_value_discrete_impl.js +254 -0
  288. package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -0
  289. package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +25 -0
  290. package/dist/src/data_access/ua_two_state_discrete_impl.js +156 -0
  291. package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -0
  292. package/dist/src/event_data.d.ts +34 -0
  293. package/dist/src/event_data.js +65 -0
  294. package/dist/src/event_data.js.map +1 -0
  295. package/dist/src/extension_object_array_node.d.ts +23 -0
  296. package/dist/src/extension_object_array_node.js +249 -0
  297. package/dist/src/extension_object_array_node.js.map +1 -0
  298. package/dist/src/historical_access/address_space_historical_data_node.d.ts +26 -0
  299. package/dist/src/historical_access/address_space_historical_data_node.js +653 -0
  300. package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -0
  301. package/dist/src/idx_iterator.d.ts +8 -0
  302. package/dist/src/idx_iterator.js +51 -0
  303. package/dist/src/idx_iterator.js.map +1 -0
  304. package/dist/src/index_current.d.ts +46 -0
  305. package/dist/src/index_current.js +78 -0
  306. package/dist/src/index_current.js.map +1 -0
  307. package/dist/src/namespace_impl.d.ts +456 -0
  308. package/dist/src/namespace_impl.js +1763 -0
  309. package/dist/src/namespace_impl.js.map +1 -0
  310. package/dist/src/namespace_private.d.ts +23 -0
  311. package/dist/src/namespace_private.js +33 -0
  312. package/dist/src/namespace_private.js.map +1 -0
  313. package/dist/src/nodeid_manager.d.ts +37 -0
  314. package/dist/src/nodeid_manager.js +184 -0
  315. package/dist/src/nodeid_manager.js.map +1 -0
  316. package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +2 -0
  317. package/dist/src/nodeset_tools/adjust_namespace_array.js +14 -0
  318. package/dist/src/nodeset_tools/adjust_namespace_array.js.map +1 -0
  319. package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +18 -0
  320. package/dist/src/nodeset_tools/construct_namespace_dependency.js +141 -0
  321. package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -0
  322. package/dist/src/nodeset_tools/dump_to_bsd.d.ts +2 -0
  323. package/dist/src/nodeset_tools/dump_to_bsd.js +165 -0
  324. package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -0
  325. package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +10 -0
  326. package/dist/src/nodeset_tools/nodeset_to_xml.js +1288 -0
  327. package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -0
  328. package/dist/src/private_namespace.d.ts +5 -0
  329. package/dist/src/private_namespace.js +20 -0
  330. package/dist/src/private_namespace.js.map +1 -0
  331. package/dist/src/reference_impl.d.ts +43 -0
  332. package/dist/src/reference_impl.js +140 -0
  333. package/dist/src/reference_impl.js.map +1 -0
  334. package/dist/src/role_permissions.d.ts +2 -0
  335. package/dist/src/role_permissions.js +11 -0
  336. package/dist/src/role_permissions.js.map +1 -0
  337. package/dist/src/state_machine/finite_state_machine.d.ts +81 -0
  338. package/dist/src/state_machine/finite_state_machine.js +389 -0
  339. package/dist/src/state_machine/finite_state_machine.js.map +1 -0
  340. package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +38 -0
  341. package/dist/src/state_machine/ua_shelving_state_machine_ex.js +251 -0
  342. package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -0
  343. package/dist/src/state_machine/ua_two_state_variable.d.ts +61 -0
  344. package/dist/src/state_machine/ua_two_state_variable.js +332 -0
  345. package/dist/src/state_machine/ua_two_state_variable.js.map +1 -0
  346. package/dist/src/tool_isSubtypeOf.d.ts +18 -0
  347. package/dist/src/tool_isSubtypeOf.js +125 -0
  348. package/dist/src/tool_isSubtypeOf.js.map +1 -0
  349. package/dist/src/ua_condition_type.d.ts +8 -0
  350. package/dist/src/ua_condition_type.js +3 -0
  351. package/dist/src/ua_condition_type.js.map +1 -0
  352. package/dist/src/ua_data_type_impl.d.ts +89 -0
  353. package/dist/src/ua_data_type_impl.js +369 -0
  354. package/dist/src/ua_data_type_impl.js.map +1 -0
  355. package/dist/src/ua_method_impl.d.ts +42 -0
  356. package/dist/src/ua_method_impl.js +218 -0
  357. package/dist/src/ua_method_impl.js.map +1 -0
  358. package/dist/src/ua_object_impl.d.ts +35 -0
  359. package/dist/src/ua_object_impl.js +169 -0
  360. package/dist/src/ua_object_impl.js.map +1 -0
  361. package/dist/src/ua_object_type_impl.d.ts +50 -0
  362. package/dist/src/ua_object_type_impl.js +127 -0
  363. package/dist/src/ua_object_type_impl.js.map +1 -0
  364. package/dist/src/ua_reference_type_impl.d.ts +45 -0
  365. package/dist/src/ua_reference_type_impl.js +142 -0
  366. package/dist/src/ua_reference_type_impl.js.map +1 -0
  367. package/dist/src/ua_variable_impl.d.ts +380 -0
  368. package/dist/src/ua_variable_impl.js +1739 -0
  369. package/dist/src/ua_variable_impl.js.map +1 -0
  370. package/dist/src/ua_variable_impl_ext_obj.d.ts +23 -0
  371. package/dist/src/ua_variable_impl_ext_obj.js +671 -0
  372. package/dist/src/ua_variable_impl_ext_obj.js.map +1 -0
  373. package/dist/src/ua_variable_type_impl.d.ts +74 -0
  374. package/dist/src/ua_variable_type_impl.js +598 -0
  375. package/dist/src/ua_variable_type_impl.js.map +1 -0
  376. package/dist/src/ua_view_impl.d.ts +19 -0
  377. package/dist/src/ua_view_impl.js +44 -0
  378. package/dist/src/ua_view_impl.js.map +1 -0
  379. package/dist/tsconfig_common.tsbuildinfo +1 -0
  380. package/distHelpers/add_event_generator_object.d.ts +3 -0
  381. package/{test_helpers/add_event_generator_object.ts → distHelpers/add_event_generator_object.js} +16 -22
  382. package/distHelpers/add_event_generator_object.js.map +1 -0
  383. package/distHelpers/alarms_and_conditions_demo.d.ts +9 -0
  384. package/{test_helpers/alarms_and_conditions_demo.ts → distHelpers/alarms_and_conditions_demo.js} +21 -56
  385. package/distHelpers/alarms_and_conditions_demo.js.map +1 -0
  386. package/distHelpers/assertHasMatchingReference.d.ts +19 -0
  387. package/{test_helpers/assertHasMatchingReference.ts → distHelpers/assertHasMatchingReference.js} +12 -14
  388. package/distHelpers/assertHasMatchingReference.js.map +1 -0
  389. package/distHelpers/boiler_system.d.ts +113 -0
  390. package/{test_helpers/boiler_system.ts → distHelpers/boiler_system.js} +81 -295
  391. package/distHelpers/boiler_system.js.map +1 -0
  392. package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -0
  393. package/{test_helpers/create_minimalist_address_space_nodeset.ts → distHelpers/create_minimalist_address_space_nodeset.js} +51 -87
  394. package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -0
  395. package/distHelpers/date_utils.d.ts +3 -0
  396. package/distHelpers/date_utils.js +10 -0
  397. package/distHelpers/date_utils.js.map +1 -0
  398. package/distHelpers/dump_statemachine.d.ts +0 -0
  399. package/distHelpers/dump_statemachine.js +128 -0
  400. package/distHelpers/dump_statemachine.js.map +1 -0
  401. package/distHelpers/get_address_space_fixture.d.ts +1 -0
  402. package/{test_helpers/get_address_space_fixture.ts → distHelpers/get_address_space_fixture.js} +8 -7
  403. package/distHelpers/get_address_space_fixture.js.map +1 -0
  404. package/distHelpers/get_mini_address_space.d.ts +7 -0
  405. package/distHelpers/get_mini_address_space.js +37 -0
  406. package/distHelpers/get_mini_address_space.js.map +1 -0
  407. package/distHelpers/index.js +29 -0
  408. package/distHelpers/index.js.map +1 -0
  409. package/distHelpers/mock_session.d.ts +10 -0
  410. package/distHelpers/mock_session.js +26 -0
  411. package/distHelpers/mock_session.js.map +1 -0
  412. package/distNodeJS/generate_address_space.d.ts +6 -0
  413. package/distNodeJS/generate_address_space.js +53 -0
  414. package/distNodeJS/generate_address_space.js.map +1 -0
  415. package/distNodeJS/index.js +18 -0
  416. package/distNodeJS/index.js.map +1 -0
  417. package/package.json +49 -38
  418. package/source/helpers/dump_tools.ts +92 -0
  419. package/src/nodeset_tools/dump_to_bsd.ts +198 -0
  420. package/.mocharc.yml +0 -12
  421. package/generate.js +0 -1
  422. package/source_nodejs/generate_address_space.ts +0 -60
  423. package/test_helpers/date_utils.ts +0 -5
  424. package/test_helpers/get_mini_address_space.ts +0 -42
  425. package/test_helpers/mock_session.ts +0 -34
  426. package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +0 -150
  427. package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +0 -57
  428. package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +0 -136
  429. package/test_helpers/test_fixtures/dataType_issue.xml +0 -80
  430. package/test_helpers/test_fixtures/dataType_withEnumeration.xml +0 -82
  431. package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +0 -194
  432. package/test_helpers/test_fixtures/dataType_with_qualifiedname.xml +0 -71
  433. package/test_helpers/test_fixtures/dataType_with_recursive_structure.xml +0 -155
  434. package/test_helpers/test_fixtures/dataType_with_structures.xml +0 -605
  435. package/test_helpers/test_fixtures/dataType_with_union.xml +0 -90
  436. package/test_helpers/test_fixtures/datatype_as_per_1.04.xml +0 -118
  437. package/test_helpers/test_fixtures/datatype_with_allow_subtype.xml +0 -104
  438. package/test_helpers/test_fixtures/eurange_issue.xml +0 -74
  439. package/test_helpers/test_fixtures/example_issue1096.xml +0 -267
  440. package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +0 -106
  441. package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +0 -1305
  442. package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +0 -370
  443. package/test_helpers/test_fixtures/issue_1132_variable_with_nodeid_value.xml +0 -68
  444. package/test_helpers/test_fixtures/issue_846.xml +0 -3172
  445. package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +0 -33
  446. package/test_helpers/test_fixtures/mini.Node.Set2.xml +0 -4736
  447. package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +0 -196
  448. package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +0 -8
  449. package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +0 -20
  450. package/test_helpers/test_fixtures/nodeset_no_aliases.xml +0 -30
  451. package/test_helpers/test_fixtures/nodeset_no_aliases_with_aliases.xml +0 -31
  452. package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +0 -45
  453. package/test_helpers/test_fixtures/nodeset_with_guid.xml +0 -1442
  454. package/test_helpers/test_fixtures/nodeset_with_int64_values.xml +0 -31
  455. package/test_helpers/test_fixtures/nodeset_with_special_char.xml +0 -34
  456. package/test_helpers/test_fixtures/nodeset_with_utf8_special_characters.xml +0 -20
  457. package/test_helpers/test_fixtures/variable_with_value.xml +0 -143
  458. package/test_helpers/test_fixtures/variabletype_with_value.xml +0 -324
  459. /package/{test_helpers/index.ts → distHelpers/index.d.ts} +0 -0
  460. /package/{source_nodejs/index.ts → distNodeJS/index.d.ts} +0 -0
@@ -0,0 +1,166 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ua_off_normal_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_off_normal_alarm_impl.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
1
+ import { UAObject } from "node-opcua-address-space-base";
2
+ import { BaseNodeImpl } from "./base_node_impl";
3
+ export type ConditionRefreshCache = {
4
+ [key in string]: UAObject;
5
+ };
6
+ export declare function apply_condition_refresh(this: BaseNodeImpl, cache?: ConditionRefreshCache): void;
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,284 @@
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
+ isDisposed(): boolean;
250
+ dumpXML(xmlWriter: XmlWriter): void;
251
+ /**
252
+ * Undo the effect of propagate_back_references
253
+ */
254
+ unpropagate_back_references(): void;
255
+ installPostInstallFunc(f: () => void): void;
256
+ _on_child_added(): void;
257
+ _on_child_removed(obj: BaseNode): void;
258
+ /**
259
+ * @private
260
+ * @param reference
261
+ */
262
+ _add_backward_reference(reference: UAReference): void;
263
+ protected _coerceReferenceType(referenceType: string | NodeId | UAReferenceType): UAReferenceType | null;
264
+ private __addReference;
265
+ private _setDisplayName;
266
+ private _setDescription;
267
+ private _notifyAttributeChange;
268
+ private _clear_caches;
269
+ canUserWriteAttribute(context: ISessionContext | null, attributeId: AttributeIds): boolean;
270
+ private _readAccessRestrictions;
271
+ private _readRolePermissions;
272
+ private _readUserRolePermissions;
273
+ /**
274
+ *
275
+ * @param rolePermissions
276
+ */
277
+ setRolePermissions(rolePermissions: RolePermissionTypeOptions[]): void;
278
+ getRolePermissions(inherited: boolean): RolePermissionType[] | null;
279
+ get rolePermissions(): RolePermissionType[] | undefined;
280
+ setAccessRestrictions(accessRestrictions: AccessRestrictionsFlag): void;
281
+ get accessRestrictions(): AccessRestrictionsFlag | undefined;
282
+ getAccessRestrictions(inherited: boolean): AccessRestrictionsFlag;
283
+ }
284
+ export declare function getReferenceType(reference: UAReference): UAReferenceType;