node-opcua-address-space 2.183.1 → 2.184.1
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/api/helpers/adjust_browse_direction.ts +1 -1
- package/api/helpers/argument_list.ts +9 -9
- package/api/helpers/coerce_enum_value.ts +1 -0
- package/api/helpers/dump_tools.ts +1 -1
- package/api/index.ts +2 -1
- package/api/interfaces/data_access/ua_multistate_discrete_ex.ts +1 -1
- package/api/interfaces/nodeset_loader_options.ts +17 -0
- package/api/loader/decode_xml_extension_object.ts +1 -1
- package/api/loader/ensure_datatype_extracted.ts +73 -37
- package/api/loader/generateAddressSpaceRaw.ts +32 -22
- package/api/loader/load_nodeset2.ts +2 -2
- package/api/loader/namespace_post_step.ts +1 -1
- package/api/loader/narrow_instance_datatypes.ts +22 -9
- package/api/loader/nodeset_image_codec.ts +26 -12
- package/api/loader/nodeset_record_applier.ts +1 -1
- package/api/loader/nodeset_xml_producer.ts +8 -6
- package/api/loader/parsers/extension_object_parser.ts +3 -3
- package/api/pseudo_session.ts +1 -1
- package/bin/{nodeset_equivalence.js → nodeset_equivalence.cjs} +1 -1
- package/bin/{opcua-nodeset-image.js → opcua-nodeset-image.cjs} +1 -1
- package/bin/{opcua-nodeset-live.js → opcua-nodeset-live.cjs} +2 -2
- package/dist/api/address_space_public.d.ts +1 -0
- package/dist/api/address_space_public.d.ts.map +1 -0
- package/dist/api/address_space_public.js +2 -5
- package/dist/api/address_space_public.js.map +1 -1
- package/dist/api/address_space_ts.d.ts +1 -0
- package/dist/api/address_space_ts.d.ts.map +1 -0
- package/dist/api/address_space_ts.js +2 -5
- package/dist/api/address_space_ts.js.map +1 -1
- package/dist/api/continuation_points/continuation_point_manager.d.ts +1 -0
- package/dist/api/continuation_points/continuation_point_manager.d.ts.map +1 -0
- package/dist/api/continuation_points/continuation_point_manager.js +13 -17
- package/dist/api/continuation_points/continuation_point_manager.js.map +1 -1
- package/dist/api/helpers/adjust_browse_direction.d.ts +1 -0
- package/dist/api/helpers/adjust_browse_direction.d.ts.map +1 -0
- package/dist/api/helpers/adjust_browse_direction.js +2 -5
- package/dist/api/helpers/adjust_browse_direction.js.map +1 -1
- package/dist/api/helpers/argument_list.d.ts +1 -0
- package/dist/api/helpers/argument_list.d.ts.map +1 -0
- package/dist/api/helpers/argument_list.js +61 -69
- package/dist/api/helpers/argument_list.js.map +1 -1
- package/dist/api/helpers/call_helpers.d.ts +1 -0
- package/dist/api/helpers/call_helpers.d.ts.map +1 -0
- package/dist/api/helpers/call_helpers.js +25 -28
- package/dist/api/helpers/call_helpers.js.map +1 -1
- package/dist/api/helpers/coerce_enum_value.d.ts +1 -0
- package/dist/api/helpers/coerce_enum_value.d.ts.map +1 -0
- package/dist/api/helpers/coerce_enum_value.js +15 -17
- package/dist/api/helpers/coerce_enum_value.js.map +1 -1
- package/dist/api/helpers/dump_tools.d.ts +1 -0
- package/dist/api/helpers/dump_tools.d.ts.map +1 -0
- package/dist/api/helpers/dump_tools.js +19 -29
- package/dist/api/helpers/dump_tools.js.map +1 -1
- package/dist/api/helpers/ensure_secure_access.d.ts +1 -0
- package/dist/api/helpers/ensure_secure_access.d.ts.map +1 -0
- package/dist/api/helpers/ensure_secure_access.js +24 -28
- package/dist/api/helpers/ensure_secure_access.js.map +1 -1
- package/dist/api/helpers/make_optionals_map.d.ts +1 -0
- package/dist/api/helpers/make_optionals_map.d.ts.map +1 -0
- package/dist/api/helpers/make_optionals_map.js +1 -4
- package/dist/api/helpers/make_optionals_map.js.map +1 -1
- package/dist/api/helpers/multiform_func.d.ts +1 -0
- package/dist/api/helpers/multiform_func.d.ts.map +1 -0
- package/dist/api/helpers/multiform_func.js +4 -8
- package/dist/api/helpers/multiform_func.js.map +1 -1
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.d.ts.map +1 -0
- package/dist/api/helpers/resolve_opaque_on_address_space.js +10 -13
- package/dist/api/helpers/resolve_opaque_on_address_space.js.map +1 -1
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +93 -218
- package/dist/api/index.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js +2 -5
- package/dist/api/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -1
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/condition_snapshot.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/deviation_stuff.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/install_setpoint_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_condition_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/promote_to_alarm_options.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_base_event_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_condition_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +1 -2
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts.map +1 -0
- package/dist/api/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts +2 -1
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_multistate_value_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_two_state_discrete_ex.js +1 -2
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.d.ts.map +1 -0
- package/dist/api/interfaces/data_access/ua_y_array_item_ex.js +1 -2
- package/dist/api/interfaces/extension_object_constructor.d.ts +1 -0
- package/dist/api/interfaces/extension_object_constructor.d.ts.map +1 -0
- package/dist/api/interfaces/extension_object_constructor.js +1 -2
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_condition_variable_type_setter_options.js +1 -2
- package/dist/api/interfaces/i_set_state_options.d.ts +1 -0
- package/dist/api/interfaces/i_set_state_options.d.ts.map +1 -0
- package/dist/api/interfaces/i_set_state_options.js +1 -2
- package/dist/api/interfaces/nodeset_loader_options.d.ts +18 -0
- package/dist/api/interfaces/nodeset_loader_options.d.ts.map +1 -0
- package/dist/api/interfaces/nodeset_loader_options.js +1 -2
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_finite_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_program_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_shelved_state_machine_ex.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js +1 -2
- package/dist/api/interfaces/state_machine/ua_state_machine_type.js.map +1 -1
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.d.ts.map +1 -0
- package/dist/api/interfaces/state_machine/ua_transition_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.d.ts.map +1 -0
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js +1 -2
- package/dist/api/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -1
- package/dist/api/loader/decode_xml_extension_object.d.ts +1 -0
- package/dist/api/loader/decode_xml_extension_object.d.ts.map +1 -0
- package/dist/api/loader/decode_xml_extension_object.js +13 -17
- package/dist/api/loader/decode_xml_extension_object.js.map +1 -1
- package/dist/api/loader/ensure_datatype_extracted.d.ts +1 -0
- package/dist/api/loader/ensure_datatype_extracted.d.ts.map +1 -0
- package/dist/api/loader/ensure_datatype_extracted.js +83 -52
- package/dist/api/loader/ensure_datatype_extracted.js.map +1 -1
- package/dist/api/loader/generateAddressSpaceRaw.d.ts +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.d.ts.map +1 -0
- package/dist/api/loader/generateAddressSpaceRaw.js +76 -74
- package/dist/api/loader/generateAddressSpaceRaw.js.map +1 -1
- package/dist/api/loader/load_nodeset2.d.ts +1 -0
- package/dist/api/loader/load_nodeset2.d.ts.map +1 -0
- package/dist/api/loader/load_nodeset2.js +44 -51
- package/dist/api/loader/load_nodeset2.js.map +1 -1
- package/dist/api/loader/make_semver_compatible.d.ts +1 -0
- package/dist/api/loader/make_semver_compatible.d.ts.map +1 -0
- package/dist/api/loader/make_semver_compatible.js +1 -4
- package/dist/api/loader/make_semver_compatible.js.map +1 -1
- package/dist/api/loader/make_xml_extension_object_parser.d.ts +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/make_xml_extension_object_parser.js +37 -40
- package/dist/api/loader/make_xml_extension_object_parser.js.map +1 -1
- package/dist/api/loader/namespace_post_step.d.ts +1 -0
- package/dist/api/loader/namespace_post_step.d.ts.map +1 -0
- package/dist/api/loader/namespace_post_step.js +12 -17
- package/dist/api/loader/namespace_post_step.js.map +1 -1
- package/dist/api/loader/narrow_instance_datatypes.d.ts +1 -0
- package/dist/api/loader/narrow_instance_datatypes.d.ts.map +1 -0
- package/dist/api/loader/narrow_instance_datatypes.js +38 -28
- package/dist/api/loader/narrow_instance_datatypes.js.map +1 -1
- package/dist/api/loader/nodeset_builtin_formats.d.ts +1 -0
- package/dist/api/loader/nodeset_builtin_formats.d.ts.map +1 -0
- package/dist/api/loader/nodeset_builtin_formats.js +20 -25
- package/dist/api/loader/nodeset_builtin_formats.js.map +1 -1
- package/dist/api/loader/nodeset_format.d.ts +1 -0
- package/dist/api/loader/nodeset_format.d.ts.map +1 -0
- package/dist/api/loader/nodeset_format.js +4 -10
- package/dist/api/loader/nodeset_format.js.map +1 -1
- package/dist/api/loader/nodeset_image.d.ts +1 -0
- package/dist/api/loader/nodeset_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image.js +38 -54
- package/dist/api/loader/nodeset_image.js.map +1 -1
- package/dist/api/loader/nodeset_image_codec.d.ts +1 -0
- package/dist/api/loader/nodeset_image_codec.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_codec.js +118 -116
- package/dist/api/loader/nodeset_image_codec.js.map +1 -1
- package/dist/api/loader/nodeset_image_store.d.ts +1 -0
- package/dist/api/loader/nodeset_image_store.d.ts.map +1 -0
- package/dist/api/loader/nodeset_image_store.js +5 -11
- package/dist/api/loader/nodeset_image_store.js.map +1 -1
- package/dist/api/loader/nodeset_record.d.ts +1 -0
- package/dist/api/loader/nodeset_record.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record.js +3 -7
- package/dist/api/loader/nodeset_record.js.map +1 -1
- package/dist/api/loader/nodeset_record_applier.d.ts +1 -0
- package/dist/api/loader/nodeset_record_applier.d.ts.map +1 -0
- package/dist/api/loader/nodeset_record_applier.js +89 -97
- package/dist/api/loader/nodeset_record_applier.js.map +1 -1
- package/dist/api/loader/nodeset_records_to_xml.d.ts +1 -0
- package/dist/api/loader/nodeset_records_to_xml.d.ts.map +1 -0
- package/dist/api/loader/nodeset_records_to_xml.js +82 -88
- package/dist/api/loader/nodeset_records_to_xml.js.map +1 -1
- package/dist/api/loader/nodeset_source.d.ts +1 -0
- package/dist/api/loader/nodeset_source.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source.js +14 -21
- package/dist/api/loader/nodeset_source.js.map +1 -1
- package/dist/api/loader/nodeset_source_helpers.d.ts +1 -0
- package/dist/api/loader/nodeset_source_helpers.d.ts.map +1 -0
- package/dist/api/loader/nodeset_source_helpers.js +2 -6
- package/dist/api/loader/nodeset_source_helpers.js.map +1 -1
- package/dist/api/loader/nodeset_to_image.d.ts +1 -0
- package/dist/api/loader/nodeset_to_image.d.ts.map +1 -0
- package/dist/api/loader/nodeset_to_image.js +12 -15
- package/dist/api/loader/nodeset_to_image.js.map +1 -1
- package/dist/api/loader/nodeset_xml_header.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_header.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_header.js +9 -14
- package/dist/api/loader/nodeset_xml_header.js.map +1 -1
- package/dist/api/loader/nodeset_xml_primitives.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_primitives.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_primitives.js +32 -53
- package/dist/api/loader/nodeset_xml_primitives.js.map +1 -1
- package/dist/api/loader/nodeset_xml_producer.d.ts +1 -0
- package/dist/api/loader/nodeset_xml_producer.d.ts.map +1 -0
- package/dist/api/loader/nodeset_xml_producer.js +49 -51
- package/dist/api/loader/nodeset_xml_producer.js.map +1 -1
- package/dist/api/loader/parsers/extension_object_parser.d.ts +1 -0
- package/dist/api/loader/parsers/extension_object_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/extension_object_parser.js +49 -57
- package/dist/api/loader/parsers/extension_object_parser.js.map +1 -1
- package/dist/api/loader/parsers/localized_text_parser.d.ts +1 -0
- package/dist/api/loader/parsers/localized_text_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/localized_text_parser.js +3 -6
- package/dist/api/loader/parsers/localized_text_parser.js.map +1 -1
- package/dist/api/loader/parsers/nodeid_parser.d.ts +1 -0
- package/dist/api/loader/parsers/nodeid_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/nodeid_parser.js +3 -7
- package/dist/api/loader/parsers/nodeid_parser.js.map +1 -1
- package/dist/api/loader/parsers/qualified_name_parser.d.ts +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/qualified_name_parser.js +5 -9
- package/dist/api/loader/parsers/qualified_name_parser.js.map +1 -1
- package/dist/api/loader/parsers/variant_parser.d.ts +1 -0
- package/dist/api/loader/parsers/variant_parser.d.ts.map +1 -0
- package/dist/api/loader/parsers/variant_parser.js +59 -63
- package/dist/api/loader/parsers/variant_parser.js.map +1 -1
- package/dist/api/loader/register_node_promoter.d.ts +1 -0
- package/dist/api/loader/register_node_promoter.d.ts.map +1 -0
- package/dist/api/loader/register_node_promoter.js +4 -7
- package/dist/api/loader/register_node_promoter.js.map +1 -1
- package/dist/api/namespace.d.ts +1 -0
- package/dist/api/namespace.d.ts.map +1 -0
- package/dist/api/namespace.js +1 -2
- package/dist/api/namespace_alarm_and_condition.d.ts +1 -0
- package/dist/api/namespace_alarm_and_condition.d.ts.map +1 -0
- package/dist/api/namespace_alarm_and_condition.js +1 -2
- package/dist/api/namespace_data_access.d.ts +1 -0
- package/dist/api/namespace_data_access.d.ts.map +1 -0
- package/dist/api/namespace_data_access.js +1 -2
- package/dist/api/namespace_machine_state.d.ts +1 -0
- package/dist/api/namespace_machine_state.d.ts.map +1 -0
- package/dist/api/namespace_machine_state.js +1 -2
- package/dist/api/namespace_of.d.ts +1 -0
- package/dist/api/namespace_of.d.ts.map +1 -0
- package/dist/api/namespace_of.js +1 -4
- package/dist/api/namespace_of.js.map +1 -1
- package/dist/api/pseudo_session.d.ts +1 -0
- package/dist/api/pseudo_session.d.ts.map +1 -0
- package/dist/api/pseudo_session.js +56 -62
- package/dist/api/pseudo_session.js.map +1 -1
- package/dist/api/session_context.d.ts +1 -0
- package/dist/api/session_context.d.ts.map +1 -0
- package/dist/api/session_context.js +60 -68
- package/dist/api/session_context.js.map +1 -1
- package/dist/api/set_namespace_meta_data.d.ts +1 -0
- package/dist/api/set_namespace_meta_data.d.ts.map +1 -0
- package/dist/api/set_namespace_meta_data.js +10 -13
- package/dist/api/set_namespace_meta_data.js.map +1 -1
- package/dist/api/ua_addin.d.ts +1 -0
- package/dist/api/ua_addin.d.ts.map +1 -0
- package/dist/api/ua_addin.js +9 -13
- package/dist/api/ua_addin.js.map +1 -1
- package/dist/api/ua_interface.d.ts +1 -0
- package/dist/api/ua_interface.d.ts.map +1 -0
- package/dist/api/ua_interface.js +5 -8
- package/dist/api/ua_interface.js.map +1 -1
- package/dist/api/ua_root_folder.d.ts +1 -0
- package/dist/api/ua_root_folder.d.ts.map +1 -0
- package/dist/api/ua_root_folder.js +1 -2
- package/dist/api/ua_two_state_variable_ex.d.ts +1 -0
- package/dist/api/ua_two_state_variable_ex.d.ts.map +1 -0
- package/dist/api/ua_two_state_variable_ex.js +1 -2
- package/dist/api/xml_writer.d.ts +1 -0
- package/dist/api/xml_writer.d.ts.map +1 -0
- package/dist/api/xml_writer.js +1 -2
- package/dist/impl/_instantiate_helpers.d.ts +1 -0
- package/dist/impl/_instantiate_helpers.d.ts.map +1 -0
- package/dist/impl/_instantiate_helpers.js +25 -31
- package/dist/impl/_instantiate_helpers.js.map +1 -1
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.d.ts.map +1 -0
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js +16 -20
- package/dist/impl/_mandatory_child_or_requested_optional_filter.js.map +1 -1
- package/dist/impl/address_space.d.ts +40 -0
- package/dist/impl/address_space.d.ts.map +1 -0
- package/dist/impl/address_space.js +246 -189
- package/dist/impl/address_space.js.map +1 -1
- package/dist/impl/address_space_change_event_tools.d.ts +1 -0
- package/dist/impl/address_space_change_event_tools.d.ts.map +1 -0
- package/dist/impl/address_space_change_event_tools.js +31 -29
- package/dist/impl/address_space_change_event_tools.js.map +1 -1
- package/dist/impl/address_space_private.d.ts +2 -0
- package/dist/impl/address_space_private.d.ts.map +1 -0
- package/dist/impl/address_space_private.js +1 -2
- package/dist/impl/address_space_private.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition.js +1 -2
- package/dist/impl/alarms_and_conditions/condition.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_info_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/condition_info_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js +77 -81
- package/dist/impl/alarms_and_conditions/condition_snapshot_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js +14 -20
- package/dist/impl/alarms_and_conditions/deviation_alarm_helper.js.map +1 -1
- package/dist/impl/alarms_and_conditions/index.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/index.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/index.js +13 -29
- package/dist/impl/alarms_and_conditions/index.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +60 -65
- package/dist/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js +53 -59
- package/dist/impl/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js +12 -16
- package/dist/impl/alarms_and_conditions/ua_base_event_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +34 -39
- package/dist/impl/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js +140 -148
- package/dist/impl/alarms_and_conditions/ua_condition_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js +6 -10
- package/dist/impl/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +14 -18
- package/dist/impl/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +2 -6
- package/dist/impl/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js +35 -39
- package/dist/impl/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +17 -21
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +27 -31
- package/dist/impl/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js +18 -22
- package/dist/impl/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts.map +1 -0
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +3 -7
- package/dist/impl/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -1
- package/dist/impl/apply_condition_refresh.d.ts +1 -0
- package/dist/impl/apply_condition_refresh.d.ts.map +1 -0
- package/dist/impl/apply_condition_refresh.js +1 -4
- package/dist/impl/apply_condition_refresh.js.map +1 -1
- package/dist/impl/base_node_impl.d.ts +1 -0
- package/dist/impl/base_node_impl.d.ts.map +1 -0
- package/dist/impl/base_node_impl.js +279 -292
- package/dist/impl/base_node_impl.js.map +1 -1
- package/dist/impl/base_node_private.d.ts +1 -0
- package/dist/impl/base_node_private.d.ts.map +1 -0
- package/dist/impl/base_node_private.js +168 -199
- package/dist/impl/base_node_private.js.map +1 -1
- package/dist/impl/bulk_load_clock.d.ts +35 -0
- package/dist/impl/bulk_load_clock.d.ts.map +1 -0
- package/dist/impl/bulk_load_clock.js +58 -0
- package/dist/impl/bulk_load_clock.js.map +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts +1 -0
- package/dist/impl/check_value_rank_compatibility.d.ts.map +1 -0
- package/dist/impl/check_value_rank_compatibility.js +1 -4
- package/dist/impl/check_value_rank_compatibility.js.map +1 -1
- package/dist/impl/child_accessors.d.ts +1 -0
- package/dist/impl/child_accessors.d.ts.map +1 -0
- package/dist/impl/child_accessors.js +10 -20
- package/dist/impl/child_accessors.js.map +1 -1
- package/dist/impl/data_access/add_dataItem_stuff.d.ts +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.d.ts.map +1 -0
- package/dist/impl/data_access/add_dataItem_stuff.js +6 -9
- package/dist/impl/data_access/add_dataItem_stuff.js.map +1 -1
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.d.ts.map +1 -0
- package/dist/impl/data_access/adjust_datavalue_status_code.js +9 -12
- package/dist/impl/data_access/adjust_datavalue_status_code.js.map +1 -1
- package/dist/impl/data_access/semantics_changed.d.ts +12 -0
- package/dist/impl/data_access/semantics_changed.d.ts.map +1 -0
- package/dist/impl/data_access/semantics_changed.js +44 -10
- package/dist/impl/data_access/semantics_changed.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts +2 -1
- package/dist/impl/data_access/ua_multistate_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_discrete_impl.js +35 -41
- package/dist/impl/data_access/ua_multistate_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js +71 -78
- package/dist/impl/data_access/ua_multistate_value_discrete_impl.js.map +1 -1
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.d.ts.map +1 -0
- package/dist/impl/data_access/ua_two_state_discrete_impl.js +27 -36
- package/dist/impl/data_access/ua_two_state_discrete_impl.js.map +1 -1
- package/dist/impl/event_data.d.ts +1 -0
- package/dist/impl/event_data.d.ts.map +1 -0
- package/dist/impl/event_data.js +15 -19
- package/dist/impl/event_data.js.map +1 -1
- package/dist/impl/event_layout.d.ts +1 -0
- package/dist/impl/event_layout.d.ts.map +1 -0
- package/dist/impl/event_layout.js +12 -16
- package/dist/impl/event_layout.js.map +1 -1
- package/dist/impl/extension_object_array_node.d.ts +1 -0
- package/dist/impl/extension_object_array_node.d.ts.map +1 -0
- package/dist/impl/extension_object_array_node.js +47 -53
- package/dist/impl/extension_object_array_node.js.map +1 -1
- package/dist/impl/get_basic_datatype.d.ts +1 -0
- package/dist/impl/get_basic_datatype.d.ts.map +1 -0
- package/dist/impl/get_basic_datatype.js +6 -10
- package/dist/impl/get_basic_datatype.js.map +1 -1
- package/dist/impl/handle_hierarchy_parent.d.ts +1 -0
- package/dist/impl/handle_hierarchy_parent.d.ts.map +1 -0
- package/dist/impl/handle_hierarchy_parent.js +26 -30
- package/dist/impl/handle_hierarchy_parent.js.map +1 -1
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.d.ts.map +1 -0
- package/dist/impl/historical_access/address_space_historical_data_node.js +76 -84
- package/dist/impl/historical_access/address_space_historical_data_node.js.map +1 -1
- package/dist/impl/historical_access/read_processed_details_hook.d.ts +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.d.ts.map +1 -0
- package/dist/impl/historical_access/read_processed_details_hook.js +1 -4
- package/dist/impl/historical_access/read_processed_details_hook.js.map +1 -1
- package/dist/impl/historizer_factory.d.ts +1 -0
- package/dist/impl/historizer_factory.d.ts.map +1 -0
- package/dist/impl/historizer_factory.js +1 -4
- package/dist/impl/historizer_factory.js.map +1 -1
- package/dist/impl/idx_iterator.d.ts +1 -0
- package/dist/impl/idx_iterator.d.ts.map +1 -0
- package/dist/impl/idx_iterator.js +1 -5
- package/dist/impl/idx_iterator.js.map +1 -1
- package/dist/impl/namespace_impl.d.ts +32 -0
- package/dist/impl/namespace_impl.d.ts.map +1 -0
- package/dist/impl/namespace_impl.js +418 -318
- package/dist/impl/namespace_impl.js.map +1 -1
- package/dist/impl/namespace_private.d.ts +3 -0
- package/dist/impl/namespace_private.d.ts.map +1 -0
- package/dist/impl/namespace_private.js +3 -6
- package/dist/impl/namespace_private.js.map +1 -1
- package/dist/impl/nodeid_manager.d.ts +11 -0
- package/dist/impl/nodeid_manager.d.ts.map +1 -0
- package/dist/impl/nodeid_manager.js +52 -44
- package/dist/impl/nodeid_manager.js.map +1 -1
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/adjust_namespace_array.js +1 -4
- package/dist/impl/nodeset_tools/adjust_namespace_array.js.map +1 -1
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js +28 -39
- package/dist/impl/nodeset_tools/construct_namespace_dependency.js.map +1 -1
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/dump_to_bsd.js +14 -20
- package/dist/impl/nodeset_tools/dump_to_bsd.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_records.js +125 -139
- package/dist/impl/nodeset_tools/nodeset_to_records.js.map +1 -1
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.d.ts.map +1 -0
- package/dist/impl/nodeset_tools/nodeset_to_xml.js +190 -202
- package/dist/impl/nodeset_tools/nodeset_to_xml.js.map +1 -1
- package/dist/impl/private_namespace.d.ts +1 -0
- package/dist/impl/private_namespace.d.ts.map +1 -0
- package/dist/impl/private_namespace.js +3 -8
- package/dist/impl/private_namespace.js.map +1 -1
- package/dist/impl/reference_impl.d.ts +1 -0
- package/dist/impl/reference_impl.d.ts.map +1 -0
- package/dist/impl/reference_impl.js +24 -37
- package/dist/impl/reference_impl.js.map +1 -1
- package/dist/impl/reference_type_version.d.ts +1 -0
- package/dist/impl/reference_type_version.d.ts.map +1 -0
- package/dist/impl/reference_type_version.js +2 -5
- package/dist/impl/reference_type_version.js.map +1 -1
- package/dist/impl/role_permissions.d.ts +1 -0
- package/dist/impl/role_permissions.d.ts.map +1 -0
- package/dist/impl/role_permissions.js +3 -6
- package/dist/impl/role_permissions.js.map +1 -1
- package/dist/impl/state_machine/finite_state_machine.d.ts +1 -0
- package/dist/impl/state_machine/finite_state_machine.d.ts.map +1 -0
- package/dist/impl/state_machine/finite_state_machine.js +123 -97
- package/dist/impl/state_machine/finite_state_machine.js.map +1 -1
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js +57 -62
- package/dist/impl/state_machine/ua_shelving_state_machine_ex.js.map +1 -1
- package/dist/impl/state_machine/ua_two_state_variable.d.ts +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.d.ts.map +1 -0
- package/dist/impl/state_machine/ua_two_state_variable.js +56 -63
- package/dist/impl/state_machine/ua_two_state_variable.js.map +1 -1
- package/dist/impl/tool_isSubtypeOf.d.ts +1 -0
- package/dist/impl/tool_isSubtypeOf.d.ts.map +1 -0
- package/dist/impl/tool_isSubtypeOf.js +27 -34
- package/dist/impl/tool_isSubtypeOf.js.map +1 -1
- package/dist/impl/ua_condition_type.d.ts +1 -0
- package/dist/impl/ua_condition_type.d.ts.map +1 -0
- package/dist/impl/ua_condition_type.js +1 -2
- package/dist/impl/ua_data_type_impl.d.ts +1 -0
- package/dist/impl/ua_data_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_data_type_impl.js +99 -83
- package/dist/impl/ua_data_type_impl.js.map +1 -1
- package/dist/impl/ua_method_impl.d.ts +3 -2
- package/dist/impl/ua_method_impl.d.ts.map +1 -0
- package/dist/impl/ua_method_impl.js +74 -78
- package/dist/impl/ua_method_impl.js.map +1 -1
- package/dist/impl/ua_object_impl.d.ts +1 -0
- package/dist/impl/ua_object_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_impl.js +48 -51
- package/dist/impl/ua_object_impl.js.map +1 -1
- package/dist/impl/ua_object_type_impl.d.ts +1 -0
- package/dist/impl/ua_object_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_object_type_impl.js +35 -39
- package/dist/impl/ua_object_type_impl.js.map +1 -1
- package/dist/impl/ua_reference_type_impl.d.ts +2 -1
- package/dist/impl/ua_reference_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_reference_type_impl.js +41 -45
- package/dist/impl/ua_reference_type_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl.d.ts +1 -0
- package/dist/impl/ua_variable_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl.js +373 -376
- package/dist/impl/ua_variable_impl.js.map +1 -1
- package/dist/impl/ua_variable_impl_ext_obj.d.ts +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.d.ts.map +1 -0
- package/dist/impl/ua_variable_impl_ext_obj.js +79 -97
- package/dist/impl/ua_variable_impl_ext_obj.js.map +1 -1
- package/dist/impl/ua_variable_type_impl.d.ts +1 -0
- package/dist/impl/ua_variable_type_impl.d.ts.map +1 -0
- package/dist/impl/ua_variable_type_impl.js +77 -84
- package/dist/impl/ua_variable_type_impl.js.map +1 -1
- package/dist/impl/ua_view_impl.d.ts +1 -0
- package/dist/impl/ua_view_impl.d.ts.map +1 -0
- package/dist/impl/ua_view_impl.js +18 -22
- package/dist/impl/ua_view_impl.js.map +1 -1
- package/dist/impl/validate_data_type_correctness.d.ts +1 -0
- package/dist/impl/validate_data_type_correctness.d.ts.map +1 -0
- package/dist/impl/validate_data_type_correctness.js +24 -30
- package/dist/impl/validate_data_type_correctness.js.map +1 -1
- package/dist/tsconfig_base.tsbuildinfo +1 -1
- package/distHelpers/add_event_generator_object.d.ts +1 -0
- package/distHelpers/add_event_generator_object.d.ts.map +1 -0
- package/distHelpers/add_event_generator_object.js +8 -11
- package/distHelpers/add_event_generator_object.js.map +1 -1
- package/distHelpers/address_space_digest.d.ts +1 -0
- package/distHelpers/address_space_digest.d.ts.map +1 -0
- package/distHelpers/address_space_digest.js +1 -5
- package/distHelpers/address_space_digest.js.map +1 -1
- package/distHelpers/alarms_and_conditions_demo.d.ts +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.js +8 -11
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -1
- package/distHelpers/assertHasMatchingReference.d.ts +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts.map +1 -0
- package/distHelpers/assertHasMatchingReference.js +6 -9
- package/distHelpers/assertHasMatchingReference.js.map +1 -1
- package/distHelpers/boiler_system.d.ts +1 -0
- package/distHelpers/boiler_system.d.ts.map +1 -0
- package/distHelpers/boiler_system.js +36 -40
- package/distHelpers/boiler_system.js.map +1 -1
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js +29 -35
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -1
- package/distHelpers/date_utils.d.ts +1 -0
- package/distHelpers/date_utils.d.ts.map +1 -0
- package/distHelpers/date_utils.js +1 -4
- package/distHelpers/date_utils.js.map +1 -1
- package/distHelpers/dump_statemachine.d.ts +1 -0
- package/distHelpers/dump_statemachine.d.ts.map +1 -0
- package/distHelpers/dump_statemachine.js +1 -2
- package/distHelpers/dump_statemachine.js.map +1 -1
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/distHelpers/get_address_space_fixture.d.ts.map +1 -0
- package/distHelpers/get_address_space_fixture.js +12 -18
- package/distHelpers/get_address_space_fixture.js.map +1 -1
- package/distHelpers/get_mini_address_space.d.ts +1 -0
- package/distHelpers/get_mini_address_space.d.ts.map +1 -0
- package/distHelpers/get_mini_address_space.js +12 -18
- package/distHelpers/get_mini_address_space.js.map +1 -1
- package/distHelpers/index.d.ts +1 -0
- package/distHelpers/index.d.ts.map +1 -0
- package/distHelpers/index.js +10 -26
- package/distHelpers/index.js.map +1 -1
- package/distHelpers/mock_session.d.ts +1 -0
- package/distHelpers/mock_session.d.ts.map +1 -0
- package/distHelpers/mock_session.js +11 -16
- package/distHelpers/mock_session.js.map +1 -1
- package/distNodeJS/address_space_digest.d.ts +1 -0
- package/distNodeJS/address_space_digest.d.ts.map +1 -0
- package/distNodeJS/address_space_digest.js +3 -6
- package/distNodeJS/address_space_digest.js.map +1 -1
- package/distNodeJS/generate_address_space.d.ts +1 -0
- package/distNodeJS/generate_address_space.d.ts.map +1 -0
- package/distNodeJS/generate_address_space.js +67 -97
- package/distNodeJS/generate_address_space.js.map +1 -1
- package/distNodeJS/index.d.ts +1 -0
- package/distNodeJS/index.d.ts.map +1 -0
- package/distNodeJS/index.js +3 -19
- package/distNodeJS/index.js.map +1 -1
- package/distNodeJS/nodeset_image_file_store.d.ts +1 -0
- package/distNodeJS/nodeset_image_file_store.d.ts.map +1 -0
- package/distNodeJS/nodeset_image_file_store.js +20 -28
- package/distNodeJS/nodeset_image_file_store.js.map +1 -1
- package/impl/_mandatory_child_or_requested_optional_filter.ts +3 -3
- package/impl/address_space.ts +75 -6
- package/impl/address_space_change_event_tools.ts +7 -0
- package/impl/address_space_private.ts +1 -0
- package/impl/alarms_and_conditions/condition_snapshot_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_alarm_condition_impl.ts +1 -1
- package/impl/alarms_and_conditions/ua_condition_impl.ts +1 -1
- package/impl/bulk_load_clock.ts +65 -0
- package/impl/data_access/semantics_changed.ts +39 -1
- package/impl/data_access/ua_multistate_discrete_impl.ts +1 -1
- package/impl/extension_object_array_node.ts +5 -5
- package/impl/historical_access/address_space_historical_data_node.ts +2 -2
- package/impl/namespace_impl.ts +119 -2
- package/impl/namespace_private.ts +3 -0
- package/impl/nodeid_manager.ts +13 -0
- package/impl/nodeset_tools/construct_namespace_dependency.ts +4 -4
- package/impl/nodeset_tools/dump_to_bsd.ts +1 -1
- package/impl/nodeset_tools/nodeset_to_xml.ts +1 -1
- package/impl/state_machine/finite_state_machine.ts +56 -10
- package/impl/state_machine/ua_shelving_state_machine_ex.ts +1 -1
- package/impl/state_machine/ua_two_state_variable.ts +1 -1
- package/impl/tool_isSubtypeOf.ts +1 -1
- package/impl/ua_data_type_impl.ts +26 -5
- package/impl/ua_method_impl.ts +10 -6
- package/impl/ua_object_impl.ts +6 -2
- package/impl/ua_variable_impl.ts +15 -8
- package/impl/ua_variable_type_impl.ts +3 -3
- package/nodeJS.d.ts +1 -1
- package/nodeJS.js +1 -1
- package/package.json +42 -41
- package/source_nodejs/generate_address_space.ts +31 -14
- package/testHelpers.d.ts +1 -1
- package/testHelpers.js +1 -1
- /package/bin/{nodeset_tool_common.js → nodeset_tool_common.cjs} +0 -0
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space.AlarmsAndConditions
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const debugLog = (0, node_opcua_debug_1.make_debugLog)("ua_shelving_state_machine_ex");
|
|
16
|
-
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)("ua_shelving_state_machine_ex");
|
|
17
|
-
class UAShelvedStateMachineExImplBase extends finite_state_machine_js_1.UAStateMachineImpl {
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { DataValue } from "node-opcua-data-value";
|
|
6
|
+
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
|
|
7
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
8
|
+
import { DataType, Variant } from "node-opcua-variant";
|
|
9
|
+
import { UAAlarmConditionImpl, UAAlarmConditionImplBase } from "../alarms_and_conditions/ua_alarm_condition_impl.js";
|
|
10
|
+
import { promoteToStateMachine, UAStateMachineImpl } from "./finite_state_machine.js";
|
|
11
|
+
const debugLog = make_debugLog("ua_shelving_state_machine_ex");
|
|
12
|
+
const doDebug = checkDebugFlag("ua_shelving_state_machine_ex");
|
|
13
|
+
export class UAShelvedStateMachineExImplBase extends UAStateMachineImpl {
|
|
18
14
|
static promote(object) {
|
|
19
15
|
const shelvingState = object;
|
|
20
|
-
|
|
21
|
-
Object.setPrototypeOf(shelvingState,
|
|
16
|
+
promoteToStateMachine(shelvingState);
|
|
17
|
+
Object.setPrototypeOf(shelvingState, UAShelvedStateMachineExImpl.prototype);
|
|
22
18
|
shelvingState._timer = null;
|
|
23
19
|
if (shelvingState.unshelve) {
|
|
24
20
|
shelvingState.unshelve.bindMethod(_unshelve_method);
|
|
@@ -36,12 +32,11 @@ class UAShelvedStateMachineExImplBase extends finite_state_machine_js_1.UAStateM
|
|
|
36
32
|
timestamped_get: _unShelveTimeFunc.bind(null, shelvingState)
|
|
37
33
|
}, true);
|
|
38
34
|
}
|
|
39
|
-
|
|
35
|
+
assert(shelvingState instanceof UAShelvedStateMachineExImpl);
|
|
40
36
|
return shelvingState;
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
|
-
|
|
44
|
-
exports.UAShelvedStateMachineExImpl = UAShelvedStateMachineExImplBase;
|
|
39
|
+
export const UAShelvedStateMachineExImpl = UAShelvedStateMachineExImplBase;
|
|
45
40
|
// The Unshelve Method sets the AlarmCondition to the Unshelved state. Normally, the MethodId found
|
|
46
41
|
// the Shelving child of the Condition instance and the NodeId of the Shelving object as the ObjectId
|
|
47
42
|
// are passed to the Call Service. However, some Servers do not expose Condition instances in the
|
|
@@ -50,7 +45,7 @@ exports.UAShelvedStateMachineExImpl = UAShelvedStateMachineExImplBase;
|
|
|
50
45
|
// ShelvedStateMachineType Node.
|
|
51
46
|
// output => BadConditionNotShelved
|
|
52
47
|
function _unshelve_method(inputArguments, context, callback) {
|
|
53
|
-
|
|
48
|
+
assert(inputArguments.length === 0);
|
|
54
49
|
// var alarmNode = context.object.parent;
|
|
55
50
|
// if (!(alarmNode instanceof UAAlarmConditionImpl)) {
|
|
56
51
|
// return callback(null, {statusCode: StatusCodes.BadNodeIdInvalid});
|
|
@@ -60,30 +55,30 @@ function _unshelve_method(inputArguments, context, callback) {
|
|
|
60
55
|
// return callback(null, {statusCode: StatusCodes.BadConditionDisabled});
|
|
61
56
|
// }
|
|
62
57
|
const shelvingState = context.object;
|
|
63
|
-
|
|
58
|
+
promoteToStateMachine(shelvingState);
|
|
64
59
|
if (shelvingState.getCurrentState() === "Unshelved") {
|
|
65
60
|
return callback(null, {
|
|
66
|
-
statusCode:
|
|
61
|
+
statusCode: StatusCodes.BadConditionNotShelved
|
|
67
62
|
});
|
|
68
63
|
}
|
|
69
64
|
shelvingState.setState("Unshelved");
|
|
70
65
|
shelvingState._unshelvedTime = new Date(); // now
|
|
71
66
|
_clear_timer_if_any(shelvingState);
|
|
72
|
-
|
|
67
|
+
assert(!shelvingState._timer);
|
|
73
68
|
return callback(null, {
|
|
74
|
-
statusCode:
|
|
69
|
+
statusCode: StatusCodes.Good
|
|
75
70
|
});
|
|
76
71
|
}
|
|
77
|
-
function _clear_timer_if_any(shelvingState) {
|
|
72
|
+
export function _clear_timer_if_any(shelvingState) {
|
|
78
73
|
if (shelvingState._timer) {
|
|
79
74
|
clearTimeout(shelvingState._timer);
|
|
80
75
|
shelvingState._timer = null;
|
|
81
76
|
}
|
|
82
77
|
}
|
|
83
78
|
function _automatically_unshelve(shelvingState) {
|
|
84
|
-
|
|
79
|
+
assert(shelvingState._timer, "expecting timerId to be set");
|
|
85
80
|
shelvingState._timer = null;
|
|
86
|
-
|
|
81
|
+
/* c8 ignore next */
|
|
87
82
|
if (doDebug) {
|
|
88
83
|
debugLog("Automatically un-shelving variable ", shelvingState.browseName.toString());
|
|
89
84
|
}
|
|
@@ -94,21 +89,21 @@ function _automatically_unshelve(shelvingState) {
|
|
|
94
89
|
}
|
|
95
90
|
shelvingState.setState("Unshelved");
|
|
96
91
|
shelvingState._unshelvedTime = new Date(); // now
|
|
97
|
-
|
|
92
|
+
assert(!shelvingState._timer);
|
|
98
93
|
}
|
|
99
94
|
function _start_timer_for_automatic_unshelve(shelvingState, duration) {
|
|
100
95
|
if (duration < 10 || duration >= 2 ** 31) {
|
|
101
96
|
throw new Error(` Invalid maxTimeShelved duration: ${duration} must be [10,2**31] `);
|
|
102
97
|
}
|
|
103
|
-
|
|
98
|
+
assert(!shelvingState._timer);
|
|
104
99
|
shelvingState._shelvedTime = new Date(); // now
|
|
105
100
|
shelvingState._duration = duration;
|
|
106
101
|
// c8 ignore next
|
|
107
102
|
if (doDebug) {
|
|
108
103
|
debugLog("shelvingState._duration", shelvingState._duration);
|
|
109
104
|
}
|
|
110
|
-
if (duration !==
|
|
111
|
-
|
|
105
|
+
if (duration !== UAAlarmConditionImplBase.MaxDuration) {
|
|
106
|
+
assert(!shelvingState._timer);
|
|
112
107
|
shelvingState._timer = setTimeout(_automatically_unshelve.bind(null, shelvingState), shelvingState._duration);
|
|
113
108
|
}
|
|
114
109
|
}
|
|
@@ -131,44 +126,44 @@ function _start_timer_for_automatic_unshelve(shelvingState, duration) {
|
|
|
131
126
|
// a reset of the shelved timer.
|
|
132
127
|
// BadShelvingTimeOutOfRange
|
|
133
128
|
function _timedShelve_method(inputArguments, context, callback) {
|
|
134
|
-
|
|
129
|
+
assert(inputArguments.length === 1);
|
|
135
130
|
if (!context.object) {
|
|
136
131
|
return;
|
|
137
132
|
}
|
|
138
133
|
const shelvingState = context.object;
|
|
139
134
|
if (shelvingState.getCurrentState() !== "Unshelved") {
|
|
140
135
|
return callback(null, {
|
|
141
|
-
statusCode:
|
|
136
|
+
statusCode: StatusCodes.BadConditionAlreadyShelved
|
|
142
137
|
});
|
|
143
138
|
}
|
|
144
139
|
// checking duration ...
|
|
145
140
|
const alarmNode = shelvingState.parent;
|
|
146
141
|
// c8 ignore next
|
|
147
|
-
if (!(alarmNode instanceof
|
|
142
|
+
if (!(alarmNode instanceof UAAlarmConditionImpl)) {
|
|
148
143
|
return callback(null, {
|
|
149
|
-
statusCode:
|
|
144
|
+
statusCode: StatusCodes.BadNodeIdInvalid
|
|
150
145
|
});
|
|
151
146
|
}
|
|
152
147
|
const maxTimeShelved = alarmNode.getMaxTimeShelved();
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
148
|
+
assert(Number.isFinite(maxTimeShelved));
|
|
149
|
+
assert(inputArguments[0].dataType === DataType.Double); // Duration
|
|
150
|
+
assert(inputArguments[0] instanceof Variant);
|
|
156
151
|
const proposedDuration = inputArguments[0].value; // as double (milliseconds)
|
|
157
152
|
if (proposedDuration > maxTimeShelved) {
|
|
158
153
|
return callback(null, {
|
|
159
|
-
statusCode:
|
|
154
|
+
statusCode: StatusCodes.BadShelvingTimeOutOfRange
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
157
|
if (proposedDuration < 0) {
|
|
163
158
|
return callback(null, {
|
|
164
|
-
statusCode:
|
|
159
|
+
statusCode: StatusCodes.BadShelvingTimeOutOfRange
|
|
165
160
|
});
|
|
166
161
|
}
|
|
167
162
|
_clear_timer_if_any(shelvingState);
|
|
168
163
|
shelvingState.setState("TimedShelved");
|
|
169
164
|
_start_timer_for_automatic_unshelve(shelvingState, proposedDuration);
|
|
170
165
|
return callback(null, {
|
|
171
|
-
statusCode:
|
|
166
|
+
statusCode: StatusCodes.Good
|
|
172
167
|
});
|
|
173
168
|
}
|
|
174
169
|
// Spec 1.03:
|
|
@@ -179,30 +174,30 @@ function _timedShelve_method(inputArguments, context, callback) {
|
|
|
179
174
|
// shall also allow Clients to call the OneShotShelve Method by specifying ConditionId as the ObjectId. The Method
|
|
180
175
|
// cannot be called with an ObjectId of the ShelvedStateMachineType Node
|
|
181
176
|
function _oneShotShelve_method(inputArguments, context, callback) {
|
|
182
|
-
|
|
177
|
+
assert(inputArguments.length === 0);
|
|
183
178
|
const shelvingState = context.object;
|
|
184
179
|
if (shelvingState.getCurrentState() === "OneShotShelved") {
|
|
185
180
|
return callback(null, {
|
|
186
|
-
statusCode:
|
|
181
|
+
statusCode: StatusCodes.BadConditionAlreadyShelved
|
|
187
182
|
});
|
|
188
183
|
}
|
|
189
184
|
// checking duration ...
|
|
190
185
|
const alarmNode = shelvingState.parent;
|
|
191
186
|
// c8 ignore next
|
|
192
|
-
if (!(alarmNode instanceof
|
|
187
|
+
if (!(alarmNode instanceof UAAlarmConditionImpl)) {
|
|
193
188
|
return callback(null, {
|
|
194
|
-
statusCode:
|
|
189
|
+
statusCode: StatusCodes.BadNodeIdInvalid
|
|
195
190
|
});
|
|
196
191
|
}
|
|
197
192
|
const maxTimeShelved = alarmNode.getMaxTimeShelved();
|
|
198
|
-
|
|
199
|
-
|
|
193
|
+
assert(Number.isFinite(maxTimeShelved));
|
|
194
|
+
assert(maxTimeShelved !== UAAlarmConditionImplBase.MaxDuration);
|
|
200
195
|
// set automatic un-shelving timer
|
|
201
196
|
_clear_timer_if_any(shelvingState);
|
|
202
197
|
shelvingState.setState("OneShotShelved");
|
|
203
198
|
_start_timer_for_automatic_unshelve(shelvingState, maxTimeShelved);
|
|
204
199
|
return callback(null, {
|
|
205
|
-
statusCode:
|
|
200
|
+
statusCode: StatusCodes.Good
|
|
206
201
|
});
|
|
207
202
|
}
|
|
208
203
|
// from spec 1.03 :
|
|
@@ -214,23 +209,23 @@ function _oneShotShelve_method(inputArguments, context, callback) {
|
|
|
214
209
|
// except if a MaxTimeShelved Property is provided.
|
|
215
210
|
function _unShelveTimeFunc(shelvingState) {
|
|
216
211
|
if (shelvingState.getCurrentState() === "Unshelved") {
|
|
217
|
-
return new
|
|
218
|
-
statusCode:
|
|
219
|
-
value: { dataType:
|
|
212
|
+
return new DataValue({
|
|
213
|
+
statusCode: StatusCodes.BadConditionNotShelved,
|
|
214
|
+
value: { dataType: DataType.Double, value: 0 }
|
|
220
215
|
});
|
|
221
216
|
}
|
|
222
217
|
if (!shelvingState._shelvedTime) {
|
|
223
|
-
return new
|
|
224
|
-
statusCode:
|
|
225
|
-
value: { dataType:
|
|
218
|
+
return new DataValue({
|
|
219
|
+
statusCode: StatusCodes.BadConditionNotShelved,
|
|
220
|
+
value: { dataType: DataType.Double, value: 0 }
|
|
226
221
|
});
|
|
227
222
|
}
|
|
228
|
-
if (shelvingState.getCurrentState() === "OneShotShelved" && shelvingState._duration ===
|
|
229
|
-
return new
|
|
230
|
-
statusCode:
|
|
223
|
+
if (shelvingState.getCurrentState() === "OneShotShelved" && shelvingState._duration === UAAlarmConditionImplBase.MaxDuration) {
|
|
224
|
+
return new DataValue({
|
|
225
|
+
statusCode: StatusCodes.Good,
|
|
231
226
|
value: {
|
|
232
|
-
dataType:
|
|
233
|
-
value:
|
|
227
|
+
dataType: DataType.Double,
|
|
228
|
+
value: UAAlarmConditionImplBase.MaxDuration
|
|
234
229
|
}
|
|
235
230
|
});
|
|
236
231
|
}
|
|
@@ -238,10 +233,10 @@ function _unShelveTimeFunc(shelvingState) {
|
|
|
238
233
|
let timeToAutomaticUnshelvedState = shelvingState._duration - (now.getTime() - shelvingState._shelvedTime.getTime());
|
|
239
234
|
// timeToAutomaticUnshelvedState should always be greater than (or equal) zero
|
|
240
235
|
timeToAutomaticUnshelvedState = Math.max(timeToAutomaticUnshelvedState, 0);
|
|
241
|
-
return new
|
|
242
|
-
statusCode:
|
|
236
|
+
return new DataValue({
|
|
237
|
+
statusCode: StatusCodes.Good,
|
|
243
238
|
value: {
|
|
244
|
-
dataType:
|
|
239
|
+
dataType: DataType.Double, // duration
|
|
245
240
|
value: timeToAutomaticUnshelvedState
|
|
246
241
|
}
|
|
247
242
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ua_shelving_state_machine_ex.js","sourceRoot":"","sources":["../../../impl/state_machine/ua_shelving_state_machine_ex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ua_shelving_state_machine_ex.js","sourceRoot":"","sources":["../../../impl/state_machine/ua_shelving_state_machine_ex.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAoB,MAAM,oBAAoB,CAAC;AAGzE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAErH,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEtF,MAAM,QAAQ,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,OAAO,GAAG,cAAc,CAAC,8BAA8B,CAAC,CAAC;AA4B/D,MAAM,OAAO,+BAAgC,SAAQ,kBAAkB;IA2B5D,MAAM,CAAC,OAAO,CAAC,MAAgB;QAClC,MAAM,aAAa,GAAG,MAAqC,CAAC;QAC5D,qBAAqB,CAAC,aAAa,CAAC,CAAC;QAErC,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;QAC5E,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;QAE5B,IAAI,aAAa,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AC5B,KAAK,EAAE;YACH,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,WAAW;YACtC,KAAK,EAAE,6BAA6B;SACvC;KACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -53,3 +53,4 @@ export declare class UATwoStateVariableImpl extends UAVariableImplT<LocalizedTex
|
|
|
53
53
|
_add_backward_reference(reference: UAReference): void;
|
|
54
54
|
}
|
|
55
55
|
export declare function _addTwoStateVariable(namespace: INamespace, options: AddTwoStateVariableOptions): UATwoStateVariableEx;
|
|
56
|
+
//# sourceMappingURL=ua_two_state_variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ua_two_state_variable.d.ts","sourceRoot":"","sources":["../../../impl/state_machine/ua_two_state_variable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACb,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAIH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,KAAK,MAAM,EAA6B,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAe,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,QAAQ,EAA4C,MAAM,oBAAoB,CAAC;AACxF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAkB,eAAe,E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AAU,CAAC,EAAE,YAAY,GAAG,IAAI,GACjC,OAAO,CAAC,UAAU,CAAC,CAAC;CAC1B;AACD;;GAEG;AAEH,qBAAa,sBAAuB,SAAQ,eAAe,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAE,YAAW,oBAAoB;IAC9H,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAC,CAAS;IAE7B,IAAI,iBAAiB,IAAI,oBAAoB,CAE5C;IACD,IAAI,gBAAgB,IAAI,oBAAoB,CAE3C;IAEM,UAAU,CAAC,OAAO,EAAE,iCAAiC,GAAG,IAAI,CAgElE;IAEM,eAAe,IAAI,IAAI,CAmC7B;IACD;OACG;IACI,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAWpE;IAED;OACG;IACI,QAAQ,IAAI,OAAO,CAKzB;IAED;OACG;IACI,gBAAgB,IAAI,MAAM,CAKhC;IACM,YAAY,IAAI,aAAa,CAEnC;IACM,aAAa,IAAI,aAAa,CAEpC;IAWM,uBAAuB,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAa3D;CACJ;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,0BAA0B,GAAG,oBAAoB,CAwCrH"}
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @module node-opcua-address-space
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const node_opcua_constants_1 = require("node-opcua-constants");
|
|
12
|
-
const node_opcua_data_model_1 = require("node-opcua-data-model");
|
|
13
|
-
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
14
|
-
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
15
|
-
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { VariableTypeIds } from "node-opcua-constants";
|
|
6
|
+
import { BrowseDirection, coerceLocalizedText, coerceLocalizedTextStrict } from "node-opcua-data-model";
|
|
7
|
+
import { resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
8
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
9
|
+
import { DataType, Variant } from "node-opcua-variant";
|
|
16
10
|
// public interfaces
|
|
17
|
-
|
|
11
|
+
import { registerNodePromoter } from "../../api/loader/register_node_promoter.js";
|
|
18
12
|
// private types
|
|
19
|
-
|
|
20
|
-
const hasTrueSubState_ReferenceTypeNodeId =
|
|
21
|
-
const hasFalseSubState_ReferenceTypeNodeId =
|
|
13
|
+
import { UAVariableImpl, UAVariableImplT } from "../ua_variable_impl.js";
|
|
14
|
+
const hasTrueSubState_ReferenceTypeNodeId = resolveNodeId("HasTrueSubState");
|
|
15
|
+
const hasFalseSubState_ReferenceTypeNodeId = resolveNodeId("HasFalseSubState");
|
|
22
16
|
// Release 1.03 12 OPC Unified Architecture, Part 9
|
|
23
17
|
// Two-state state machines
|
|
24
18
|
// Most states defined in this standard are simple – i.e. they are either TRUE or FALSE. The
|
|
@@ -51,7 +45,7 @@ function _updateTransitionTime(node, _subState, options) {
|
|
|
51
45
|
// TransitionTime specifies the time when the current state was entered.
|
|
52
46
|
if (node.transitionTime) {
|
|
53
47
|
const transitionTime = options?.transitionTime || new Date();
|
|
54
|
-
node.transitionTime.setValueFromSource({ dataType:
|
|
48
|
+
node.transitionTime.setValueFromSource({ dataType: DataType.DateTime, value: transitionTime });
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
function _updateEffectiveTransitionTime(node, options) {
|
|
@@ -59,7 +53,7 @@ function _updateEffectiveTransitionTime(node, options) {
|
|
|
59
53
|
const effectiveTransitionTime = options?.effectiveTransitionTime || new Date();
|
|
60
54
|
// because subStateNode ",subStateNode.browseName.toString());
|
|
61
55
|
node.effectiveTransitionTime.setValueFromSource({
|
|
62
|
-
dataType:
|
|
56
|
+
dataType: DataType.DateTime,
|
|
63
57
|
value: effectiveTransitionTime
|
|
64
58
|
});
|
|
65
59
|
}
|
|
@@ -72,10 +66,10 @@ function _getEffectiveDisplayName(node) {
|
|
|
72
66
|
const boolValue = node.getValue();
|
|
73
67
|
let subStateNodes;
|
|
74
68
|
if (boolValue) {
|
|
75
|
-
subStateNodes = node.findReferencesExAsObject("HasTrueSubState",
|
|
69
|
+
subStateNodes = node.findReferencesExAsObject("HasTrueSubState", BrowseDirection.Forward);
|
|
76
70
|
}
|
|
77
71
|
else {
|
|
78
|
-
subStateNodes = node.findReferencesExAsObject("HasFalseSubState",
|
|
72
|
+
subStateNodes = node.findReferencesExAsObject("HasFalseSubState", BrowseDirection.Forward);
|
|
79
73
|
}
|
|
80
74
|
const _states = subStateNodes.forEach((_n) => {
|
|
81
75
|
// todo happen
|
|
@@ -86,51 +80,51 @@ function _getHumanReadableString(node) {
|
|
|
86
80
|
const dataValue = node.id.readValue();
|
|
87
81
|
if (dataValue.statusCode.isNotGood()) {
|
|
88
82
|
const _c = dataValue.clone();
|
|
89
|
-
_c.value = new
|
|
90
|
-
dataType:
|
|
91
|
-
value:
|
|
83
|
+
_c.value = new Variant({
|
|
84
|
+
dataType: DataType.LocalizedText,
|
|
85
|
+
value: coerceLocalizedTextStrict("")
|
|
92
86
|
});
|
|
93
87
|
return _c;
|
|
94
88
|
}
|
|
95
|
-
|
|
89
|
+
assert(dataValue.value.dataType === DataType.Boolean);
|
|
96
90
|
const boolValue = dataValue.value.value;
|
|
97
91
|
// The Value Attribute of a TwoStateVariable contains the current state as a human readable name.
|
|
98
92
|
// The EnabledState for example, might contain the name “Enabled” when TRUE and “Disabled” when FALSE.
|
|
99
93
|
const dataValue2 = dataValue.clone();
|
|
100
|
-
dataValue2.value = new
|
|
101
|
-
dataType:
|
|
94
|
+
dataValue2.value = new Variant({
|
|
95
|
+
dataType: DataType.LocalizedText,
|
|
102
96
|
value: boolValue ? node.getTrueState() : node.getFalseState()
|
|
103
97
|
});
|
|
104
98
|
return dataValue2;
|
|
105
99
|
}
|
|
106
|
-
function _install_TwoStateVariable_machinery(node, options) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
export function _install_TwoStateVariable_machinery(node, options) {
|
|
101
|
+
assert(node.dataTypeObj.browseName.toString() === "LocalizedText");
|
|
102
|
+
assert(node.minimumSamplingInterval === 0);
|
|
103
|
+
assert(node.typeDefinitionObj.browseName.toString() === "TwoStateVariableType");
|
|
104
|
+
assert(node.dataTypeObj.browseName.toString() === "LocalizedText");
|
|
105
|
+
assert(Object.hasOwn(node, "valueRank") && (node.valueRank === -1 || node.valueRank === 0));
|
|
112
106
|
// promote node into a UATwoStateVariable
|
|
113
107
|
const _node = promoteToTwoStateVariable(node);
|
|
114
108
|
node.initialize(options);
|
|
115
109
|
return _node;
|
|
116
110
|
}
|
|
117
|
-
function promoteToTwoStateVariable(node) {
|
|
111
|
+
export function promoteToTwoStateVariable(node) {
|
|
118
112
|
if (node instanceof UATwoStateVariableImpl) {
|
|
119
113
|
return node;
|
|
120
114
|
}
|
|
121
|
-
|
|
122
|
-
if (!(node instanceof
|
|
115
|
+
/* c8 ignore next */
|
|
116
|
+
if (!(node instanceof UAVariableImpl)) {
|
|
123
117
|
throw new Error("Trying to promote a invalid object");
|
|
124
118
|
}
|
|
125
119
|
Object.setPrototypeOf(node, UATwoStateVariableImpl.prototype);
|
|
126
120
|
return node;
|
|
127
121
|
}
|
|
128
|
-
|
|
122
|
+
registerNodePromoter(VariableTypeIds.TwoStateVariableType, promoteToTwoStateVariable);
|
|
129
123
|
/***
|
|
130
124
|
* @class UATwoStateVariable
|
|
131
125
|
*/
|
|
132
126
|
// biome-ignore lint/suspicious/noUnsafeDeclarationMerging: interface adds typed members/overloads for this class
|
|
133
|
-
class UATwoStateVariableImpl extends
|
|
127
|
+
export class UATwoStateVariableImpl extends UAVariableImplT {
|
|
134
128
|
_trueState;
|
|
135
129
|
_falseState;
|
|
136
130
|
get isFalseSubStateOf() {
|
|
@@ -141,26 +135,26 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
141
135
|
}
|
|
142
136
|
initialize(options) {
|
|
143
137
|
if (options.trueState) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
assert(!!options.falseState);
|
|
139
|
+
assert(typeof options.trueState === "string");
|
|
140
|
+
assert(typeof options.falseState === "string");
|
|
147
141
|
if (this.trueState) {
|
|
148
142
|
this.trueState.setValueFromSource({
|
|
149
|
-
dataType:
|
|
150
|
-
value:
|
|
143
|
+
dataType: DataType.LocalizedText,
|
|
144
|
+
value: coerceLocalizedText(options.trueState)
|
|
151
145
|
});
|
|
152
146
|
}
|
|
153
147
|
else {
|
|
154
|
-
this._trueState =
|
|
148
|
+
this._trueState = coerceLocalizedTextStrict(options.trueState).text ?? undefined;
|
|
155
149
|
}
|
|
156
150
|
if (this.falseState) {
|
|
157
151
|
this.falseState.setValueFromSource({
|
|
158
|
-
dataType:
|
|
159
|
-
value:
|
|
152
|
+
dataType: DataType.LocalizedText,
|
|
153
|
+
value: coerceLocalizedText(options.falseState)
|
|
160
154
|
});
|
|
161
155
|
}
|
|
162
156
|
else {
|
|
163
|
-
this._falseState =
|
|
157
|
+
this._falseState = coerceLocalizedTextStrict(options.falseState).text ?? undefined;
|
|
164
158
|
}
|
|
165
159
|
}
|
|
166
160
|
// handle isTrueSubStateOf
|
|
@@ -182,17 +176,17 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
182
176
|
this.id.setValueFromSource({
|
|
183
177
|
dataType: "Boolean",
|
|
184
178
|
value: false
|
|
185
|
-
},
|
|
179
|
+
}, StatusCodes.UncertainInitialValue);
|
|
186
180
|
}
|
|
187
181
|
else if (typeof options.value === "boolean") {
|
|
188
182
|
this.id.setValueFromSource({
|
|
189
183
|
dataType: "Boolean",
|
|
190
184
|
value: options.value
|
|
191
|
-
},
|
|
185
|
+
}, StatusCodes.Good);
|
|
192
186
|
}
|
|
193
187
|
else if (Object.hasOwn(options.value, "dataType")) {
|
|
194
|
-
|
|
195
|
-
this.id.setValueFromSource(options.value,
|
|
188
|
+
assert(options.value.dataType === DataType.Boolean);
|
|
189
|
+
this.id.setValueFromSource(options.value, StatusCodes.Good);
|
|
196
190
|
}
|
|
197
191
|
else {
|
|
198
192
|
this.id.bindVariable(options.value);
|
|
@@ -235,14 +229,14 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
235
229
|
/**
|
|
236
230
|
*/
|
|
237
231
|
setValue(boolValue, options) {
|
|
238
|
-
|
|
232
|
+
assert(typeof boolValue === "boolean");
|
|
239
233
|
const dataValue = this.id?.readValue();
|
|
240
234
|
const oldValue = dataValue.value.value;
|
|
241
235
|
if (dataValue.statusCode.isGood() && boolValue === oldValue) {
|
|
242
236
|
return; // nothing to do
|
|
243
237
|
}
|
|
244
238
|
//
|
|
245
|
-
this.id.setValueFromSource(new
|
|
239
|
+
this.id.setValueFromSource(new Variant({ dataType: DataType.Boolean, value: boolValue }));
|
|
246
240
|
_updateTransitionTime(this, undefined, options);
|
|
247
241
|
_updateEffectiveTransitionTime(this, options);
|
|
248
242
|
}
|
|
@@ -250,23 +244,23 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
250
244
|
*/
|
|
251
245
|
getValue() {
|
|
252
246
|
const dataValue = this.id?.readValue();
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
assert(dataValue.statusCode.isGood());
|
|
248
|
+
assert(dataValue.value.dataType === DataType.Boolean);
|
|
255
249
|
return dataValue.value.value;
|
|
256
250
|
}
|
|
257
251
|
/**
|
|
258
252
|
*/
|
|
259
253
|
getValueAsString() {
|
|
260
254
|
const dataValue = this.readValue();
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
assert(dataValue.statusCode.isGood());
|
|
256
|
+
assert(dataValue.value.dataType === DataType.LocalizedText);
|
|
263
257
|
return dataValue.value.value.text?.toString() || "";
|
|
264
258
|
}
|
|
265
259
|
getTrueState() {
|
|
266
|
-
return this.trueState ? this.trueState.readValue().value.value :
|
|
260
|
+
return this.trueState ? this.trueState.readValue().value.value : coerceLocalizedTextStrict(this._trueState || "TRUE");
|
|
267
261
|
}
|
|
268
262
|
getFalseState() {
|
|
269
|
-
return this.falseState ? this.falseState.readValue().value.value :
|
|
263
|
+
return this.falseState ? this.falseState.readValue().value.value : coerceLocalizedTextStrict(this._falseState || "FALSE");
|
|
270
264
|
}
|
|
271
265
|
// TODO : shall we care about overloading the remove_backward_reference method ?
|
|
272
266
|
// some TrueSubState and FalseSubState relationship may be added later
|
|
@@ -281,8 +275,8 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
281
275
|
_add_backward_reference(reference) {
|
|
282
276
|
super._add_backward_reference(reference);
|
|
283
277
|
if (reference.isForward &&
|
|
284
|
-
(
|
|
285
|
-
|
|
278
|
+
(sameNodeId(reference.referenceType, hasTrueSubState_ReferenceTypeNodeId) ||
|
|
279
|
+
sameNodeId(reference.referenceType, hasFalseSubState_ReferenceTypeNodeId))) {
|
|
286
280
|
const addressSpace = this.addressSpace;
|
|
287
281
|
// add event handle
|
|
288
282
|
const subState = addressSpace.findNode(reference.nodeId);
|
|
@@ -290,8 +284,7 @@ class UATwoStateVariableImpl extends ua_variable_impl_js_1.UAVariableImplT {
|
|
|
290
284
|
}
|
|
291
285
|
}
|
|
292
286
|
}
|
|
293
|
-
|
|
294
|
-
function _addTwoStateVariable(namespace, options) {
|
|
287
|
+
export function _addTwoStateVariable(namespace, options) {
|
|
295
288
|
const addressSpace = namespace.addressSpace;
|
|
296
289
|
const twoStateVariableType = addressSpace.findVariableType("TwoStateVariableType");
|
|
297
290
|
if (!twoStateVariableType) {
|
|
@@ -313,7 +306,7 @@ function _addTwoStateVariable(namespace, options) {
|
|
|
313
306
|
componentOf: options.componentOf,
|
|
314
307
|
organizedBy: options.organizedBy,
|
|
315
308
|
modellingRule: options.modellingRule,
|
|
316
|
-
dataType:
|
|
309
|
+
dataType: resolveNodeId(DataType.LocalizedText),
|
|
317
310
|
minimumSamplingInterval: options.minimumSamplingInterval,
|
|
318
311
|
optionals: options.optionals
|
|
319
312
|
});
|