node-opcua-address-space 2.170.1 → 2.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/address_space_ts.d.ts +13 -13
- package/dist/source/address_space_ts.js +4 -0
- package/dist/source/address_space_ts.js.map +1 -1
- package/dist/source/continuation_points/continuation_point_manager.d.ts +6 -3
- package/dist/source/continuation_points/continuation_point_manager.js +4 -4
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/source/helpers/adjust_browse_direction.d.ts +1 -1
- package/dist/source/helpers/argument_list.d.ts +13 -11
- package/dist/source/helpers/argument_list.js +24 -15
- package/dist/source/helpers/argument_list.js.map +1 -1
- package/dist/source/helpers/call_helpers.d.ts +6 -3
- package/dist/source/helpers/call_helpers.js +5 -6
- package/dist/source/helpers/call_helpers.js.map +1 -1
- package/dist/source/helpers/coerce_enum_value.d.ts +2 -2
- package/dist/source/helpers/coerce_enum_value.js +2 -2
- package/dist/source/helpers/coerce_enum_value.js.map +1 -1
- package/dist/source/helpers/dump_tools.d.ts +3 -3
- package/dist/source/helpers/dump_tools.js +2 -2
- package/dist/source/helpers/dump_tools.js.map +1 -1
- package/dist/source/helpers/ensure_secure_access.d.ts +1 -1
- package/dist/source/helpers/ensure_secure_access.js +1 -1
- package/dist/source/helpers/ensure_secure_access.js.map +1 -1
- package/dist/source/helpers/make_optionals_map.js +0 -5
- package/dist/source/helpers/make_optionals_map.js.map +1 -1
- package/dist/source/helpers/multiform_func.d.ts +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js +1 -1
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/source/index.d.ts +38 -38
- package/dist/source/index.js +53 -54
- package/dist/source/index.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.d.ts +11 -11
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +6 -6
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +4 -4
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +4 -3
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +2 -2
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +10 -13
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +11 -11
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts +11 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_base_event_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +5 -5
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +21 -29
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +3 -7
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +0 -23
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +1 -1
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +3 -3
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +8 -10
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +4 -6
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +5 -5
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +3 -3
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +7 -7
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +5 -8
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +5 -5
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +3 -3
- package/dist/source/interfaces/extension_object_constructor.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +2 -2
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +3 -3
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +6 -6
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +7 -6
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js +4 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +1 -1
- package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +2 -2
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +2 -2
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +3 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -1
- package/dist/source/loader/decode_xml_extension_object.d.ts +4 -4
- package/dist/source/loader/decode_xml_extension_object.js +3 -3
- package/dist/source/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/source/loader/ensure_datatype_extracted.d.ts +2 -2
- package/dist/source/loader/ensure_datatype_extracted.js +5 -5
- package/dist/source/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +3 -3
- package/dist/source/loader/generateAddressSpaceRaw.js +6 -6
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/source/loader/load_nodeset2.js.map +1 -1
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +2 -2
- package/dist/source/loader/make_xml_extension_object_parser.js +19 -19
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/source/loader/namespace_post_step.d.ts +1 -1
- package/dist/source/loader/namespace_post_step.js.map +1 -1
- package/dist/source/loader/parsers/extension_object_parser.d.ts +4 -4
- package/dist/source/loader/parsers/extension_object_parser.js +22 -23
- package/dist/source/loader/parsers/extension_object_parser.js.map +1 -1
- package/dist/source/loader/parsers/localized_text_parser.d.ts +2 -2
- package/dist/source/loader/parsers/localized_text_parser.js.map +1 -1
- package/dist/source/loader/parsers/nodeid_parser.d.ts +1 -1
- package/dist/source/loader/parsers/nodeid_parser.js.map +1 -1
- package/dist/source/loader/parsers/qualified_name_parser.d.ts +3 -3
- package/dist/source/loader/parsers/qualified_name_parser.js.map +1 -1
- package/dist/source/loader/parsers/variant_parser.d.ts +5 -5
- package/dist/source/loader/parsers/variant_parser.js +13 -13
- package/dist/source/loader/parsers/variant_parser.js.map +1 -1
- package/dist/source/loader/register_node_promoter.d.ts +1 -1
- package/dist/source/loader/register_node_promoter.js.map +1 -1
- package/dist/source/namespace.d.ts +4 -4
- package/dist/source/namespace_alarm_and_condition.d.ts +22 -21
- package/dist/source/namespace_data_access.d.ts +11 -11
- package/dist/source/namespace_machine_state.d.ts +4 -4
- package/dist/source/pseudo_session.d.ts +8 -5
- package/dist/source/pseudo_session.js +28 -28
- package/dist/source/pseudo_session.js.map +1 -1
- package/dist/source/session_context.js +1 -1
- package/dist/source/session_context.js.map +1 -1
- package/dist/source/set_namespace_meta_data.d.ts +1 -1
- package/dist/source/set_namespace_meta_data.js +1 -1
- package/dist/source/set_namespace_meta_data.js.map +1 -1
- package/dist/source/ua_addin.d.ts +3 -3
- package/dist/source/ua_addin.js +1 -1
- package/dist/source/ua_addin.js.map +1 -1
- package/dist/source/ua_interface.js +4 -1
- package/dist/source/ua_interface.js.map +1 -1
- package/dist/source/ua_root_folder.d.ts +1 -1
- package/dist/source/ua_two_state_variable_ex.d.ts +5 -5
- package/dist/src/_instantiate_helpers.js +1 -1
- package/dist/src/_instantiate_helpers.js.map +1 -1
- package/dist/src/_mandatory_child_or_requested_optional_filter.d.ts +2 -2
- package/dist/src/_mandatory_child_or_requested_optional_filter.js +7 -8
- package/dist/src/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/src/address_space.js +5 -6
- package/dist/src/address_space.js.map +1 -1
- package/dist/src/address_space_change_event_tools.d.ts +3 -3
- package/dist/src/address_space_change_event_tools.js +8 -10
- package/dist/src/address_space_change_event_tools.js.map +1 -1
- package/dist/src/address_space_private.d.ts +11 -11
- package/dist/src/address_space_private.js +3 -0
- package/dist/src/address_space_private.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +6 -6
- package/dist/src/alarms_and_conditions/condition_info_impl.js +6 -15
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +10 -10
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +76 -47
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +8 -5
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +15 -9
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/src/alarms_and_conditions/index.d.ts +3 -3
- package/dist/src/alarms_and_conditions/index.js +3 -3
- package/dist/src/alarms_and_conditions/index.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +21 -14
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +26 -21
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +6 -7
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +30 -28
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +9 -11
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +10 -10
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +3 -1
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +6 -5
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +16 -42
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +100 -82
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +12 -7
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +9 -8
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +18 -18
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +16 -18
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +4 -4
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +2 -2
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +10 -9
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +20 -19
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +2 -4
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +12 -38
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +50 -65
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +15 -17
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +15 -11
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +22 -15
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +35 -24
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +15 -16
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +19 -14
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +4 -4
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +1 -1
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/src/apply_condition_refresh.d.ts +4 -4
- package/dist/src/apply_condition_refresh.js +1 -1
- package/dist/src/apply_condition_refresh.js.map +1 -1
- package/dist/src/base_node_impl.d.ts +4 -6
- package/dist/src/base_node_impl.js +3 -3
- package/dist/src/base_node_impl.js.map +1 -1
- package/dist/src/base_node_private.js +1 -2
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/check_value_rank_compatibility.js +10 -6
- package/dist/src/check_value_rank_compatibility.js.map +1 -1
- package/dist/src/data_access/add_dataItem_stuff.d.ts +1 -1
- package/dist/src/data_access/add_dataItem_stuff.js +2 -22
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/src/data_access/adjust_datavalue_status_code.d.ts +6 -3
- package/dist/src/data_access/adjust_datavalue_status_code.js +3 -3
- package/dist/src/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +13 -11
- package/dist/src/data_access/ua_multistate_discrete_impl.js +28 -23
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_multistate_value_discrete_impl.d.ts +19 -23
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js +31 -31
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +10 -16
- package/dist/src/data_access/ua_two_state_discrete_impl.js +18 -14
- package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/src/event_data.js.map +1 -1
- package/dist/src/extension_object_array_node.d.ts +5 -2
- package/dist/src/extension_object_array_node.js +21 -24
- package/dist/src/extension_object_array_node.js.map +1 -1
- package/dist/src/get_basic_datatype.d.ts +2 -2
- package/dist/src/get_basic_datatype.js.map +1 -1
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +3 -3
- package/dist/src/historical_access/address_space_historical_data_node.js +24 -17
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/src/idx_iterator.js +1 -1
- package/dist/src/idx_iterator.js.map +1 -1
- package/dist/src/index_current.d.ts +31 -31
- package/dist/src/index_current.js +45 -45
- package/dist/src/index_current.js.map +1 -1
- package/dist/src/namespace_impl.d.ts +4 -3
- package/dist/src/namespace_impl.js +17 -14
- package/dist/src/namespace_impl.js.map +1 -1
- package/dist/src/namespace_private.js.map +1 -1
- package/dist/src/nodeid_manager.d.ts +3 -3
- package/dist/src/nodeid_manager.js +19 -16
- package/dist/src/nodeid_manager.js.map +1 -1
- package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +1 -1
- package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +2 -2
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +22 -9
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.d.ts +1 -1
- package/dist/src/nodeset_tools/dump_to_bsd.js +15 -11
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +5 -3
- package/dist/src/nodeset_tools/nodeset_to_xml.js +69 -72
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/src/private_namespace.d.ts +2 -2
- package/dist/src/private_namespace.js.map +1 -1
- package/dist/src/reference_impl.d.ts +2 -2
- package/dist/src/reference_impl.js +9 -11
- package/dist/src/reference_impl.js.map +1 -1
- package/dist/src/role_permissions.d.ts +1 -1
- package/dist/src/role_permissions.js.map +1 -1
- package/dist/src/state_machine/finite_state_machine.d.ts +11 -14
- package/dist/src/state_machine/finite_state_machine.js +36 -30
- package/dist/src/state_machine/finite_state_machine.js.map +1 -1
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +8 -6
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +16 -18
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/src/state_machine/ua_two_state_variable.d.ts +12 -11
- package/dist/src/state_machine/ua_two_state_variable.js +24 -29
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/src/tool_isSubtypeOf.d.ts +5 -5
- package/dist/src/tool_isSubtypeOf.js +21 -18
- package/dist/src/tool_isSubtypeOf.js.map +1 -1
- package/dist/src/ua_condition_type.d.ts +1 -1
- package/dist/src/ua_data_type_impl.js.map +1 -1
- package/dist/src/ua_method_impl.d.ts +9 -5
- package/dist/src/ua_method_impl.js +1 -1
- package/dist/src/ua_method_impl.js.map +1 -1
- package/dist/src/ua_object_impl.d.ts +7 -5
- package/dist/src/ua_object_impl.js +13 -11
- package/dist/src/ua_object_impl.js.map +1 -1
- package/dist/src/ua_object_type_impl.d.ts +7 -5
- package/dist/src/ua_object_type_impl.js +4 -5
- package/dist/src/ua_object_type_impl.js.map +1 -1
- package/dist/src/ua_reference_type_impl.d.ts +6 -8
- package/dist/src/ua_reference_type_impl.js +16 -14
- package/dist/src/ua_reference_type_impl.js.map +1 -1
- package/dist/src/ua_variable_impl.d.ts +43 -45
- package/dist/src/ua_variable_impl.js +99 -83
- package/dist/src/ua_variable_impl.js.map +1 -1
- package/dist/src/ua_variable_impl_ext_obj.d.ts +3 -3
- package/dist/src/ua_variable_impl_ext_obj.js +37 -29
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/src/ua_variable_type_impl.d.ts +11 -11
- package/dist/src/ua_variable_type_impl.js +13 -21
- package/dist/src/ua_variable_type_impl.js.map +1 -1
- package/dist/src/ua_view_impl.d.ts +3 -4
- package/dist/src/ua_view_impl.js +5 -6
- package/dist/src/ua_view_impl.js.map +1 -1
- package/dist/src/validate_data_type_correctness.d.ts +2 -2
- package/dist/src/validate_data_type_correctness.js +12 -3
- package/dist/src/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/distHelpers/add_event_generator_object.d.ts +5 -2
- package/distHelpers/add_event_generator_object.js +2 -2
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.d.ts +1 -1
- package/distHelpers/alarms_and_conditions_demo.js +4 -6
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -1
- package/distHelpers/assertHasMatchingReference.js +2 -2
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +6 -3
- package/distHelpers/boiler_system.js +44 -42
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.js +25 -27
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/get_address_space_fixture.js +1 -1
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/mock_session.d.ts +7 -7
- package/distHelpers/mock_session.js +4 -4
- package/distHelpers/mock_session.js.map +1 -1
- package/distNodeJS/generate_address_space.d.ts +2 -2
- package/distNodeJS/generate_address_space.js +2 -2
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/package.json +36 -36
- package/source/address_space_ts.ts +29 -30
- package/source/continuation_points/continuation_point_manager.ts +8 -7
- package/source/helpers/adjust_browse_direction.ts +1 -1
- package/source/helpers/argument_list.ts +37 -25
- package/source/helpers/call_helpers.ts +10 -15
- package/source/helpers/coerce_enum_value.ts +4 -4
- package/source/helpers/dump_tools.ts +6 -11
- package/source/helpers/ensure_secure_access.ts +2 -2
- package/source/helpers/make_optionals_map.ts +3 -10
- package/source/helpers/multiform_func.ts +1 -1
- package/source/helpers/resolve_opaque_on_address_space.ts +2 -2
- package/source/index.ts +44 -54
- package/source/interfaces/alarms_and_conditions/condition_info_i.ts +3 -4
- package/source/interfaces/alarms_and_conditions/condition_snapshot.ts +13 -13
- package/source/interfaces/alarms_and_conditions/deviation_stuff.ts +8 -10
- package/source/interfaces/alarms_and_conditions/install_setpoint_options.ts +4 -5
- package/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.ts +4 -6
- package/source/interfaces/alarms_and_conditions/instantiate_condition_options.ts +3 -3
- package/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.ts +6 -3
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.ts +2 -2
- package/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.ts +11 -11
- package/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.ts +11 -25
- package/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.ts +16 -13
- package/source/interfaces/alarms_and_conditions/ua_base_event_ex.ts +12 -0
- package/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.ts +5 -5
- package/source/interfaces/alarms_and_conditions/ua_condition_ex.ts +30 -54
- package/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.ts +3 -34
- package/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.ts +18 -22
- package/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.ts +8 -15
- package/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.ts +4 -7
- package/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.ts +5 -6
- package/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.ts +3 -3
- package/source/interfaces/data_access/ua_multistate_discrete_ex.ts +9 -16
- package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +5 -8
- package/source/interfaces/data_access/ua_two_state_discrete_ex.ts +5 -5
- package/source/interfaces/data_access/ua_y_array_item_ex.ts +3 -3
- package/source/interfaces/extension_object_constructor.ts +3 -4
- package/source/interfaces/i_condition_variable_type_setter_options.ts +1 -3
- package/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.ts +3 -3
- package/source/interfaces/state_machine/ua_finite_state_machine_type.ts +2 -2
- package/source/interfaces/state_machine/ua_program_state_machine_type.ts +3 -3
- package/source/interfaces/state_machine/ua_shelved_state_machine_ex.ts +10 -7
- package/source/interfaces/state_machine/ua_state_machine_type.ts +11 -8
- package/source/interfaces/state_machine/ua_transition_ex.ts +2 -2
- package/source/interfaces/ua_subscription_diagnostics_variable_ex.ts +3 -2
- package/source/loader/decode_xml_extension_object.ts +7 -7
- package/source/loader/ensure_datatype_extracted.ts +14 -19
- package/source/loader/generateAddressSpaceRaw.ts +12 -13
- package/source/loader/load_nodeset2.ts +3 -3
- package/source/loader/make_xml_extension_object_parser.ts +55 -39
- package/source/loader/namespace_post_step.ts +3 -4
- package/source/loader/parsers/extension_object_parser.ts +63 -62
- package/source/loader/parsers/localized_text_parser.ts +3 -3
- package/source/loader/parsers/nodeid_parser.ts +2 -3
- package/source/loader/parsers/qualified_name_parser.ts +6 -7
- package/source/loader/parsers/variant_parser.ts +48 -55
- package/source/loader/register_node_promoter.ts +2 -2
- package/source/namespace.ts +4 -4
- package/source/namespace_alarm_and_condition.ts +22 -22
- package/source/namespace_data_access.ts +12 -13
- package/source/namespace_machine_state.ts +10 -5
- package/source/pseudo_session.ts +53 -50
- package/source/session_context.ts +1 -1
- package/source/set_namespace_meta_data.ts +3 -3
- package/source/ua_addin.ts +10 -11
- package/source/ua_interface.ts +10 -7
- package/source/ua_root_folder.ts +1 -1
- package/source/ua_two_state_variable_ex.ts +5 -5
- package/source_nodejs/generate_address_space.ts +5 -9
- package/src/_instantiate_helpers.ts +26 -16
- package/src/_mandatory_child_or_requested_optional_filter.ts +16 -15
- package/src/address_space.ts +24 -33
- package/src/address_space_change_event_tools.ts +25 -30
- package/src/address_space_private.ts +20 -21
- package/src/alarms_and_conditions/condition.ts +0 -2
- package/src/alarms_and_conditions/condition_info_impl.ts +11 -19
- package/src/alarms_and_conditions/condition_snapshot_impl.ts +106 -82
- package/src/alarms_and_conditions/deviation_alarm_helper.ts +20 -15
- package/src/alarms_and_conditions/index.ts +3 -3
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +44 -32
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +35 -34
- package/src/alarms_and_conditions/ua_base_event_impl.ts +15 -19
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +6 -2
- package/src/alarms_and_conditions/ua_condition_impl.ts +140 -130
- package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +20 -12
- package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +40 -43
- package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +7 -7
- package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +28 -30
- package/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.ts +3 -6
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +59 -90
- package/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +31 -27
- package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +57 -36
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +31 -27
- package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +6 -6
- package/src/apply_condition_refresh.ts +7 -8
- package/src/base_node_impl.ts +63 -44
- package/src/base_node_private.ts +12 -4
- package/src/check_value_rank_compatibility.ts +18 -14
- package/src/data_access/add_dataItem_stuff.ts +3 -4
- package/src/data_access/adjust_datavalue_status_code.ts +7 -7
- package/src/data_access/ua_multistate_discrete_impl.ts +44 -28
- package/src/data_access/ua_multistate_value_discrete_impl.ts +77 -66
- package/src/data_access/ua_two_state_discrete_impl.ts +29 -36
- package/src/event_data.ts +53 -53
- package/src/extension_object_array_node.ts +27 -28
- package/src/get_basic_datatype.ts +4 -5
- package/src/historical_access/address_space_historical_data_node.ts +65 -50
- package/src/idx_iterator.ts +4 -12
- package/src/index_current.ts +33 -45
- package/src/namespace_impl.ts +75 -62
- package/src/namespace_private.ts +2 -8
- package/src/nodeid_manager.ts +30 -27
- package/src/nodeset_tools/adjust_namespace_array.ts +1 -1
- package/src/nodeset_tools/construct_namespace_dependency.ts +30 -18
- package/src/nodeset_tools/dump_to_bsd.ts +27 -22
- package/src/nodeset_tools/nodeset_to_xml.ts +100 -119
- package/src/private_namespace.ts +3 -6
- package/src/reference_impl.ts +11 -14
- package/src/role_permissions.ts +1 -1
- package/src/state_machine/finite_state_machine.ts +60 -61
- package/src/state_machine/ua_shelving_state_machine_ex.ts +23 -23
- package/src/state_machine/ua_two_state_variable.ts +34 -31
- package/src/tool_isSubtypeOf.ts +48 -33
- package/src/ua_condition_type.ts +1 -1
- package/src/ua_data_type_impl.ts +12 -13
- package/src/ua_method_impl.ts +17 -12
- package/src/ua_object_impl.ts +38 -33
- package/src/ua_object_type_impl.ts +22 -22
- package/src/ua_reference_type_impl.ts +19 -19
- package/src/ua_variable_impl.ts +240 -220
- package/src/ua_variable_impl_ext_obj.ts +63 -50
- package/src/ua_variable_type_impl.ts +43 -49
- package/src/ua_view_impl.ts +5 -5
- package/src/validate_data_type_correctness.ts +17 -8
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
3
|
*/
|
|
4
|
+
|
|
5
|
+
import type { INamespace, UAEventType } from "node-opcua-address-space-base";
|
|
4
6
|
import { assert } from "node-opcua-assert";
|
|
5
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
6
|
-
import { UADiscreteAlarm
|
|
7
|
-
import { VariantOptions } from "node-opcua-variant";
|
|
8
|
-
import {
|
|
9
|
-
import { UADiscreteAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex";
|
|
10
|
-
import {
|
|
11
|
-
import { UAAlarmConditionImpl } from "./ua_alarm_condition_impl";
|
|
7
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
8
|
+
import type { UADiscreteAlarm } from "node-opcua-nodeset-ua";
|
|
9
|
+
import type { VariantOptions } from "node-opcua-variant";
|
|
10
|
+
import type { InstantiateAlarmConditionOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js";
|
|
11
|
+
import type { UADiscreteAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js";
|
|
12
|
+
import { UAAlarmConditionImplBase } from "./ua_alarm_condition_impl.js";
|
|
12
13
|
/**
|
|
13
14
|
* The DiscreteAlarmType is used to classify Types into Alarm Conditions where the input for the
|
|
14
15
|
* Alarm may take on only a certain number of possible values (e.g. true/false,
|
|
15
16
|
* running/stopped/terminating).
|
|
16
17
|
*/
|
|
17
|
-
export class
|
|
18
|
+
export class UADiscreteAlarmImplBase extends UAAlarmConditionImplBase {
|
|
18
19
|
public static instantiate(
|
|
19
20
|
namespace: INamespace,
|
|
20
21
|
discreteAlarmTypeId: UAEventType | NodeId | string,
|
|
@@ -26,7 +27,7 @@ export class UADiscreteAlarmImpl extends UAAlarmConditionImpl implements UADiscr
|
|
|
26
27
|
const discreteAlarmType = addressSpace.findEventType(discreteAlarmTypeId);
|
|
27
28
|
/* c8 ignore next */
|
|
28
29
|
if (!discreteAlarmType) {
|
|
29
|
-
throw new Error(
|
|
30
|
+
throw new Error(` cannot find Condition Type for ${discreteAlarmType}`);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
const discreteAlarmTypeBase = addressSpace.findObjectType("DiscreteAlarmType");
|
|
@@ -38,9 +39,16 @@ export class UADiscreteAlarmImpl extends UAAlarmConditionImpl implements UADiscr
|
|
|
38
39
|
throw new Error("UADiscreteAlarm.instantiate : event found is not subType of DiscreteAlarmType");
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
const alarmNode =
|
|
42
|
-
|
|
42
|
+
const alarmNode = UAAlarmConditionImplBase.instantiate(
|
|
43
|
+
namespace,
|
|
44
|
+
discreteAlarmType.nodeId,
|
|
45
|
+
options,
|
|
46
|
+
data
|
|
47
|
+
) as unknown as UADiscreteAlarm;
|
|
48
|
+
Object.setPrototypeOf(alarmNode, UADiscreteAlarmImplBase.prototype);
|
|
43
49
|
|
|
44
|
-
return alarmNode as UADiscreteAlarmImpl;
|
|
50
|
+
return alarmNode as unknown as UADiscreteAlarmImpl;
|
|
45
51
|
}
|
|
46
52
|
}
|
|
53
|
+
export type UADiscreteAlarmImpl = UADiscreteAlarmImplBase & UADiscreteAlarmEx;
|
|
54
|
+
export const UADiscreteAlarmImpl = UADiscreteAlarmImplBase as unknown as UADiscreteAlarmImpl;
|
|
@@ -1,42 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
3
|
*/
|
|
4
|
+
|
|
5
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
4
6
|
import { assert } from "node-opcua-assert";
|
|
5
|
-
import { DataValue } from "node-opcua-data-value";
|
|
6
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
7
|
-
import { DataType, VariantOptions } from "node-opcua-variant";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
7
|
+
import type { DataValue } from "node-opcua-data-value";
|
|
8
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
9
|
+
import type { DataType, VariantOptions } from "node-opcua-variant";
|
|
10
|
+
import type { DeviationStuff } from "../../source/interfaces/alarms_and_conditions/deviation_stuff";
|
|
11
|
+
import type {
|
|
12
|
+
InstallSetPointOptions,
|
|
13
|
+
SetPointSupport
|
|
14
|
+
} from "../../source/interfaces/alarms_and_conditions/install_setpoint_options";
|
|
15
|
+
import type { InstantiateExclusiveLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options";
|
|
16
|
+
import type { UAExclusiveDeviationAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex";
|
|
17
|
+
|
|
18
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
14
19
|
import {
|
|
15
20
|
DeviationAlarmHelper_getSetpointNodeNode,
|
|
16
21
|
DeviationAlarmHelper_getSetpointValue,
|
|
17
22
|
DeviationAlarmHelper_install_setpoint,
|
|
18
|
-
DeviationAlarmHelper_onSetpointDataValueChange
|
|
23
|
+
DeviationAlarmHelper_onSetpointDataValueChange
|
|
19
24
|
} from "./deviation_alarm_helper";
|
|
20
25
|
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare interface UAExclusiveDeviationAlarmImpl extends UAExclusiveDeviationAlarmEx, UAExclusiveLimitAlarmImpl {
|
|
27
|
-
on(eventName: string, eventHandler: any): this;
|
|
28
|
-
once(eventName: string, eventHandler: any): this;
|
|
29
|
-
|
|
30
|
-
get addressSpace(): AddressSpace;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class UAExclusiveDeviationAlarmImpl extends UAExclusiveLimitAlarmImpl implements UAExclusiveDeviationAlarmEx {
|
|
34
|
-
|
|
26
|
+
import { UAExclusiveLimitAlarmImpl, UAExclusiveLimitAlarmImplBase } from "./ua_exclusive_limit_alarm_impl";
|
|
27
|
+
import { UALimitAlarmImpl } from "./ua_limit_alarm_impl";
|
|
35
28
|
|
|
29
|
+
export class UAExclusiveDeviationAlarmImplBase extends UAExclusiveLimitAlarmImplBase {
|
|
36
30
|
public static instantiate(
|
|
37
31
|
namespace: NamespacePrivate,
|
|
38
32
|
type: string | NodeId,
|
|
39
|
-
options: InstantiateExclusiveLimitAlarmOptions,
|
|
33
|
+
options: InstantiateExclusiveLimitAlarmOptions & InstallSetPointOptions,
|
|
40
34
|
data?: Record<string, VariantOptions>
|
|
41
35
|
): UAExclusiveDeviationAlarmImpl {
|
|
42
36
|
const addressSpace = namespace.addressSpace;
|
|
@@ -49,7 +43,12 @@ export class UAExclusiveDeviationAlarmImpl extends UAExclusiveLimitAlarmImpl imp
|
|
|
49
43
|
|
|
50
44
|
assert(type === exclusiveDeviationAlarmType.browseName.toString());
|
|
51
45
|
|
|
52
|
-
const alarm =
|
|
46
|
+
const alarm = UAExclusiveLimitAlarmImplBase.instantiate(
|
|
47
|
+
namespace,
|
|
48
|
+
type,
|
|
49
|
+
options,
|
|
50
|
+
data
|
|
51
|
+
) as unknown as UAExclusiveDeviationAlarmImplBase;
|
|
53
52
|
Object.setPrototypeOf(alarm, UAExclusiveDeviationAlarmImpl.prototype);
|
|
54
53
|
assert(alarm instanceof UAExclusiveDeviationAlarmImpl);
|
|
55
54
|
assert(alarm instanceof UAExclusiveLimitAlarmImpl);
|
|
@@ -57,23 +56,26 @@ export class UAExclusiveDeviationAlarmImpl extends UAExclusiveLimitAlarmImpl imp
|
|
|
57
56
|
|
|
58
57
|
alarm._install_setpoint(options);
|
|
59
58
|
|
|
60
|
-
return alarm;
|
|
59
|
+
return alarm as UAExclusiveDeviationAlarmImpl;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
|
|
64
|
-
return
|
|
62
|
+
private get $16() {
|
|
63
|
+
return this as unknown as UAExclusiveDeviationAlarmEx & DeviationStuff;
|
|
64
|
+
}
|
|
65
|
+
public getSetpointNodeNode(): UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float> | undefined {
|
|
66
|
+
return DeviationAlarmHelper_getSetpointNodeNode.call(this.$16);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
public getSetpointValue(): number | null {
|
|
68
|
-
return DeviationAlarmHelper_getSetpointValue.call(this);
|
|
70
|
+
return DeviationAlarmHelper_getSetpointValue.call(this.$16);
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
public _onSetpointDataValueChange(dataValue: DataValue): void {
|
|
72
|
-
DeviationAlarmHelper_onSetpointDataValueChange.call(this, dataValue);
|
|
74
|
+
DeviationAlarmHelper_onSetpointDataValueChange.call(this.$16, dataValue);
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
public _install_setpoint(options: InstallSetPointOptions):
|
|
76
|
-
|
|
77
|
+
public _install_setpoint(options: InstallSetPointOptions): void {
|
|
78
|
+
DeviationAlarmHelper_install_setpoint.call(this.$16, options);
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
public _setStateBasedOnInputValue(value: number): void {
|
|
@@ -81,17 +83,12 @@ export class UAExclusiveDeviationAlarmImpl extends UAExclusiveLimitAlarmImpl imp
|
|
|
81
83
|
if (setpointValue === null) {
|
|
82
84
|
return;
|
|
83
85
|
}
|
|
84
|
-
assert(isFinite(setpointValue));
|
|
86
|
+
assert(Number.isFinite(setpointValue));
|
|
85
87
|
// call base class implementation
|
|
86
88
|
UAExclusiveLimitAlarmImpl.prototype._setStateBasedOnInputValue.call(this, value - setpointValue);
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
UAExclusiveDeviationAlarm.prototype.getSetpointNodeNode = DeviationAlarmHelper.getSetpointNodeNode;
|
|
94
|
-
UAExclusiveDeviationAlarm.prototype.getSetpointValue = DeviationAlarmHelper.getSetpointValue;
|
|
95
|
-
UAExclusiveDeviationAlarm.prototype._onSetpointDataValueChange = DeviationAlarmHelper._onSetpointDataValueChange;
|
|
96
|
-
UAExclusiveDeviationAlarm.prototype._install_setpoint = DeviationAlarmHelper._install_setpoint;
|
|
97
|
-
*/
|
|
91
|
+
export type UAExclusiveDeviationAlarmImpl = UAExclusiveDeviationAlarmImplBase & UAExclusiveDeviationAlarmEx;
|
|
92
|
+
export const UAExclusiveDeviationAlarmImpl =
|
|
93
|
+
UAExclusiveDeviationAlarmImplBase as unknown as new () => UAExclusiveDeviationAlarmImpl;
|
|
94
|
+
export interface UAExclusiveDeviationAlarmHelper extends SetPointSupport {}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
3
|
*/
|
|
4
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
5
|
-
import { VariantOptions } from "node-opcua-variant";
|
|
6
|
-
import { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
7
|
-
import { NamespacePrivate } from "../namespace_private";
|
|
8
|
-
import { UAExclusiveLimitAlarmImpl } from "./ua_exclusive_limit_alarm_impl";
|
|
4
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
5
|
+
import type { VariantOptions } from "node-opcua-variant";
|
|
6
|
+
import type { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
7
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
8
|
+
import { UAExclusiveLimitAlarmImpl, UAExclusiveLimitAlarmImplBase } from "./ua_exclusive_limit_alarm_impl";
|
|
9
9
|
|
|
10
10
|
export class UAExclusiveLevelAlarmImpl extends UAExclusiveLimitAlarmImpl {
|
|
11
11
|
public static instantiate(
|
|
@@ -14,7 +14,7 @@ export class UAExclusiveLevelAlarmImpl extends UAExclusiveLimitAlarmImpl {
|
|
|
14
14
|
options: InstantiateLimitAlarmOptions,
|
|
15
15
|
data?: Record<string, VariantOptions>
|
|
16
16
|
): UAExclusiveLevelAlarmImpl {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
17
|
+
const _addressSpace = namespace.addressSpace;
|
|
18
|
+
return UAExclusiveLimitAlarmImplBase.instantiate(namespace, type, options, data) as UAExclusiveLevelAlarmImpl;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
|
-
*/
|
|
1
|
+
import type { UAEventType, UAObject } from "node-opcua-address-space-base";
|
|
4
2
|
import { assert } from "node-opcua-assert";
|
|
5
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { NamespacePrivate } from "../namespace_private";
|
|
3
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
4
|
+
import type { VariantOptions } from "node-opcua-variant";
|
|
5
|
+
import type { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
6
|
+
import type { UAExclusiveLimitAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex";
|
|
7
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
10
8
|
import { promoteToStateMachine } from "../state_machine/finite_state_machine";
|
|
11
|
-
import {
|
|
12
|
-
import { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
13
|
-
import { UALimitAlarmImpl } from "./ua_limit_alarm_impl";
|
|
9
|
+
import { UALimitAlarmImpl, UALimitAlarmImplBase } from "./ua_limit_alarm_impl";
|
|
14
10
|
|
|
15
11
|
const validState = ["HighHigh", "High", "Low", "LowLow", null];
|
|
16
12
|
|
|
17
|
-
export
|
|
18
|
-
/** empty interface */
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class UAExclusiveLimitAlarmImpl extends UALimitAlarmImpl implements UAExclusiveLimitAlarmEx {
|
|
13
|
+
export class UAExclusiveLimitAlarmImplBase extends UALimitAlarmImpl {
|
|
22
14
|
/***
|
|
23
15
|
*
|
|
24
16
|
* @param namespace {INamespace}
|
|
@@ -39,7 +31,7 @@ export class UAExclusiveLimitAlarmImpl extends UALimitAlarmImpl implements UAExc
|
|
|
39
31
|
|
|
40
32
|
/* c8 ignore next */
|
|
41
33
|
if (!exclusiveAlarmType) {
|
|
42
|
-
throw new Error(
|
|
34
|
+
throw new Error(` cannot find Alarm Condition Type for ${type}`);
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
const exclusiveLimitAlarmType = addressSpace.findEventType("ExclusiveLimitAlarmType");
|
|
@@ -48,47 +40,50 @@ export class UAExclusiveLimitAlarmImpl extends UALimitAlarmImpl implements UAExc
|
|
|
48
40
|
throw new Error("cannot find ExclusiveLimitAlarmType");
|
|
49
41
|
}
|
|
50
42
|
|
|
51
|
-
const node =
|
|
52
|
-
Object.setPrototypeOf(node,
|
|
53
|
-
const alarm = node as
|
|
43
|
+
const node = UALimitAlarmImplBase.instantiate(namespace, type, options, data);
|
|
44
|
+
Object.setPrototypeOf(node, UAExclusiveLimitAlarmImplBase.prototype);
|
|
45
|
+
const alarm = node as unknown as UAExclusiveLimitAlarmImplBase;
|
|
54
46
|
assert(alarm instanceof UAExclusiveLimitAlarmImpl);
|
|
55
47
|
assert(alarm instanceof UALimitAlarmImpl);
|
|
56
48
|
|
|
57
49
|
// ---------------- install LimitState StateMachine
|
|
58
|
-
assert(alarm.limitState, "limitState is mandatory");
|
|
59
|
-
promoteToStateMachine(alarm.limitState as unknown as UAObject);
|
|
50
|
+
assert(alarm.$10.limitState, "limitState is mandatory");
|
|
51
|
+
promoteToStateMachine(alarm.$10.limitState as unknown as UAObject);
|
|
60
52
|
|
|
61
53
|
// start with a inactive state
|
|
62
54
|
alarm.activeState.setValue(false);
|
|
63
55
|
|
|
64
56
|
alarm.updateState();
|
|
65
57
|
|
|
66
|
-
return alarm;
|
|
58
|
+
return alarm as UAExclusiveLimitAlarmImpl;
|
|
67
59
|
}
|
|
68
60
|
|
|
61
|
+
private get $10() {
|
|
62
|
+
return this as unknown as UAExclusiveLimitAlarmEx;
|
|
63
|
+
}
|
|
69
64
|
public _signalNewCondition(stateName: string | null, isActive: boolean, value: string): void {
|
|
70
65
|
assert(stateName === null || typeof isActive === "boolean");
|
|
71
|
-
assert(validState.indexOf(stateName) >= 0,
|
|
66
|
+
assert(validState.indexOf(stateName) >= 0, `must have a valid state : ${stateName}`);
|
|
72
67
|
|
|
73
|
-
const
|
|
74
|
-
const
|
|
68
|
+
const _oldState = this.$10.limitState.getCurrentState();
|
|
69
|
+
const _oldActive = this.activeState.getValue();
|
|
75
70
|
|
|
76
71
|
if (stateName) {
|
|
77
|
-
this.limitState.setState(stateName);
|
|
72
|
+
this.$10.limitState.setState(stateName);
|
|
78
73
|
} else {
|
|
79
74
|
assert(stateName === null);
|
|
80
|
-
this.limitState.setState(stateName);
|
|
75
|
+
this.$10.limitState.setState(stateName);
|
|
81
76
|
}
|
|
82
77
|
super._signalNewCondition(stateName, isActive, value);
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
public _setStateBasedOnInputValue(value: number): void {
|
|
86
|
-
assert(isFinite(value));
|
|
81
|
+
assert(Number.isFinite(value));
|
|
87
82
|
let isActive = false;
|
|
88
83
|
|
|
89
84
|
let state = null;
|
|
90
85
|
|
|
91
|
-
const oldState = this.limitState.getCurrentState();
|
|
86
|
+
const oldState = this.$10.limitState.getCurrentState();
|
|
92
87
|
|
|
93
88
|
if (this.highHighLimit && this.getHighHighLimit() < value) {
|
|
94
89
|
state = "HighHigh";
|
|
@@ -109,3 +104,6 @@ export class UAExclusiveLimitAlarmImpl extends UALimitAlarmImpl implements UAExc
|
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
}
|
|
107
|
+
|
|
108
|
+
export type UAExclusiveLimitAlarmImpl = UAExclusiveLimitAlarmImplBase & UAExclusiveLimitAlarmEx;
|
|
109
|
+
export const UAExclusiveLimitAlarmImpl = UAExclusiveLimitAlarmImplBase as unknown as new () => UAExclusiveLimitAlarmImpl;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
3
|
*/
|
|
4
|
-
import { UAExclusiveRateOfChangeAlarm_Base } from "node-opcua-nodeset-ua";
|
|
5
|
-
import { UAExclusiveLimitAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex";
|
|
4
|
+
import type { UAExclusiveRateOfChangeAlarm_Base } from "node-opcua-nodeset-ua";
|
|
5
|
+
import type { UAExclusiveLimitAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex";
|
|
6
6
|
import { UAExclusiveLimitAlarmImpl } from "./ua_exclusive_limit_alarm_impl";
|
|
7
7
|
|
|
8
8
|
export interface UAExclusiveRateOfChangeAlarmEx
|
|
@@ -19,10 +19,7 @@ export interface UAExclusiveRateOfChangeAlarmEx
|
|
|
19
19
|
| "silenceState"
|
|
20
20
|
| "suppressedState"
|
|
21
21
|
>,
|
|
22
|
-
UAExclusiveLimitAlarmEx {
|
|
23
|
-
on(eventName: string, eventHandler: any): this;
|
|
24
|
-
once(eventName: string, eventHandler: any): this;
|
|
25
|
-
}
|
|
22
|
+
UAExclusiveLimitAlarmEx {}
|
|
26
23
|
export class UAExclusiveRateOfChangeAlarmImpl extends UAExclusiveLimitAlarmImpl implements UAExclusiveRateOfChangeAlarmEx {
|
|
27
24
|
/** empty interface */
|
|
28
25
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @module node-opcua-address-space.AlarmsAndConditions
|
|
4
|
-
*/
|
|
5
|
-
import { UAEventType, UAVariable } from "node-opcua-address-space-base";
|
|
1
|
+
import type { UAEventType, UAVariable } from "node-opcua-address-space-base";
|
|
6
2
|
import { assert } from "node-opcua-assert";
|
|
7
3
|
import { NodeClass } from "node-opcua-data-model";
|
|
8
4
|
import { DataValue } from "node-opcua-data-value";
|
|
9
5
|
import { make_warningLog } from "node-opcua-debug";
|
|
10
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
11
|
-
import {
|
|
12
|
-
import { DataType, VariantOptions } from "node-opcua-variant";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { UAAlarmConditionImpl } from "./ua_alarm_condition_impl";
|
|
6
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
7
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
8
|
+
import { DataType, type VariantOptions } from "node-opcua-variant";
|
|
9
|
+
import type { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
10
|
+
import type { UALimitAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_limit_alarm_ex";
|
|
11
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
12
|
+
import { UAAlarmConditionImplBase } from "./ua_alarm_condition_impl";
|
|
18
13
|
|
|
19
14
|
const warningLog = make_warningLog("AlarmsAndConditions");
|
|
20
15
|
|
|
21
|
-
export declare interface UALimitAlarmImpl extends UALimitAlarmEx, UAAlarmConditionImpl {
|
|
22
|
-
on(eventName: string, eventHandler: any): this;
|
|
23
|
-
once(eventName: string, eventHandler: any): this;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
16
|
const uaLimitAlarmInputSupportedDataType: DataType[] = [
|
|
27
17
|
DataType.Double,
|
|
28
18
|
DataType.Float,
|
|
@@ -34,12 +24,7 @@ const uaLimitAlarmInputSupportedDataType: DataType[] = [
|
|
|
34
24
|
DataType.UInt32
|
|
35
25
|
];
|
|
36
26
|
|
|
37
|
-
export
|
|
38
|
-
shelvingState?: UAShelvedStateMachineEx;
|
|
39
|
-
}
|
|
40
|
-
export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAlarmEx {
|
|
41
|
-
/**
|
|
42
|
-
*/
|
|
27
|
+
export class UALimitAlarmImplBase extends UAAlarmConditionImplBase {
|
|
43
28
|
public static instantiate(
|
|
44
29
|
namespace: NamespacePrivate,
|
|
45
30
|
limitAlarmTypeId: UAEventType | NodeId | string,
|
|
@@ -50,36 +35,33 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
50
35
|
|
|
51
36
|
// must provide a inputNode
|
|
52
37
|
// xx assert(Object.prototype.hasOwnProperty.call(options,"conditionOf")); // must provide a conditionOf
|
|
53
|
-
assert(
|
|
54
|
-
Object.prototype.hasOwnProperty.call(options, "inputNode"),
|
|
55
|
-
"UALimitAlarm.instantiate: options must provide the inputNode"
|
|
56
|
-
);
|
|
38
|
+
assert(Object.hasOwn(options, "inputNode"), "UALimitAlarm.instantiate: options must provide the inputNode");
|
|
57
39
|
|
|
58
40
|
options.optionals = options.optionals || [];
|
|
59
41
|
let count = 0;
|
|
60
|
-
if (Object.
|
|
42
|
+
if (Object.hasOwn(options, "highHighLimit")) {
|
|
61
43
|
options.optionals.push("HighHighLimit");
|
|
62
44
|
options.optionals.push("HighHighState");
|
|
63
45
|
count++;
|
|
64
46
|
}
|
|
65
|
-
if (Object.
|
|
47
|
+
if (Object.hasOwn(options, "highLimit")) {
|
|
66
48
|
options.optionals.push("HighLimit");
|
|
67
49
|
options.optionals.push("HighState");
|
|
68
50
|
count++;
|
|
69
51
|
}
|
|
70
|
-
if (Object.
|
|
52
|
+
if (Object.hasOwn(options, "lowLimit")) {
|
|
71
53
|
options.optionals.push("LowLimit");
|
|
72
54
|
options.optionals.push("LowState");
|
|
73
55
|
count++;
|
|
74
56
|
}
|
|
75
|
-
if (Object.
|
|
57
|
+
if (Object.hasOwn(options, "lowLowLimit")) {
|
|
76
58
|
options.optionals.push("LowLowLimit");
|
|
77
59
|
options.optionals.push("LowLowState");
|
|
78
60
|
count++;
|
|
79
61
|
}
|
|
80
62
|
|
|
81
63
|
// xx assert(options.optionals,"must provide an optionals");
|
|
82
|
-
const alarmNode =
|
|
64
|
+
const alarmNode = UAAlarmConditionImplBase.instantiate(namespace, limitAlarmTypeId, options, data) as UALimitAlarmImpl;
|
|
83
65
|
Object.setPrototypeOf(alarmNode, UALimitAlarmImpl.prototype);
|
|
84
66
|
|
|
85
67
|
assert(alarmNode.conditionOfNode() !== null);
|
|
@@ -104,7 +86,7 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
104
86
|
throw new Error("at least one limit is required");
|
|
105
87
|
}
|
|
106
88
|
|
|
107
|
-
const dataType = addressSpace.findCorrespondingBasicDataType(
|
|
89
|
+
const dataType = addressSpace.findCorrespondingBasicDataType(inputNode.dataType);
|
|
108
90
|
|
|
109
91
|
if (-1 === uaLimitAlarmInputSupportedDataType.indexOf(dataType)) {
|
|
110
92
|
const message = `UALimitAlarm.instantiate: inputNode must be of type ${uaLimitAlarmInputSupportedDataType
|
|
@@ -114,16 +96,16 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
114
96
|
throw new Error(message);
|
|
115
97
|
}
|
|
116
98
|
|
|
117
|
-
if (Object.
|
|
118
|
-
alarmNode.setHighHighLimit(options.highHighLimit
|
|
99
|
+
if (Object.hasOwn(options, "highHighLimit") && options.highHighLimit !== undefined) {
|
|
100
|
+
alarmNode.setHighHighLimit(options.highHighLimit);
|
|
119
101
|
}
|
|
120
|
-
if (Object.
|
|
102
|
+
if (Object.hasOwn(options, "highLimit")) {
|
|
121
103
|
alarmNode.setHighLimit(options.highLimit);
|
|
122
104
|
}
|
|
123
|
-
if (Object.
|
|
105
|
+
if (Object.hasOwn(options, "lowLimit")) {
|
|
124
106
|
alarmNode.setLowLimit(options.lowLimit);
|
|
125
107
|
}
|
|
126
|
-
if (Object.
|
|
108
|
+
if (Object.hasOwn(options, "lowLowLimit") && options.lowLowLimit !== undefined) {
|
|
127
109
|
alarmNode.setLowLowLimit(options.lowLowLimit);
|
|
128
110
|
}
|
|
129
111
|
|
|
@@ -143,103 +125,87 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
143
125
|
return alarmNode;
|
|
144
126
|
}
|
|
145
127
|
|
|
146
|
-
|
|
147
|
-
|
|
128
|
+
private get $8() {
|
|
129
|
+
return this as unknown as UALimitAlarmEx;
|
|
130
|
+
}
|
|
131
|
+
|
|
148
132
|
public getHighHighLimit(): number {
|
|
149
|
-
if (!this.highHighLimit) {
|
|
133
|
+
if (!this.$8.highHighLimit) {
|
|
150
134
|
throw new Error("Alarm do not expose highHighLimit");
|
|
151
135
|
}
|
|
152
|
-
return this.highHighLimit.readValue().value.value;
|
|
136
|
+
return this.$8.highHighLimit.readValue().value.value;
|
|
153
137
|
}
|
|
154
138
|
|
|
155
|
-
/**
|
|
156
|
-
*/
|
|
157
139
|
public getHighLimit(): number {
|
|
158
|
-
if (!this.highLimit) {
|
|
140
|
+
if (!this.$8.highLimit) {
|
|
159
141
|
throw new Error("Alarm do not expose highLimit");
|
|
160
142
|
}
|
|
161
|
-
return this.highLimit.readValue().value.value;
|
|
143
|
+
return this.$8.highLimit.readValue().value.value;
|
|
162
144
|
}
|
|
163
145
|
|
|
164
|
-
/**
|
|
165
|
-
*/
|
|
166
146
|
public getLowLimit(): number {
|
|
167
|
-
if (!this.lowLimit) {
|
|
147
|
+
if (!this.$8.lowLimit) {
|
|
168
148
|
throw new Error("Alarm do not expose lowLimit");
|
|
169
149
|
}
|
|
170
|
-
return this.lowLimit.readValue().value.value;
|
|
150
|
+
return this.$8.lowLimit.readValue().value.value;
|
|
171
151
|
}
|
|
172
152
|
|
|
173
|
-
/**
|
|
174
|
-
*/
|
|
175
153
|
public getLowLowLimit(): number {
|
|
176
|
-
if (!this.lowLowLimit) {
|
|
154
|
+
if (!this.$8.lowLowLimit) {
|
|
177
155
|
throw new Error("Alarm do not expose lowLowLimit");
|
|
178
156
|
}
|
|
179
|
-
return this.lowLowLimit.readValue().value.value;
|
|
157
|
+
return this.$8.lowLowLimit.readValue().value.value;
|
|
180
158
|
}
|
|
181
159
|
|
|
182
|
-
/**
|
|
183
|
-
*/
|
|
184
160
|
public setHighHighLimit(value: number): void {
|
|
185
|
-
if (!this.highHighLimit) {
|
|
161
|
+
if (!this.$8.highHighLimit) {
|
|
186
162
|
throw new Error("LimitAlarm instance must expose the optional HighHighLimit property");
|
|
187
163
|
}
|
|
188
|
-
this.highHighLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
164
|
+
this.$8.highHighLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
189
165
|
}
|
|
190
166
|
|
|
191
|
-
/**
|
|
192
|
-
*/
|
|
193
167
|
public setHighLimit(value: number): void {
|
|
194
|
-
if (!this.highLimit) {
|
|
168
|
+
if (!this.$8.highLimit) {
|
|
195
169
|
throw new Error("LimitAlarm instance must expose the optional HighLimit property");
|
|
196
170
|
}
|
|
197
|
-
this.highLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
171
|
+
this.$8.highLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
198
172
|
}
|
|
199
173
|
|
|
200
|
-
/**
|
|
201
|
-
*/
|
|
202
174
|
public setLowLimit(value: number): void {
|
|
203
|
-
if (!this.lowLimit) {
|
|
175
|
+
if (!this.$8.lowLimit) {
|
|
204
176
|
throw new Error("LimitAlarm instance must expose the optional LowLimit property");
|
|
205
177
|
}
|
|
206
|
-
this.lowLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
178
|
+
this.$8.lowLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
207
179
|
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
*/
|
|
211
180
|
public setLowLowLimit(value: number): void {
|
|
212
|
-
if (!this.lowLowLimit) {
|
|
181
|
+
if (!this.$8.lowLowLimit) {
|
|
213
182
|
throw new Error("LimitAlarm instance must expose the optional LowLowLimit property");
|
|
214
183
|
}
|
|
215
|
-
this.lowLowLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
184
|
+
this.$8.lowLowLimit.setValueFromSource({ dataType: DataType.Double, value });
|
|
216
185
|
}
|
|
217
186
|
|
|
218
187
|
protected _onInputDataValueChange(dataValue: DataValue): void {
|
|
219
188
|
assert(dataValue instanceof DataValue);
|
|
220
189
|
|
|
221
|
-
if (
|
|
222
|
-
dataValue.statusCode.equals(StatusCodes.BadWaitingForInitialData) &&
|
|
223
|
-
dataValue.statusCode.equals(StatusCodes.UncertainInitialValue)
|
|
224
|
-
) {
|
|
190
|
+
if (dataValue.statusCode.equals(StatusCodes.BadWaitingForInitialData)) {
|
|
225
191
|
// we are not ready yet to use the input node value
|
|
226
192
|
return;
|
|
227
193
|
}
|
|
228
|
-
if (dataValue.statusCode.isNotGood()) {
|
|
229
|
-
//
|
|
230
|
-
this._signalNewCondition(null);
|
|
194
|
+
if (dataValue.statusCode.isNotGood() && !dataValue.statusCode.equals(StatusCodes.UncertainInitialValue)) {
|
|
195
|
+
// genuinely bad status (not the initial uncertain state) → no specific limit state, alarm inactive
|
|
196
|
+
this._signalNewCondition(null, false, "Input node value is not good");
|
|
231
197
|
return;
|
|
232
198
|
}
|
|
233
199
|
if (dataValue.value.dataType === DataType.Null) {
|
|
234
|
-
//
|
|
235
|
-
this._signalNewCondition(null);
|
|
200
|
+
// input not yet set → no specific limit state, alarm inactive
|
|
201
|
+
this._signalNewCondition(null, false, "Input node value is null");
|
|
236
202
|
return;
|
|
237
203
|
}
|
|
238
204
|
const value = dataValue.value.value;
|
|
239
205
|
this._setStateBasedOnInputValue(value);
|
|
240
206
|
}
|
|
241
207
|
|
|
242
|
-
protected _setStateBasedOnInputValue(
|
|
208
|
+
protected _setStateBasedOnInputValue(_value: number): void {
|
|
243
209
|
throw new Error("_setStateBasedOnInputValue must be overriden");
|
|
244
210
|
}
|
|
245
211
|
|
|
@@ -248,17 +214,17 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
248
214
|
/// Installing Limits monitored
|
|
249
215
|
const _updateState = () => this.updateState();
|
|
250
216
|
|
|
251
|
-
if (this.highHighLimit) {
|
|
252
|
-
this.highHighLimit.on("value_changed", _updateState);
|
|
217
|
+
if (this.$8.highHighLimit) {
|
|
218
|
+
this.$8.highHighLimit.on("value_changed", _updateState);
|
|
253
219
|
}
|
|
254
|
-
if (this.highLimit) {
|
|
255
|
-
this.highLimit.on("value_changed", _updateState);
|
|
220
|
+
if (this.$8.highLimit) {
|
|
221
|
+
this.$8.highLimit.on("value_changed", _updateState);
|
|
256
222
|
}
|
|
257
|
-
if (this.lowLimit) {
|
|
258
|
-
this.lowLimit.on("value_changed", _updateState);
|
|
223
|
+
if (this.$8.lowLimit) {
|
|
224
|
+
this.$8.lowLimit.on("value_changed", _updateState);
|
|
259
225
|
}
|
|
260
|
-
if (this.lowLowLimit) {
|
|
261
|
-
this.lowLowLimit.on("value_changed", _updateState);
|
|
226
|
+
if (this.$8.lowLowLimit) {
|
|
227
|
+
this.$8.lowLowLimit.on("value_changed", _updateState);
|
|
262
228
|
}
|
|
263
229
|
}
|
|
264
230
|
|
|
@@ -273,3 +239,6 @@ export class UALimitAlarmImpl extends UAAlarmConditionImpl implements UALimitAla
|
|
|
273
239
|
this._onInputDataValueChange(dataValue);
|
|
274
240
|
}
|
|
275
241
|
}
|
|
242
|
+
|
|
243
|
+
export const UALimitAlarmImpl = UALimitAlarmImplBase as unknown as new () => UALimitAlarmImpl;
|
|
244
|
+
export type UALimitAlarmImpl = UALimitAlarmImplBase & UALimitAlarmEx;
|