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,53 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ToStringBuilder = void 0;
|
|
7
|
-
exports.BaseNode_initPrivate = BaseNode_initPrivate;
|
|
8
|
-
exports.BaseNode_removePrivate = BaseNode_removePrivate;
|
|
9
|
-
exports.BaseNode_resetChildIndex = BaseNode_resetChildIndex;
|
|
10
|
-
exports.BaseNode_getPrivate = BaseNode_getPrivate;
|
|
11
|
-
exports.BaseNode_getCache = BaseNode_getCache;
|
|
12
|
-
exports.BaseNode_clearCache = BaseNode_clearCache;
|
|
13
|
-
exports.BaseNode_toString = BaseNode_toString;
|
|
14
|
-
exports.BaseNode_References_toString = BaseNode_References_toString;
|
|
15
|
-
exports.UAVariableType_toString = UAVariableType_toString;
|
|
16
|
-
exports.UAVariable_toString = UAVariable_toString;
|
|
17
|
-
exports.UAObject_toString = UAObject_toString;
|
|
18
|
-
exports.UAObjectType_toString = UAObjectType_toString;
|
|
19
|
-
exports.valueRankToString = valueRankToString;
|
|
20
|
-
exports.VariableOrVariableType_toString = VariableOrVariableType_toString;
|
|
21
|
-
exports._clone_hierarchical_references = _clone_hierarchical_references;
|
|
22
|
-
exports._clone_non_hierarchical_references = _clone_non_hierarchical_references;
|
|
23
|
-
exports._clone = _clone;
|
|
24
|
-
exports._handle_HierarchicalReference = _handle_HierarchicalReference;
|
|
25
|
-
exports._get_HierarchicalReference = _get_HierarchicalReference;
|
|
26
|
-
exports._remove_HierarchicalReference = _remove_HierarchicalReference;
|
|
27
|
-
exports._constructReferenceDescription = _constructReferenceDescription;
|
|
28
|
-
exports.BaseNode_remove_backward_reference = BaseNode_remove_backward_reference;
|
|
29
|
-
exports.noteReferenceTypeChange = noteReferenceTypeChange;
|
|
30
|
-
exports.BaseNode_add_backward_reference = BaseNode_add_backward_reference;
|
|
31
1
|
/**
|
|
32
2
|
* @module node-opcua-address-space.Private
|
|
33
3
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const errorLog =
|
|
48
|
-
const doTrace =
|
|
4
|
+
import chalk from "chalk";
|
|
5
|
+
import { CloneHelper, fullPath2 } from "node-opcua-address-space-base";
|
|
6
|
+
import { assert } from "node-opcua-assert";
|
|
7
|
+
import { ObjectTypeIds, VariableTypeIds } from "node-opcua-constants";
|
|
8
|
+
import { AccessLevelFlag, BrowseDirection, coerceLocalizedText, coerceQualifiedName, NodeClass, ResultMask } from "node-opcua-data-model";
|
|
9
|
+
import { checkDebugFlag, make_errorLog, make_warningLog } from "node-opcua-debug";
|
|
10
|
+
import { ExpandedNodeId, NodeId, resolveNodeId, sameNodeId } from "node-opcua-nodeid";
|
|
11
|
+
import { ReferenceDescription } from "node-opcua-types";
|
|
12
|
+
import { BaseNodeImpl, getReferenceType } from "./base_node_impl.js";
|
|
13
|
+
import { UANamespace_process_modelling_rule } from "./namespace_private.js";
|
|
14
|
+
import { ReferenceImpl } from "./reference_impl.js";
|
|
15
|
+
import { referenceTypeVersion, typeHierarchyVersion } from "./reference_type_version.js";
|
|
16
|
+
import { wipeMemorizedStuff } from "./tool_isSubtypeOf.js";
|
|
17
|
+
const errorLog = make_errorLog("address-space:BaseNode");
|
|
18
|
+
const doTrace = checkDebugFlag("INSTANTIATE");
|
|
49
19
|
const traceLog = errorLog;
|
|
50
|
-
const warningLog =
|
|
20
|
+
const warningLog = make_warningLog("address-space:BaseNode");
|
|
51
21
|
/**
|
|
52
22
|
* the private record hangs on the node itself under a symbol: as hidden from consumers as the
|
|
53
23
|
* WeakMap it replaces, but a property read rather than a hash lookup, on every access to every
|
|
@@ -59,7 +29,7 @@ const PRIVATE = Symbol("BaseNodePrivate");
|
|
|
59
29
|
* back reference replaces it with a map of the node's own (BaseNode_add_backward_reference)
|
|
60
30
|
*/
|
|
61
31
|
const EMPTY_REFERENCE_INDEX = new Map();
|
|
62
|
-
function BaseNode_initPrivate(self) {
|
|
32
|
+
export function BaseNode_initPrivate(self) {
|
|
63
33
|
const _private = {
|
|
64
34
|
__address_space: null,
|
|
65
35
|
_referenceIdx: new Map(),
|
|
@@ -75,7 +45,7 @@ function BaseNode_initPrivate(self) {
|
|
|
75
45
|
self[PRIVATE] = _private;
|
|
76
46
|
return _private;
|
|
77
47
|
}
|
|
78
|
-
function BaseNode_removePrivate(self) {
|
|
48
|
+
export function BaseNode_removePrivate(self) {
|
|
79
49
|
// there is no need to delete object from weak map
|
|
80
50
|
// the GC will take care of this in due course
|
|
81
51
|
// g_weakMap.delete(self);
|
|
@@ -95,7 +65,7 @@ function BaseNode_removePrivate(self) {
|
|
|
95
65
|
* every node once a load is complete, so an index built before the load (a second nodeset added at
|
|
96
66
|
* runtime to an address space already in use) cannot go stale.
|
|
97
67
|
*/
|
|
98
|
-
function BaseNode_resetChildIndex(node) {
|
|
68
|
+
export function BaseNode_resetChildIndex(node) {
|
|
99
69
|
const _private = BaseNode_getPrivate(node);
|
|
100
70
|
if (!_private) {
|
|
101
71
|
return;
|
|
@@ -103,28 +73,28 @@ function BaseNode_resetChildIndex(node) {
|
|
|
103
73
|
_private._childByNameMap = undefined;
|
|
104
74
|
_private._childByNameMapIncomplete = false;
|
|
105
75
|
}
|
|
106
|
-
function BaseNode_getPrivate(self) {
|
|
76
|
+
export function BaseNode_getPrivate(self) {
|
|
107
77
|
return self[PRIVATE];
|
|
108
78
|
}
|
|
109
|
-
function BaseNode_getCache(node) {
|
|
79
|
+
export function BaseNode_getCache(node) {
|
|
110
80
|
const _private = BaseNode_getPrivate(node);
|
|
111
81
|
if (!_private._cache) {
|
|
112
82
|
_private._cache = {};
|
|
113
83
|
}
|
|
114
84
|
return _private._cache;
|
|
115
85
|
}
|
|
116
|
-
function BaseNode_clearCache(node) {
|
|
86
|
+
export function BaseNode_clearCache(node) {
|
|
117
87
|
const _private = BaseNode_getPrivate(node);
|
|
118
88
|
if (_private?._cache) {
|
|
119
89
|
_private._cache = undefined;
|
|
120
90
|
}
|
|
121
|
-
|
|
91
|
+
wipeMemorizedStuff(node);
|
|
122
92
|
}
|
|
123
|
-
const hasTypeDefinition_ReferenceTypeNodeId =
|
|
93
|
+
const hasTypeDefinition_ReferenceTypeNodeId = resolveNodeId("HasTypeDefinition");
|
|
124
94
|
// looked up by NodeId rather than by name: a name lookup throws while namespace 0 is still
|
|
125
95
|
// loading, and the child index must simply answer "nothing yet" at that point
|
|
126
|
-
const hierarchicalReferences_ReferenceTypeNodeId =
|
|
127
|
-
class ToStringBuilder {
|
|
96
|
+
const hierarchicalReferences_ReferenceTypeNodeId = resolveNodeId("HierarchicalReferences");
|
|
97
|
+
export class ToStringBuilder {
|
|
128
98
|
level = 0;
|
|
129
99
|
cycleDetector = {};
|
|
130
100
|
padding = "";
|
|
@@ -149,37 +119,36 @@ class ToStringBuilder {
|
|
|
149
119
|
.join("\n");
|
|
150
120
|
}
|
|
151
121
|
}
|
|
152
|
-
exports.ToStringBuilder = ToStringBuilder;
|
|
153
122
|
function set_as_processed(options, nodeId) {
|
|
154
123
|
options.cycleDetector[nodeId.toString()] = nodeId;
|
|
155
124
|
}
|
|
156
125
|
function is_already_processed(options, nodeId) {
|
|
157
126
|
return !!options.cycleDetector[nodeId.toString()];
|
|
158
127
|
}
|
|
159
|
-
function BaseNode_toString(options) {
|
|
128
|
+
export function BaseNode_toString(options) {
|
|
160
129
|
options.level = options.level || 1;
|
|
161
130
|
set_as_processed(options, this.nodeId);
|
|
162
131
|
options.add("");
|
|
163
|
-
options.add(options.padding +
|
|
164
|
-
options.add(`${options.padding +
|
|
165
|
-
options.add(options.padding +
|
|
132
|
+
options.add(options.padding + chalk.yellow(" nodeId : ") + this.nodeId.toString());
|
|
133
|
+
options.add(`${options.padding + chalk.yellow(" nodeClass : ")}${NodeClass[this.nodeClass]} (${this.nodeClass})`);
|
|
134
|
+
options.add(options.padding + chalk.yellow(" browseName : ") + this.browseName.toString());
|
|
166
135
|
options.add(options.padding +
|
|
167
|
-
|
|
136
|
+
chalk.yellow(" displayName : ") +
|
|
168
137
|
this.displayName.map((f) => `${f.locale} ${f.text}`).join(" | "));
|
|
169
|
-
options.add(options.padding +
|
|
138
|
+
options.add(options.padding + chalk.yellow(" description : ") + (this.description ? this.description.toString() : ""));
|
|
170
139
|
}
|
|
171
|
-
function BaseNode_References_toString(options) {
|
|
140
|
+
export function BaseNode_References_toString(options) {
|
|
172
141
|
const _private = BaseNode_getPrivate(this);
|
|
173
142
|
const displayOptions = {
|
|
174
143
|
addressSpace: this.addressSpace
|
|
175
144
|
};
|
|
176
145
|
const addressSpace = this.addressSpace;
|
|
177
|
-
options.add(`${options.padding +
|
|
146
|
+
options.add(`${options.padding + chalk.yellow(" references : ")} length =${_private._referenceIdx.size}`);
|
|
178
147
|
function dump_reference(follow, reference) {
|
|
179
148
|
if (!reference) {
|
|
180
149
|
return;
|
|
181
150
|
}
|
|
182
|
-
const o =
|
|
151
|
+
const o = ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
183
152
|
if (!o) {
|
|
184
153
|
warningLog("cannot find reference", reference.toString());
|
|
185
154
|
return;
|
|
@@ -189,34 +158,34 @@ function BaseNode_References_toString(options) {
|
|
|
189
158
|
const extra = modellingRule[0] +
|
|
190
159
|
(() => {
|
|
191
160
|
switch (o.nodeClass) {
|
|
192
|
-
case
|
|
161
|
+
case NodeClass.Object:
|
|
193
162
|
return "[O] ";
|
|
194
|
-
case
|
|
163
|
+
case NodeClass.Variable:
|
|
195
164
|
return `[V] ${o.dataType.toString(displayOptions).padEnd(10)}`;
|
|
196
|
-
case
|
|
165
|
+
case NodeClass.Method:
|
|
197
166
|
return "[M] ";
|
|
198
|
-
case
|
|
167
|
+
case NodeClass.DataType:
|
|
199
168
|
return "[DT]";
|
|
200
|
-
case
|
|
169
|
+
case NodeClass.ReferenceType:
|
|
201
170
|
return "[RT]";
|
|
202
|
-
case
|
|
171
|
+
case NodeClass.ObjectType:
|
|
203
172
|
return "[OT]";
|
|
204
|
-
case
|
|
173
|
+
case NodeClass.VariableType:
|
|
205
174
|
return "[VT]";
|
|
206
|
-
case
|
|
175
|
+
case NodeClass.View:
|
|
207
176
|
return "[V] ";
|
|
208
177
|
}
|
|
209
178
|
return "";
|
|
210
179
|
})();
|
|
211
180
|
options.add(options.padding +
|
|
212
|
-
|
|
181
|
+
chalk.yellow(" +-> ") +
|
|
213
182
|
reference.toString(displayOptions) +
|
|
214
183
|
" " +
|
|
215
|
-
|
|
184
|
+
chalk.cyan(name.padEnd(25, " ")) +
|
|
216
185
|
" " +
|
|
217
|
-
|
|
186
|
+
chalk.magentaBright(extra));
|
|
218
187
|
// ignore HasTypeDefinition as it has been already handled
|
|
219
|
-
if (
|
|
188
|
+
if (sameNodeId(reference.referenceType, hasTypeDefinition_ReferenceTypeNodeId) && reference.nodeId.namespace === 0) {
|
|
220
189
|
return;
|
|
221
190
|
}
|
|
222
191
|
if (o) {
|
|
@@ -238,10 +207,10 @@ function BaseNode_References_toString(options) {
|
|
|
238
207
|
dump_reference(false, r);
|
|
239
208
|
}
|
|
240
209
|
options.add(options.padding +
|
|
241
|
-
|
|
242
|
-
|
|
210
|
+
chalk.yellow(" back_references : ") +
|
|
211
|
+
chalk.cyan(" length =") +
|
|
243
212
|
_private._back_referenceIdx.size +
|
|
244
|
-
|
|
213
|
+
chalk.grey(" ( references held by other nodes involving this node)"));
|
|
245
214
|
for (const r of _private._back_referenceIdx.values()) {
|
|
246
215
|
dump_reference(false, r);
|
|
247
216
|
}
|
|
@@ -250,7 +219,7 @@ function BaseNode_References_toString(options) {
|
|
|
250
219
|
function _UAType_toString(options) {
|
|
251
220
|
if (this.subtypeOfObj) {
|
|
252
221
|
options.add(options.padding +
|
|
253
|
-
|
|
222
|
+
chalk.yellow(" subtypeOf : ") +
|
|
254
223
|
this.subtypeOfObj.browseName.toString() +
|
|
255
224
|
" (" +
|
|
256
225
|
this.subtypeOfObj.nodeId.toString() +
|
|
@@ -260,37 +229,37 @@ function _UAType_toString(options) {
|
|
|
260
229
|
function _UAInstance_toString(options) {
|
|
261
230
|
if (this.typeDefinitionObj) {
|
|
262
231
|
options.add(options.padding +
|
|
263
|
-
|
|
232
|
+
chalk.yellow(" typeDefinition : ") +
|
|
264
233
|
this.typeDefinitionObj.browseName.toString() +
|
|
265
234
|
" (" +
|
|
266
235
|
this.typeDefinitionObj.nodeId.toString() +
|
|
267
236
|
")");
|
|
268
237
|
}
|
|
269
238
|
}
|
|
270
|
-
function UAVariableType_toString(options) {
|
|
239
|
+
export function UAVariableType_toString(options) {
|
|
271
240
|
BaseNode_toString.call(this, options);
|
|
272
241
|
_UAType_toString.call(this, options);
|
|
273
242
|
VariableOrVariableType_toString.call(this, options);
|
|
274
243
|
BaseNode_References_toString.call(this, options);
|
|
275
244
|
}
|
|
276
|
-
function UAVariable_toString(options) {
|
|
245
|
+
export function UAVariable_toString(options) {
|
|
277
246
|
BaseNode_toString.call(this, options);
|
|
278
247
|
_UAInstance_toString.call(this, options);
|
|
279
248
|
VariableOrVariableType_toString.call(this, options);
|
|
280
249
|
AccessLevelFlags_toString.call(this, options);
|
|
281
250
|
BaseNode_References_toString.call(this, options);
|
|
282
251
|
}
|
|
283
|
-
function UAObject_toString(options) {
|
|
252
|
+
export function UAObject_toString(options) {
|
|
284
253
|
BaseNode_toString.call(this, options);
|
|
285
254
|
_UAInstance_toString.call(this, options);
|
|
286
255
|
BaseNode_References_toString.call(this, options);
|
|
287
256
|
}
|
|
288
|
-
function UAObjectType_toString(options) {
|
|
257
|
+
export function UAObjectType_toString(options) {
|
|
289
258
|
BaseNode_toString.call(this, options);
|
|
290
259
|
_UAType_toString.call(this, options);
|
|
291
260
|
BaseNode_References_toString.call(this, options);
|
|
292
261
|
}
|
|
293
|
-
function valueRankToString(valueRank) {
|
|
262
|
+
export function valueRankToString(valueRank) {
|
|
294
263
|
switch (valueRank) {
|
|
295
264
|
case 1:
|
|
296
265
|
return "OneDimension (1)";
|
|
@@ -313,66 +282,66 @@ function valueRankToString(valueRank) {
|
|
|
313
282
|
}
|
|
314
283
|
function accessLevelFlagToString(flag) {
|
|
315
284
|
const str = [];
|
|
316
|
-
if (flag &
|
|
285
|
+
if (flag & AccessLevelFlag.CurrentRead) {
|
|
317
286
|
str.push("CurrentRead");
|
|
318
287
|
}
|
|
319
|
-
if (flag &
|
|
288
|
+
if (flag & AccessLevelFlag.CurrentWrite) {
|
|
320
289
|
str.push("CurrentWrite");
|
|
321
290
|
}
|
|
322
|
-
if (flag &
|
|
291
|
+
if (flag & AccessLevelFlag.HistoryRead) {
|
|
323
292
|
str.push("HistoryRead");
|
|
324
293
|
}
|
|
325
|
-
if (flag &
|
|
294
|
+
if (flag & AccessLevelFlag.HistoryWrite) {
|
|
326
295
|
str.push("HistoryWrite");
|
|
327
296
|
}
|
|
328
|
-
if (flag &
|
|
297
|
+
if (flag & AccessLevelFlag.SemanticChange) {
|
|
329
298
|
str.push("SemanticChange");
|
|
330
299
|
}
|
|
331
|
-
if (flag &
|
|
300
|
+
if (flag & AccessLevelFlag.StatusWrite) {
|
|
332
301
|
str.push("StatusWrite");
|
|
333
302
|
}
|
|
334
|
-
if (flag &
|
|
303
|
+
if (flag & AccessLevelFlag.TimestampWrite) {
|
|
335
304
|
str.push("TimestampWrite");
|
|
336
305
|
}
|
|
337
306
|
return str.join(" | ");
|
|
338
307
|
}
|
|
339
308
|
function AccessLevelFlags_toString(options) {
|
|
340
|
-
|
|
341
|
-
options.add(`${options.padding +
|
|
309
|
+
assert(options);
|
|
310
|
+
options.add(`${options.padding + chalk.yellow(" accessLevel : ")} ${accessLevelFlagToString(this.accessLevel)}`);
|
|
342
311
|
if (this.userAccessLevel !== undefined) {
|
|
343
|
-
options.add(`${options.padding +
|
|
312
|
+
options.add(`${options.padding + chalk.yellow(" userAccessLevel : ")} ${accessLevelFlagToString(this.userAccessLevel)}`);
|
|
344
313
|
}
|
|
345
314
|
}
|
|
346
|
-
function VariableOrVariableType_toString(options) {
|
|
347
|
-
|
|
315
|
+
export function VariableOrVariableType_toString(options) {
|
|
316
|
+
assert(options);
|
|
348
317
|
if (this.dataType) {
|
|
349
318
|
const addressSpace = this.addressSpace;
|
|
350
319
|
const d = addressSpace.findNode(this.dataType);
|
|
351
320
|
const n = d ? `(${d.browseName.toString()})` : " (???)";
|
|
352
|
-
options.add(`${options.padding +
|
|
321
|
+
options.add(`${options.padding + chalk.yellow(" dataType : ")} ${this.dataType} ${n}`);
|
|
353
322
|
}
|
|
354
|
-
if (this.nodeClass ===
|
|
323
|
+
if (this.nodeClass === NodeClass.Variable) {
|
|
355
324
|
const _dataValue = this.$dataValue;
|
|
356
325
|
if (_dataValue) {
|
|
357
326
|
options.add(options.padding +
|
|
358
|
-
|
|
327
|
+
chalk.yellow(" value : ") +
|
|
359
328
|
"\n" +
|
|
360
329
|
options.indent(_dataValue.toString(), `${options.padding} | `));
|
|
361
330
|
}
|
|
362
331
|
}
|
|
363
332
|
if (Object.hasOwn(this, "valueRank")) {
|
|
364
333
|
if (this.valueRank !== undefined) {
|
|
365
|
-
options.add(`${options.padding +
|
|
334
|
+
options.add(`${options.padding + chalk.yellow(" valueRank : ")} ${valueRankToString(this.valueRank)}`);
|
|
366
335
|
}
|
|
367
336
|
else {
|
|
368
|
-
options.add(`${options.padding +
|
|
337
|
+
options.add(`${options.padding + chalk.yellow(" valueRank : ")} undefined`);
|
|
369
338
|
}
|
|
370
339
|
}
|
|
371
340
|
if (this.minimumSamplingInterval !== undefined) {
|
|
372
|
-
options.add(`${options.padding +
|
|
341
|
+
options.add(`${options.padding + chalk.yellow(" minimumSamplingInterval : ")} ${this.minimumSamplingInterval.toString()} ms`);
|
|
373
342
|
}
|
|
374
343
|
if (this.arrayDimensions) {
|
|
375
|
-
options.add(`${options.padding +
|
|
344
|
+
options.add(`${options.padding + chalk.yellow(" arrayDimension : ")} [${this.arrayDimensions.join(",").toString()} ]`);
|
|
376
345
|
}
|
|
377
346
|
}
|
|
378
347
|
/**
|
|
@@ -393,7 +362,7 @@ function VariableOrVariableType_toString(options) {
|
|
|
393
362
|
* `browseName`, nearest supertype first; none when `type` is not a type
|
|
394
363
|
*/
|
|
395
364
|
function _base_declarations_of(type, browseName) {
|
|
396
|
-
if (type.nodeClass !==
|
|
365
|
+
if (type.nodeClass !== NodeClass.ObjectType && type.nodeClass !== NodeClass.VariableType) {
|
|
397
366
|
return [];
|
|
398
367
|
}
|
|
399
368
|
const result = [];
|
|
@@ -415,7 +384,7 @@ function _base_declarations_of(type, browseName) {
|
|
|
415
384
|
*/
|
|
416
385
|
function _register_existing_children(original, cloned, extraInfo) {
|
|
417
386
|
extraInfo.registerClonedObject({ originalNode: original, clonedNode: cloned });
|
|
418
|
-
for (const ref of original.findReferencesEx("Aggregates",
|
|
387
|
+
for (const ref of original.findReferencesEx("Aggregates", BrowseDirection.Forward)) {
|
|
419
388
|
const child = ref.node;
|
|
420
389
|
if (!child)
|
|
421
390
|
continue;
|
|
@@ -433,7 +402,7 @@ function _register_existing_children(original, cloned, extraInfo) {
|
|
|
433
402
|
*/
|
|
434
403
|
function _merge_base_declaration(baseDeclaration, clonedNode, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
435
404
|
// c8 ignore next
|
|
436
|
-
doTrace && traceLog(extraInfo.pad(), "merging base declaration ",
|
|
405
|
+
doTrace && traceLog(extraInfo.pad(), "merging base declaration ", fullPath2(baseDeclaration), " into ", fullPath2(clonedNode));
|
|
437
406
|
_register_existing_children(baseDeclaration, clonedNode, extraInfo);
|
|
438
407
|
_clone_hierarchical_references(baseDeclaration, clonedNode, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
439
408
|
}
|
|
@@ -443,39 +412,39 @@ function _merge_base_declaration(baseDeclaration, clonedNode, copyAlsoModellingR
|
|
|
443
412
|
*/
|
|
444
413
|
function _clone_collection_new(nodeToClone, newParent, collectionRef, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
445
414
|
const namespace = newParent.namespace;
|
|
446
|
-
extraInfo = extraInfo || new
|
|
415
|
+
extraInfo = extraInfo || new CloneHelper();
|
|
447
416
|
const addressSpace = newParent.addressSpace;
|
|
448
|
-
|
|
417
|
+
assert(!optionalFilter || (typeof optionalFilter.shouldKeep === "function" && typeof optionalFilter.filterFor === "function"));
|
|
449
418
|
for (const reference of collectionRef) {
|
|
450
|
-
const node =
|
|
419
|
+
const node = ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
451
420
|
// ensure node is of the correct type,
|
|
452
421
|
// it may happen that the xml nodeset2 file was malformed
|
|
453
422
|
// c8 ignore next
|
|
454
423
|
if (typeof node.clone !== "function") {
|
|
455
|
-
warningLog(
|
|
456
|
-
|
|
424
|
+
warningLog(chalk.red("Warning : cannot clone node ") +
|
|
425
|
+
fullPath2(node) +
|
|
457
426
|
" of class " +
|
|
458
|
-
|
|
427
|
+
NodeClass[node.nodeClass].toString() +
|
|
459
428
|
" while cloning " +
|
|
460
|
-
|
|
429
|
+
fullPath2(newParent));
|
|
461
430
|
continue;
|
|
462
431
|
}
|
|
463
432
|
if (node && !node.modellingRule) {
|
|
464
433
|
// c8 ignore next
|
|
465
|
-
doTrace && traceLog(extraInfo.pad(), "skipping with no modelling rule",
|
|
434
|
+
doTrace && traceLog(extraInfo.pad(), "skipping with no modelling rule", fullPath2(node));
|
|
466
435
|
// those node stays in the Type
|
|
467
436
|
continue; // skip this node
|
|
468
437
|
}
|
|
469
438
|
if (optionalFilter && node && !optionalFilter.shouldKeep(node)) {
|
|
470
439
|
// c8 ignore next
|
|
471
|
-
doTrace && traceLog(extraInfo.pad(), "skipping optional that doesn't appear in the filter",
|
|
440
|
+
doTrace && traceLog(extraInfo.pad(), "skipping optional that doesn't appear in the filter", fullPath2(node));
|
|
472
441
|
continue; // skip this node
|
|
473
442
|
}
|
|
474
443
|
const key = `${newParent.nodeId.toString()}(${newParent.browseName.toString()})/${node.browseName.toString()}`;
|
|
475
444
|
if (browseNameMap?.has(key)) {
|
|
476
445
|
// a same-named child was cloned already, from a nearer declaration: this one is a
|
|
477
446
|
// base declaration of it, merge what it adds
|
|
478
|
-
doTrace && traceLog(extraInfo.pad(), "node with same browseName already cloned, merging",
|
|
447
|
+
doTrace && traceLog(extraInfo.pad(), "node with same browseName already cloned, merging", fullPath2(node), "key=", key);
|
|
479
448
|
const existing = newParent.getChildByName(node.browseName);
|
|
480
449
|
if (existing) {
|
|
481
450
|
_merge_base_declaration(node, existing, copyAlsoModellingRules, optionalFilter.filterFor(existing), extraInfo, new Set());
|
|
@@ -487,7 +456,7 @@ function _clone_collection_new(nodeToClone, newParent, collectionRef, copyAlsoMo
|
|
|
487
456
|
// assert(reference.referenceType instanceof NodeId, "" + reference.referenceType.toString());
|
|
488
457
|
const options = {
|
|
489
458
|
namespace,
|
|
490
|
-
references: [new
|
|
459
|
+
references: [new ReferenceImpl({ referenceType: reference.referenceType, isForward: false, nodeId: newParent.nodeId })],
|
|
491
460
|
copyAlsoModellingRules,
|
|
492
461
|
baseDeclarations: _base_declarations_of(nodeToClone, node.browseName)
|
|
493
462
|
};
|
|
@@ -495,11 +464,11 @@ function _clone_collection_new(nodeToClone, newParent, collectionRef, copyAlsoMo
|
|
|
495
464
|
if (alreadyCloned) {
|
|
496
465
|
// c8 ignore next
|
|
497
466
|
doTrace &&
|
|
498
|
-
traceLog(extraInfo.pad(), "node ",
|
|
467
|
+
traceLog(extraInfo.pad(), "node ", fullPath2(node), "already cloned as", fullPath2(alreadyCloned), "\nnode to clone =", fullPath2(nodeToClone), "\nnew parent =", fullPath2(newParent));
|
|
499
468
|
// this parent, not any parent: a shared child may already hang under another one
|
|
500
469
|
const hasReference = alreadyCloned
|
|
501
470
|
.findReferences(reference.referenceType, false)
|
|
502
|
-
.some((r) =>
|
|
471
|
+
.some((r) => sameNodeId(r.nodeId, newParent.nodeId));
|
|
503
472
|
if (!hasReference) {
|
|
504
473
|
alreadyCloned.addReference({
|
|
505
474
|
referenceType: reference.referenceType,
|
|
@@ -509,19 +478,19 @@ function _clone_collection_new(nodeToClone, newParent, collectionRef, copyAlsoMo
|
|
|
509
478
|
}
|
|
510
479
|
else {
|
|
511
480
|
// c8 ignore next
|
|
512
|
-
doTrace && traceLog(extraInfo.pad(), "reference to node ",
|
|
481
|
+
doTrace && traceLog(extraInfo.pad(), "reference to node ", fullPath2(alreadyCloned), " already exists !");
|
|
513
482
|
}
|
|
514
483
|
}
|
|
515
484
|
else {
|
|
516
485
|
// c8 ignore next
|
|
517
486
|
doTrace &&
|
|
518
|
-
traceLog(extraInfo.pad(), "cloning => ", reference.referenceType.toString({ addressSpace }), "=>",
|
|
487
|
+
traceLog(extraInfo.pad(), "cloning => ", reference.referenceType.toString({ addressSpace }), "=>", fullPath2(node), chalk.magentaBright(node.typeDefinitionObj?.browseName.toString()));
|
|
519
488
|
extraInfo.level += 1;
|
|
520
489
|
const clonedNode = node.clone(options, optionalFilter, extraInfo);
|
|
521
490
|
extraInfo.level -= 1;
|
|
522
491
|
// c8 ignore next
|
|
523
492
|
doTrace &&
|
|
524
|
-
traceLog(extraInfo.pad(), "cloned => ",
|
|
493
|
+
traceLog(extraInfo.pad(), "cloned => ", fullPath2(node), "", extraInfo.pad(), " original nodeId", node.nodeId.toString(), "", extraInfo.pad(), " cloned nodeId", clonedNode.nodeId.toString(), `${fullPath2(clonedNode)}`);
|
|
525
494
|
// also clone or instantiate interface members that may be required in the optionals
|
|
526
495
|
extraInfo.level++;
|
|
527
496
|
_cloneInterface(nodeToClone, newParent, node, optionalFilter, extraInfo, browseNameMap);
|
|
@@ -534,8 +503,8 @@ function _clone_collection_new(nodeToClone, newParent, collectionRef, copyAlsoMo
|
|
|
534
503
|
function _extractInterfaces2(typeDefinitionNode, extraInfo) {
|
|
535
504
|
if (!typeDefinitionNode ||
|
|
536
505
|
(typeDefinitionNode.nodeId.namespace === 0 &&
|
|
537
|
-
(typeDefinitionNode.nodeId.value ===
|
|
538
|
-
typeDefinitionNode.nodeId.value ===
|
|
506
|
+
(typeDefinitionNode.nodeId.value === ObjectTypeIds.BaseObjectType ||
|
|
507
|
+
typeDefinitionNode.nodeId.value === VariableTypeIds.BaseVariableType))) {
|
|
539
508
|
return [];
|
|
540
509
|
}
|
|
541
510
|
const addressSpace = typeDefinitionNode.addressSpace;
|
|
@@ -555,7 +524,7 @@ function _extractInterfaces2(typeDefinitionNode, extraInfo) {
|
|
|
555
524
|
// IMachineTagNameplateType -subtypeOf-> ITagNameplateType
|
|
556
525
|
// IMachineVendorNamePlateType -subtypeOf-> IMachineryItemVendorNamePlateType
|
|
557
526
|
// IMachineryItemVendorNamePlateType -subtypeOf-> IVendorNameplateType
|
|
558
|
-
const interfacesRef = typeDefinitionNode.findReferencesEx("HasInterface",
|
|
527
|
+
const interfacesRef = typeDefinitionNode.findReferencesEx("HasInterface", BrowseDirection.Forward);
|
|
559
528
|
const interfaces = interfacesRef.map((r) => addressSpace.findNode(r.nodeId));
|
|
560
529
|
const baseInterfaces = [];
|
|
561
530
|
for (const iface of interfaces) {
|
|
@@ -582,16 +551,16 @@ function _extractInterfaces2(typeDefinitionNode, extraInfo) {
|
|
|
582
551
|
// c8 ignore next
|
|
583
552
|
doTrace &&
|
|
584
553
|
deduplicatedInterfaces.length &&
|
|
585
|
-
traceLog(extraInfo.pad(),
|
|
554
|
+
traceLog(extraInfo.pad(), chalk.yellow("Interface for ", typeDefinitionNode.browseName.toString()), "=", deduplicatedInterfaces.map((x) => x.browseName.toString()).join(" "));
|
|
586
555
|
return deduplicatedInterfaces;
|
|
587
556
|
}
|
|
588
557
|
function _cloneInterface(nodeToClone, _newParent, node, optionalFilter, extraInfo, browseNameMap) {
|
|
589
558
|
// c8 ignore next
|
|
590
559
|
doTrace &&
|
|
591
|
-
traceLog(extraInfo?.pad(),
|
|
592
|
-
extraInfo = extraInfo || new
|
|
560
|
+
traceLog(extraInfo?.pad(), chalk.green("-------------------- now cloning interfaces of ", node.browseName.toString(), node.nodeId.toString()));
|
|
561
|
+
extraInfo = extraInfo || new CloneHelper();
|
|
593
562
|
const addressSpace = node.addressSpace;
|
|
594
|
-
if (node.nodeClass !==
|
|
563
|
+
if (node.nodeClass !== NodeClass.Object && node.nodeClass !== NodeClass.Variable) {
|
|
595
564
|
return;
|
|
596
565
|
}
|
|
597
566
|
const typeDefinitionNode = node.typeDefinitionObj;
|
|
@@ -603,70 +572,70 @@ function _cloneInterface(nodeToClone, _newParent, node, optionalFilter, extraInf
|
|
|
603
572
|
// c8 ignore next
|
|
604
573
|
doTrace &&
|
|
605
574
|
false &&
|
|
606
|
-
traceLog(extraInfo.pad(),
|
|
575
|
+
traceLog(extraInfo.pad(), chalk.yellow("No interface for ", node.browseName.toString(), node.nodeId.toString()));
|
|
607
576
|
return;
|
|
608
577
|
}
|
|
609
578
|
// c8 ignore next
|
|
610
|
-
doTrace && traceLog(extraInfo?.pad(),
|
|
579
|
+
doTrace && traceLog(extraInfo?.pad(), chalk.green("-------------------- interfaces are ", interfaces.length));
|
|
611
580
|
const localFilter = optionalFilter.filterFor(node);
|
|
612
581
|
for (const iface of interfaces) {
|
|
613
|
-
const aggregates = iface.findReferencesEx("Aggregates",
|
|
582
|
+
const aggregates = iface.findReferencesEx("Aggregates", BrowseDirection.Forward);
|
|
614
583
|
if (aggregates.length === 0)
|
|
615
584
|
continue;
|
|
616
585
|
// c8 ignore next
|
|
617
586
|
doTrace &&
|
|
618
|
-
traceLog(extraInfo.pad(),
|
|
587
|
+
traceLog(extraInfo.pad(), chalk.magentaBright(" interface ", iface.browseName.toString()), `\n${extraInfo?.pad()}`, aggregates.map((r) => r.toString({ addressSpace })).join(`\n${extraInfo?.pad()}`));
|
|
619
588
|
_clone_collection_new(nodeToClone, node, aggregates, false, localFilter, extraInfo, browseNameMap);
|
|
620
589
|
}
|
|
621
590
|
}
|
|
622
591
|
function __clone_organizes_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
623
592
|
// find all references that derives from the Organizes
|
|
624
|
-
const organizedRef = nodeToClone.findReferencesEx("Organizes",
|
|
593
|
+
const organizedRef = nodeToClone.findReferencesEx("Organizes", BrowseDirection.Forward);
|
|
625
594
|
if (organizedRef.length === 0)
|
|
626
595
|
return;
|
|
627
596
|
_clone_collection_new(nodeToClone, newParent, organizedRef, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
628
597
|
}
|
|
629
598
|
function __clone_children_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
630
599
|
// find all references that derives from the Aggregates
|
|
631
|
-
const aggregatesRef = nodeToClone.findReferencesEx("Aggregates",
|
|
600
|
+
const aggregatesRef = nodeToClone.findReferencesEx("Aggregates", BrowseDirection.Forward);
|
|
632
601
|
if (aggregatesRef.length === 0)
|
|
633
602
|
return;
|
|
634
603
|
_clone_collection_new(nodeToClone, newParent, aggregatesRef, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
635
604
|
}
|
|
636
605
|
function __clone_interfaces_related_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
637
606
|
// find all references that derives from the HasInterface
|
|
638
|
-
const hasInterfaceRef = nodeToClone.findReferencesEx("HasInterface",
|
|
607
|
+
const hasInterfaceRef = nodeToClone.findReferencesEx("HasInterface", BrowseDirection.Forward);
|
|
639
608
|
if (hasInterfaceRef.length === 0)
|
|
640
609
|
return;
|
|
641
610
|
for (const ref of hasInterfaceRef) {
|
|
642
|
-
let typeDefinitionNode =
|
|
611
|
+
let typeDefinitionNode = ReferenceImpl.resolveReferenceNode(nodeToClone.addressSpace, ref);
|
|
643
612
|
if (!typeDefinitionNode) {
|
|
644
613
|
continue;
|
|
645
614
|
}
|
|
646
615
|
if (doTrace)
|
|
647
|
-
traceLog(extraInfo?.pad(),
|
|
616
|
+
traceLog(extraInfo?.pad(), chalk.blueBright(newParent.browseName.toString(), "-----> Exploring interface ", typeDefinitionNode.browseName.toString()));
|
|
648
617
|
while (typeDefinitionNode) {
|
|
649
618
|
// c8 ignore next
|
|
650
619
|
doTrace &&
|
|
651
|
-
traceLog(extraInfo?.pad(),
|
|
620
|
+
traceLog(extraInfo?.pad(), chalk.blueBright(newParent.browseName.toString(), "-----> Exploring ", typeDefinitionNode.browseName.toString()));
|
|
652
621
|
__clone_children_references(typeDefinitionNode, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
653
622
|
typeDefinitionNode = typeDefinitionNode.subtypeOfObj;
|
|
654
623
|
}
|
|
655
624
|
}
|
|
656
625
|
}
|
|
657
|
-
function _clone_hierarchical_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
626
|
+
export function _clone_hierarchical_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
658
627
|
__clone_children_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
659
628
|
__clone_organizes_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
660
629
|
// __clone_interfaces_related_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
661
630
|
}
|
|
662
|
-
function _clone_non_hierarchical_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
631
|
+
export function _clone_non_hierarchical_references(nodeToClone, newParent, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap) {
|
|
663
632
|
// clone only some non hierarchical_references that we do want to clone
|
|
664
633
|
// such as:
|
|
665
634
|
// HasSubStateMachine
|
|
666
635
|
// (may be other as well later ... to do )
|
|
667
|
-
|
|
636
|
+
assert(newParent instanceof BaseNodeImpl);
|
|
668
637
|
// find all reference that derives from the HasSubStateMachine
|
|
669
|
-
const references = nodeToClone.findReferencesEx("HasSubStateMachine",
|
|
638
|
+
const references = nodeToClone.findReferencesEx("HasSubStateMachine", BrowseDirection.Forward);
|
|
670
639
|
if (references.length === 0)
|
|
671
640
|
return;
|
|
672
641
|
_clone_collection_new(nodeToClone, newParent, references, copyAlsoModellingRules, optionalFilter, extraInfo, browseNameMap);
|
|
@@ -675,10 +644,10 @@ function _clone_non_hierarchical_references(nodeToClone, newParent, copyAlsoMode
|
|
|
675
644
|
|
|
676
645
|
* @private
|
|
677
646
|
*/
|
|
678
|
-
function _clone(originalNode, Constructor, options, optionalFilter, extraInfo) {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
647
|
+
export function _clone(originalNode, Constructor, options, optionalFilter, extraInfo) {
|
|
648
|
+
assert(typeof Constructor === "function");
|
|
649
|
+
assert(options !== null && typeof options === "object");
|
|
650
|
+
assert(!extraInfo || (extraInfo !== null && typeof extraInfo === "object" && typeof extraInfo.registerClonedObject === "function"));
|
|
682
651
|
const namespace = options.namespace;
|
|
683
652
|
const constructorOptions = {
|
|
684
653
|
...options,
|
|
@@ -689,32 +658,32 @@ function _clone(originalNode, Constructor, options, optionalFilter, extraInfo) {
|
|
|
689
658
|
nodeClass: originalNode.nodeClass
|
|
690
659
|
};
|
|
691
660
|
constructorOptions.references = options.references || [];
|
|
692
|
-
if (originalNode.nodeClass ===
|
|
661
|
+
if (originalNode.nodeClass === NodeClass.Variable || originalNode.nodeClass === NodeClass.Object) {
|
|
693
662
|
const voThis = originalNode;
|
|
694
663
|
if (voThis.typeDefinition) {
|
|
695
|
-
constructorOptions.references.push(new
|
|
664
|
+
constructorOptions.references.push(new ReferenceImpl({
|
|
696
665
|
isForward: true,
|
|
697
666
|
nodeId: voThis.typeDefinition,
|
|
698
|
-
referenceType:
|
|
667
|
+
referenceType: resolveNodeId("HasTypeDefinition")
|
|
699
668
|
}));
|
|
700
669
|
}
|
|
701
670
|
}
|
|
702
671
|
if (!constructorOptions.modellingRule) {
|
|
703
672
|
if (originalNode.modellingRule && options.copyAlsoModellingRules) {
|
|
704
673
|
const modellingRuleNode = originalNode.findReferencesAsObject("HasModellingRule", true)[0];
|
|
705
|
-
|
|
706
|
-
constructorOptions.references.push(new
|
|
674
|
+
assert(modellingRuleNode);
|
|
675
|
+
constructorOptions.references.push(new ReferenceImpl({
|
|
707
676
|
isForward: true,
|
|
708
677
|
nodeId: modellingRuleNode.nodeId,
|
|
709
|
-
referenceType:
|
|
678
|
+
referenceType: resolveNodeId("HasModellingRule")
|
|
710
679
|
}));
|
|
711
680
|
}
|
|
712
681
|
}
|
|
713
682
|
else {
|
|
714
|
-
|
|
683
|
+
UANamespace_process_modelling_rule(constructorOptions.references, constructorOptions.modellingRule);
|
|
715
684
|
}
|
|
716
685
|
constructorOptions.nodeId = namespace.constructNodeId(constructorOptions);
|
|
717
|
-
|
|
686
|
+
assert(constructorOptions.nodeId instanceof NodeId);
|
|
718
687
|
const clonedNode = new Constructor(constructorOptions);
|
|
719
688
|
originalNode.addressSpace._register(clonedNode);
|
|
720
689
|
extraInfo.registerClonedObject({
|
|
@@ -733,7 +702,7 @@ function _clone(originalNode, Constructor, options, optionalFilter, extraInfo) {
|
|
|
733
702
|
for (const baseDeclaration of options.baseDeclarations || []) {
|
|
734
703
|
_merge_base_declaration(baseDeclaration, clonedNode, options.copyAlsoModellingRules, newFilter, extraInfo, browseNameMap);
|
|
735
704
|
}
|
|
736
|
-
if (originalNode.nodeClass ===
|
|
705
|
+
if (originalNode.nodeClass === NodeClass.Object || originalNode.nodeClass === NodeClass.Variable) {
|
|
737
706
|
let typeDefinitionNode = originalNode.typeDefinitionObj;
|
|
738
707
|
extraInfo.pushContext({
|
|
739
708
|
clonedParent: clonedNode,
|
|
@@ -742,7 +711,7 @@ function _clone(originalNode, Constructor, options, optionalFilter, extraInfo) {
|
|
|
742
711
|
while (typeDefinitionNode) {
|
|
743
712
|
// c8 ignore next
|
|
744
713
|
doTrace &&
|
|
745
|
-
traceLog(extraInfo?.pad(),
|
|
714
|
+
traceLog(extraInfo?.pad(), chalk.blueBright(originalNode.browseName.toString(), "-----> Exploring ", typeDefinitionNode.browseName.toString()));
|
|
746
715
|
_clone_hierarchical_references(typeDefinitionNode, clonedNode, options.copyAlsoModellingRules, newFilter, extraInfo, browseNameMap);
|
|
747
716
|
typeDefinitionNode = typeDefinitionNode.subtypeOfObj;
|
|
748
717
|
}
|
|
@@ -781,9 +750,9 @@ function _add(_childByNameMap, reference) {
|
|
|
781
750
|
function sameRef(a, b) {
|
|
782
751
|
if (a.isForward !== b.isForward)
|
|
783
752
|
return false;
|
|
784
|
-
if (!
|
|
753
|
+
if (!sameNodeId(a.nodeId, b.nodeId))
|
|
785
754
|
return false;
|
|
786
|
-
if (!
|
|
755
|
+
if (!sameNodeId(a.referenceType, b.referenceType))
|
|
787
756
|
return false;
|
|
788
757
|
return true;
|
|
789
758
|
}
|
|
@@ -812,12 +781,12 @@ function _remove(_childByNameMap, reference) {
|
|
|
812
781
|
/**
|
|
813
782
|
* keep an existing child index in step with a forward reference just added to `node`
|
|
814
783
|
*/
|
|
815
|
-
function _handle_HierarchicalReference(node, reference) {
|
|
784
|
+
export function _handle_HierarchicalReference(node, reference) {
|
|
816
785
|
const _private = BaseNode_getPrivate(node);
|
|
817
786
|
if (!reference.isForward || !_private._childByNameMap)
|
|
818
787
|
return;
|
|
819
788
|
const addressSpace = node.addressSpace;
|
|
820
|
-
const referenceType =
|
|
789
|
+
const referenceType = ReferenceImpl.resolveReferenceType(addressSpace, reference);
|
|
821
790
|
const hierarchicalReferences = addressSpace.findReferenceType(hierarchicalReferences_ReferenceTypeNodeId);
|
|
822
791
|
if (!referenceType || !hierarchicalReferences) {
|
|
823
792
|
_private._childByNameMapIncomplete = true;
|
|
@@ -834,7 +803,7 @@ function _handle_HierarchicalReference(node, reference) {
|
|
|
834
803
|
}
|
|
835
804
|
if (!isHierarchical)
|
|
836
805
|
return;
|
|
837
|
-
|
|
806
|
+
ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
838
807
|
if (!_add(_private._childByNameMap, reference)) {
|
|
839
808
|
_private._childByNameMapIncomplete = true;
|
|
840
809
|
}
|
|
@@ -847,11 +816,11 @@ function _handle_HierarchicalReference(node, reference) {
|
|
|
847
816
|
* resolved: a lookup then gets a transient map and the next one rebuilds. Before namespace 0 has
|
|
848
817
|
* loaded `HierarchicalReferences` nothing can be hierarchical yet and the map is empty.
|
|
849
818
|
*/
|
|
850
|
-
function _get_HierarchicalReference(node) {
|
|
819
|
+
export function _get_HierarchicalReference(node) {
|
|
851
820
|
const _private = BaseNode_getPrivate(node);
|
|
852
821
|
if (_private._childByNameMap &&
|
|
853
822
|
!_private._childByNameMapIncomplete &&
|
|
854
|
-
_private._childByNameMapVersion ===
|
|
823
|
+
_private._childByNameMapVersion === referenceTypeVersion.count) {
|
|
855
824
|
return _private._childByNameMap;
|
|
856
825
|
}
|
|
857
826
|
const addressSpace = node.addressSpace;
|
|
@@ -861,15 +830,15 @@ function _get_HierarchicalReference(node) {
|
|
|
861
830
|
return map;
|
|
862
831
|
}
|
|
863
832
|
let complete = true;
|
|
864
|
-
for (const reference of node.findReferencesEx(hierarchicalReferences,
|
|
865
|
-
|
|
833
|
+
for (const reference of node.findReferencesEx(hierarchicalReferences, BrowseDirection.Forward)) {
|
|
834
|
+
ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
866
835
|
if (!_add(map, reference)) {
|
|
867
836
|
complete = false;
|
|
868
837
|
}
|
|
869
838
|
}
|
|
870
839
|
if (complete && !addressSpace.suspendBackReference) {
|
|
871
840
|
_private._childByNameMap = map;
|
|
872
|
-
_private._childByNameMapVersion =
|
|
841
|
+
_private._childByNameMapVersion = referenceTypeVersion.count;
|
|
873
842
|
}
|
|
874
843
|
else {
|
|
875
844
|
_private._childByNameMap = undefined;
|
|
@@ -877,15 +846,15 @@ function _get_HierarchicalReference(node) {
|
|
|
877
846
|
_private._childByNameMapIncomplete = false;
|
|
878
847
|
return map;
|
|
879
848
|
}
|
|
880
|
-
function _remove_HierarchicalReference(node, reference) {
|
|
849
|
+
export function _remove_HierarchicalReference(node, reference) {
|
|
881
850
|
const _private = BaseNode_getPrivate(node);
|
|
882
851
|
if (_private._childByNameMap && reference.isForward) {
|
|
883
852
|
const addressSpace = node.addressSpace;
|
|
884
|
-
const referenceType =
|
|
853
|
+
const referenceType = ReferenceImpl.resolveReferenceType(addressSpace, reference);
|
|
885
854
|
if (referenceType) {
|
|
886
855
|
const HierarchicalReferencesType = addressSpace.findReferenceType(hierarchicalReferences_ReferenceTypeNodeId);
|
|
887
856
|
if (HierarchicalReferencesType && referenceType.isSubtypeOf(HierarchicalReferencesType)) {
|
|
888
|
-
|
|
857
|
+
ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
889
858
|
_remove(_private._childByNameMap, reference);
|
|
890
859
|
}
|
|
891
860
|
}
|
|
@@ -893,44 +862,44 @@ function _remove_HierarchicalReference(node, reference) {
|
|
|
893
862
|
}
|
|
894
863
|
function _makeReferenceDescription(addressSpace, reference, resultMask) {
|
|
895
864
|
const isForward = reference.isForward;
|
|
896
|
-
const referenceTypeId =
|
|
897
|
-
|
|
898
|
-
const obj =
|
|
865
|
+
const referenceTypeId = ReferenceImpl.resolveReferenceType(addressSpace, reference).nodeId;
|
|
866
|
+
assert(referenceTypeId instanceof NodeId);
|
|
867
|
+
const obj = ReferenceImpl.resolveReferenceNode(addressSpace, reference);
|
|
899
868
|
let data = {};
|
|
900
869
|
if (!obj) {
|
|
901
870
|
// cannot find reference node
|
|
902
871
|
data = {
|
|
903
872
|
isForward,
|
|
904
873
|
nodeId: reference.nodeId,
|
|
905
|
-
referenceTypeId: resultMask &
|
|
874
|
+
referenceTypeId: resultMask & ResultMask.ReferenceType ? referenceTypeId : null,
|
|
906
875
|
typeDefinition: undefined
|
|
907
876
|
};
|
|
908
877
|
}
|
|
909
878
|
else {
|
|
910
879
|
const obj2 = obj;
|
|
911
|
-
const objOrVar = obj2.nodeClass ===
|
|
912
|
-
|
|
880
|
+
const objOrVar = obj2.nodeClass === NodeClass.Object || obj2.nodeClass === NodeClass.Variable ? obj2 : null;
|
|
881
|
+
assert(reference.nodeId, " obj.nodeId");
|
|
913
882
|
data = {
|
|
914
|
-
browseName: resultMask &
|
|
915
|
-
displayName: resultMask &
|
|
916
|
-
isForward: resultMask &
|
|
917
|
-
nodeClass: resultMask &
|
|
883
|
+
browseName: resultMask & ResultMask.BrowseName ? coerceQualifiedName(obj.browseName) : null,
|
|
884
|
+
displayName: resultMask & ResultMask.DisplayName ? coerceLocalizedText(obj.displayName[0]) : null,
|
|
885
|
+
isForward: resultMask & ResultMask.IsForward ? isForward : false,
|
|
886
|
+
nodeClass: resultMask & ResultMask.NodeClass ? obj.nodeClass : NodeClass.Unspecified,
|
|
918
887
|
nodeId: obj.nodeId,
|
|
919
|
-
referenceTypeId: resultMask &
|
|
920
|
-
typeDefinition: resultMask &
|
|
888
|
+
referenceTypeId: resultMask & ResultMask.ReferenceType ? referenceTypeId : null,
|
|
889
|
+
typeDefinition: resultMask & ResultMask.TypeDefinition ? objOrVar?.typeDefinition : undefined
|
|
921
890
|
};
|
|
922
891
|
}
|
|
923
892
|
if (data.typeDefinition === null) {
|
|
924
|
-
data.typeDefinition =
|
|
893
|
+
data.typeDefinition = ExpandedNodeId.nullNodeId;
|
|
925
894
|
}
|
|
926
|
-
const referenceDescription = new
|
|
895
|
+
const referenceDescription = new ReferenceDescription(data);
|
|
927
896
|
return referenceDescription;
|
|
928
897
|
}
|
|
929
|
-
function _constructReferenceDescription(addressSpace, references, resultMask) {
|
|
930
|
-
|
|
898
|
+
export function _constructReferenceDescription(addressSpace, references, resultMask) {
|
|
899
|
+
assert(Array.isArray(references));
|
|
931
900
|
return references.map((reference) => _makeReferenceDescription(addressSpace, reference, resultMask));
|
|
932
901
|
}
|
|
933
|
-
function BaseNode_remove_backward_reference(reference) {
|
|
902
|
+
export function BaseNode_remove_backward_reference(reference) {
|
|
934
903
|
const _private = BaseNode_getPrivate(this);
|
|
935
904
|
_remove_HierarchicalReference(this, reference);
|
|
936
905
|
const h = reference.key(this.addressSpace);
|
|
@@ -949,17 +918,17 @@ function BaseNode_remove_backward_reference(reference) {
|
|
|
949
918
|
* a reference added to or removed from a reference type may move it in the hierarchy (a
|
|
950
919
|
* HasSubtype link made at runtime): every memo built against the hierarchy is then stale
|
|
951
920
|
*/
|
|
952
|
-
function noteReferenceTypeChange(node, reference) {
|
|
953
|
-
if (node.nodeClass ===
|
|
954
|
-
|
|
921
|
+
export function noteReferenceTypeChange(node, reference) {
|
|
922
|
+
if (node.nodeClass === NodeClass.ReferenceType) {
|
|
923
|
+
referenceTypeVersion.count += 1;
|
|
955
924
|
}
|
|
956
|
-
if (reference &&
|
|
925
|
+
if (reference && sameNodeId(reference.referenceType, hasSubtype_ReferenceTypeNodeId)) {
|
|
957
926
|
// the answer of isSubtypeOf may have changed for every type below this node
|
|
958
|
-
|
|
927
|
+
typeHierarchyVersion.count += 1;
|
|
959
928
|
}
|
|
960
929
|
}
|
|
961
|
-
const hasSubtype_ReferenceTypeNodeId =
|
|
962
|
-
function BaseNode_add_backward_reference(reference) {
|
|
930
|
+
const hasSubtype_ReferenceTypeNodeId = resolveNodeId("HasSubtype");
|
|
931
|
+
export function BaseNode_add_backward_reference(reference) {
|
|
963
932
|
const _private = BaseNode_getPrivate(this);
|
|
964
933
|
const h = reference.key(this.addressSpace);
|
|
965
934
|
// c8 ignore next
|
|
@@ -983,7 +952,7 @@ function BaseNode_add_backward_reference(reference) {
|
|
|
983
952
|
}
|
|
984
953
|
return;
|
|
985
954
|
}
|
|
986
|
-
if (!
|
|
955
|
+
if (!getReferenceType(reference)) {
|
|
987
956
|
const _stop_here = 1;
|
|
988
957
|
}
|
|
989
958
|
// assert(reference._referenceType instanceof ReferenceType);
|