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,20 +1,19 @@
|
|
|
1
|
-
import assert from "assert";
|
|
2
|
-
import { IAddressSpace } from "node-opcua-address-space-base";
|
|
1
|
+
import assert from "node:assert";
|
|
2
|
+
import type { IAddressSpace } from "node-opcua-address-space-base";
|
|
3
|
+
import { coerceInt64 } from "node-opcua-basic-types";
|
|
4
|
+
import { Range } from "node-opcua-data-access";
|
|
5
|
+
import { coerceLocalizedText, LocalizedText, type LocalizedTextOptions } from "node-opcua-data-model";
|
|
6
|
+
import { make_debugLog } from "node-opcua-debug";
|
|
3
7
|
import { ExtensionObject } from "node-opcua-extension-object";
|
|
4
8
|
import { NodeId, resolveNodeId } from "node-opcua-nodeid";
|
|
5
|
-
import {
|
|
9
|
+
import { Argument, EnumValueType, EUInformation, type EUInformationOptions } from "node-opcua-types";
|
|
10
|
+
import { InternalFragmentClonerReaderState, type ParserLike, type ReaderStateParserLike } from "node-opcua-xml2json";
|
|
6
11
|
import { decodeXmlExtensionObject } from "../decode_xml_extension_object";
|
|
7
|
-
import { coerceLocalizedText, LocalizedText, LocalizedTextOptions } from "node-opcua-data-model";
|
|
8
|
-
import { Argument, EnumValueType, EUInformation, EUInformationOptions } from "node-opcua-types";
|
|
9
12
|
import { localizedText_parser } from "./localized_text_parser";
|
|
10
|
-
import { coerceInt64 } from "node-opcua-basic-types";
|
|
11
|
-
import { make_debugLog } from "node-opcua-debug";
|
|
12
|
-
import { Range } from "node-opcua-data-access";
|
|
13
|
-
|
|
14
13
|
|
|
15
14
|
const debugLog = make_debugLog("ExtensionObjectParser");
|
|
16
15
|
const errorLog = make_debugLog("ExtensionObjectParser");
|
|
17
|
-
const
|
|
16
|
+
const _doDebug = false;
|
|
18
17
|
export type Task = (addressSpace: IAddressSpace) => Promise<void>;
|
|
19
18
|
|
|
20
19
|
interface PostExtensionObjectData {
|
|
@@ -75,7 +74,7 @@ const makeArgumentParser = (_translateNodeId: (nodeId: string) => NodeId) => ({
|
|
|
75
74
|
|
|
76
75
|
// #region Range parser
|
|
77
76
|
type RangeParser = ParserLike & { range: Range };
|
|
78
|
-
type RangeParserL2 = ParserLike & { parent: RangeParser
|
|
77
|
+
type RangeParserL2 = ParserLike & { parent: RangeParser; text: string };
|
|
79
78
|
|
|
80
79
|
const Range_parser = {
|
|
81
80
|
Range: {
|
|
@@ -103,14 +102,14 @@ const Range_parser = {
|
|
|
103
102
|
|
|
104
103
|
type EUInformationParser = ReaderStateParserLike & {
|
|
105
104
|
euInformation: EUInformationOptions;
|
|
106
|
-
parser: any
|
|
105
|
+
parser: any;
|
|
107
106
|
};
|
|
108
107
|
type EUInformationParserLevel2 = { parent: EUInformationParser } & { text: string };
|
|
109
108
|
type EUInformationParserLevel2L = { parent: EUInformationParser } & { localizedText: LocalizedTextOptions };
|
|
110
109
|
|
|
111
110
|
const EUInformation_parser: ParserLike = {
|
|
112
111
|
EUInformation: <EUInformationParser>{
|
|
113
|
-
init(this: EUInformationParser,
|
|
112
|
+
init(this: EUInformationParser, _name, _attrs, _parent, _engine) {
|
|
114
113
|
this.euInformation = new EUInformation({});
|
|
115
114
|
},
|
|
116
115
|
parser: {
|
|
@@ -150,17 +149,17 @@ const EUInformation_parser: ParserLike = {
|
|
|
150
149
|
type EnumValueParser = ReaderStateParserLike & {
|
|
151
150
|
enumValueType: EnumValueType;
|
|
152
151
|
parser: {
|
|
153
|
-
Value: ReaderStateParserLike
|
|
154
|
-
DisplayName: ReaderStateParserLike
|
|
155
|
-
Description: ReaderStateParserLike
|
|
156
|
-
}
|
|
152
|
+
Value: ReaderStateParserLike;
|
|
153
|
+
DisplayName: ReaderStateParserLike;
|
|
154
|
+
Description: ReaderStateParserLike;
|
|
155
|
+
};
|
|
157
156
|
};
|
|
158
157
|
type EnumValueParserL2 = ReaderStateParserLike & { parent: EnumValueParser } & { text: string };
|
|
159
158
|
type EnumValueParserL2L = { parent: EnumValueParser } & { localizedText: LocalizedTextOptions };
|
|
160
159
|
|
|
161
160
|
const enumValueType_parser = {
|
|
162
161
|
EnumValueType: {
|
|
163
|
-
init(this: EnumValueParser) {
|
|
162
|
+
init(this: EnumValueParser) {
|
|
164
163
|
this.enumValueType = new EnumValueType({
|
|
165
164
|
description: undefined,
|
|
166
165
|
displayName: undefined,
|
|
@@ -179,14 +178,14 @@ const enumValueType_parser = {
|
|
|
179
178
|
DisplayName: {
|
|
180
179
|
...localizedText_parser.LocalizedText,
|
|
181
180
|
finish(this: EnumValueParserL2L) {
|
|
182
|
-
this.parent.enumValueType.displayName = new LocalizedText({...this.localizedText});
|
|
181
|
+
this.parent.enumValueType.displayName = new LocalizedText({ ...this.localizedText });
|
|
183
182
|
}
|
|
184
183
|
},
|
|
185
184
|
|
|
186
185
|
Description: {
|
|
187
186
|
...localizedText_parser.LocalizedText,
|
|
188
187
|
finish(this: EnumValueParserL2L) {
|
|
189
|
-
this.parent.enumValueType.description = new LocalizedText({...this.localizedText});
|
|
188
|
+
this.parent.enumValueType.description = new LocalizedText({ ...this.localizedText });
|
|
190
189
|
}
|
|
191
190
|
}
|
|
192
191
|
},
|
|
@@ -197,8 +196,6 @@ const enumValueType_parser = {
|
|
|
197
196
|
};
|
|
198
197
|
// #endregion
|
|
199
198
|
|
|
200
|
-
|
|
201
|
-
|
|
202
199
|
export interface ExtensionObjectTypeIdParser {
|
|
203
200
|
parent: ExtensionObjectParser;
|
|
204
201
|
}
|
|
@@ -213,31 +210,30 @@ export interface ExtensionObjectParserInner {
|
|
|
213
210
|
}
|
|
214
211
|
type ExtensionObjectParser = ExtensionObjectParserInner & any;
|
|
215
212
|
export interface ExtensionObjectBodyParser {
|
|
216
|
-
|
|
217
213
|
parent: ExtensionObjectParser;
|
|
218
214
|
_cloneFragment: InternalFragmentClonerReaderState;
|
|
219
215
|
engine: any;
|
|
220
216
|
parser: {
|
|
221
|
-
Argument: ArgumentParser
|
|
222
|
-
EUInformation: EUInformationParser
|
|
223
|
-
EnumValueType: EnumValueParser
|
|
224
|
-
Range: RangeParser
|
|
217
|
+
Argument: ArgumentParser;
|
|
218
|
+
EUInformation: EUInformationParser;
|
|
219
|
+
EnumValueType: EnumValueParser;
|
|
220
|
+
Range: RangeParser;
|
|
225
221
|
};
|
|
226
222
|
}
|
|
227
223
|
|
|
228
224
|
export function makeExtensionObjectInnerParser<T>(
|
|
229
225
|
translateNodeId: (nodeId: string) => NodeId,
|
|
230
226
|
setExtensionObject: (extensionObject: ExtensionObject) => void,
|
|
231
|
-
setExtensionObjectPojo: (typeDefinition: NodeId, xmlData: string, data: T) => void
|
|
227
|
+
setExtensionObjectPojo: (typeDefinition: NodeId, xmlData: string, data: T) => void
|
|
232
228
|
): ReaderStateParserLike {
|
|
233
229
|
const a = makeExtensionObjectParser(translateNodeId, setExtensionObject, setExtensionObjectPojo);
|
|
234
230
|
return a.ExtensionObject;
|
|
235
|
-
}
|
|
231
|
+
}
|
|
236
232
|
|
|
237
233
|
export function makeExtensionObjectParser<T>(
|
|
238
234
|
translateNodeId: (nodeId: string) => NodeId,
|
|
239
235
|
setExtensionObject: (extensionObject: ExtensionObject, data: T) => void,
|
|
240
|
-
setExtensionObjectPojo: (typeDefinition: NodeId, xmlData: string, data: T) => void
|
|
236
|
+
setExtensionObjectPojo: (typeDefinition: NodeId, xmlData: string, data: T) => void
|
|
241
237
|
): ParserLike {
|
|
242
238
|
return {
|
|
243
239
|
ExtensionObject: <ExtensionObjectParser>{
|
|
@@ -266,47 +262,53 @@ export function makeExtensionObjectParser<T>(
|
|
|
266
262
|
Range: Range_parser.Range
|
|
267
263
|
},
|
|
268
264
|
startElement(this: ExtensionObjectBodyParser, elementName: string, attrs: any) {
|
|
269
|
-
if (!Object.
|
|
265
|
+
if (!Object.hasOwn(this.parser, elementName)) {
|
|
270
266
|
// treat it as a opaque XML bloc for the time being
|
|
271
267
|
// until we find the definition of this object, so we know how to interpret the fields
|
|
272
268
|
this._cloneFragment = new InternalFragmentClonerReaderState();
|
|
273
|
-
this.engine
|
|
269
|
+
this.engine?._promote(this._cloneFragment, this.engine?.currentLevel, elementName, attrs);
|
|
274
270
|
}
|
|
275
271
|
},
|
|
276
272
|
finish(this: ExtensionObjectBodyParser) {
|
|
277
|
-
|
|
278
273
|
const data = this.parent.parent as T;
|
|
279
274
|
const typeDefinitionId = this.parent.typeDefinitionId;
|
|
280
275
|
// typeDefinitionId is also the "Default XML" encoding nodeId !
|
|
281
276
|
switch (typeDefinitionId.toString()) {
|
|
282
277
|
case "i=7616": // EnumValueType
|
|
283
|
-
case "ns=0;i=7616":
|
|
278
|
+
case "ns=0;i=7616": {
|
|
284
279
|
const extensionObject = this.parser.EnumValueType.enumValueType;
|
|
285
280
|
assert(extensionObject !== null && typeof extensionObject === "object");
|
|
286
281
|
assert(extensionObject instanceof ExtensionObject);
|
|
287
282
|
setExtensionObject(extensionObject, data);
|
|
288
283
|
break;
|
|
284
|
+
}
|
|
289
285
|
case "i=297": // Arguments
|
|
290
|
-
case "ns=0;i=297":
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
286
|
+
case "ns=0;i=297":
|
|
287
|
+
{
|
|
288
|
+
const extensionObject = this.parser.Argument.argument;
|
|
289
|
+
assert(extensionObject !== null && typeof extensionObject === "object");
|
|
290
|
+
assert(extensionObject instanceof ExtensionObject);
|
|
291
|
+
setExtensionObject(extensionObject, data);
|
|
292
|
+
}
|
|
293
|
+
break;
|
|
294
|
+
case "i=888": // EUInformation
|
|
295
|
+
case "ns=0;i=888":
|
|
296
|
+
{
|
|
297
|
+
const extensionObject = this.parser.EUInformation.euInformation;
|
|
298
|
+
assert(extensionObject !== null && typeof extensionObject === "object");
|
|
299
|
+
assert(extensionObject instanceof ExtensionObject);
|
|
300
|
+
setExtensionObject(extensionObject, data);
|
|
301
|
+
}
|
|
302
|
+
break;
|
|
303
303
|
case "i=885": // Range
|
|
304
|
-
case "ns=0;i=885":
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
304
|
+
case "ns=0;i=885":
|
|
305
|
+
{
|
|
306
|
+
const extensionObject = this.parser.Range.range;
|
|
307
|
+
assert(extensionObject !== null && typeof extensionObject === "object");
|
|
308
|
+
assert(extensionObject instanceof ExtensionObject);
|
|
309
|
+
setExtensionObject(extensionObject, data);
|
|
310
|
+
}
|
|
311
|
+
break;
|
|
310
312
|
default: {
|
|
311
313
|
// c8 ignore next
|
|
312
314
|
if (!this._cloneFragment) {
|
|
@@ -319,13 +321,13 @@ export function makeExtensionObjectParser<T>(
|
|
|
319
321
|
);
|
|
320
322
|
break;
|
|
321
323
|
}
|
|
322
|
-
const bodyXML = this._cloneFragment
|
|
324
|
+
const bodyXML = this._cloneFragment?.value;
|
|
323
325
|
this._cloneFragment!.value = null;
|
|
324
326
|
|
|
325
327
|
// the "Default Xml" encoding nodeId
|
|
326
328
|
const xmlEncodingNodeId = typeDefinitionId;
|
|
327
329
|
if (typeDefinitionId.isEmpty()) {
|
|
328
|
-
debugLog(
|
|
330
|
+
debugLog(`xmlEncodingNodeId is empty for ${typeDefinitionId.toString()}`);
|
|
329
331
|
break;
|
|
330
332
|
}
|
|
331
333
|
setExtensionObjectPojo(xmlEncodingNodeId, bodyXML, data);
|
|
@@ -339,16 +341,15 @@ export function makeExtensionObjectParser<T>(
|
|
|
339
341
|
/* empty */
|
|
340
342
|
}
|
|
341
343
|
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
344
|
+
};
|
|
345
|
+
}
|
|
345
346
|
|
|
346
347
|
export function createXMLExtensionObjectDecodingTask(
|
|
347
|
-
translateNodeId: (nodeId:string) => NodeId,
|
|
348
|
-
xmlEncodingNodeId: NodeId,
|
|
349
|
-
|
|
348
|
+
translateNodeId: (nodeId: string) => NodeId,
|
|
349
|
+
xmlEncodingNodeId: NodeId,
|
|
350
|
+
bodyXML: string,
|
|
351
|
+
withDecoded: (extensionObject: ExtensionObject) => void
|
|
350
352
|
) {
|
|
351
|
-
|
|
352
353
|
const capturedXmlBody = bodyXML;
|
|
353
354
|
|
|
354
355
|
const task = async (addressSpace2: IAddressSpace) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { coerceLocalizedText,
|
|
2
|
-
import { ReaderStateParserLike } from "node-opcua-xml2json";
|
|
1
|
+
import { coerceLocalizedText, type LocalizedText, type LocalizedTextOptions } from "node-opcua-data-model";
|
|
2
|
+
import type { ReaderStateParserLike } from "node-opcua-xml2json";
|
|
3
3
|
|
|
4
4
|
type LocalizedTextParserLikeL1 = ReaderStateParserLike & {
|
|
5
5
|
localizedText: LocalizedTextOptions;
|
|
@@ -16,7 +16,7 @@ export const localizedText_parser = {
|
|
|
16
16
|
parser: {
|
|
17
17
|
Locale: {
|
|
18
18
|
finish(this: LocalizedTextParserLikeL2) {
|
|
19
|
-
this.parent.localizedText = this.parent.localizedText || { text: undefined};
|
|
19
|
+
this.parent.localizedText = this.parent.localizedText || { text: undefined };
|
|
20
20
|
this.parent.localizedText.locale = this.text.trim();
|
|
21
21
|
}
|
|
22
22
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { type NodeId, resolveNodeId } from "node-opcua-nodeid";
|
|
3
2
|
|
|
4
3
|
export const makeNodeIdParser = (_translateNodeId: (nodeId: string) => NodeId) => ({
|
|
5
4
|
NodeId: {
|
|
@@ -14,4 +13,4 @@ export const makeNodeIdParser = (_translateNodeId: (nodeId: string) => NodeId) =
|
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
|
-
});
|
|
16
|
+
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ReaderStateParserLike } from "node-opcua-xml2json";
|
|
4
|
-
|
|
1
|
+
import { coerceQualifiedName, type QualifiedName, type QualifiedNameOptions } from "node-opcua-data-model";
|
|
2
|
+
import { type NodeId, resolveNodeId } from "node-opcua-nodeid";
|
|
3
|
+
import type { ReaderStateParserLike } from "node-opcua-xml2json";
|
|
5
4
|
|
|
6
5
|
interface QualifiedNameParserL1 extends ReaderStateParserLike {
|
|
7
|
-
value: QualifiedName| null;
|
|
6
|
+
value: QualifiedName | null;
|
|
8
7
|
qualifiedName: QualifiedNameOptions;
|
|
9
8
|
}
|
|
10
9
|
|
|
@@ -13,7 +12,7 @@ export interface QualifiedNameParserL2 {
|
|
|
13
12
|
text: string;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
export const makeQualifiedNameParser = (_translateNodeId: (nodeId: string)=> NodeId) => ({
|
|
15
|
+
export const makeQualifiedNameParser = (_translateNodeId: (nodeId: string) => NodeId) => ({
|
|
17
16
|
QualifiedName: {
|
|
18
17
|
init(this: QualifiedNameParserL1) {
|
|
19
18
|
this.qualifiedName = {
|
|
@@ -37,7 +36,7 @@ export const makeQualifiedNameParser = (_translateNodeId: (nodeId: string)=> Nod
|
|
|
37
36
|
}
|
|
38
37
|
},
|
|
39
38
|
finish(this: QualifiedNameParserL1) {
|
|
40
|
-
this.value = coerceQualifiedName(this.qualifiedName)
|
|
39
|
+
this.value = coerceQualifiedName(this.qualifiedName);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
});
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IAddressSpace, UAVariable, UAVariableType } from "node-opcua-address-space-base";
|
|
3
|
-
import { coerceLocalizedText, coerceQualifiedName, LocalizedTextOptions, NodeClass, QualifiedNameOptions } from "node-opcua-data-model";
|
|
4
|
-
import { ExtensionObject } from "node-opcua-extension-object";
|
|
5
|
-
import { resolveNodeId, NodeIdLike, NodeId } from "node-opcua-nodeid";
|
|
6
|
-
import { VariantArrayType, VariantOptions } from "node-opcua-variant";
|
|
1
|
+
import type { IAddressSpace, UAVariable, UAVariableType } from "node-opcua-address-space-base";
|
|
7
2
|
import { assert } from "node-opcua-assert";
|
|
8
|
-
import {
|
|
3
|
+
import { coerceBoolean, coerceInt64, coerceUInt64, DataType, type Int64, isValidGuid, type UInt64 } from "node-opcua-basic-types";
|
|
4
|
+
import {
|
|
5
|
+
coerceLocalizedText,
|
|
6
|
+
coerceQualifiedName,
|
|
7
|
+
type LocalizedTextOptions,
|
|
8
|
+
NodeClass,
|
|
9
|
+
type QualifiedNameOptions
|
|
10
|
+
} from "node-opcua-data-model";
|
|
9
11
|
import { make_debugLog } from "node-opcua-debug";
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import type { ExtensionObject } from "node-opcua-extension-object";
|
|
13
|
+
import { type NodeId, type NodeIdLike, resolveNodeId } from "node-opcua-nodeid";
|
|
14
|
+
import { VariantArrayType, type VariantOptions } from "node-opcua-variant";
|
|
15
|
+
import type { ParserLike, ReaderStateParserLike, XmlAttributes } from "node-opcua-xml2json";
|
|
13
16
|
import {
|
|
14
17
|
createXMLExtensionObjectDecodingTask,
|
|
15
18
|
makeExtensionObjectInnerParser,
|
|
16
|
-
makeExtensionObjectParser
|
|
19
|
+
makeExtensionObjectParser
|
|
17
20
|
} from "./extension_object_parser";
|
|
21
|
+
import { localizedText_parser } from "./localized_text_parser";
|
|
18
22
|
import { makeNodeIdParser } from "./nodeid_parser";
|
|
23
|
+
import { makeQualifiedNameParser } from "./qualified_name_parser";
|
|
19
24
|
|
|
20
25
|
const debugLog = make_debugLog(__dirname);
|
|
21
26
|
|
|
@@ -28,20 +33,17 @@ type IBasicReaderStateParserLike<T> = ReaderStateParserLike & {
|
|
|
28
33
|
function BasicType_parser<T>(dataType: string, parseFunc: (this: { value: T | undefined }, text: string) => any): ParserLike {
|
|
29
34
|
const _parser: Record<string, ReaderStateParserLike> = {};
|
|
30
35
|
const a = {
|
|
31
|
-
init(this: IBasicReaderStateParserLike<T>,
|
|
36
|
+
init(this: IBasicReaderStateParserLike<T>, _name: string, _attrs: XmlAttributes, _parent: any, _endElement: any) {
|
|
32
37
|
this.value = undefined;
|
|
33
38
|
},
|
|
34
39
|
finish(this: IBasicReaderStateParserLike<T>) {
|
|
35
40
|
this.value = parseFunc.call(this, this.text);
|
|
36
41
|
}
|
|
37
|
-
}
|
|
42
|
+
};
|
|
38
43
|
_parser[dataType] = a as ReaderStateParserLike;
|
|
39
44
|
return _parser as ParserLike;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
47
|
function ListOf<T>(_setValue: (data: VariantOptions) => void, dataType: string, parseFunc: any) {
|
|
46
48
|
return {
|
|
47
49
|
init(this: ListOfTParser<T>) {
|
|
@@ -57,32 +59,27 @@ function ListOf<T>(_setValue: (data: VariantOptions) => void, dataType: string,
|
|
|
57
59
|
value: this.listData
|
|
58
60
|
});
|
|
59
61
|
},
|
|
60
|
-
endElement(this: ListOfTParser<T>,
|
|
62
|
+
endElement(this: ListOfTParser<T>, _element: string) {
|
|
61
63
|
this.listData.push(this.parser[dataType].value);
|
|
62
64
|
}
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
|
|
67
68
|
interface Parser {
|
|
68
69
|
parent: Parser | any;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
function installExtensionObjectListInitializationPostTask(
|
|
72
|
+
function _installExtensionObjectListInitializationPostTask(
|
|
74
73
|
postTasks2_AssignedExtensionObjectToDataValue: Task[],
|
|
75
|
-
element: ListOfExtensionObjectParser
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
element: ListOfExtensionObjectParser
|
|
75
|
+
) {
|
|
79
76
|
let listExtensionObject = element.listExtensionObject;
|
|
80
77
|
let nodeId = element.parent.parent.obj.nodeId;
|
|
81
78
|
assert(nodeId, "expecting a nodeid");
|
|
82
79
|
const task = async (addressSpace2: IAddressSpace) => {
|
|
83
80
|
const node = addressSpace2.findNode(nodeId)!;
|
|
84
81
|
if (!node) {
|
|
85
|
-
debugLog(
|
|
82
|
+
debugLog(`Cannot find node with nodeId ${nodeId}. may be the node was marked as deprecated`);
|
|
86
83
|
} else if (node.nodeClass === NodeClass.Variable) {
|
|
87
84
|
const v = node as UAVariable;
|
|
88
85
|
assert(v.getBasicDataType() === DataType.ExtensionObject, "expecting an extension object");
|
|
@@ -99,9 +96,6 @@ function installExtensionObjectListInitializationPostTask(
|
|
|
99
96
|
postTasks2_AssignedExtensionObjectToDataValue.push(task);
|
|
100
97
|
}
|
|
101
98
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
99
|
export interface ListOfTParser<T> extends Parser {
|
|
106
100
|
listData: T[];
|
|
107
101
|
parent: Parser;
|
|
@@ -123,9 +117,6 @@ function parser2<T>(_setValue: (data: VariantOptions) => void, type: string, p:
|
|
|
123
117
|
const parseUInt64 = (str: string): UInt64 => coerceUInt64(str);
|
|
124
118
|
const parseInt64 = (str: string): Int64 => coerceInt64(str);
|
|
125
119
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
120
|
export interface ListOfExtensionObjectParser extends ListOfTParser<ExtensionObject> {
|
|
130
121
|
isDeferred: boolean;
|
|
131
122
|
listExtensionObject: (ExtensionObject | null)[];
|
|
@@ -135,19 +126,16 @@ export interface ListOfExtensionObjectParser extends ListOfTParser<ExtensionObje
|
|
|
135
126
|
};
|
|
136
127
|
}
|
|
137
128
|
|
|
138
|
-
|
|
139
|
-
|
|
140
129
|
export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
141
130
|
setValue: (self: T, data: VariantOptions) => void,
|
|
142
131
|
setDeferredValue: (self: T, data: VariantOptions, deferedTask: () => ExtensionObject | ExtensionObject[] | null) => void,
|
|
143
132
|
postExtensionObjectDecoding: (task: (addressSpace: IAddressSpace) => Promise<void>) => void,
|
|
144
|
-
translateNodeId: (nodeId: string) => NodeId
|
|
133
|
+
translateNodeId: (nodeId: string) => NodeId
|
|
145
134
|
): ReaderStateParserLike {
|
|
146
|
-
|
|
147
135
|
let self: T;
|
|
148
136
|
const setValue2 = (data: VariantOptions) => {
|
|
149
137
|
setValue(self, data);
|
|
150
|
-
}
|
|
138
|
+
};
|
|
151
139
|
const reader = {
|
|
152
140
|
init(this: ReaderStateParserLike) {
|
|
153
141
|
/* empty */
|
|
@@ -159,7 +147,7 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
159
147
|
finish(this: any) {
|
|
160
148
|
setValue2({
|
|
161
149
|
dataType: DataType.QualifiedName,
|
|
162
|
-
value: coerceQualifiedName({...this.qualifiedName})
|
|
150
|
+
value: coerceQualifiedName({ ...this.qualifiedName })
|
|
163
151
|
});
|
|
164
152
|
}
|
|
165
153
|
},
|
|
@@ -168,7 +156,7 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
168
156
|
finish(this: any) {
|
|
169
157
|
setValue2({
|
|
170
158
|
dataType: DataType.LocalizedText,
|
|
171
|
-
value: coerceLocalizedText({...this.localizedText})
|
|
159
|
+
value: coerceLocalizedText({ ...this.localizedText })
|
|
172
160
|
});
|
|
173
161
|
}
|
|
174
162
|
},
|
|
@@ -272,8 +260,7 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
272
260
|
value: extensionObject
|
|
273
261
|
});
|
|
274
262
|
},
|
|
275
|
-
(xmlEncodingNodeId: NodeId, bodyXML: string,
|
|
276
|
-
|
|
263
|
+
(xmlEncodingNodeId: NodeId, bodyXML: string, _data) => {
|
|
277
264
|
let _capturedExtensionObject: ExtensionObject | ExtensionObject[] | null = null;
|
|
278
265
|
// extension object creation will be postponed
|
|
279
266
|
const task0 = createXMLExtensionObjectDecodingTask(
|
|
@@ -282,13 +269,18 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
282
269
|
bodyXML,
|
|
283
270
|
(extensionObject: ExtensionObject) => {
|
|
284
271
|
_capturedExtensionObject = extensionObject;
|
|
285
|
-
}
|
|
272
|
+
}
|
|
273
|
+
);
|
|
286
274
|
postExtensionObjectDecoding(task0);
|
|
287
|
-
setDeferredValue(
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
275
|
+
setDeferredValue(
|
|
276
|
+
self,
|
|
277
|
+
{
|
|
278
|
+
dataType: DataType.ExtensionObject,
|
|
279
|
+
arrayType: VariantArrayType.Scalar,
|
|
280
|
+
value: null
|
|
281
|
+
},
|
|
282
|
+
() => _capturedExtensionObject
|
|
283
|
+
);
|
|
292
284
|
}
|
|
293
285
|
),
|
|
294
286
|
|
|
@@ -312,14 +304,15 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
312
304
|
self.listExtensionObject.push(null);
|
|
313
305
|
const index = self.listExtensionObject.length - 1;
|
|
314
306
|
assert(index >= 0);
|
|
315
|
-
|
|
307
|
+
const listExtensionObject = self.listExtensionObject;
|
|
316
308
|
const task0 = createXMLExtensionObjectDecodingTask(
|
|
317
309
|
translateNodeId,
|
|
318
310
|
xmlEncodingNodeId,
|
|
319
311
|
bodyXML,
|
|
320
312
|
(extensionObject: ExtensionObject) => {
|
|
321
313
|
listExtensionObject[index] = extensionObject;
|
|
322
|
-
}
|
|
314
|
+
}
|
|
315
|
+
);
|
|
323
316
|
postExtensionObjectDecoding(task0);
|
|
324
317
|
}
|
|
325
318
|
),
|
|
@@ -333,17 +326,18 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
333
326
|
} else {
|
|
334
327
|
// postpone the creation of the extension object
|
|
335
328
|
const listExtensionObject: ExtensionObject[] = this.listExtensionObject as any;
|
|
336
|
-
setDeferredValue(
|
|
329
|
+
setDeferredValue(
|
|
330
|
+
self,
|
|
337
331
|
{
|
|
338
332
|
arrayType: VariantArrayType.Array,
|
|
339
333
|
dataType: DataType.ExtensionObject,
|
|
340
334
|
value: null
|
|
341
335
|
},
|
|
342
|
-
() => listExtensionObject
|
|
336
|
+
() => listExtensionObject
|
|
343
337
|
);
|
|
344
338
|
this.listExtensionObject = [];
|
|
345
339
|
}
|
|
346
|
-
}
|
|
340
|
+
}
|
|
347
341
|
},
|
|
348
342
|
|
|
349
343
|
ListOfLocalizedText: {
|
|
@@ -385,7 +379,7 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
385
379
|
this.listData = [];
|
|
386
380
|
},
|
|
387
381
|
parser: makeNodeIdParser(translateNodeId),
|
|
388
|
-
endElement(this: ListOfTParser<NodeIdLike>,
|
|
382
|
+
endElement(this: ListOfTParser<NodeIdLike>, _elementName: string) {
|
|
389
383
|
this.listData.push(this.parser.NodeId.nodeId);
|
|
390
384
|
},
|
|
391
385
|
finish(this: ListOfTParser<NodeIdLike>) {
|
|
@@ -419,8 +413,7 @@ export function makeVariantReader<T extends ReaderStateParserLike>(
|
|
|
419
413
|
|
|
420
414
|
ListOfString: ListOf<string>(setValue2, "String", (value: string) => value),
|
|
421
415
|
|
|
422
|
-
ListOfXmlElement: ListOf<string>(setValue2, "XmlElement", (value: string) => value)
|
|
423
|
-
|
|
416
|
+
ListOfXmlElement: ListOf<string>(setValue2, "XmlElement", (value: string) => value)
|
|
424
417
|
}
|
|
425
418
|
};
|
|
426
419
|
return reader as any as ReaderStateParserLike;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveNodeId } from "node-opcua-nodeid";
|
|
2
|
-
import { g_promotableObject, Promoter } from "./namespace_post_step";
|
|
2
|
+
import { g_promotableObject, type Promoter } from "./namespace_post_step";
|
|
3
3
|
|
|
4
4
|
export function registerNodePromoter(standardNodeId: number, promoter: Promoter, onInstanceOnly = false): void {
|
|
5
|
-
g_promotableObject.set(resolveNodeId(standardNodeId).toString(),{ promoter, onInstanceOnly });
|
|
5
|
+
g_promotableObject.set(resolveNodeId(standardNodeId).toString(), { promoter, onInstanceOnly });
|
|
6
6
|
}
|
package/source/namespace.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { INamespace } from "node-opcua-address-space-base";
|
|
1
|
+
import type { INamespace } from "node-opcua-address-space-base";
|
|
2
2
|
|
|
3
|
-
import { INamespaceAlarmAndCondition } from "./namespace_alarm_and_condition";
|
|
4
|
-
import { INamespaceDataAccess } from "./namespace_data_access";
|
|
5
|
-
import { INamespaceMachineState } from "./namespace_machine_state";
|
|
3
|
+
import type { INamespaceAlarmAndCondition } from "./namespace_alarm_and_condition";
|
|
4
|
+
import type { INamespaceDataAccess } from "./namespace_data_access";
|
|
5
|
+
import type { INamespaceMachineState } from "./namespace_machine_state";
|
|
6
6
|
|
|
7
7
|
export interface Namespace extends INamespace, INamespaceAlarmAndCondition, INamespaceDataAccess, INamespaceMachineState {}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { VariantOptions } from "node-opcua-variant";
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
1
|
+
import type { UAEventType } from "node-opcua-address-space-base";
|
|
2
|
+
import type { NodeId } from "node-opcua-nodeid";
|
|
3
|
+
import type { VariantOptions } from "node-opcua-variant";
|
|
4
|
+
import type { UAOffNormalAlarmEx } from "../src/alarms_and_conditions/ua_off_normal_alarm_impl";
|
|
5
|
+
import type { InstantiateAlarmConditionOptions } from "./interfaces/alarms_and_conditions/instantiate_alarm_condition_options";
|
|
6
|
+
import type { InstantiateConditionOptions } from "./interfaces/alarms_and_conditions/instantiate_condition_options";
|
|
7
|
+
import type { InstantiateExclusiveDeviationAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options";
|
|
8
|
+
import type { InstantiateExclusiveLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options";
|
|
9
|
+
import type { InstantiateLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_limit_alarm_options";
|
|
10
|
+
import type { InstantiateNonExclusiveDeviationAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options";
|
|
11
|
+
import type { InstantiateNonExclusiveLimitAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options";
|
|
12
|
+
import type { InstantiateOffNormalAlarmOptions } from "./interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options";
|
|
13
|
+
import type { UAAcknowledgeableConditionEx } from "./interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex";
|
|
14
|
+
import type { UAAlarmConditionEx } from "./interfaces/alarms_and_conditions/ua_alarm_condition_ex";
|
|
15
|
+
import type { UAConditionEx } from "./interfaces/alarms_and_conditions/ua_condition_ex";
|
|
16
|
+
import type { UADiscreteAlarmEx } from "./interfaces/alarms_and_conditions/ua_discrete_alarm_ex";
|
|
17
|
+
import type { UAExclusiveDeviationAlarmEx } from "./interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex";
|
|
18
|
+
import type { UAExclusiveLimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex";
|
|
19
|
+
import type { UALimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_limit_alarm_ex";
|
|
20
|
+
import type { UANonExclusiveDeviationAlarmEx } from "./interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex";
|
|
21
|
+
import type { UANonExclusiveLimitAlarmEx } from "./interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex";
|
|
22
22
|
|
|
23
23
|
export interface INamespaceAlarmAndCondition {
|
|
24
24
|
// --- Alarms & Conditions -------------------------------------------------
|
|
25
25
|
instantiateCondition(
|
|
26
26
|
conditionTypeId: UAEventType | NodeId | string,
|
|
27
|
-
options:
|
|
27
|
+
options: InstantiateConditionOptions,
|
|
28
28
|
data?: Record<string, VariantOptions>
|
|
29
29
|
): UAConditionEx;
|
|
30
30
|
|