node-opcua-address-space 2.98.0 → 2.98.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/address_space_ts.d.ts +118 -0
- package/dist/source/address_space_ts.js +18 -0
- package/dist/source/address_space_ts.js.map +1 -0
- package/dist/source/continuation_points/continuation_point_manager.d.ts +91 -0
- package/dist/source/continuation_points/continuation_point_manager.js +201 -0
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -0
- package/dist/source/helpers/adjust_browse_direction.d.ts +5 -0
- package/dist/source/helpers/adjust_browse_direction.js +12 -0
- package/dist/source/helpers/adjust_browse_direction.js.map +1 -0
- package/dist/source/helpers/argument_list.d.ts +33 -0
- package/dist/source/helpers/argument_list.js +255 -0
- package/dist/source/helpers/argument_list.js.map +1 -0
- package/dist/source/helpers/call_helpers.d.ts +6 -0
- package/dist/source/helpers/call_helpers.js +72 -0
- package/dist/source/helpers/call_helpers.js.map +1 -0
- package/dist/source/helpers/coerce_enum_value.d.ts +6 -0
- package/dist/source/helpers/coerce_enum_value.js +34 -0
- package/dist/source/helpers/coerce_enum_value.js.map +1 -0
- package/dist/source/helpers/dump_tools.d.ts +14 -0
- package/dist/source/helpers/dump_tools.js +79 -0
- package/dist/source/helpers/dump_tools.js.map +1 -0
- package/dist/source/helpers/ensure_secure_access.d.ts +9 -0
- package/dist/source/helpers/ensure_secure_access.js +77 -0
- package/dist/source/helpers/ensure_secure_access.js.map +1 -0
- package/dist/source/helpers/make_optionals_map.d.ts +21 -0
- package/dist/source/helpers/make_optionals_map.js +30 -0
- package/dist/source/helpers/make_optionals_map.js.map +1 -0
- package/dist/source/helpers/multiform_func.d.ts +11 -0
- package/dist/source/helpers/multiform_func.js +76 -0
- package/dist/source/helpers/multiform_func.js.map +1 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +3 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.js +37 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -0
- package/dist/source/index.d.ts +61 -0
- package/dist/source/index.js +90 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +19 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +193 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +12 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +10 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +9 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +20 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +23 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +32 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +19 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +45 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +26 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +5 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +20 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +26 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +8 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +10 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +21 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +24 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +12 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +8 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.js.map +1 -0
- package/dist/source/interfaces/extension_object_constructor.d.ts +10 -0
- package/dist/source/interfaces/extension_object_constructor.js +3 -0
- package/dist/source/interfaces/extension_object_constructor.js.map +1 -0
- package/dist/source/interfaces/nodeset_loader_options.d.ts +4 -0
- package/dist/source/interfaces/nodeset_loader_options.js +3 -0
- package/dist/source/interfaces/nodeset_loader_options.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +12 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +49 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +11 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +30 -0
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +234 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +6 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.js.map +1 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +8 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +3 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -0
- package/dist/source/loader/decode_xml_extension_object.d.ts +6 -0
- package/dist/source/loader/decode_xml_extension_object.js +72 -0
- package/dist/source/loader/decode_xml_extension_object.js.map +1 -0
- package/dist/source/loader/ensure_datatype_extracted.d.ts +5 -0
- package/dist/source/loader/ensure_datatype_extracted.js +71 -0
- package/dist/source/loader/ensure_datatype_extracted.js.map +1 -0
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +11 -0
- package/dist/source/loader/generateAddressSpaceRaw.js +46 -0
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -0
- package/dist/source/loader/load_nodeset2.d.ts +17 -0
- package/dist/source/loader/load_nodeset2.js +1484 -0
- package/dist/source/loader/load_nodeset2.js.map +1 -0
- package/dist/source/loader/make_semver_compatible.d.ts +6 -0
- package/dist/source/loader/make_semver_compatible.js +26 -0
- package/dist/source/loader/make_semver_compatible.js.map +1 -0
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +28 -0
- package/dist/source/loader/make_xml_extension_object_parser.js +327 -0
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -0
- package/dist/source/loader/namespace_post_step.d.ts +10 -0
- package/dist/source/loader/namespace_post_step.js +62 -0
- package/dist/source/loader/namespace_post_step.js.map +1 -0
- package/dist/source/loader/register_node_promoter.d.ts +2 -0
- package/dist/source/loader/register_node_promoter.js +10 -0
- package/dist/source/loader/register_node_promoter.js.map +1 -0
- package/dist/source/namespace.d.ts +6 -0
- package/dist/source/namespace.js +3 -0
- package/dist/source/namespace.js.map +1 -0
- package/dist/source/namespace_alarm_and_condition.d.ts +32 -0
- package/dist/source/namespace_alarm_and_condition.js +3 -0
- package/dist/source/namespace_alarm_and_condition.js.map +1 -0
- package/dist/source/namespace_data_access.d.ts +42 -0
- package/dist/source/namespace_data_access.js +3 -0
- package/dist/source/namespace_data_access.js.map +1 -0
- package/dist/source/namespace_machine_state.d.ts +8 -0
- package/dist/source/namespace_machine_state.js +3 -0
- package/dist/source/namespace_machine_state.js.map +1 -0
- package/dist/source/pseudo_session.d.ts +72 -0
- package/dist/source/pseudo_session.js +255 -0
- package/dist/source/pseudo_session.js.map +1 -0
- package/dist/source/session_context.d.ts +111 -0
- package/dist/source/session_context.js +265 -0
- package/dist/source/session_context.js.map +1 -0
- package/dist/source/set_namespace_meta_data.d.ts +2 -0
- package/dist/source/set_namespace_meta_data.js +60 -0
- package/dist/source/set_namespace_meta_data.js.map +1 -0
- package/dist/source/ua_root_folder.d.ts +9 -0
- package/dist/source/ua_root_folder.js +3 -0
- package/dist/source/ua_root_folder.js.map +1 -0
- package/dist/source/ua_two_state_variable_ex.d.ts +23 -0
- package/dist/source/ua_two_state_variable_ex.js +3 -0
- package/dist/source/ua_two_state_variable_ex.js.map +1 -0
- package/dist/source/xml_writer.d.ts +18 -0
- package/dist/source/xml_writer.js +3 -0
- package/dist/source/xml_writer.js.map +1 -0
- package/dist/src/address_space.d.ts +387 -0
- package/dist/src/address_space.js +1386 -0
- package/dist/src/address_space.js.map +1 -0
- package/dist/src/address_space_change_event_tools.d.ts +6 -0
- package/dist/src/address_space_change_event_tools.js +153 -0
- package/dist/src/address_space_change_event_tools.js.map +1 -0
- package/dist/src/address_space_private.d.ts +43 -0
- package/dist/src/address_space_private.js +3 -0
- package/dist/src/address_space_private.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition.d.ts +5 -0
- package/dist/src/alarms_and_conditions/condition.js +79 -0
- package/dist/src/alarms_and_conditions/condition.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +26 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.js +55 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +222 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +658 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +9 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +61 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -0
- package/dist/src/alarms_and_conditions/index.d.ts +16 -0
- package/dist/src/alarms_and_conditions/index.js +33 -0
- package/dist/src/alarms_and_conditions/index.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +44 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +245 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +93 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +419 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +26 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +39 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +44 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +184 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +155 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +1029 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +14 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +35 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +24 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +57 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +11 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +12 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +23 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +87 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +11 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +8 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +79 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +251 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +24 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +51 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +19 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +163 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +46 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +166 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +18 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +18 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -0
- package/dist/src/apply_condition_refresh.d.ts +6 -0
- package/dist/src/apply_condition_refresh.js +28 -0
- package/dist/src/apply_condition_refresh.js.map +1 -0
- package/dist/src/base_node_impl.d.ts +284 -0
- package/dist/src/base_node_impl.js +1455 -0
- package/dist/src/base_node_impl.js.map +1 -0
- package/dist/src/base_node_private.d.ts +81 -0
- package/dist/src/base_node_private.js +833 -0
- package/dist/src/base_node_private.js.map +1 -0
- package/dist/src/check_value_rank_compatibility.d.ts +15 -0
- package/dist/src/check_value_rank_compatibility.js +82 -0
- package/dist/src/check_value_rank_compatibility.js.map +1 -0
- package/dist/src/data_access/add_dataItem_stuff.d.ts +11 -0
- package/dist/src/data_access/add_dataItem_stuff.js +62 -0
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +1 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +35 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +1 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +32 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.js +131 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -0
- package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +52 -0
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js +254 -0
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +25 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.js +156 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -0
- package/dist/src/event_data.d.ts +34 -0
- package/dist/src/event_data.js +65 -0
- package/dist/src/event_data.js.map +1 -0
- package/dist/src/extension_object_array_node.d.ts +23 -0
- package/dist/src/extension_object_array_node.js +249 -0
- package/dist/src/extension_object_array_node.js.map +1 -0
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +26 -0
- package/dist/src/historical_access/address_space_historical_data_node.js +653 -0
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -0
- package/dist/src/idx_iterator.d.ts +8 -0
- package/dist/src/idx_iterator.js +51 -0
- package/dist/src/idx_iterator.js.map +1 -0
- package/dist/src/index_current.d.ts +46 -0
- package/dist/src/index_current.js +78 -0
- package/dist/src/index_current.js.map +1 -0
- package/dist/src/namespace_impl.d.ts +456 -0
- package/dist/src/namespace_impl.js +1763 -0
- package/dist/src/namespace_impl.js.map +1 -0
- package/dist/src/namespace_private.d.ts +23 -0
- package/dist/src/namespace_private.js +33 -0
- package/dist/src/namespace_private.js.map +1 -0
- package/dist/src/nodeid_manager.d.ts +37 -0
- package/dist/src/nodeid_manager.js +184 -0
- package/dist/src/nodeid_manager.js.map +1 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +2 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.js +14 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.js.map +1 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +18 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +141 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -0
- package/dist/src/nodeset_tools/dump_to_bsd.d.ts +2 -0
- package/dist/src/nodeset_tools/dump_to_bsd.js +165 -0
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +10 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1288 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -0
- package/dist/src/private_namespace.d.ts +5 -0
- package/dist/src/private_namespace.js +20 -0
- package/dist/src/private_namespace.js.map +1 -0
- package/dist/src/reference_impl.d.ts +43 -0
- package/dist/src/reference_impl.js +140 -0
- package/dist/src/reference_impl.js.map +1 -0
- package/dist/src/role_permissions.d.ts +2 -0
- package/dist/src/role_permissions.js +11 -0
- package/dist/src/role_permissions.js.map +1 -0
- package/dist/src/state_machine/finite_state_machine.d.ts +81 -0
- package/dist/src/state_machine/finite_state_machine.js +389 -0
- package/dist/src/state_machine/finite_state_machine.js.map +1 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +38 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +251 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -0
- package/dist/src/state_machine/ua_two_state_variable.d.ts +61 -0
- package/dist/src/state_machine/ua_two_state_variable.js +332 -0
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -0
- package/dist/src/tool_isSubtypeOf.d.ts +18 -0
- package/dist/src/tool_isSubtypeOf.js +125 -0
- package/dist/src/tool_isSubtypeOf.js.map +1 -0
- package/dist/src/ua_condition_type.d.ts +8 -0
- package/dist/src/ua_condition_type.js +3 -0
- package/dist/src/ua_condition_type.js.map +1 -0
- package/dist/src/ua_data_type_impl.d.ts +89 -0
- package/dist/src/ua_data_type_impl.js +369 -0
- package/dist/src/ua_data_type_impl.js.map +1 -0
- package/dist/src/ua_method_impl.d.ts +42 -0
- package/dist/src/ua_method_impl.js +218 -0
- package/dist/src/ua_method_impl.js.map +1 -0
- package/dist/src/ua_object_impl.d.ts +35 -0
- package/dist/src/ua_object_impl.js +169 -0
- package/dist/src/ua_object_impl.js.map +1 -0
- package/dist/src/ua_object_type_impl.d.ts +50 -0
- package/dist/src/ua_object_type_impl.js +127 -0
- package/dist/src/ua_object_type_impl.js.map +1 -0
- package/dist/src/ua_reference_type_impl.d.ts +45 -0
- package/dist/src/ua_reference_type_impl.js +142 -0
- package/dist/src/ua_reference_type_impl.js.map +1 -0
- package/dist/src/ua_variable_impl.d.ts +380 -0
- package/dist/src/ua_variable_impl.js +1739 -0
- package/dist/src/ua_variable_impl.js.map +1 -0
- package/dist/src/ua_variable_impl_ext_obj.d.ts +23 -0
- package/dist/src/ua_variable_impl_ext_obj.js +671 -0
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -0
- package/dist/src/ua_variable_type_impl.d.ts +74 -0
- package/dist/src/ua_variable_type_impl.js +598 -0
- package/dist/src/ua_variable_type_impl.js.map +1 -0
- package/dist/src/ua_view_impl.d.ts +19 -0
- package/dist/src/ua_view_impl.js +44 -0
- package/dist/src/ua_view_impl.js.map +1 -0
- package/dist/tsconfig_common.tsbuildinfo +1 -0
- package/distHelpers/add_event_generator_object.d.ts +3 -0
- package/{test_helpers/add_event_generator_object.ts → distHelpers/add_event_generator_object.js} +16 -22
- package/distHelpers/add_event_generator_object.js.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts +9 -0
- package/{test_helpers/alarms_and_conditions_demo.ts → distHelpers/alarms_and_conditions_demo.js} +21 -56
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts +19 -0
- package/{test_helpers/assertHasMatchingReference.ts → distHelpers/assertHasMatchingReference.js} +12 -14
- package/distHelpers/assertHasMatchingReference.js.map +1 -0
- package/distHelpers/boiler_system.d.ts +113 -0
- package/{test_helpers/boiler_system.ts → distHelpers/boiler_system.js} +81 -295
- package/distHelpers/boiler_system.js.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -0
- package/{test_helpers/create_minimalist_address_space_nodeset.ts → distHelpers/create_minimalist_address_space_nodeset.js} +51 -87
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -0
- package/distHelpers/date_utils.d.ts +3 -0
- package/distHelpers/date_utils.js +10 -0
- package/distHelpers/date_utils.js.map +1 -0
- package/distHelpers/dump_statemachine.d.ts +0 -0
- package/distHelpers/dump_statemachine.js +128 -0
- package/distHelpers/dump_statemachine.js.map +1 -0
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/{test_helpers/get_address_space_fixture.ts → distHelpers/get_address_space_fixture.js} +8 -7
- package/distHelpers/get_address_space_fixture.js.map +1 -0
- package/distHelpers/get_mini_address_space.d.ts +7 -0
- package/distHelpers/get_mini_address_space.js +37 -0
- package/distHelpers/get_mini_address_space.js.map +1 -0
- package/distHelpers/index.js +29 -0
- package/distHelpers/index.js.map +1 -0
- package/distHelpers/mock_session.d.ts +10 -0
- package/distHelpers/mock_session.js +26 -0
- package/distHelpers/mock_session.js.map +1 -0
- package/distNodeJS/generate_address_space.d.ts +6 -0
- package/distNodeJS/generate_address_space.js +53 -0
- package/distNodeJS/generate_address_space.js.map +1 -0
- package/distNodeJS/index.js +18 -0
- package/distNodeJS/index.js.map +1 -0
- package/package.json +49 -38
- package/source/helpers/dump_tools.ts +92 -0
- package/src/nodeset_tools/dump_to_bsd.ts +198 -0
- package/.mocharc.yml +0 -12
- package/generate.js +0 -1
- package/source_nodejs/generate_address_space.ts +0 -60
- package/test_helpers/date_utils.ts +0 -5
- package/test_helpers/get_mini_address_space.ts +0 -42
- package/test_helpers/mock_session.ts +0 -34
- package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +0 -150
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +0 -57
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +0 -136
- package/test_helpers/test_fixtures/dataType_issue.xml +0 -80
- package/test_helpers/test_fixtures/dataType_withEnumeration.xml +0 -82
- package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +0 -194
- package/test_helpers/test_fixtures/dataType_with_qualifiedname.xml +0 -71
- package/test_helpers/test_fixtures/dataType_with_recursive_structure.xml +0 -155
- package/test_helpers/test_fixtures/dataType_with_structures.xml +0 -605
- package/test_helpers/test_fixtures/dataType_with_union.xml +0 -90
- package/test_helpers/test_fixtures/datatype_as_per_1.04.xml +0 -118
- package/test_helpers/test_fixtures/datatype_with_allow_subtype.xml +0 -104
- package/test_helpers/test_fixtures/eurange_issue.xml +0 -74
- package/test_helpers/test_fixtures/example_issue1096.xml +0 -267
- package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +0 -106
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +0 -1305
- package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +0 -370
- package/test_helpers/test_fixtures/issue_1132_variable_with_nodeid_value.xml +0 -68
- package/test_helpers/test_fixtures/issue_846.xml +0 -3172
- package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +0 -33
- package/test_helpers/test_fixtures/mini.Node.Set2.xml +0 -4736
- package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +0 -196
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +0 -8
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +0 -20
- package/test_helpers/test_fixtures/nodeset_no_aliases.xml +0 -30
- package/test_helpers/test_fixtures/nodeset_no_aliases_with_aliases.xml +0 -31
- package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +0 -45
- package/test_helpers/test_fixtures/nodeset_with_guid.xml +0 -1442
- package/test_helpers/test_fixtures/nodeset_with_int64_values.xml +0 -31
- package/test_helpers/test_fixtures/nodeset_with_special_char.xml +0 -34
- package/test_helpers/test_fixtures/nodeset_with_utf8_special_characters.xml +0 -20
- package/test_helpers/test_fixtures/variable_with_value.xml +0 -143
- package/test_helpers/test_fixtures/variabletype_with_value.xml +0 -324
- /package/{test_helpers/index.ts → distHelpers/index.d.ts} +0 -0
- /package/{source_nodejs/index.ts → distNodeJS/index.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataValue } from "node-opcua-data-value";
|
|
2
|
+
import { DataType } from "node-opcua-variant";
|
|
3
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
4
|
+
import { DeviationStuff } from "../../source/interfaces/alarms_and_conditions/deviation_stuff";
|
|
5
|
+
import { InstallSetPointOptions } from "../../source/interfaces/alarms_and_conditions/install_setpoint_options";
|
|
6
|
+
export declare function DeviationAlarmHelper_getSetpointNodeNode(this: DeviationStuff): UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float> | undefined;
|
|
7
|
+
export declare function DeviationAlarmHelper_getSetpointValue(this: DeviationStuff): number | null;
|
|
8
|
+
export declare function DeviationAlarmHelper_onSetpointDataValueChange(this: DeviationStuff, dataValue: DataValue): void;
|
|
9
|
+
export declare function DeviationAlarmHelper_install_setpoint(this: DeviationStuff, options: InstallSetPointOptions): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviationAlarmHelper_install_setpoint = exports.DeviationAlarmHelper_onSetpointDataValueChange = exports.DeviationAlarmHelper_getSetpointValue = exports.DeviationAlarmHelper_getSetpointNodeNode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
6
|
+
*/
|
|
7
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
+
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
9
|
+
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
10
|
+
function DeviationAlarmHelper_getSetpointNodeNode() {
|
|
11
|
+
(0, node_opcua_assert_1.assert)(this.setpointNode.readValue().value.dataType === node_opcua_variant_1.DataType.NodeId);
|
|
12
|
+
const nodeId = this.setpointNode.readValue().value.value;
|
|
13
|
+
const node = this.addressSpace.findNode(nodeId);
|
|
14
|
+
(0, node_opcua_assert_1.assert)(node === this.setpointNodeNode);
|
|
15
|
+
if (!node) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
return this.setpointNodeNode;
|
|
19
|
+
}
|
|
20
|
+
exports.DeviationAlarmHelper_getSetpointNodeNode = DeviationAlarmHelper_getSetpointNodeNode;
|
|
21
|
+
function DeviationAlarmHelper_getSetpointValue() {
|
|
22
|
+
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(this, "setpointNode"));
|
|
23
|
+
(0, node_opcua_assert_1.assert)(Object.prototype.hasOwnProperty.call(this, "setpointNodeNode"));
|
|
24
|
+
if (!this.setpointNodeNode) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const setpointDataValue = this.setpointNodeNode.readValue();
|
|
28
|
+
if (setpointDataValue.statusCode.isNotGood()) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const node = this.getSetpointNodeNode();
|
|
32
|
+
if (!node) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return node.readValue().value.value;
|
|
36
|
+
}
|
|
37
|
+
exports.DeviationAlarmHelper_getSetpointValue = DeviationAlarmHelper_getSetpointValue;
|
|
38
|
+
function DeviationAlarmHelper_onSetpointDataValueChange(dataValue) {
|
|
39
|
+
this._setStateBasedOnInputValue(this.getInputNodeValue());
|
|
40
|
+
}
|
|
41
|
+
exports.DeviationAlarmHelper_onSetpointDataValueChange = DeviationAlarmHelper_onSetpointDataValueChange;
|
|
42
|
+
function DeviationAlarmHelper_install_setpoint(options) {
|
|
43
|
+
(0, node_opcua_assert_1.assert)(this.setpointNode.browseName.toString() === "SetpointNode");
|
|
44
|
+
const addressSpace = this.addressSpace;
|
|
45
|
+
if (options.setpointNode) {
|
|
46
|
+
const setpointNodeNode = addressSpace._coerceNode(options.setpointNode);
|
|
47
|
+
(0, node_opcua_assert_1.assert)(setpointNodeNode, "Expecting a valid setpoint node");
|
|
48
|
+
this.setpointNodeNode = addressSpace._coerceNode(options.setpointNode);
|
|
49
|
+
this.setpointNode.setValueFromSource({ dataType: "NodeId", value: this.setpointNodeNode.nodeId });
|
|
50
|
+
// install inputNode monitoring for change
|
|
51
|
+
this.setpointNodeNode.on("value_changed", (newDataValue) => {
|
|
52
|
+
this._onSetpointDataValueChange(newDataValue);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this.setpointNodeNode = undefined;
|
|
57
|
+
this.setpointNode.setValueFromSource({ dataType: "NodeId", value: node_opcua_nodeid_1.NodeId.nullNodeId });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.DeviationAlarmHelper_install_setpoint = DeviationAlarmHelper_install_setpoint;
|
|
61
|
+
//# sourceMappingURL=deviation_alarm_helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviation_alarm_helper.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/deviation_alarm_helper.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAE3C,2DAA8C;AAE9C,yDAA2C;AAM3C,SAAgB,wCAAwC;IAGpD,IAAA,0BAAM,EAAC,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,6BAAQ,CAAC,MAAM,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;IACzD,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,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AI,OAAO,CAAC,YAAY,EAAE;QACtB,MAAM,gBAAgB,GAAG,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACxE,IAAA,0BAAM,EAAC,gBAAgB,EAAE,iCAAiC,CAAC,CAAC;QAC5D,IAAI,CAAC,gBAAgB,GAAG,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAA0C,CAAC;QAChH,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAC;QAClG,0CAA0C;QAC1C,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,eAAe,EAAE,CAAC,YAAuB,EAAE,EAAE;YAClE,IAAI,CAAC,0BAA0B,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;KACN;SAAM;QACH,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QAClC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,0BAAM,CAAC,UAAU,EAAE,CAAC,CAAC;KAC1F;AACL,CAAC;AAnBD,sFAmBC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
|
+
*/
|
|
4
|
+
export * from "./condition_info_impl";
|
|
5
|
+
export * from "./condition_snapshot_impl";
|
|
6
|
+
export * from "./ua_condition_impl";
|
|
7
|
+
export * from "./ua_acknowledgeable_condition_impl";
|
|
8
|
+
export * from "./ua_discrete_alarm_impl";
|
|
9
|
+
export * from "./ua_exclusive_deviation_alarm_impl";
|
|
10
|
+
export * from "./ua_exclusive_level_alarm_impl";
|
|
11
|
+
export * from "./ua_exclusive_limit_alarm_impl";
|
|
12
|
+
export * from "./ua_limit_alarm_impl";
|
|
13
|
+
export * from "./ua_non_exclusive_deviation_alarm_impl";
|
|
14
|
+
export * from "./ua_non_exclusive_limit_alarm_impl";
|
|
15
|
+
export * from "./ua_alarm_condition_impl";
|
|
16
|
+
export * from "./ua_certificate_expiration_alarm_impl";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
19
|
+
*/
|
|
20
|
+
__exportStar(require("./condition_info_impl"), exports);
|
|
21
|
+
__exportStar(require("./condition_snapshot_impl"), exports);
|
|
22
|
+
__exportStar(require("./ua_condition_impl"), exports);
|
|
23
|
+
__exportStar(require("./ua_acknowledgeable_condition_impl"), exports);
|
|
24
|
+
__exportStar(require("./ua_discrete_alarm_impl"), exports);
|
|
25
|
+
__exportStar(require("./ua_exclusive_deviation_alarm_impl"), exports);
|
|
26
|
+
__exportStar(require("./ua_exclusive_level_alarm_impl"), exports);
|
|
27
|
+
__exportStar(require("./ua_exclusive_limit_alarm_impl"), exports);
|
|
28
|
+
__exportStar(require("./ua_limit_alarm_impl"), exports);
|
|
29
|
+
__exportStar(require("./ua_non_exclusive_deviation_alarm_impl"), exports);
|
|
30
|
+
__exportStar(require("./ua_non_exclusive_limit_alarm_impl"), exports);
|
|
31
|
+
__exportStar(require("./ua_alarm_condition_impl"), exports);
|
|
32
|
+
__exportStar(require("./ua_certificate_expiration_alarm_impl"), exports);
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,wDAAsC;AACtC,4DAA0C;AAC1C,sDAAoC;AACpC,sEAAoD;AACpD,2DAAyC;AACzC,sEAAoD;AACpD,kEAAgD;AAChD,kEAAgD;AAChD,wDAAsC;AACtC,0EAAwD;AACxD,sEAAoD;AACpD,4DAA0C;AAC1C,yEAAuD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { LocalizedText, LocalizedTextLike } from "node-opcua-data-model";
|
|
3
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
4
|
+
import { StatusCode } from "node-opcua-status-code";
|
|
5
|
+
import { VariantOptions } from "node-opcua-variant";
|
|
6
|
+
import { INamespace, UAEventType } from "node-opcua-address-space-base";
|
|
7
|
+
import { AddressSpacePrivate } from "../address_space_private";
|
|
8
|
+
import { UAAcknowledgeableConditionEx } from "../../source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex";
|
|
9
|
+
import { ConditionSnapshot } from "../../source/interfaces/alarms_and_conditions/condition_snapshot";
|
|
10
|
+
import { InstantiateAlarmConditionOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
11
|
+
import { UAConditionImpl } from "./ua_condition_impl";
|
|
12
|
+
export declare interface UAAcknowledgeableConditionImpl extends UAAcknowledgeableConditionEx, UAConditionImpl {
|
|
13
|
+
on(eventName: string, eventHandler: any): this;
|
|
14
|
+
}
|
|
15
|
+
export declare class UAAcknowledgeableConditionImpl extends UAConditionImpl implements UAAcknowledgeableConditionEx {
|
|
16
|
+
/**
|
|
17
|
+
*/
|
|
18
|
+
static instantiate(namespace: INamespace, conditionTypeId: UAEventType | NodeId | string, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAcknowledgeableConditionImpl;
|
|
19
|
+
static install_method_handle_on_type(addressSpace: AddressSpacePrivate): void;
|
|
20
|
+
_raiseAuditConditionAcknowledgeEvent(branch: ConditionSnapshot): void;
|
|
21
|
+
_raiseAuditConditionConfirmEvent(branch: ConditionSnapshot): void;
|
|
22
|
+
_acknowledge_branch(conditionEventId: Buffer, comment: string | LocalizedTextLike | LocalizedText, branch: ConditionSnapshot, message: string): StatusCode;
|
|
23
|
+
/**
|
|
24
|
+
* @method _confirm_branch
|
|
25
|
+
* @param conditionEventId The ConditionEventId field shall contain the id of the Event that was conformed
|
|
26
|
+
* @param comment
|
|
27
|
+
* @param branch
|
|
28
|
+
* @param message
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
_confirm_branch(conditionEventId: Buffer, comment: string | LocalizedTextLike, branch: ConditionSnapshot, message: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* @method autoConfirmBranch
|
|
34
|
+
* @param branch
|
|
35
|
+
* @param comment
|
|
36
|
+
*/
|
|
37
|
+
autoConfirmBranch(branch: ConditionSnapshot, comment: LocalizedTextLike): void;
|
|
38
|
+
/**
|
|
39
|
+
* @method acknowledgeAndAutoConfirmBranch
|
|
40
|
+
* @param branch {ConditionSnapshot}
|
|
41
|
+
* @param comment {String|LocalizedText}
|
|
42
|
+
*/
|
|
43
|
+
acknowledgeAndAutoConfirmBranch(branch: ConditionSnapshot, comment: string | LocalizedTextLike | LocalizedText): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UAAcknowledgeableConditionImpl = void 0;
|
|
4
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
5
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
6
|
+
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
7
|
+
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
8
|
+
const ua_two_state_variable_1 = require("../state_machine/ua_two_state_variable");
|
|
9
|
+
const condition_1 = require("./condition");
|
|
10
|
+
const condition_snapshot_impl_1 = require("./condition_snapshot_impl");
|
|
11
|
+
const ua_condition_impl_1 = require("./ua_condition_impl");
|
|
12
|
+
class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl {
|
|
13
|
+
/**
|
|
14
|
+
*/
|
|
15
|
+
static instantiate(namespace, conditionTypeId, options, data) {
|
|
16
|
+
const conditionNode = ua_condition_impl_1.UAConditionImpl.instantiate(namespace, conditionTypeId, options, data);
|
|
17
|
+
Object.setPrototypeOf(conditionNode, UAAcknowledgeableConditionImpl.prototype);
|
|
18
|
+
// ----------------------- Install Acknowledge-able Condition stuff
|
|
19
|
+
// install ackedState - Mandatory
|
|
20
|
+
/**
|
|
21
|
+
* @property ackedState
|
|
22
|
+
* @type TwoStateVariable
|
|
23
|
+
*/
|
|
24
|
+
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(conditionNode.ackedState, {
|
|
25
|
+
falseState: "Unacknowledged",
|
|
26
|
+
trueState: "Acknowledged"
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* @property acknowledge
|
|
30
|
+
* @type UAMethod
|
|
31
|
+
*/
|
|
32
|
+
conditionNode.acknowledge.bindMethod(_acknowledge_method);
|
|
33
|
+
// install confirmedState - Optional
|
|
34
|
+
/**
|
|
35
|
+
* @property confirmedState
|
|
36
|
+
* @type TwoStateVariable
|
|
37
|
+
*/
|
|
38
|
+
if (conditionNode.confirmedState) {
|
|
39
|
+
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(conditionNode.confirmedState, {
|
|
40
|
+
falseState: "Unconfirmed",
|
|
41
|
+
trueState: "Confirmed"
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
// install confirm Method - Optional
|
|
45
|
+
/**
|
|
46
|
+
* @property confirm
|
|
47
|
+
* @type UAMethod
|
|
48
|
+
*/
|
|
49
|
+
if (conditionNode.confirm) {
|
|
50
|
+
conditionNode.confirm.bindMethod(_confirm_method);
|
|
51
|
+
}
|
|
52
|
+
(0, node_opcua_assert_1.assert)(conditionNode instanceof UAAcknowledgeableConditionImpl);
|
|
53
|
+
return conditionNode;
|
|
54
|
+
}
|
|
55
|
+
static install_method_handle_on_type(addressSpace) {
|
|
56
|
+
var _a;
|
|
57
|
+
const acknowledgeableConditionType = addressSpace.findEventType("AcknowledgeableConditionType");
|
|
58
|
+
(0, node_opcua_assert_1.assert)(acknowledgeableConditionType !== null);
|
|
59
|
+
acknowledgeableConditionType.acknowledge.bindMethod(_acknowledge_method);
|
|
60
|
+
(_a = acknowledgeableConditionType.confirm) === null || _a === void 0 ? void 0 : _a.bindMethod(_confirm_method);
|
|
61
|
+
}
|
|
62
|
+
_raiseAuditConditionAcknowledgeEvent(branch) {
|
|
63
|
+
// raise the AuditConditionAcknowledgeEventType
|
|
64
|
+
const eventData = {
|
|
65
|
+
actionTimeStamp: { dataType: node_opcua_variant_1.DataType.DateTime, value: new Date() },
|
|
66
|
+
// xx branchId: branch.branchId.readValue().value,
|
|
67
|
+
// AuditEventType
|
|
68
|
+
clientAuditEntryId: {
|
|
69
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
70
|
+
},
|
|
71
|
+
clientUserId: {
|
|
72
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
73
|
+
},
|
|
74
|
+
// The ConditionEventId field shall contain the id of the event for which the comment was added
|
|
75
|
+
conditionEventId: { dataType: node_opcua_variant_1.DataType.ByteString, value: branch.getEventId() },
|
|
76
|
+
// The Comment contains the actual comment that was added
|
|
77
|
+
comment: { dataType: node_opcua_variant_1.DataType.LocalizedText, value: branch.getComment() },
|
|
78
|
+
inputArguments: {
|
|
79
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
80
|
+
},
|
|
81
|
+
methodId: {
|
|
82
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
83
|
+
},
|
|
84
|
+
serverId: {
|
|
85
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
86
|
+
},
|
|
87
|
+
status: {
|
|
88
|
+
dataType: node_opcua_variant_1.DataType.StatusCode,
|
|
89
|
+
value: node_opcua_status_code_1.StatusCodes.Good
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
this.raiseEvent("AuditConditionAcknowledgeEventType", eventData);
|
|
93
|
+
}
|
|
94
|
+
_raiseAuditConditionConfirmEvent(branch) {
|
|
95
|
+
// raise the AuditConditionConfirmEventType
|
|
96
|
+
const eventData = {
|
|
97
|
+
actionTimeStamp: { dataType: node_opcua_variant_1.DataType.DateTime, value: new Date() },
|
|
98
|
+
// ConditionEventId The ConditionEventId field shall contain the id of the Event that was confirmed
|
|
99
|
+
conditionEventId: { dataType: node_opcua_variant_1.DataType.ByteString, value: branch.getEventId() },
|
|
100
|
+
// xx branchId: branch.branchId.readValue().value,
|
|
101
|
+
// AuditEventType
|
|
102
|
+
clientAuditEntryId: {
|
|
103
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
104
|
+
},
|
|
105
|
+
clientUserId: {
|
|
106
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
107
|
+
},
|
|
108
|
+
comment: { dataType: node_opcua_variant_1.DataType.LocalizedText, value: branch.getComment() },
|
|
109
|
+
inputArguments: {
|
|
110
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
111
|
+
},
|
|
112
|
+
methodId: {
|
|
113
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
114
|
+
},
|
|
115
|
+
serverId: {
|
|
116
|
+
dataType: node_opcua_variant_1.DataType.Null
|
|
117
|
+
},
|
|
118
|
+
status: {
|
|
119
|
+
dataType: node_opcua_variant_1.DataType.StatusCode,
|
|
120
|
+
value: node_opcua_status_code_1.StatusCodes.Good
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
this.raiseEvent("AuditConditionConfirmEventType", eventData);
|
|
124
|
+
}
|
|
125
|
+
_acknowledge_branch(conditionEventId, comment, branch, message) {
|
|
126
|
+
(0, node_opcua_assert_1.assert)(typeof message === "string");
|
|
127
|
+
const statusCode = (0, condition_1._setAckedState)(branch, true, conditionEventId, comment);
|
|
128
|
+
if (statusCode.isNotGood()) {
|
|
129
|
+
return statusCode;
|
|
130
|
+
}
|
|
131
|
+
if (this.confirmedState) {
|
|
132
|
+
// alarm has a confirmed state !
|
|
133
|
+
// we should be waiting for confirmation now
|
|
134
|
+
branch.setConfirmedState(false);
|
|
135
|
+
branch.setRetain(true);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
branch.setRetain(false);
|
|
139
|
+
}
|
|
140
|
+
branch.setComment(comment);
|
|
141
|
+
this.raiseNewBranchState(branch);
|
|
142
|
+
this._raiseAuditConditionAcknowledgeEvent(branch);
|
|
143
|
+
/**
|
|
144
|
+
* @event acknowledged
|
|
145
|
+
* @param eventId {Buffer|null}
|
|
146
|
+
* @param comment {LocalizedText}
|
|
147
|
+
* @param branch {ConditionSnapshot}
|
|
148
|
+
* raised when the alarm branch has been acknowledged
|
|
149
|
+
*/
|
|
150
|
+
this.emit("acknowledged", conditionEventId, comment, branch);
|
|
151
|
+
return node_opcua_status_code_1.StatusCodes.Good;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @method _confirm_branch
|
|
155
|
+
* @param conditionEventId The ConditionEventId field shall contain the id of the Event that was conformed
|
|
156
|
+
* @param comment
|
|
157
|
+
* @param branch
|
|
158
|
+
* @param message
|
|
159
|
+
* @private
|
|
160
|
+
*/
|
|
161
|
+
_confirm_branch(conditionEventId, comment, branch, message) {
|
|
162
|
+
(0, node_opcua_assert_1.assert)(typeof message === "string");
|
|
163
|
+
(0, node_opcua_assert_1.assert)(comment instanceof node_opcua_data_model_1.LocalizedText);
|
|
164
|
+
// xx var eventId = branch.getEventId();
|
|
165
|
+
(0, node_opcua_assert_1.assert)(branch.getEventId().toString("hex") === conditionEventId.toString("hex"));
|
|
166
|
+
branch.setConfirmedState(true);
|
|
167
|
+
// once confirmed a branch do not need to be retained
|
|
168
|
+
branch.setRetain(false);
|
|
169
|
+
branch.setComment(comment);
|
|
170
|
+
this._raiseAuditConditionCommentEvent(message, conditionEventId, comment);
|
|
171
|
+
this._raiseAuditConditionConfirmEvent(branch);
|
|
172
|
+
this.raiseNewBranchState(branch);
|
|
173
|
+
/**
|
|
174
|
+
* @event confirmed
|
|
175
|
+
* @param eventId
|
|
176
|
+
* @param comment
|
|
177
|
+
* @param eventId
|
|
178
|
+
* raised when the alarm branch has been confirmed
|
|
179
|
+
*/
|
|
180
|
+
this.emit("confirmed", conditionEventId, comment, branch);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @method autoConfirmBranch
|
|
184
|
+
* @param branch
|
|
185
|
+
* @param comment
|
|
186
|
+
*/
|
|
187
|
+
autoConfirmBranch(branch, comment) {
|
|
188
|
+
(0, node_opcua_assert_1.assert)(branch instanceof condition_snapshot_impl_1.ConditionSnapshotImpl);
|
|
189
|
+
if (!this.confirmedState) {
|
|
190
|
+
// no confirmedState => ignoring
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
(0, node_opcua_assert_1.assert)(!branch.getConfirmedState(), "already confirmed ?");
|
|
194
|
+
const conditionEventId = branch.getEventId();
|
|
195
|
+
// tslint:disable-next-line:no-console
|
|
196
|
+
console.log("autoConfirmBranch getAckedState ", branch.getAckedState());
|
|
197
|
+
this._confirm_branch(conditionEventId, comment, branch, "Server/Confirm");
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @method acknowledgeAndAutoConfirmBranch
|
|
201
|
+
* @param branch {ConditionSnapshot}
|
|
202
|
+
* @param comment {String|LocalizedText}
|
|
203
|
+
*/
|
|
204
|
+
acknowledgeAndAutoConfirmBranch(branch, comment) {
|
|
205
|
+
comment = node_opcua_data_model_1.LocalizedText.coerce(comment);
|
|
206
|
+
const conditionEventId = branch.getEventId();
|
|
207
|
+
branch.setRetain(false);
|
|
208
|
+
this._acknowledge_branch(conditionEventId, comment, branch, "Server/Acknowledge");
|
|
209
|
+
this.autoConfirmBranch(branch, comment);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.UAAcknowledgeableConditionImpl = UAAcknowledgeableConditionImpl;
|
|
213
|
+
function _acknowledge_method(inputArguments, context, callback) {
|
|
214
|
+
ua_condition_impl_1.UAConditionImpl.with_condition_method(inputArguments, context, callback, (conditionEventId, comment, branch, conditionNode) => {
|
|
215
|
+
const ackConditionNode = conditionNode;
|
|
216
|
+
// precondition checking
|
|
217
|
+
(0, node_opcua_assert_1.assert)(!conditionEventId || conditionEventId instanceof Buffer, "must have a valid eventId or null");
|
|
218
|
+
(0, node_opcua_assert_1.assert)(comment instanceof node_opcua_data_model_1.LocalizedText, "expecting a comment as LocalizedText");
|
|
219
|
+
(0, node_opcua_assert_1.assert)(conditionNode instanceof UAAcknowledgeableConditionImpl);
|
|
220
|
+
ackConditionNode._acknowledge_branch(conditionEventId, comment, branch, "Method/Acknowledged");
|
|
221
|
+
return node_opcua_status_code_1.StatusCodes.Good;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/*
|
|
225
|
+
*
|
|
226
|
+
* param inputArguments {Variant[]}
|
|
227
|
+
* param context {Object}
|
|
228
|
+
* param callback {Function}
|
|
229
|
+
*
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
232
|
+
function _confirm_method(inputArguments, context, callback) {
|
|
233
|
+
ua_condition_impl_1.UAConditionImpl.with_condition_method(inputArguments, context, callback, (eventId, comment, branch, conditionNode) => {
|
|
234
|
+
(0, node_opcua_assert_1.assert)(eventId instanceof Buffer);
|
|
235
|
+
(0, node_opcua_assert_1.assert)(branch.getEventId() instanceof Buffer);
|
|
236
|
+
(0, node_opcua_assert_1.assert)(branch.getEventId().toString("hex") === eventId.toString("hex"));
|
|
237
|
+
const ackConditionNode = conditionNode;
|
|
238
|
+
if (branch.getConfirmedState()) {
|
|
239
|
+
return node_opcua_status_code_1.StatusCodes.BadConditionBranchAlreadyConfirmed;
|
|
240
|
+
}
|
|
241
|
+
ackConditionNode._confirm_branch(eventId, comment, branch, "Method/Confirm");
|
|
242
|
+
return node_opcua_status_code_1.StatusCodes.Good;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
//# sourceMappingURL=ua_acknowledgeable_condition_impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_acknowledgeable_condition_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts"],"names":[],"mappings":";;;AAIA,yDAA2C;AAC3C,iEAAyE;AAEzE,mEAA4E;AAC5E,2DAA2E;AAK3E,kFAA6F;AAK7F,2CAA6C;AAC7C,uEAAkE;AAClE,2DAAuD;AAOvD,MAAa,8BAA+B,SAAQ,mCAAe;IAC/D;OACG;IACI,MAAM,CAAC,WAAW,CACrB,SAAqB,EACrB,eAA8C,EAC9C,OAAyC,EACzC,IAAqC;QAErC,MAAM,aAAa,GAAG,mCAAe,CAAC,WAAW,CAC7C,SAAS,EACT,eAAe,EACf,OAAO,EACP,IAAI,CAC2B,CAAC;QAEpC,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,8BAA8B,CAAC,SAAS,CAAC,CAAC;QAE/E,mEAAmE;QACnE,iCAAiC;QACjC;;;WAGG;QACH,IAAA,2DAAmC,EAAC,aAAa,CAAC,UAAU,EAAE;YAC1D,UAAU,EAAE,gBAAgB;YAC5B,SAAS,EAAE,cAAc;SAC5B,CAAC,CAAC;QAEH;;;WAGG;QACH,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,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QAClC,IAAA,0BAAM,EAAC,MAAM,CAAC,UAAU,EAAE,YAAY,MAAM,CAAC,CAAC;QAC9C,IAAA,0BAAM,EAAC,MAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QAExE,MAAM,gBAAgB,GAAG,aAA+C,CAAC;QACzE,IAAI,MAAM,CAAC,iBAAiB,EAAE,EAAE;YAC5B,OAAO,oCAAW,CAAC,kCAAkC,CAAC;SACzD;QACD,gBAAgB,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;QAC7E,OAAO,oCAAW,CAAC,IAAI,CAAC;IAC5B,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { DataValue } from "node-opcua-data-value";
|
|
2
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
3
|
+
import { VariantOptions } from "node-opcua-variant";
|
|
4
|
+
import { BaseNode, INamespace, UAEventType, UAVariable } from "node-opcua-address-space-base";
|
|
5
|
+
import { ConditionInfo } from "../../source/interfaces/alarms_and_conditions/condition_info_i";
|
|
6
|
+
import { UAAlarmConditionEx } from "../../source/interfaces/alarms_and_conditions/ua_alarm_condition_ex";
|
|
7
|
+
import { InstantiateAlarmConditionOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
8
|
+
import { UAAcknowledgeableConditionImpl } from "./ua_acknowledgeable_condition_impl";
|
|
9
|
+
export declare interface UAAlarmConditionImpl extends UAAlarmConditionEx, UAAcknowledgeableConditionImpl {
|
|
10
|
+
on(eventName: string, eventHandler: any): this;
|
|
11
|
+
}
|
|
12
|
+
export declare class UAAlarmConditionImpl extends UAAcknowledgeableConditionImpl implements UAAlarmConditionEx {
|
|
13
|
+
static MaxDuration: number;
|
|
14
|
+
static instantiate(namespace: INamespace, alarmConditionTypeId: UAEventType | string | NodeId, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAlarmConditionImpl;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
activateAlarm(): void;
|
|
17
|
+
deactivateAlarm(retain?: boolean): void;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use deactivateAlarm instead (with no s after de-activate)
|
|
20
|
+
*/
|
|
21
|
+
protected desactivateAlarm(): void;
|
|
22
|
+
isSuppressedOrShelved(): boolean;
|
|
23
|
+
getSuppressedOrShelved(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* note: duration must be greater than 10ms and lesser than 2**31 ms
|
|
27
|
+
*/
|
|
28
|
+
setMaxTimeShelved(duration: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* note: return a Duration
|
|
31
|
+
*/
|
|
32
|
+
getMaxTimeShelved(): number;
|
|
33
|
+
/**
|
|
34
|
+
* @method getInputNodeNode
|
|
35
|
+
* @return {BaseNode} return the node in the address space pointed by the inputNode value
|
|
36
|
+
*
|
|
37
|
+
* Note: please note the difference between alarm.inputNode
|
|
38
|
+
* * alarm.inputNode is a UAVariable property of the alarm object holding the nodeid of the input
|
|
39
|
+
* node in its value.
|
|
40
|
+
* * getInputNodeNode() is the UAVariable that contains the value that affects the state of the alarm and
|
|
41
|
+
* whose node id is stored in alarm.inputNode
|
|
42
|
+
*/
|
|
43
|
+
getInputNodeNode(): UAVariable | null;
|
|
44
|
+
/**
|
|
45
|
+
* @method getInputNodeValue
|
|
46
|
+
* @return {*}
|
|
47
|
+
*/
|
|
48
|
+
getInputNodeValue(): any | null;
|
|
49
|
+
updateState(): void;
|
|
50
|
+
protected _onInputDataValueChange(newValue: DataValue): void;
|
|
51
|
+
/**
|
|
52
|
+
* @method installInputNodeMonitoring
|
|
53
|
+
* install mechanism that listen to input node datavalue changes so that alarm status
|
|
54
|
+
* can be automatically updated appropriatly.
|
|
55
|
+
* @param inputNode {BaseNode}
|
|
56
|
+
* @return {void}
|
|
57
|
+
* @protected
|
|
58
|
+
*/
|
|
59
|
+
installInputNodeMonitoring(inputNode: BaseNode | NodeId): void;
|
|
60
|
+
getCurrentConditionInfo(): ConditionInfo;
|
|
61
|
+
/***
|
|
62
|
+
* @method _calculateConditionInfo
|
|
63
|
+
* @param stateData {Object} the new calculated state of the alarm
|
|
64
|
+
* @param isActive {Boolean}
|
|
65
|
+
* @param value {Number} the new value of the limit alarm
|
|
66
|
+
* @param oldCondition {ConditionInfo} given for information purpose
|
|
67
|
+
* @param oldCondition.severity
|
|
68
|
+
* @param oldCondition.quality
|
|
69
|
+
* @param oldCondition.message
|
|
70
|
+
* @param oldCondition.retain
|
|
71
|
+
* @return {ConditionInfo} the new condition info
|
|
72
|
+
*
|
|
73
|
+
* this method need to be overridden by the instantiate to allow custom message and severity
|
|
74
|
+
* to be set based on specific context of the alarm.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* var myAlarm = addressSpace.instantiateExclusiveLimitAlarm({...});
|
|
80
|
+
* myAlarm._calculateConditionInfo = function(stateName,value,oldCondition) {
|
|
81
|
+
* var percent = Math.ceil(value * 100);
|
|
82
|
+
* return new ConditionInfo({
|
|
83
|
+
* message: "Tank is almost " + percent + "% full",
|
|
84
|
+
* severity: 100,
|
|
85
|
+
* quality: StatusCodes.Good
|
|
86
|
+
* });
|
|
87
|
+
* };
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
_calculateConditionInfo(stateData: string | null, isActive: boolean, value: string, oldCondition: ConditionInfo): ConditionInfo;
|
|
91
|
+
_signalInitialCondition(): void;
|
|
92
|
+
_signalNewCondition(stateName: string | null, isActive?: boolean, value?: string): void;
|
|
93
|
+
}
|