node-opcua-address-space 2.170.1 → 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.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 +4 -4
- 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 +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 +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 +23 -31
- 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 +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 +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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,wDAAsC;AACtC,4DAA0C;AAC1C,sDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,wDAAsC;AACtC,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,yEAAuD;AACvD,sDAAoC;AACpC,2DAAyC;AACzC,sEAAoD;AACpD,kEAAgD;AAChD,kEAAgD;AAChD,wDAAsC;AACtC,0EAAwD;AACxD,sEAAoD"}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
3
|
+
*/
|
|
4
|
+
import type { INamespace, ListenerSignature, UAEventType } from "node-opcua-address-space-base";
|
|
5
|
+
import { LocalizedText, type LocalizedTextLike } from "node-opcua-data-model";
|
|
6
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
7
|
+
import { type StatusCode } from "node-opcua-status-code";
|
|
8
|
+
import { type VariantOptions } from "node-opcua-variant";
|
|
9
|
+
import type { ConditionSnapshot } from "../../source/interfaces/alarms_and_conditions/condition_snapshot";
|
|
10
|
+
import type { InstantiateAlarmConditionOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
11
|
+
import type { UAAcknowledgeableConditionEx } from "../../source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex";
|
|
12
|
+
import type { UAConditionEvents } from "../../source/interfaces/alarms_and_conditions/ua_condition_ex";
|
|
13
|
+
import type { AddressSpacePrivate } from "../address_space_private";
|
|
14
|
+
import { UAConditionImplBase } from "./ua_condition_impl";
|
|
15
|
+
export interface UAAcknowegeableConditionEvents extends UAConditionEvents {
|
|
16
|
+
acknowledged: (eventId: Buffer | null, comment: LocalizedText | null, branch: ConditionSnapshot) => void;
|
|
17
|
+
confirmed: (eventId: Buffer | null, comment: LocalizedText | null, branch: ConditionSnapshot) => void;
|
|
14
18
|
}
|
|
15
|
-
export declare class
|
|
19
|
+
export declare class UAAcknowledgeableConditionImplBase<T extends UAAcknowegeableConditionEvents & ListenerSignature<T> = UAAcknowegeableConditionEvents> extends UAConditionImplBase<T> {
|
|
16
20
|
/**
|
|
17
21
|
*/
|
|
18
22
|
static instantiate(namespace: INamespace, conditionTypeId: UAEventType | NodeId | string, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAcknowledgeableConditionImpl;
|
|
@@ -26,6 +30,7 @@ export declare class UAAcknowledgeableConditionImpl extends UAConditionImpl impl
|
|
|
26
30
|
*/
|
|
27
31
|
_confirm_branch(conditionEventId: Buffer, comment: string | LocalizedTextLike, branch: ConditionSnapshot, message: string): void;
|
|
28
32
|
/**
|
|
33
|
+
*
|
|
29
34
|
*/
|
|
30
35
|
autoConfirmBranch(branch: ConditionSnapshot, comment: LocalizedTextLike): void;
|
|
31
36
|
/**
|
|
@@ -33,3 +38,5 @@ export declare class UAAcknowledgeableConditionImpl extends UAConditionImpl impl
|
|
|
33
38
|
*/
|
|
34
39
|
acknowledgeAndAutoConfirmBranch(branch: ConditionSnapshot, comment: string | LocalizedTextLike | LocalizedText): void;
|
|
35
40
|
}
|
|
41
|
+
export type UAAcknowledgeableConditionImpl = UAAcknowledgeableConditionImplBase & UAAcknowledgeableConditionEx;
|
|
42
|
+
export declare const UAAcknowledgeableConditionImpl: new () => UAAcknowledgeableConditionImpl;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
4
|
+
*/
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UAAcknowledgeableConditionImpl = void 0;
|
|
6
|
+
exports.UAAcknowledgeableConditionImpl = exports.UAAcknowledgeableConditionImplBase = void 0;
|
|
4
7
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
5
8
|
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
9
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
6
10
|
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
7
11
|
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
8
|
-
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
9
12
|
const ua_two_state_variable_1 = require("../state_machine/ua_two_state_variable");
|
|
10
13
|
const condition_snapshot_impl_1 = require("./condition_snapshot_impl");
|
|
11
14
|
const ua_condition_impl_1 = require("./ua_condition_impl");
|
|
12
15
|
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
13
16
|
const doDebug = false;
|
|
14
|
-
;
|
|
15
|
-
class
|
|
17
|
+
const $ = (a) => a;
|
|
18
|
+
class UAAcknowledgeableConditionImplBase extends ua_condition_impl_1.UAConditionImplBase {
|
|
16
19
|
/**
|
|
17
20
|
*/
|
|
18
21
|
static instantiate(namespace, conditionTypeId, options, data) {
|
|
19
|
-
const conditionNode = ua_condition_impl_1.
|
|
20
|
-
Object.setPrototypeOf(conditionNode, UAAcknowledgeableConditionImpl.prototype);
|
|
22
|
+
const conditionNode = ua_condition_impl_1.UAConditionImplBase.instantiate(namespace, conditionTypeId, options, data);
|
|
23
|
+
Object.setPrototypeOf(conditionNode, exports.UAAcknowledgeableConditionImpl.prototype);
|
|
21
24
|
// ----------------------- Install Acknowledge-able Condition stuff
|
|
22
25
|
// install ackedState - Mandatory
|
|
23
26
|
/**
|
|
@@ -52,7 +55,7 @@ class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl
|
|
|
52
55
|
if (conditionNode.confirm) {
|
|
53
56
|
conditionNode.confirm.bindMethod(_confirm_method);
|
|
54
57
|
}
|
|
55
|
-
(0, node_opcua_assert_1.assert)(conditionNode instanceof UAAcknowledgeableConditionImpl);
|
|
58
|
+
(0, node_opcua_assert_1.assert)(conditionNode instanceof exports.UAAcknowledgeableConditionImpl);
|
|
56
59
|
return conditionNode;
|
|
57
60
|
}
|
|
58
61
|
static install_method_handle_on_type(addressSpace) {
|
|
@@ -130,7 +133,7 @@ class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl
|
|
|
130
133
|
if (statusCode.isNotGood()) {
|
|
131
134
|
return statusCode;
|
|
132
135
|
}
|
|
133
|
-
if (this.confirmedState) {
|
|
136
|
+
if ($(this).confirmedState) {
|
|
134
137
|
// alarm has a confirmed state !
|
|
135
138
|
// we should be waiting for confirmation now
|
|
136
139
|
branch.setConfirmedState(false);
|
|
@@ -149,7 +152,7 @@ class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl
|
|
|
149
152
|
* @param branch {ConditionSnapshot}
|
|
150
153
|
* raised when the alarm branch has been acknowledged
|
|
151
154
|
*/
|
|
152
|
-
this.emit("acknowledged", conditionEventId, comment, branch);
|
|
155
|
+
this.emit("acknowledged", conditionEventId, (0, node_opcua_data_model_1.coerceLocalizedText)(comment), branch);
|
|
153
156
|
return node_opcua_status_code_1.StatusCodes.Good;
|
|
154
157
|
}
|
|
155
158
|
/**
|
|
@@ -169,19 +172,20 @@ class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl
|
|
|
169
172
|
this._raiseAuditConditionConfirmEvent(branch);
|
|
170
173
|
this.raiseNewBranchState(branch);
|
|
171
174
|
/**
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.emit("confirmed", conditionEventId, comment, branch);
|
|
175
|
+
* @event confirmed
|
|
176
|
+
* @param eventId
|
|
177
|
+
* @param comment
|
|
178
|
+
* @param eventId
|
|
179
|
+
* raised when the alarm branch has been confirmed
|
|
180
|
+
*/
|
|
181
|
+
this.emit("confirmed", conditionEventId, (0, node_opcua_data_model_1.coerceLocalizedText)(comment), branch);
|
|
179
182
|
}
|
|
180
183
|
/**
|
|
184
|
+
*
|
|
181
185
|
*/
|
|
182
186
|
autoConfirmBranch(branch, comment) {
|
|
183
187
|
(0, node_opcua_assert_1.assert)(branch instanceof condition_snapshot_impl_1.ConditionSnapshotImpl);
|
|
184
|
-
if (
|
|
188
|
+
if (!$(this).confirmedState) {
|
|
185
189
|
// no confirmedState => ignoring
|
|
186
190
|
return;
|
|
187
191
|
}
|
|
@@ -202,14 +206,15 @@ class UAAcknowledgeableConditionImpl extends ua_condition_impl_1.UAConditionImpl
|
|
|
202
206
|
this.autoConfirmBranch(branch, comment);
|
|
203
207
|
}
|
|
204
208
|
}
|
|
205
|
-
exports.
|
|
209
|
+
exports.UAAcknowledgeableConditionImplBase = UAAcknowledgeableConditionImplBase;
|
|
210
|
+
exports.UAAcknowledgeableConditionImpl = UAAcknowledgeableConditionImplBase;
|
|
206
211
|
function _acknowledge_method(inputArguments, context, callback) {
|
|
207
|
-
ua_condition_impl_1.
|
|
212
|
+
ua_condition_impl_1.UAConditionImplBase.with_condition_method(inputArguments, context, callback, (conditionEventId, comment, branch, conditionNode) => {
|
|
208
213
|
const ackConditionNode = conditionNode;
|
|
209
214
|
// precondition checking
|
|
210
215
|
(0, node_opcua_assert_1.assert)(!conditionEventId || conditionEventId instanceof Buffer, "must have a valid eventId or null");
|
|
211
216
|
(0, node_opcua_assert_1.assert)(comment instanceof node_opcua_data_model_1.LocalizedText, "expecting a comment as LocalizedText");
|
|
212
|
-
(0, node_opcua_assert_1.assert)(conditionNode instanceof UAAcknowledgeableConditionImpl);
|
|
217
|
+
(0, node_opcua_assert_1.assert)(conditionNode instanceof exports.UAAcknowledgeableConditionImpl);
|
|
213
218
|
ackConditionNode._acknowledge_branch(conditionEventId, comment, branch, "Method/Acknowledged");
|
|
214
219
|
return node_opcua_status_code_1.StatusCodes.Good;
|
|
215
220
|
});
|
|
@@ -223,7 +228,7 @@ function _acknowledge_method(inputArguments, context, callback) {
|
|
|
223
228
|
* @private
|
|
224
229
|
*/
|
|
225
230
|
function _confirm_method(inputArguments, context, callback) {
|
|
226
|
-
ua_condition_impl_1.
|
|
231
|
+
ua_condition_impl_1.UAConditionImplBase.with_condition_method(inputArguments, context, callback, (eventId, comment, branch, conditionNode) => {
|
|
227
232
|
(0, node_opcua_assert_1.assert)(eventId instanceof Buffer);
|
|
228
233
|
(0, node_opcua_assert_1.assert)(branch.getEventId() instanceof Buffer);
|
|
229
234
|
(0, node_opcua_assert_1.assert)(branch.getEventId().toString("hex") === eventId.toString("hex"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_acknowledgeable_condition_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ua_acknowledgeable_condition_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts"],"names":[],"mappings":";AAA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E,MAAM,gBAAgB,GAAG,aAA8D,CAAC;QACxF,IAAI,MAAM,CAAC,iBAAiB,EAAE,EAAE,CAAC;YAC7B,OAAO,oCAAW,CAAC,kCAAkC,CAAC;QAC1D,CAAC;QACD,gBAAgB,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;QAC7E,OAAO,oCAAW,CAAC,IAAI,CAAC;IAC5B,CAAC,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -5,11 +5,8 @@ import { type VariantOptions } from "node-opcua-variant";
|
|
|
5
5
|
import type { ConditionInfo } from "../../source/interfaces/alarms_and_conditions/condition_info_i";
|
|
6
6
|
import type { InstantiateAlarmConditionOptions } from "../../source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
7
7
|
import type { UAAlarmConditionEx } from "../../source/interfaces/alarms_and_conditions/ua_alarm_condition_ex";
|
|
8
|
-
import {
|
|
9
|
-
export declare
|
|
10
|
-
on(eventName: string, eventHandler: any): this;
|
|
11
|
-
}
|
|
12
|
-
export declare class UAAlarmConditionImpl extends UAAcknowledgeableConditionImpl implements UAAlarmConditionEx {
|
|
8
|
+
import { UAAcknowledgeableConditionImplBase } from "./ua_acknowledgeable_condition_impl";
|
|
9
|
+
export declare class UAAlarmConditionImplBase extends UAAcknowledgeableConditionImplBase {
|
|
13
10
|
static MaxDuration: number;
|
|
14
11
|
static instantiate(namespace: INamespace, alarmConditionTypeId: UAEventType | string | NodeId, options: InstantiateAlarmConditionOptions, data?: Record<string, VariantOptions>): UAAlarmConditionImpl;
|
|
15
12
|
dispose(): void;
|
|
@@ -44,7 +41,7 @@ export declare class UAAlarmConditionImpl extends UAAcknowledgeableConditionImpl
|
|
|
44
41
|
/**
|
|
45
42
|
*
|
|
46
43
|
*/
|
|
47
|
-
getInputNodeValue():
|
|
44
|
+
getInputNodeValue(): number | null;
|
|
48
45
|
updateState(): void;
|
|
49
46
|
protected _onInputDataValueChange(_newValue: DataValue): void;
|
|
50
47
|
/**
|
|
@@ -77,5 +74,7 @@ export declare class UAAlarmConditionImpl extends UAAcknowledgeableConditionImpl
|
|
|
77
74
|
*/
|
|
78
75
|
_calculateConditionInfo(stateData: string | null, _isActive: boolean, value: string, _oldCondition: ConditionInfo): ConditionInfo;
|
|
79
76
|
_signalInitialCondition(): void;
|
|
80
|
-
_signalNewCondition(stateName: string | null, isActive
|
|
77
|
+
_signalNewCondition(stateName: string | null, isActive: boolean, value: string): void;
|
|
81
78
|
}
|
|
79
|
+
export type UAAlarmConditionImpl = UAAlarmConditionImplBase & UAAlarmConditionEx;
|
|
80
|
+
export declare const UAAlarmConditionImpl: new () => UAAlarmConditionImpl;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UAAlarmConditionImpl = void 0;
|
|
3
|
+
exports.UAAlarmConditionImpl = exports.UAAlarmConditionImplBase = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
6
6
|
*/
|
|
@@ -22,7 +22,8 @@ function _update_suppressedOrShelved(alarmNode) {
|
|
|
22
22
|
value: alarmNode.isSuppressedOrShelved()
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
const $ = (a) => a;
|
|
26
|
+
class UAAlarmConditionImplBase extends ua_acknowledgeable_condition_impl_1.UAAcknowledgeableConditionImplBase {
|
|
26
27
|
static MaxDuration = 2 ** 31;
|
|
27
28
|
static instantiate(namespace, alarmConditionTypeId, options, data) {
|
|
28
29
|
const addressSpace = namespace.addressSpace;
|
|
@@ -44,8 +45,8 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
44
45
|
(0, node_opcua_assert_1.assert)(Number.isFinite(options.maxTimeShelved));
|
|
45
46
|
}
|
|
46
47
|
(0, node_opcua_assert_1.assert)(alarmConditionTypeBase === alarmConditionType || alarmConditionType.isSubtypeOf(alarmConditionTypeBase));
|
|
47
|
-
const alarmNode = ua_acknowledgeable_condition_impl_1.
|
|
48
|
-
Object.setPrototypeOf(alarmNode, UAAlarmConditionImpl.prototype);
|
|
48
|
+
const alarmNode = ua_acknowledgeable_condition_impl_1.UAAcknowledgeableConditionImplBase.instantiate(namespace, alarmConditionTypeId, options, data);
|
|
49
|
+
Object.setPrototypeOf(alarmNode, exports.UAAlarmConditionImpl.prototype);
|
|
49
50
|
// ----------------------- Install Alarm specifics
|
|
50
51
|
//
|
|
51
52
|
// Specs 1.03:
|
|
@@ -92,7 +93,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
92
93
|
* @type ShelvingStateMachine
|
|
93
94
|
*/
|
|
94
95
|
if (alarmNode.shelvingState) {
|
|
95
|
-
ua_shelving_state_machine_ex_1.
|
|
96
|
+
ua_shelving_state_machine_ex_1.UAShelvedStateMachineExImplBase.promote(alarmNode.shelvingState);
|
|
96
97
|
}
|
|
97
98
|
// SuppressedOrShelved : Mandatory
|
|
98
99
|
// install suppressedOrShelved automatic detection
|
|
@@ -142,12 +143,12 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
142
143
|
(0, node_opcua_assert_1.assert)(options.inputNode, " must provide options.inputNode (NodeId or BaseNode object)");
|
|
143
144
|
alarmNode.installInputNodeMonitoring(options.inputNode);
|
|
144
145
|
(0, node_opcua_assert_1.assert)(alarmNode instanceof ua_acknowledgeable_condition_impl_1.UAAcknowledgeableConditionImpl);
|
|
145
|
-
(0, node_opcua_assert_1.assert)(alarmNode instanceof UAAlarmConditionImpl);
|
|
146
|
+
(0, node_opcua_assert_1.assert)(alarmNode instanceof exports.UAAlarmConditionImpl);
|
|
146
147
|
return alarmNode;
|
|
147
148
|
}
|
|
148
149
|
dispose() {
|
|
149
|
-
if (this.shelvingState) {
|
|
150
|
-
(0, ua_shelving_state_machine_ex_1._clear_timer_if_any)(this.shelvingState);
|
|
150
|
+
if ($(this).shelvingState) {
|
|
151
|
+
(0, ua_shelving_state_machine_ex_1._clear_timer_if_any)($(this).shelvingState);
|
|
151
152
|
}
|
|
152
153
|
super.dispose();
|
|
153
154
|
}
|
|
@@ -177,12 +178,12 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
177
178
|
}
|
|
178
179
|
isSuppressedOrShelved() {
|
|
179
180
|
let suppressed = false;
|
|
180
|
-
if (this.suppressedState) {
|
|
181
|
-
suppressed = this.suppressedState
|
|
181
|
+
if ($(this).suppressedState) {
|
|
182
|
+
suppressed = $(this).suppressedState?.id?.readValue().value.value || false;
|
|
182
183
|
}
|
|
183
184
|
let shelved = false;
|
|
184
|
-
if (this.shelvingState) {
|
|
185
|
-
const shelvedValue = this.shelvingState
|
|
185
|
+
if ($(this).shelvingState) {
|
|
186
|
+
const shelvedValue = $(this).shelvingState?.currentState.readValue().value.value;
|
|
186
187
|
if (shelvedValue && shelvedValue.text !== "Unshelved") {
|
|
187
188
|
shelved = true;
|
|
188
189
|
}
|
|
@@ -190,7 +191,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
190
191
|
return suppressed || shelved;
|
|
191
192
|
}
|
|
192
193
|
getSuppressedOrShelved() {
|
|
193
|
-
return this.suppressedOrShelved.readValue().value.value;
|
|
194
|
+
return $(this).suppressedOrShelved.readValue().value.value;
|
|
194
195
|
}
|
|
195
196
|
/**
|
|
196
197
|
*
|
|
@@ -200,7 +201,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
200
201
|
if (duration < 10 || duration >= 2 ** 31) {
|
|
201
202
|
throw new Error(` Invalid maxTimeShelved duration: ${duration} must be [10,2**31] `);
|
|
202
203
|
}
|
|
203
|
-
this.maxTimeShelved?.setValueFromSource({
|
|
204
|
+
$(this).maxTimeShelved?.setValueFromSource({
|
|
204
205
|
dataType: "Duration", // <= Duration is basic Type Double! ( milliseconds)
|
|
205
206
|
value: duration
|
|
206
207
|
});
|
|
@@ -209,14 +210,14 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
209
210
|
* note: return a Duration
|
|
210
211
|
*/
|
|
211
212
|
getMaxTimeShelved() {
|
|
212
|
-
if (
|
|
213
|
+
if (!$(this).maxTimeShelved) {
|
|
213
214
|
// if maxTimeShelved is not provided we assume MaxDuration
|
|
214
|
-
(0, node_opcua_assert_1.assert)(
|
|
215
|
-
return
|
|
215
|
+
(0, node_opcua_assert_1.assert)(UAAlarmConditionImplBase.MaxDuration <= 2147483648, "MaxDuration cannot be greater than 2**31");
|
|
216
|
+
return UAAlarmConditionImplBase.MaxDuration;
|
|
216
217
|
}
|
|
217
|
-
const dataValue = this.maxTimeShelved
|
|
218
|
-
(0, node_opcua_assert_1.assert)(dataValue
|
|
219
|
-
return dataValue
|
|
218
|
+
const dataValue = $(this).maxTimeShelved?.readValue();
|
|
219
|
+
(0, node_opcua_assert_1.assert)(dataValue?.value.dataType === node_opcua_variant_1.DataType.Double); // Double <= Duration
|
|
220
|
+
return dataValue?.value.value || 0;
|
|
220
221
|
}
|
|
221
222
|
/**
|
|
222
223
|
|
|
@@ -229,7 +230,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
229
230
|
* whose node id is stored in alarm.inputNode
|
|
230
231
|
*/
|
|
231
232
|
getInputNodeNode() {
|
|
232
|
-
const nodeId = this.inputNode.readValue().value.value;
|
|
233
|
+
const nodeId = $(this).inputNode.readValue().value.value;
|
|
233
234
|
(0, node_opcua_assert_1.assert)(nodeId instanceof node_opcua_nodeid_1.NodeId || nodeId === null);
|
|
234
235
|
return this.addressSpace.findNode(nodeId);
|
|
235
236
|
}
|
|
@@ -242,7 +243,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
242
243
|
return null;
|
|
243
244
|
}
|
|
244
245
|
(0, node_opcua_assert_1.assert)(node.nodeClass === node_opcua_data_model_1.NodeClass.Variable);
|
|
245
|
-
return node.readValue().value.value;
|
|
246
|
+
return node.readValue().value.value || 0;
|
|
246
247
|
}
|
|
247
248
|
updateState() {
|
|
248
249
|
const node = this.getInputNodeNode();
|
|
@@ -270,17 +271,17 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
270
271
|
* @property inputNode
|
|
271
272
|
* @type UAVariable
|
|
272
273
|
*/
|
|
273
|
-
(0, node_opcua_assert_1.assert)(this.inputNode.nodeClass === node_opcua_data_model_1.NodeClass.Variable);
|
|
274
|
+
(0, node_opcua_assert_1.assert)($(this).inputNode.nodeClass === node_opcua_data_model_1.NodeClass.Variable);
|
|
274
275
|
const addressSpace = this.addressSpace;
|
|
275
276
|
(0, node_opcua_assert_1.assert)(inputNode, " must provide options.inputNode (NodeId or BaseNode object)");
|
|
276
277
|
if (inputNode instanceof node_opcua_nodeid_1.NodeId) {
|
|
277
|
-
this.inputNode.setValueFromSource({
|
|
278
|
+
$(this).inputNode.setValueFromSource({
|
|
278
279
|
dataType: node_opcua_variant_1.DataType.NodeId,
|
|
279
280
|
value: inputNode
|
|
280
281
|
});
|
|
281
282
|
}
|
|
282
283
|
else {
|
|
283
|
-
this.inputNode.setValueFromSource({
|
|
284
|
+
$(this).inputNode.setValueFromSource({
|
|
284
285
|
dataType: "NodeId",
|
|
285
286
|
value: inputNode.nodeId
|
|
286
287
|
});
|
|
@@ -290,7 +291,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
290
291
|
}
|
|
291
292
|
else {
|
|
292
293
|
(0, node_opcua_assert_1.assert)(_node, "Expecting a valid input node");
|
|
293
|
-
this.inputNode.setValueFromSource({
|
|
294
|
+
$(this).inputNode.setValueFromSource({
|
|
294
295
|
dataType: node_opcua_variant_1.DataType.NodeId,
|
|
295
296
|
value: _node.nodeId
|
|
296
297
|
});
|
|
@@ -373,7 +374,7 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
373
374
|
(0, node_opcua_assert_1.assert)(this.getEnabledState() === true);
|
|
374
375
|
// xx assert(isActive !== alarm.activeState.getValue());
|
|
375
376
|
const oldConditionInfo = this.getCurrentConditionInfo();
|
|
376
|
-
const newConditionInfo = this._calculateConditionInfo(stateName,
|
|
377
|
+
const newConditionInfo = this._calculateConditionInfo(stateName, isActive, value, oldConditionInfo);
|
|
377
378
|
// detect potential internal bugs due to misused of _signalNewCondition
|
|
378
379
|
if ((0, node_util_1.isDeepStrictEqual)(oldConditionInfo, newConditionInfo)) {
|
|
379
380
|
// tslint:disable-next-line:no-console
|
|
@@ -405,5 +406,6 @@ class UAAlarmConditionImpl extends ua_acknowledgeable_condition_impl_1.UAAcknowl
|
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
|
-
exports.
|
|
409
|
+
exports.UAAlarmConditionImplBase = UAAlarmConditionImplBase;
|
|
410
|
+
exports.UAAlarmConditionImpl = UAAlarmConditionImplBase;
|
|
409
411
|
//# sourceMappingURL=ua_alarm_condition_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_alarm_condition_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_alarm_condition_impl.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yCAAyD;AAEzD,yDAA2C;AAC3C,iEAAkD;AAElD,uDAAiD;AACjD,yDAAuD;AACvD,mEAAqD;AACrD,2DAAmE;AAKnE,
|
|
1
|
+
{"version":3,"file":"ua_alarm_condition_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_alarm_condition_impl.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yCAAyD;AAEzD,yDAA2C;AAC3C,iEAAkD;AAElD,uDAAiD;AACjD,yDAAuD;AACvD,mEAA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EAAqE;oBACrE,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;gBACxC,CAAC;YACL,CAAC;YAED,IAAI,CAAC,aAAa,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC3C,IAAI,CAAC,aAAa,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAEzC,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;QAC7C,CAAC;IACL,CAAC;;AApbL,4DAqbC;AAGY,QAAA,oBAAoB,GAAG,wBAAqE,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { NodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { BaseNode } from "node-opcua-address-space-base";
|
|
3
|
-
import { UABaseEvent_Base } from "node-opcua-nodeset-ua";
|
|
4
|
-
import { UAObjectImpl } from "../ua_object_impl";
|
|
5
|
-
import { UABaseEventHelper } from "../../source/interfaces/alarms_and_conditions/ua_condition_ex";
|
|
6
|
-
export interface UABaseEventEx extends UABaseEvent_Base, UABaseEventHelper {
|
|
7
|
-
}
|
|
8
|
-
export declare interface UABaseEventImpl extends UABaseEventEx {
|
|
9
|
-
}
|
|
10
1
|
/**
|
|
11
|
-
* @
|
|
2
|
+
* @module node-opcua-address-space.AlarmsAndConditions
|
|
12
3
|
*/
|
|
13
|
-
|
|
4
|
+
import type { BaseNode, ListenerSignature } from "node-opcua-address-space-base";
|
|
5
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
6
|
+
import type { UABaseEventEvents, UABaseEventEx } from "../../source/interfaces/alarms_and_conditions/ua_base_event_ex";
|
|
7
|
+
import { UAObjectImpl } from "../ua_object_impl";
|
|
8
|
+
export type { UABaseEventEvents, UABaseEventEx } from "../../source/interfaces/alarms_and_conditions/ua_base_event_ex";
|
|
9
|
+
export declare class UABaseEventImplBase<T extends UABaseEventEvents & ListenerSignature<T> = UABaseEventEvents> extends UAObjectImpl<T> {
|
|
14
10
|
/**
|
|
15
11
|
*/
|
|
16
12
|
setSourceName(name: string): void;
|
|
@@ -18,3 +14,5 @@ export declare class UABaseEventImpl extends UAObjectImpl implements UABaseEvent
|
|
|
18
14
|
*/
|
|
19
15
|
setSourceNode(node: NodeId | BaseNode): void;
|
|
20
16
|
}
|
|
17
|
+
export type UABaseEventImpl = UABaseEventImplBase & UABaseEventEx;
|
|
18
|
+
export declare const UABaseEventImpl: new () => UABaseEventImpl;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UABaseEventImpl = void 0;
|
|
4
2
|
/**
|
|
5
3
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
6
4
|
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UABaseEventImpl = exports.UABaseEventImplBase = void 0;
|
|
7
7
|
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
8
|
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
9
|
+
const base_node_impl_1 = require("../base_node_impl");
|
|
9
10
|
const ua_object_impl_1 = require("../ua_object_impl");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
class UABaseEventImpl extends ua_object_impl_1.UAObjectImpl {
|
|
11
|
+
const $ = (a) => a;
|
|
12
|
+
class UABaseEventImplBase extends ua_object_impl_1.UAObjectImpl {
|
|
14
13
|
/**
|
|
15
14
|
*/
|
|
16
15
|
setSourceName(name) {
|
|
17
16
|
(0, node_opcua_assert_1.assert)(typeof name === "string");
|
|
18
|
-
this.sourceName.setValueFromSource(new node_opcua_variant_1.Variant({
|
|
17
|
+
$(this).sourceName.setValueFromSource(new node_opcua_variant_1.Variant({
|
|
19
18
|
dataType: node_opcua_variant_1.DataType.String,
|
|
20
19
|
value: name
|
|
21
20
|
}));
|
|
@@ -23,11 +22,12 @@ class UABaseEventImpl extends ua_object_impl_1.UAObjectImpl {
|
|
|
23
22
|
/**
|
|
24
23
|
*/
|
|
25
24
|
setSourceNode(node) {
|
|
26
|
-
this.sourceNode.setValueFromSource(new node_opcua_variant_1.Variant({
|
|
25
|
+
$(this).sourceNode.setValueFromSource(new node_opcua_variant_1.Variant({
|
|
27
26
|
dataType: node_opcua_variant_1.DataType.NodeId,
|
|
28
|
-
value: node.
|
|
27
|
+
value: node instanceof base_node_impl_1.BaseNodeImpl ? node.nodeId : node
|
|
29
28
|
}));
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
|
-
exports.
|
|
31
|
+
exports.UABaseEventImplBase = UABaseEventImplBase;
|
|
32
|
+
exports.UABaseEventImpl = UABaseEventImplBase;
|
|
33
33
|
//# sourceMappingURL=ua_base_event_impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_base_event_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_base_event_impl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_base_event_impl.js","sourceRoot":"","sources":["../../../src/alarms_and_conditions/ua_base_event_impl.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,yDAA2C;AAE3C,2DAAuD;AAEvD,sDAAiD;AACjD,sDAAiD;AAIjD,MAAM,CAAC,GAAG,CAAC,CAAsB,EAAiB,EAAE,CAAC,CAA6B,CAAC;AAEnF,MAAa,mBAA4F,SAAQ,6BAAe;IAC5H;OACG;IACI,aAAa,CAAC,IAAY;QAC7B,IAAA,0BAAM,EAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC;QACjC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,kBAAkB,CACjC,IAAI,4BAAO,CAAC;YACR,QAAQ,EAAE,6BAAQ,CAAC,MAAM;YACzB,KAAK,EAAE,IAAI;SACd,CAAC,CACL,CAAC;IACN,CAAC;IACD;OACG;IACI,aAAa,CAAC,IAAuB;QACxC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,kBAAkB,CACjC,IAAI,4BAAO,CAAC;YACR,QAAQ,EAAE,6BAAQ,CAAC,MAAM;YACzB,KAAK,EAAE,IAAI,YAAY,6BAAY,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;SAC3D,CAAC,CACL,CAAC;IACN,CAAC;CACJ;AAtBD,kDAsBC;AAGY,QAAA,eAAe,GAAG,mBAA2D,CAAC"}
|
|
@@ -17,7 +17,7 @@ export declare const TwoWeeksDuration: number;
|
|
|
17
17
|
* Certificate is within the ExpirationLimit
|
|
18
18
|
* of expiration. This alarm automatically returns to normal when the certificate is updated.
|
|
19
19
|
*/
|
|
20
|
-
declare class
|
|
20
|
+
declare class UACertificateExpirationAlarmImplBase extends UASystemOffNormalAlarmImpl {
|
|
21
21
|
expirationDate: UAProperty<Date, DataType.DateTime>;
|
|
22
22
|
expirationLimit: UAProperty<number, DataType.Double> | undefined;
|
|
23
23
|
certificateType: UAProperty<NodeId, DataType.NodeId>;
|
|
@@ -39,4 +39,6 @@ declare class UACertificateExpirationAlarmImpl extends UASystemOffNormalAlarmImp
|
|
|
39
39
|
_post_initialize(): void;
|
|
40
40
|
}
|
|
41
41
|
export declare function promoteToCertificateExpirationAlarm(node: UAObject): UACertificateExpirationAlarmImpl;
|
|
42
|
+
export type UACertificateExpirationAlarmImpl = UACertificateExpirationAlarmImplBase & UACertificateExpirationAlarmEx;
|
|
43
|
+
export declare const UACertificateExpirationAlarmImpl: new () => UACertificateExpirationAlarmImpl;
|
|
42
44
|
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TwoWeeksDuration = exports.OneDayDuration = void 0;
|
|
6
|
+
exports.UACertificateExpirationAlarmImpl = exports.TwoWeeksDuration = exports.OneDayDuration = void 0;
|
|
7
7
|
exports.instantiateCertificateExpirationAlarm = instantiateCertificateExpirationAlarm;
|
|
8
8
|
exports.promoteToCertificateExpirationAlarm = promoteToCertificateExpirationAlarm;
|
|
9
9
|
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
|
|
@@ -23,7 +23,7 @@ const d = (d) => {
|
|
|
23
23
|
return d.toISOString();
|
|
24
24
|
};
|
|
25
25
|
function instantiateCertificateExpirationAlarm(namespace, alarmType, options) {
|
|
26
|
-
return
|
|
26
|
+
return UACertificateExpirationAlarmImplBase.instantiate(namespace, alarmType, options);
|
|
27
27
|
}
|
|
28
28
|
// This Simple DataType is a Double that defines an interval of time in milliseconds (fractions can be used to define sub-millisecond values).
|
|
29
29
|
// Negative values are generally invalid but may have special meanings where the Duration is used.
|
|
@@ -34,7 +34,7 @@ exports.TwoWeeksDuration = exports.OneDayDuration * 2 * 7;
|
|
|
34
34
|
* Certificate is within the ExpirationLimit
|
|
35
35
|
* of expiration. This alarm automatically returns to normal when the certificate is updated.
|
|
36
36
|
*/
|
|
37
|
-
class
|
|
37
|
+
class UACertificateExpirationAlarmImplBase extends ua_system_off_normal_alarm_impl_1.UASystemOffNormalAlarmImpl {
|
|
38
38
|
timer = null;
|
|
39
39
|
static instantiate(namespace, alarmType, options
|
|
40
40
|
// data?: Record<string, VariantOptions>
|
|
@@ -190,13 +190,14 @@ class UACertificateExpirationAlarmImpl extends ua_system_off_normal_alarm_impl_1
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function promoteToCertificateExpirationAlarm(node) {
|
|
193
|
-
if (node instanceof UACertificateExpirationAlarmImpl) {
|
|
193
|
+
if (node instanceof exports.UACertificateExpirationAlarmImpl) {
|
|
194
194
|
return node; // already promoted
|
|
195
195
|
}
|
|
196
|
-
Object.setPrototypeOf(node, UACertificateExpirationAlarmImpl.prototype);
|
|
196
|
+
Object.setPrototypeOf(node, exports.UACertificateExpirationAlarmImpl.prototype);
|
|
197
197
|
const _node = node;
|
|
198
198
|
_node._post_initialize();
|
|
199
199
|
return _node;
|
|
200
200
|
}
|
|
201
201
|
(0, register_node_promoter_1.registerNodePromoter)(node_opcua_constants_1.ObjectTypeIds.CertificateExpirationAlarmType, promoteToCertificateExpirationAlarm, true);
|
|
202
|
+
exports.UACertificateExpirationAlarmImpl = UACertificateExpirationAlarmImplBase;
|
|
202
203
|
//# sourceMappingURL=ua_certificate_expiration_alarm_impl.js.map
|