node-opcua-address-space 2.169.0 → 2.172.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.d.ts +2 -3
- package/dist/source/ua_interface.js +13 -33
- 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.d.ts +1 -1
- package/dist/src/_instantiate_helpers.js +32 -9
- 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 +9 -10
- package/dist/src/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/src/address_space.d.ts +2 -2
- package/dist/src/address_space.js +13 -15
- 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 +77 -48
- 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 +5 -7
- 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.d.ts +10 -7
- package/dist/src/base_node_private.js +73 -50
- package/dist/src/base_node_private.js.map +1 -1
- package/dist/src/check_value_rank_compatibility.js +11 -7
- 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.d.ts +8 -21
- package/dist/src/event_data.js +24 -19
- 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 +7 -7
- 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 +64 -67
- 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 +10 -7
- package/dist/src/ua_object_impl.js +43 -15
- 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 +6 -7
- 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 +44 -45
- package/dist/src/ua_variable_impl.js +177 -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 +15 -15
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/index.d.ts +2 -2
- package/distHelpers/index.js +2 -2
- package/distHelpers/index.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 +27 -38
- 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 +78 -25
- package/src/_mandatory_child_or_requested_optional_filter.ts +20 -19
- package/src/address_space.ts +36 -45
- 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 +109 -85
- 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 +64 -45
- package/src/base_node_private.ts +171 -139
- package/src/check_value_rank_compatibility.ts +19 -15
- 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 +29 -26
- 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 +15 -16
- package/src/nodeset_tools/dump_to_bsd.ts +27 -22
- package/src/nodeset_tools/nodeset_to_xml.ts +95 -114
- 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 +73 -39
- package/src/ua_object_type_impl.ts +25 -25
- package/src/ua_reference_type_impl.ts +19 -19
- package/src/ua_variable_impl.ts +316 -219
- 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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UALimitAlarmImpl = void 0;
|
|
3
|
+
exports.UALimitAlarmImpl = exports.UALimitAlarmImplBase = void 0;
|
|
4
4
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
5
5
|
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
6
6
|
const node_opcua_data_value_1 = require("node-opcua-data-value");
|
|
@@ -19,39 +19,37 @@ const uaLimitAlarmInputSupportedDataType = [
|
|
|
19
19
|
node_opcua_variant_1.DataType.UInt16,
|
|
20
20
|
node_opcua_variant_1.DataType.UInt32
|
|
21
21
|
];
|
|
22
|
-
class
|
|
23
|
-
/**
|
|
24
|
-
*/
|
|
22
|
+
class UALimitAlarmImplBase extends ua_alarm_condition_impl_1.UAAlarmConditionImplBase {
|
|
25
23
|
static instantiate(namespace, limitAlarmTypeId, options, data) {
|
|
26
24
|
const addressSpace = namespace.addressSpace;
|
|
27
25
|
// must provide a inputNode
|
|
28
26
|
// xx assert(Object.prototype.hasOwnProperty.call(options,"conditionOf")); // must provide a conditionOf
|
|
29
|
-
(0, node_opcua_assert_1.assert)(Object.
|
|
27
|
+
(0, node_opcua_assert_1.assert)(Object.hasOwn(options, "inputNode"), "UALimitAlarm.instantiate: options must provide the inputNode");
|
|
30
28
|
options.optionals = options.optionals || [];
|
|
31
29
|
let count = 0;
|
|
32
|
-
if (Object.
|
|
30
|
+
if (Object.hasOwn(options, "highHighLimit")) {
|
|
33
31
|
options.optionals.push("HighHighLimit");
|
|
34
32
|
options.optionals.push("HighHighState");
|
|
35
33
|
count++;
|
|
36
34
|
}
|
|
37
|
-
if (Object.
|
|
35
|
+
if (Object.hasOwn(options, "highLimit")) {
|
|
38
36
|
options.optionals.push("HighLimit");
|
|
39
37
|
options.optionals.push("HighState");
|
|
40
38
|
count++;
|
|
41
39
|
}
|
|
42
|
-
if (Object.
|
|
40
|
+
if (Object.hasOwn(options, "lowLimit")) {
|
|
43
41
|
options.optionals.push("LowLimit");
|
|
44
42
|
options.optionals.push("LowState");
|
|
45
43
|
count++;
|
|
46
44
|
}
|
|
47
|
-
if (Object.
|
|
45
|
+
if (Object.hasOwn(options, "lowLowLimit")) {
|
|
48
46
|
options.optionals.push("LowLowLimit");
|
|
49
47
|
options.optionals.push("LowLowState");
|
|
50
48
|
count++;
|
|
51
49
|
}
|
|
52
50
|
// xx assert(options.optionals,"must provide an optionals");
|
|
53
|
-
const alarmNode = ua_alarm_condition_impl_1.
|
|
54
|
-
Object.setPrototypeOf(alarmNode, UALimitAlarmImpl.prototype);
|
|
51
|
+
const alarmNode = ua_alarm_condition_impl_1.UAAlarmConditionImplBase.instantiate(namespace, limitAlarmTypeId, options, data);
|
|
52
|
+
Object.setPrototypeOf(alarmNode, exports.UALimitAlarmImpl.prototype);
|
|
55
53
|
(0, node_opcua_assert_1.assert)(alarmNode.conditionOfNode() !== null);
|
|
56
54
|
const inputNode = addressSpace._coerceNode(options.inputNode);
|
|
57
55
|
if (!inputNode) {
|
|
@@ -71,7 +69,7 @@ class UALimitAlarmImpl extends ua_alarm_condition_impl_1.UAAlarmConditionImpl {
|
|
|
71
69
|
if (count === 0) {
|
|
72
70
|
throw new Error("at least one limit is required");
|
|
73
71
|
}
|
|
74
|
-
const dataType = addressSpace.findCorrespondingBasicDataType(
|
|
72
|
+
const dataType = addressSpace.findCorrespondingBasicDataType(inputNode.dataType);
|
|
75
73
|
if (-1 === uaLimitAlarmInputSupportedDataType.indexOf(dataType)) {
|
|
76
74
|
const message = `UALimitAlarm.instantiate: inputNode must be of type ${uaLimitAlarmInputSupportedDataType
|
|
77
75
|
.map((a) => node_opcua_variant_1.DataType[a])
|
|
@@ -79,16 +77,16 @@ class UALimitAlarmImpl extends ua_alarm_condition_impl_1.UAAlarmConditionImpl {
|
|
|
79
77
|
warningLog(message);
|
|
80
78
|
throw new Error(message);
|
|
81
79
|
}
|
|
82
|
-
if (Object.
|
|
80
|
+
if (Object.hasOwn(options, "highHighLimit") && options.highHighLimit !== undefined) {
|
|
83
81
|
alarmNode.setHighHighLimit(options.highHighLimit);
|
|
84
82
|
}
|
|
85
|
-
if (Object.
|
|
83
|
+
if (Object.hasOwn(options, "highLimit")) {
|
|
86
84
|
alarmNode.setHighLimit(options.highLimit);
|
|
87
85
|
}
|
|
88
|
-
if (Object.
|
|
86
|
+
if (Object.hasOwn(options, "lowLimit")) {
|
|
89
87
|
alarmNode.setLowLimit(options.lowLimit);
|
|
90
88
|
}
|
|
91
|
-
if (Object.
|
|
89
|
+
if (Object.hasOwn(options, "lowLowLimit") && options.lowLowLimit !== undefined) {
|
|
92
90
|
alarmNode.setLowLowLimit(options.lowLowLimit);
|
|
93
91
|
}
|
|
94
92
|
/*
|
|
@@ -104,108 +102,94 @@ class UALimitAlarmImpl extends ua_alarm_condition_impl_1.UAAlarmConditionImpl {
|
|
|
104
102
|
alarmNode._watchLimits();
|
|
105
103
|
return alarmNode;
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
get $8() {
|
|
106
|
+
return this;
|
|
107
|
+
}
|
|
109
108
|
getHighHighLimit() {
|
|
110
|
-
if (!this.highHighLimit) {
|
|
109
|
+
if (!this.$8.highHighLimit) {
|
|
111
110
|
throw new Error("Alarm do not expose highHighLimit");
|
|
112
111
|
}
|
|
113
|
-
return this.highHighLimit.readValue().value.value;
|
|
112
|
+
return this.$8.highHighLimit.readValue().value.value;
|
|
114
113
|
}
|
|
115
|
-
/**
|
|
116
|
-
*/
|
|
117
114
|
getHighLimit() {
|
|
118
|
-
if (!this.highLimit) {
|
|
115
|
+
if (!this.$8.highLimit) {
|
|
119
116
|
throw new Error("Alarm do not expose highLimit");
|
|
120
117
|
}
|
|
121
|
-
return this.highLimit.readValue().value.value;
|
|
118
|
+
return this.$8.highLimit.readValue().value.value;
|
|
122
119
|
}
|
|
123
|
-
/**
|
|
124
|
-
*/
|
|
125
120
|
getLowLimit() {
|
|
126
|
-
if (!this.lowLimit) {
|
|
121
|
+
if (!this.$8.lowLimit) {
|
|
127
122
|
throw new Error("Alarm do not expose lowLimit");
|
|
128
123
|
}
|
|
129
|
-
return this.lowLimit.readValue().value.value;
|
|
124
|
+
return this.$8.lowLimit.readValue().value.value;
|
|
130
125
|
}
|
|
131
|
-
/**
|
|
132
|
-
*/
|
|
133
126
|
getLowLowLimit() {
|
|
134
|
-
if (!this.lowLowLimit) {
|
|
127
|
+
if (!this.$8.lowLowLimit) {
|
|
135
128
|
throw new Error("Alarm do not expose lowLowLimit");
|
|
136
129
|
}
|
|
137
|
-
return this.lowLowLimit.readValue().value.value;
|
|
130
|
+
return this.$8.lowLowLimit.readValue().value.value;
|
|
138
131
|
}
|
|
139
|
-
/**
|
|
140
|
-
*/
|
|
141
132
|
setHighHighLimit(value) {
|
|
142
|
-
if (!this.highHighLimit) {
|
|
133
|
+
if (!this.$8.highHighLimit) {
|
|
143
134
|
throw new Error("LimitAlarm instance must expose the optional HighHighLimit property");
|
|
144
135
|
}
|
|
145
|
-
this.highHighLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
136
|
+
this.$8.highHighLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
146
137
|
}
|
|
147
|
-
/**
|
|
148
|
-
*/
|
|
149
138
|
setHighLimit(value) {
|
|
150
|
-
if (!this.highLimit) {
|
|
139
|
+
if (!this.$8.highLimit) {
|
|
151
140
|
throw new Error("LimitAlarm instance must expose the optional HighLimit property");
|
|
152
141
|
}
|
|
153
|
-
this.highLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
142
|
+
this.$8.highLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
154
143
|
}
|
|
155
|
-
/**
|
|
156
|
-
*/
|
|
157
144
|
setLowLimit(value) {
|
|
158
|
-
if (!this.lowLimit) {
|
|
145
|
+
if (!this.$8.lowLimit) {
|
|
159
146
|
throw new Error("LimitAlarm instance must expose the optional LowLimit property");
|
|
160
147
|
}
|
|
161
|
-
this.lowLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
148
|
+
this.$8.lowLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
162
149
|
}
|
|
163
|
-
/**
|
|
164
|
-
*/
|
|
165
150
|
setLowLowLimit(value) {
|
|
166
|
-
if (!this.lowLowLimit) {
|
|
151
|
+
if (!this.$8.lowLowLimit) {
|
|
167
152
|
throw new Error("LimitAlarm instance must expose the optional LowLowLimit property");
|
|
168
153
|
}
|
|
169
|
-
this.lowLowLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
154
|
+
this.$8.lowLowLimit.setValueFromSource({ dataType: node_opcua_variant_1.DataType.Double, value });
|
|
170
155
|
}
|
|
171
156
|
_onInputDataValueChange(dataValue) {
|
|
172
157
|
(0, node_opcua_assert_1.assert)(dataValue instanceof node_opcua_data_value_1.DataValue);
|
|
173
|
-
if (dataValue.statusCode.equals(node_opcua_status_code_1.StatusCodes.BadWaitingForInitialData)
|
|
174
|
-
dataValue.statusCode.equals(node_opcua_status_code_1.StatusCodes.UncertainInitialValue)) {
|
|
158
|
+
if (dataValue.statusCode.equals(node_opcua_status_code_1.StatusCodes.BadWaitingForInitialData)) {
|
|
175
159
|
// we are not ready yet to use the input node value
|
|
176
160
|
return;
|
|
177
161
|
}
|
|
178
|
-
if (dataValue.statusCode.isNotGood()) {
|
|
179
|
-
//
|
|
180
|
-
this._signalNewCondition(null);
|
|
162
|
+
if (dataValue.statusCode.isNotGood() && !dataValue.statusCode.equals(node_opcua_status_code_1.StatusCodes.UncertainInitialValue)) {
|
|
163
|
+
// genuinely bad status (not the initial uncertain state) → no specific limit state, alarm inactive
|
|
164
|
+
this._signalNewCondition(null, false, "Input node value is not good");
|
|
181
165
|
return;
|
|
182
166
|
}
|
|
183
167
|
if (dataValue.value.dataType === node_opcua_variant_1.DataType.Null) {
|
|
184
|
-
//
|
|
185
|
-
this._signalNewCondition(null);
|
|
168
|
+
// input not yet set → no specific limit state, alarm inactive
|
|
169
|
+
this._signalNewCondition(null, false, "Input node value is null");
|
|
186
170
|
return;
|
|
187
171
|
}
|
|
188
172
|
const value = dataValue.value.value;
|
|
189
173
|
this._setStateBasedOnInputValue(value);
|
|
190
174
|
}
|
|
191
|
-
_setStateBasedOnInputValue(
|
|
175
|
+
_setStateBasedOnInputValue(_value) {
|
|
192
176
|
throw new Error("_setStateBasedOnInputValue must be overriden");
|
|
193
177
|
}
|
|
194
178
|
_watchLimits() {
|
|
195
179
|
/// ----------------------------------------------------------------------
|
|
196
180
|
/// Installing Limits monitored
|
|
197
181
|
const _updateState = () => this.updateState();
|
|
198
|
-
if (this.highHighLimit) {
|
|
199
|
-
this.highHighLimit.on("value_changed", _updateState);
|
|
182
|
+
if (this.$8.highHighLimit) {
|
|
183
|
+
this.$8.highHighLimit.on("value_changed", _updateState);
|
|
200
184
|
}
|
|
201
|
-
if (this.highLimit) {
|
|
202
|
-
this.highLimit.on("value_changed", _updateState);
|
|
185
|
+
if (this.$8.highLimit) {
|
|
186
|
+
this.$8.highLimit.on("value_changed", _updateState);
|
|
203
187
|
}
|
|
204
|
-
if (this.lowLimit) {
|
|
205
|
-
this.lowLimit.on("value_changed", _updateState);
|
|
188
|
+
if (this.$8.lowLimit) {
|
|
189
|
+
this.$8.lowLimit.on("value_changed", _updateState);
|
|
206
190
|
}
|
|
207
|
-
if (this.lowLowLimit) {
|
|
208
|
-
this.lowLowLimit.on("value_changed", _updateState);
|
|
191
|
+
if (this.$8.lowLowLimit) {
|
|
192
|
+
this.$8.lowLowLimit.on("value_changed", _updateState);
|
|
209
193
|
}
|
|
210
194
|
}
|
|
211
195
|
evaluateConditionsAfterEnabled() {
|
|
@@ -219,5 +203,6 @@ class UALimitAlarmImpl extends ua_alarm_condition_impl_1.UAAlarmConditionImpl {
|
|
|
219
203
|
this._onInputDataValueChange(dataValue);
|
|
220
204
|
}
|
|
221
205
|
}
|
|
222
|
-
exports.
|
|
206
|
+
exports.UALimitAlarmImplBase = UALimitAlarmImplBase;
|
|
207
|
+
exports.UALimitAlarmImpl = UALimitAlarmImplBase;
|
|
223
208
|
//# sourceMappingURL=ua_limit_alarm_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_limit_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_limit_alarm_impl.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ua_limit_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_limit_alarm_impl.ts"],"names":[],"mappings":";;;AACA,yDAA2C;AAC3C,iEAAkD;AAClD,iEAAkD;AAClD,uDAAmD;AAEnD,mEAAqD;AACrD,2DAAmE;AAInE,uEAAqE;AAErE,MAAM,UAAU,GAAG,IAAA,kCAAe,EAAC,q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E,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QACvD,CAAC;QACD,IAAI,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QAC1D,CAAC;IACL,CAAC;IAES,8BAA8B;QACpC,IAAA,0BAAM,EAAC,IAAI,CAAC,eAAe,EAAE,KAAK,IAAI,CAAC,CAAC;QACxC,6BAA6B;QAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtC,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,OAAO;QACX,CAAC;QACD,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;QACpC,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;CACJ;AAtND,oDAsNC;AAEY,QAAA,gBAAgB,GAAG,oBAA6D,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
export declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get addressSpace(): AddressSpace;
|
|
17
|
-
}
|
|
18
|
-
export declare class UANonExclusiveDeviationAlarmImpl extends UANonExclusiveLimitAlarmImpl implements UANonExclusiveDeviationAlarmEx {
|
|
19
|
-
static instantiate(namespace: NamespacePrivate, type: string | NodeId, options: InstantiateLimitAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveDeviationAlarmImpl;
|
|
4
|
+
import type { UAVariableT } from "node-opcua-address-space-base";
|
|
5
|
+
import type { DataValue } from "node-opcua-data-value";
|
|
6
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
7
|
+
import type { DataType, VariantOptions } from "node-opcua-variant";
|
|
8
|
+
import type { InstallSetPointOptions } from "../../source/interfaces/alarms_and_conditions/install_setpoint_options";
|
|
9
|
+
import type { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
10
|
+
import type { UANonExclusiveDeviationAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex";
|
|
11
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
12
|
+
import { UANonExclusiveLimitAlarmImplBase } from "./ua_non_exclusive_limit_alarm_impl";
|
|
13
|
+
export declare class UANonExclusiveDeviationAlarmImplBase extends UANonExclusiveLimitAlarmImplBase {
|
|
14
|
+
static instantiate(namespace: NamespacePrivate, type: string | NodeId, options: InstantiateLimitAlarmOptions & InstallSetPointOptions, data?: Record<string, VariantOptions>): UANonExclusiveDeviationAlarmImpl;
|
|
15
|
+
private get $13();
|
|
20
16
|
_setStateBasedOnInputValue(value: number): void;
|
|
21
17
|
getSetpointNodeNode(): UAVariableT<number, DataType.Double> | UAVariableT<number, DataType.Float> | undefined;
|
|
22
18
|
getSetpointValue(): number | null;
|
|
23
19
|
_onSetpointDataValueChange(dataValue: DataValue): void;
|
|
24
|
-
_install_setpoint(options:
|
|
20
|
+
_install_setpoint(options: InstallSetPointOptions): void;
|
|
25
21
|
}
|
|
22
|
+
export type UANonExclusiveDeviationAlarmImpl = UANonExclusiveDeviationAlarmImplBase & UANonExclusiveDeviationAlarmEx;
|
|
23
|
+
export declare const UANonExclusiveDeviationAlarmImpl: new () => UANonExclusiveDeviationAlarmImpl;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UANonExclusiveDeviationAlarmImpl = void 0;
|
|
6
|
+
exports.UANonExclusiveDeviationAlarmImpl = exports.UANonExclusiveDeviationAlarmImplBase = void 0;
|
|
7
7
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
8
|
const deviation_alarm_helper_1 = require("./deviation_alarm_helper");
|
|
9
9
|
const ua_limit_alarm_impl_1 = require("./ua_limit_alarm_impl");
|
|
10
10
|
const ua_non_exclusive_limit_alarm_impl_1 = require("./ua_non_exclusive_limit_alarm_impl");
|
|
11
|
-
class
|
|
11
|
+
class UANonExclusiveDeviationAlarmImplBase extends ua_non_exclusive_limit_alarm_impl_1.UANonExclusiveLimitAlarmImplBase {
|
|
12
12
|
static instantiate(namespace, type, options, data) {
|
|
13
13
|
const addressSpace = namespace.addressSpace;
|
|
14
14
|
const nonExclusiveDeviationAlarmType = addressSpace.findEventType("NonExclusiveDeviationAlarmType");
|
|
@@ -17,35 +17,39 @@ class UANonExclusiveDeviationAlarmImpl extends ua_non_exclusive_limit_alarm_impl
|
|
|
17
17
|
throw new Error("cannot find ExclusiveDeviationAlarmType");
|
|
18
18
|
}
|
|
19
19
|
(0, node_opcua_assert_1.assert)(type === nonExclusiveDeviationAlarmType.browseName.toString());
|
|
20
|
-
const alarm = ua_non_exclusive_limit_alarm_impl_1.
|
|
21
|
-
Object.setPrototypeOf(alarm, UANonExclusiveDeviationAlarmImpl.prototype);
|
|
22
|
-
(0, node_opcua_assert_1.assert)(alarm instanceof UANonExclusiveDeviationAlarmImpl);
|
|
20
|
+
const alarm = ua_non_exclusive_limit_alarm_impl_1.UANonExclusiveLimitAlarmImplBase.instantiate(namespace, type, options, data);
|
|
21
|
+
Object.setPrototypeOf(alarm, exports.UANonExclusiveDeviationAlarmImpl.prototype);
|
|
22
|
+
(0, node_opcua_assert_1.assert)(alarm instanceof exports.UANonExclusiveDeviationAlarmImpl);
|
|
23
23
|
(0, node_opcua_assert_1.assert)(alarm instanceof ua_non_exclusive_limit_alarm_impl_1.UANonExclusiveLimitAlarmImpl);
|
|
24
24
|
(0, node_opcua_assert_1.assert)(alarm instanceof ua_limit_alarm_impl_1.UALimitAlarmImpl);
|
|
25
25
|
alarm._install_setpoint(options);
|
|
26
26
|
return alarm;
|
|
27
27
|
}
|
|
28
|
+
get $13() {
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
28
31
|
_setStateBasedOnInputValue(value) {
|
|
29
32
|
const setpointValue = this.getSetpointValue();
|
|
30
33
|
if (setpointValue === null) {
|
|
31
34
|
throw new Error("Cannot access setpoint Value");
|
|
32
35
|
}
|
|
33
|
-
(0, node_opcua_assert_1.assert)(isFinite(setpointValue), "expecting a valid setpoint value");
|
|
36
|
+
(0, node_opcua_assert_1.assert)(Number.isFinite(setpointValue), "expecting a valid setpoint value");
|
|
34
37
|
// call base class implementation
|
|
35
38
|
super._setStateBasedOnInputValue(value - setpointValue);
|
|
36
39
|
}
|
|
37
40
|
getSetpointNodeNode() {
|
|
38
|
-
return deviation_alarm_helper_1.DeviationAlarmHelper_getSetpointNodeNode.call(this);
|
|
41
|
+
return deviation_alarm_helper_1.DeviationAlarmHelper_getSetpointNodeNode.call(this.$13);
|
|
39
42
|
}
|
|
40
43
|
getSetpointValue() {
|
|
41
|
-
return deviation_alarm_helper_1.DeviationAlarmHelper_getSetpointValue.call(this);
|
|
44
|
+
return deviation_alarm_helper_1.DeviationAlarmHelper_getSetpointValue.call(this.$13);
|
|
42
45
|
}
|
|
43
46
|
_onSetpointDataValueChange(dataValue) {
|
|
44
|
-
deviation_alarm_helper_1.DeviationAlarmHelper_onSetpointDataValueChange.call(this, dataValue);
|
|
47
|
+
deviation_alarm_helper_1.DeviationAlarmHelper_onSetpointDataValueChange.call(this.$13, dataValue);
|
|
45
48
|
}
|
|
46
49
|
_install_setpoint(options) {
|
|
47
|
-
|
|
50
|
+
deviation_alarm_helper_1.DeviationAlarmHelper_install_setpoint.call(this.$13, options);
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
|
-
exports.
|
|
53
|
+
exports.UANonExclusiveDeviationAlarmImplBase = UANonExclusiveDeviationAlarmImplBase;
|
|
54
|
+
exports.UANonExclusiveDeviationAlarmImpl = UANonExclusiveDeviationAlarmImplBase;
|
|
51
55
|
//# sourceMappingURL=ua_non_exclusive_deviation_alarm_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_non_exclusive_deviation_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts"],"names":[],"mappings":";AAAA;;GAEG;;;
|
|
1
|
+
{"version":3,"file":"ua_non_exclusive_deviation_alarm_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,yDAA2C;AAQ3C,qEAKkC;AAClC,+DAAyD;AACzD,2FAAqH;AAErH,MAAa,oCAAqC,SAAQ,oEAAgC;IAC/E,MAAM,CAAC,WAAW,CACrB,SAA2B,EAC3B,IAAqB,EACrB,OAA8D,EAC9D,IAAqC;QAErC,MAAM,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;QAE5C,MAAM,8BAA8B,GAAG,YAAY,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;QACpG,oBAAoB;QACpB,IAAI,CAAC,8BAA8B,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC/D,CAAC;QACD,IAAA,0BAAM,EAAC,IAAI,KAAK,8BAA8B,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtE,MAAM,KAAK,GAAG,oEAAgC,CAAC,WAAW,CACtD,SAAS,EACT,IAAI,EACJ,OAAO,EACP,IAAI,CAC6B,CAAC;QACtC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,wCAAgC,CAAC,SAAS,CAAC,CAAC;QAEzE,IAAA,0BAAM,EAAC,KAAK,YAAY,wCAAgC,CAAC,CAAC;QAC1D,IAAA,0BAAM,EAAC,KAAK,YAAY,gEAA4B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-space.AlarmsAndConditions
|
|
3
|
+
*/
|
|
4
|
+
import type { UAEventType } from "node-opcua-address-space-base";
|
|
5
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
6
|
+
import type { VariantOptions } from "node-opcua-variant";
|
|
7
|
+
import type { ConditionInfo } from "../../source/interfaces/alarms_and_conditions/condition_info_i";
|
|
8
|
+
import type { InstantiateLimitAlarmOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
9
|
+
import type { UANonExclusiveLimitAlarmEx } from "../../source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex";
|
|
10
|
+
import type { NamespacePrivate } from "../namespace_private";
|
|
8
11
|
import { UALimitAlarmImpl } from "./ua_limit_alarm_impl";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
interface IState {
|
|
13
|
+
highHigh: boolean | "unset";
|
|
14
|
+
high: boolean | "unset";
|
|
15
|
+
low: boolean | "unset";
|
|
16
|
+
lowLow: boolean | "unset";
|
|
12
17
|
}
|
|
13
|
-
export declare class
|
|
18
|
+
export declare class UANonExclusiveLimitAlarmImplBase extends UALimitAlarmImpl implements UANonExclusiveLimitAlarmEx {
|
|
14
19
|
static instantiate(namespace: NamespacePrivate, type: UAEventType | NodeId | string, options: InstantiateLimitAlarmOptions, data?: Record<string, VariantOptions>): UANonExclusiveLimitAlarmImpl;
|
|
15
|
-
_calculateConditionInfo(state: string | null, isActive: boolean, value: string,
|
|
16
|
-
_signalNewCondition2(states:
|
|
17
|
-
|
|
18
|
-
}, isActive: boolean, value: string): void;
|
|
20
|
+
_calculateConditionInfo(state: string | null, isActive: boolean, value: string, _oldConditionInfo: ConditionInfo): ConditionInfo;
|
|
21
|
+
_signalNewCondition2(states: IState, isActive: boolean, value: string): void;
|
|
22
|
+
private get $12();
|
|
19
23
|
protected _setStateBasedOnInputValue(value: number): void;
|
|
20
24
|
}
|
|
25
|
+
export type UANonExclusiveLimitAlarmImpl = UANonExclusiveLimitAlarmImplBase & UANonExclusiveLimitAlarmEx;
|
|
26
|
+
export declare const UANonExclusiveLimitAlarmImpl: new () => UANonExclusiveLimitAlarmImpl;
|
|
27
|
+
export {};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UANonExclusiveLimitAlarmImpl = void 0;
|
|
4
2
|
/* eslint-disable max-statements */
|
|
5
3
|
/**
|
|
6
4
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
7
5
|
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.UANonExclusiveLimitAlarmImpl = exports.UANonExclusiveLimitAlarmImplBase = void 0;
|
|
8
8
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
9
|
+
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
9
10
|
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
10
11
|
const ua_two_state_variable_1 = require("../state_machine/ua_two_state_variable");
|
|
11
12
|
const condition_info_impl_1 = require("./condition_info_impl");
|
|
12
13
|
const ua_limit_alarm_impl_1 = require("./ua_limit_alarm_impl");
|
|
13
|
-
class
|
|
14
|
+
class UANonExclusiveLimitAlarmImplBase extends ua_limit_alarm_impl_1.UALimitAlarmImpl {
|
|
14
15
|
static instantiate(namespace, type, options, data) {
|
|
15
16
|
const addressSpace = namespace.addressSpace;
|
|
16
17
|
options.optionals = options.optionals || [];
|
|
17
|
-
if (Object.
|
|
18
|
+
if (Object.hasOwn(options, "lowLowLimit")) {
|
|
18
19
|
options.optionals.push("LowLowLimit");
|
|
19
20
|
options.optionals.push("LowLowState");
|
|
20
21
|
}
|
|
21
|
-
if (Object.
|
|
22
|
+
if (Object.hasOwn(options, "lowLimit")) {
|
|
22
23
|
options.optionals.push("LowLimit");
|
|
23
24
|
options.optionals.push("LowState");
|
|
24
25
|
}
|
|
25
|
-
if (Object.
|
|
26
|
+
if (Object.hasOwn(options, "highLimit")) {
|
|
26
27
|
options.optionals.push("HighLimit");
|
|
27
28
|
options.optionals.push("HighState");
|
|
28
29
|
}
|
|
29
|
-
if (Object.
|
|
30
|
+
if (Object.hasOwn(options, "highHighLimit")) {
|
|
30
31
|
options.optionals.push("HighHighLimit");
|
|
31
32
|
options.optionals.push("HighHighState");
|
|
32
33
|
}
|
|
33
34
|
const nonExclusiveAlarmType = addressSpace.findEventType(type);
|
|
34
35
|
/* c8 ignore next */
|
|
35
36
|
if (!nonExclusiveAlarmType) {
|
|
36
|
-
throw new Error(
|
|
37
|
+
throw new Error(` cannot find Alarm Condition Type for ${type}`);
|
|
37
38
|
}
|
|
38
39
|
const nonExclusiveLimitAlarmType = addressSpace.findEventType("NonExclusiveLimitAlarmType");
|
|
39
40
|
/* c8 ignore next */
|
|
@@ -41,10 +42,10 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
41
42
|
throw new Error("cannot find NonExclusiveLimitAlarmType");
|
|
42
43
|
}
|
|
43
44
|
// assert(type nonExclusiveLimitAlarmType.browseName.toString());
|
|
44
|
-
const alarm = ua_limit_alarm_impl_1.
|
|
45
|
-
Object.setPrototypeOf(alarm, UANonExclusiveLimitAlarmImpl.prototype);
|
|
45
|
+
const alarm = ua_limit_alarm_impl_1.UALimitAlarmImplBase.instantiate(namespace, type, options, data);
|
|
46
|
+
Object.setPrototypeOf(alarm, exports.UANonExclusiveLimitAlarmImpl.prototype);
|
|
46
47
|
(0, node_opcua_assert_1.assert)(alarm instanceof ua_limit_alarm_impl_1.UALimitAlarmImpl);
|
|
47
|
-
(0, node_opcua_assert_1.assert)(alarm instanceof UANonExclusiveLimitAlarmImpl);
|
|
48
|
+
(0, node_opcua_assert_1.assert)(alarm instanceof exports.UANonExclusiveLimitAlarmImpl);
|
|
48
49
|
// ---------------- install States
|
|
49
50
|
if (alarm.lowLowState) {
|
|
50
51
|
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(alarm.lowLowState, {
|
|
@@ -52,7 +53,7 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
52
53
|
trueState: "LowLow active"
|
|
53
54
|
});
|
|
54
55
|
alarm.lowLowState.setValue(false);
|
|
55
|
-
(0, node_opcua_assert_1.assert)(Object.
|
|
56
|
+
(0, node_opcua_assert_1.assert)(Object.hasOwn(alarm, "lowLowLimit"));
|
|
56
57
|
}
|
|
57
58
|
if (alarm.lowState) {
|
|
58
59
|
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(alarm.lowState, {
|
|
@@ -60,7 +61,7 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
60
61
|
trueState: "Low active"
|
|
61
62
|
});
|
|
62
63
|
alarm.lowState.setValue(false);
|
|
63
|
-
(0, node_opcua_assert_1.assert)(Object.
|
|
64
|
+
(0, node_opcua_assert_1.assert)(Object.hasOwn(alarm, "lowLimit"));
|
|
64
65
|
}
|
|
65
66
|
if (alarm.highState) {
|
|
66
67
|
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(alarm.highState, {
|
|
@@ -68,7 +69,7 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
68
69
|
trueState: "High active"
|
|
69
70
|
});
|
|
70
71
|
alarm.highState.setValue(false);
|
|
71
|
-
(0, node_opcua_assert_1.assert)(Object.
|
|
72
|
+
(0, node_opcua_assert_1.assert)(Object.hasOwn(alarm, "highLimit"));
|
|
72
73
|
}
|
|
73
74
|
if (alarm.highHighState) {
|
|
74
75
|
(0, ua_two_state_variable_1._install_TwoStateVariable_machinery)(alarm.highHighState, {
|
|
@@ -76,13 +77,13 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
76
77
|
trueState: "HighHigh active"
|
|
77
78
|
});
|
|
78
79
|
alarm.highHighState.setValue(false);
|
|
79
|
-
(0, node_opcua_assert_1.assert)(Object.
|
|
80
|
+
(0, node_opcua_assert_1.assert)(Object.hasOwn(alarm, "highHighLimit"));
|
|
80
81
|
}
|
|
81
82
|
alarm.activeState.setValue(false);
|
|
82
83
|
alarm.updateState();
|
|
83
84
|
return alarm;
|
|
84
85
|
}
|
|
85
|
-
_calculateConditionInfo(state, isActive, value,
|
|
86
|
+
_calculateConditionInfo(state, isActive, value, _oldConditionInfo) {
|
|
86
87
|
if (!isActive) {
|
|
87
88
|
return new condition_info_impl_1.ConditionInfoImpl({
|
|
88
89
|
message: "Back to normal",
|
|
@@ -93,7 +94,7 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
93
94
|
}
|
|
94
95
|
else {
|
|
95
96
|
return new condition_info_impl_1.ConditionInfoImpl({
|
|
96
|
-
message:
|
|
97
|
+
message: `Condition is ${value} and state is ${state}`,
|
|
97
98
|
quality: node_opcua_status_code_1.StatusCodes.Good,
|
|
98
99
|
retain: true,
|
|
99
100
|
severity: 150
|
|
@@ -107,7 +108,13 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
107
108
|
}
|
|
108
109
|
function _install(name) {
|
|
109
110
|
if (states[name] !== "unset") {
|
|
110
|
-
|
|
111
|
+
// browseName is PascalCase (e.g. HighHighState) while the IState key is camelCase
|
|
112
|
+
const browseName = `${name[0].toUpperCase()}${name.slice(1)}State`;
|
|
113
|
+
const state = alarm.getChildByName(browseName);
|
|
114
|
+
if (!state || state.nodeClass !== node_opcua_data_model_1.NodeClass.Variable || !state.setValue) {
|
|
115
|
+
throw new Error(`expecting a ${browseName} component`);
|
|
116
|
+
}
|
|
117
|
+
state.setValue(states[name]);
|
|
111
118
|
}
|
|
112
119
|
}
|
|
113
120
|
_install("highHigh");
|
|
@@ -122,14 +129,17 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
122
129
|
state_str = JSON.stringify(states);
|
|
123
130
|
ua_limit_alarm_impl_1.UALimitAlarmImpl.prototype._signalNewCondition.call(this, state_str, isActive, value);
|
|
124
131
|
}
|
|
132
|
+
get $12() {
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
125
135
|
_setStateBasedOnInputValue(value) {
|
|
126
|
-
(0, node_opcua_assert_1.assert)(isFinite(value), "expecting a valid value here");
|
|
136
|
+
(0, node_opcua_assert_1.assert)(Number.isFinite(value), "expecting a valid value here");
|
|
127
137
|
let isActive = false;
|
|
128
138
|
const states = {
|
|
129
|
-
highHigh: this.highHighState ? this.highHighState.getValue() : "unset",
|
|
130
|
-
high: this.highState ? this.highState.getValue() : "unset",
|
|
131
|
-
low: this.lowState ? this.lowState.getValue() : "unset",
|
|
132
|
-
lowLow: this.lowLowState ? this.lowLowState.getValue() : "unset"
|
|
139
|
+
highHigh: this.$12.highHighState ? this.$12.highHighState.getValue() : "unset",
|
|
140
|
+
high: this.$12.highState ? this.$12.highState.getValue() : "unset",
|
|
141
|
+
low: this.$12.lowState ? this.$12.lowState.getValue() : "unset",
|
|
142
|
+
lowLow: this.$12.lowLowState ? this.$12.lowLowState.getValue() : "unset"
|
|
133
143
|
};
|
|
134
144
|
let count = 0;
|
|
135
145
|
function ___p(stateName, func_value) {
|
|
@@ -159,5 +169,6 @@ class UANonExclusiveLimitAlarmImpl extends ua_limit_alarm_impl_1.UALimitAlarmImp
|
|
|
159
169
|
}
|
|
160
170
|
}
|
|
161
171
|
}
|
|
162
|
-
exports.
|
|
172
|
+
exports.UANonExclusiveLimitAlarmImplBase = UANonExclusiveLimitAlarmImplBase;
|
|
173
|
+
exports.UANonExclusiveLimitAlarmImpl = UANonExclusiveLimitAlarmImplBase;
|
|
163
174
|
//# sourceMappingURL=ua_non_exclusive_limit_alarm_impl.js.map
|