node-opcua-address-space 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mocharc.yml +12 -0
- package/LICENSE +20 -0
- package/dist/source/address_space_ts.d.ts +122 -0
- package/dist/source/address_space_ts.js +18 -0
- package/dist/source/address_space_ts.js.map +1 -0
- package/dist/source/continuation_points/continuation_point_manager.d.ts +21 -0
- package/dist/source/continuation_points/continuation_point_manager.js +100 -0
- package/dist/source/continuation_points/continuation_point_manager.js.map +1 -0
- package/dist/source/helpers/adjust_browse_direction.d.ts +5 -0
- package/dist/source/helpers/adjust_browse_direction.js +12 -0
- package/dist/source/helpers/adjust_browse_direction.js.map +1 -0
- package/dist/source/helpers/argument_list.d.ts +30 -0
- package/dist/source/helpers/argument_list.js +237 -0
- package/dist/source/helpers/argument_list.js.map +1 -0
- package/dist/source/helpers/call_helpers.d.ts +6 -0
- package/dist/source/helpers/call_helpers.js +71 -0
- package/dist/source/helpers/call_helpers.js.map +1 -0
- package/dist/source/helpers/check_event_clause.d.ts +17 -0
- package/dist/source/helpers/check_event_clause.js +53 -0
- package/dist/source/helpers/check_event_clause.js.map +1 -0
- package/dist/source/helpers/coerce_enum_value.d.ts +6 -0
- package/dist/source/helpers/coerce_enum_value.js +34 -0
- package/dist/source/helpers/coerce_enum_value.js.map +1 -0
- package/dist/source/helpers/dump_tools.d.ts +14 -0
- package/dist/source/helpers/dump_tools.js +79 -0
- package/dist/source/helpers/dump_tools.js.map +1 -0
- package/dist/source/helpers/ensure_secure_access.d.ts +9 -0
- package/dist/source/helpers/ensure_secure_access.js +90 -0
- package/dist/source/helpers/ensure_secure_access.js.map +1 -0
- package/dist/source/helpers/make_optionals_map.d.ts +21 -0
- package/dist/source/helpers/make_optionals_map.js +30 -0
- package/dist/source/helpers/make_optionals_map.js.map +1 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.d.ts +3 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.js +37 -0
- package/dist/source/helpers/resolve_opaque_on_address_space.js.map +1 -0
- package/dist/source/index.d.ts +39 -0
- package/dist/source/index.js +62 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +12 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.d.ts +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_base_i.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.d.ts +4 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.js +3 -0
- package/dist/source/interfaces/data_access/ua_discrete_item.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.d.ts +25 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.d.ts +21 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.d.ts +27 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.d.ts +24 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_multistate_value_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete.d.ts +17 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js +3 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.d.ts +12 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_two_state_discrete_ex.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_y_array_item.d.ts +4 -0
- package/dist/source/interfaces/data_access/ua_y_array_item.js +3 -0
- package/dist/source/interfaces/data_access/ua_y_array_item.js.map +1 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.d.ts +8 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.js +3 -0
- package/dist/source/interfaces/data_access/ua_y_array_item_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.d.ts +11 -0
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/exclusive_limit_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.d.ts +69 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/finite_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.d.ts +74 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/program_finite_state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/state_machine.d.ts +342 -0
- package/dist/source/interfaces/state_machine/state_machine.js +3 -0
- package/dist/source/interfaces/state_machine/state_machine.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.d.ts +12 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.d.ts +49 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.d.ts +18 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_finite_state_variable.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.d.ts +11 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_program_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +222 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js +3 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_state_variable.d.ts +29 -0
- package/dist/source/interfaces/state_machine/ua_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_state_variable.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.d.ts +6 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_transition_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_two_state_variable.d.ts +26 -0
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js +3 -0
- package/dist/source/interfaces/state_machine/ua_two_state_variable.js.map +1 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.d.ts +41 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.js +3 -0
- package/dist/source/interfaces/subscription_diagnostics_variable.js.map +1 -0
- package/dist/source/interfaces/ua_authorisation_service.d.ts +1 -0
- package/dist/source/interfaces/ua_authorisation_service.js +3 -0
- package/dist/source/interfaces/ua_authorisation_service.js.map +1 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.d.ts +8 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js +3 -0
- package/dist/source/interfaces/ua_subscription_diagnostics_variable_ex.js.map +1 -0
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +10 -0
- package/dist/source/loader/generateAddressSpaceRaw.js +59 -0
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -0
- package/dist/source/loader/load_nodeset2.d.ts +13 -0
- package/dist/source/loader/load_nodeset2.js +1392 -0
- package/dist/source/loader/load_nodeset2.js.map +1 -0
- package/dist/source/loader/namespace_post_step.d.ts +6 -0
- package/dist/source/loader/namespace_post_step.js +48 -0
- package/dist/source/loader/namespace_post_step.js.map +1 -0
- package/dist/source/loader/register_node_promoter.d.ts +3 -0
- package/dist/source/loader/register_node_promoter.js +10 -0
- package/dist/source/loader/register_node_promoter.js.map +1 -0
- package/dist/source/namespace.d.ts +6 -0
- package/dist/source/namespace.js +3 -0
- package/dist/source/namespace.js.map +1 -0
- package/dist/source/namespace_alarm_and_condition.d.ts +24 -0
- package/dist/source/namespace_alarm_and_condition.js +3 -0
- package/dist/source/namespace_alarm_and_condition.js.map +1 -0
- package/dist/source/namespace_data_access.d.ts +42 -0
- package/dist/source/namespace_data_access.js +3 -0
- package/dist/source/namespace_data_access.js.map +1 -0
- package/dist/source/namespace_machine_state.d.ts +7 -0
- package/dist/source/namespace_machine_state.js +3 -0
- package/dist/source/namespace_machine_state.js.map +1 -0
- package/dist/source/pseudo_session.d.ts +55 -0
- package/dist/source/pseudo_session.js +205 -0
- package/dist/source/pseudo_session.js.map +1 -0
- package/dist/source/session_context.d.ts +111 -0
- package/dist/source/session_context.js +266 -0
- package/dist/source/session_context.js.map +1 -0
- package/dist/source/set_namespace_meta_data.d.ts +2 -0
- package/dist/source/set_namespace_meta_data.js +60 -0
- package/dist/source/set_namespace_meta_data.js.map +1 -0
- package/dist/source/ua_namespace_meta_data_type.d.ts +71 -0
- package/dist/source/ua_namespace_meta_data_type.js +3 -0
- package/dist/source/ua_namespace_meta_data_type.js.map +1 -0
- package/dist/source/ua_root_folder.d.ts +9 -0
- package/dist/source/ua_root_folder.js +3 -0
- package/dist/source/ua_root_folder.js.map +1 -0
- package/dist/source/ua_two_state_variable_ex.d.ts +23 -0
- package/dist/source/ua_two_state_variable_ex.js +3 -0
- package/dist/source/ua_two_state_variable_ex.js.map +1 -0
- package/dist/source/xml_writer.d.ts +9 -0
- package/dist/source/xml_writer.js +3 -0
- package/dist/source/xml_writer.js.map +1 -0
- package/dist/src/address_space.d.ts +393 -0
- package/dist/src/address_space.js +1375 -0
- package/dist/src/address_space.js.map +1 -0
- package/dist/src/address_space_change_event_tools.d.ts +6 -0
- package/dist/src/address_space_change_event_tools.js +150 -0
- package/dist/src/address_space_change_event_tools.js.map +1 -0
- package/dist/src/address_space_private.d.ts +44 -0
- package/dist/src/address_space_private.js +3 -0
- package/dist/src/address_space_private.js.map +1 -0
- package/dist/src/alarms_and_conditions/base_event_type.d.ts +26 -0
- package/dist/src/alarms_and_conditions/base_event_type.js +41 -0
- package/dist/src/alarms_and_conditions/base_event_type.js.map +1 -0
- package/dist/src/alarms_and_conditions/check_where_clause.d.ts +4 -0
- package/dist/src/alarms_and_conditions/check_where_clause.js +110 -0
- package/dist/src/alarms_and_conditions/check_where_clause.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition.d.ts +5 -0
- package/dist/src/alarms_and_conditions/condition.js +81 -0
- package/dist/src/alarms_and_conditions/condition.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_info.d.ts +27 -0
- package/dist/src/alarms_and_conditions/condition_info.js +55 -0
- package/dist/src/alarms_and_conditions/condition_info.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_snapshot.d.ts +232 -0
- package/dist/src/alarms_and_conditions/condition_snapshot.js +667 -0
- package/dist/src/alarms_and_conditions/condition_snapshot.js.map +1 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +21 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +47 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -0
- package/dist/src/alarms_and_conditions/extract_event_fields.d.ts +10 -0
- package/dist/src/alarms_and_conditions/extract_event_fields.js +90 -0
- package/dist/src/alarms_and_conditions/extract_event_fields.js.map +1 -0
- package/dist/src/alarms_and_conditions/index.d.ts +18 -0
- package/dist/src/alarms_and_conditions/index.js +31 -0
- package/dist/src/alarms_and_conditions/index.js.map +1 -0
- package/dist/src/alarms_and_conditions/shelving_state_machine.d.ts +22 -0
- package/dist/src/alarms_and_conditions/shelving_state_machine.js +241 -0
- package/dist/src/alarms_and_conditions/shelving_state_machine.js.map +1 -0
- package/dist/src/alarms_and_conditions/trip_alarm.d.ts +16 -0
- package/dist/src/alarms_and_conditions/trip_alarm.js +21 -0
- package/dist/src/alarms_and_conditions/trip_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.d.ts +54 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js +255 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +62 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +244 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.d.ts +138 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js +460 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +118 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +417 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.d.ts +29 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js +39 -0
- package/dist/src/alarms_and_conditions/ua_base_event_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.d.ts +35 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js +32 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.d.ts +21 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +26 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_condition_base.d.ts +191 -0
- package/dist/src/alarms_and_conditions/ua_condition_base.js +1029 -0
- package/dist/src/alarms_and_conditions/ua_condition_base.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +182 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +1021 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.d.ts +11 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js +58 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +17 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +58 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.d.ts +24 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js +59 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.d.ts +27 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js +57 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.d.ts +14 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js +17 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.d.ts +9 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js +12 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.d.ts +22 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js +87 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.d.ts +38 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js +87 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.d.ts +6 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js +11 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.d.ts +10 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js +8 -0
- package/dist/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm.d.ts +76 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js +237 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.d.ts +98 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +233 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.d.ts +27 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js +62 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.d.ts +28 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js +51 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.d.ts +49 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js +176 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.d.ts +25 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js +163 -0
- package/dist/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.d.ts +47 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js +151 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.d.ts +39 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +136 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.d.ts +16 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js +18 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.d.ts +16 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js +18 -0
- package/dist/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.js.map +1 -0
- package/dist/src/apply_condition_refresh.d.ts +6 -0
- package/dist/src/apply_condition_refresh.js +28 -0
- package/dist/src/apply_condition_refresh.js.map +1 -0
- package/dist/src/base_node.d.ts +279 -0
- package/dist/src/base_node.js +1364 -0
- package/dist/src/base_node.js.map +1 -0
- package/dist/src/base_node_impl.d.ts +281 -0
- package/dist/src/base_node_impl.js +1394 -0
- package/dist/src/base_node_impl.js.map +1 -0
- package/dist/src/base_node_private.d.ts +61 -0
- package/dist/src/base_node_private.js +521 -0
- package/dist/src/base_node_private.js.map +1 -0
- package/dist/src/data_access/add_dataItem_stuff.d.ts +11 -0
- package/dist/src/data_access/add_dataItem_stuff.js +62 -0
- package/dist/src/data_access/add_dataItem_stuff.js.map +1 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.d.ts +1 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js +35 -0
- package/dist/src/data_access/check_variant_compatibility_ua_analog_item.js.map +1 -0
- package/dist/src/data_access/ua_analog_item.d.ts +13 -0
- package/dist/src/data_access/ua_analog_item.js +37 -0
- package/dist/src/data_access/ua_analog_item.js.map +1 -0
- package/dist/src/data_access/ua_data_item.d.ts +16 -0
- package/dist/src/data_access/ua_data_item.js +66 -0
- package/dist/src/data_access/ua_data_item.js.map +1 -0
- package/dist/src/data_access/ua_multistate_discrete.d.ts +23 -0
- package/dist/src/data_access/ua_multistate_discrete.js +131 -0
- package/dist/src/data_access/ua_multistate_discrete.js.map +1 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.d.ts +32 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.js +131 -0
- package/dist/src/data_access/ua_multistate_discrete_impl.js.map +1 -0
- package/dist/src/data_access/ua_multistate_value_discrete.d.ts +51 -0
- package/dist/src/data_access/ua_multistate_value_discrete.js +249 -0
- package/dist/src/data_access/ua_multistate_value_discrete.js.map +1 -0
- package/dist/src/data_access/ua_two_state_discrete.d.ts +25 -0
- package/dist/src/data_access/ua_two_state_discrete.js +154 -0
- package/dist/src/data_access/ua_two_state_discrete.js.map +1 -0
- package/dist/src/event_data.d.ts +29 -0
- package/dist/src/event_data.js +96 -0
- package/dist/src/event_data.js.map +1 -0
- package/dist/src/extension_object_array_node.d.ts +61 -0
- package/dist/src/extension_object_array_node.js +266 -0
- package/dist/src/extension_object_array_node.js.map +1 -0
- package/dist/src/historical_access/address_space_historical_data_node.d.ts +26 -0
- package/dist/src/historical_access/address_space_historical_data_node.js +662 -0
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -0
- package/dist/src/index_current.d.ts +42 -0
- package/dist/src/index_current.js +71 -0
- package/dist/src/index_current.js.map +1 -0
- package/dist/src/namespace.d.ts +475 -0
- package/dist/src/namespace.js +1775 -0
- package/dist/src/namespace.js.map +1 -0
- package/dist/src/namespace_impl.d.ts +463 -0
- package/dist/src/namespace_impl.js +1763 -0
- package/dist/src/namespace_impl.js.map +1 -0
- package/dist/src/namespace_private.d.ts +21 -0
- package/dist/src/namespace_private.js +29 -0
- package/dist/src/namespace_private.js.map +1 -0
- package/dist/src/nodeid_manager.d.ts +36 -0
- package/dist/src/nodeid_manager.js +196 -0
- package/dist/src/nodeid_manager.js.map +1 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.d.ts +2 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.js +14 -0
- package/dist/src/nodeset_tools/adjust_namespace_array.js.map +1 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.d.ts +2 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +39 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +2 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1155 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -0
- package/dist/src/nodeset_tools/typedictionary_to_xml.d.ts +2 -0
- package/dist/src/nodeset_tools/typedictionary_to_xml.js +147 -0
- package/dist/src/nodeset_tools/typedictionary_to_xml.js.map +1 -0
- package/dist/src/reference.d.ts +43 -0
- package/dist/src/reference.js +138 -0
- package/dist/src/reference.js.map +1 -0
- package/dist/src/reference_impl.d.ts +43 -0
- package/dist/src/reference_impl.js +138 -0
- package/dist/src/reference_impl.js.map +1 -0
- package/dist/src/role_permissions.d.ts +2 -0
- package/dist/src/role_permissions.js +11 -0
- package/dist/src/role_permissions.js.map +1 -0
- package/dist/src/session_context.d.ts +4 -0
- package/dist/src/session_context.js +9 -0
- package/dist/src/session_context.js.map +1 -0
- package/dist/src/state_machine/finite_state_machine.d.ts +67 -0
- package/dist/src/state_machine/finite_state_machine.js +354 -0
- package/dist/src/state_machine/finite_state_machine.js.map +1 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.d.ts +34 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +244 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js.map +1 -0
- package/dist/src/state_machine/ua_two_state_variable.d.ts +61 -0
- package/dist/src/state_machine/ua_two_state_variable.js +332 -0
- package/dist/src/state_machine/ua_two_state_variable.js.map +1 -0
- package/dist/src/tool_isSupertypeOf.d.ts +17 -0
- package/dist/src/tool_isSupertypeOf.js +103 -0
- package/dist/src/tool_isSupertypeOf.js.map +1 -0
- package/dist/src/ua_condition_type.d.ts +8 -0
- package/dist/src/ua_condition_type.js +3 -0
- package/dist/src/ua_condition_type.js.map +1 -0
- package/dist/src/ua_data_type.d.ts +83 -0
- package/dist/src/ua_data_type.js +289 -0
- package/dist/src/ua_data_type.js.map +1 -0
- package/dist/src/ua_data_type_impl.d.ts +83 -0
- package/dist/src/ua_data_type_impl.js +291 -0
- package/dist/src/ua_data_type_impl.js.map +1 -0
- package/dist/src/ua_method.d.ts +42 -0
- package/dist/src/ua_method.js +204 -0
- package/dist/src/ua_method.js.map +1 -0
- package/dist/src/ua_method_impl.d.ts +40 -0
- package/dist/src/ua_method_impl.js +203 -0
- package/dist/src/ua_method_impl.js.map +1 -0
- package/dist/src/ua_object.d.ts +29 -0
- package/dist/src/ua_object.js +153 -0
- package/dist/src/ua_object.js.map +1 -0
- package/dist/src/ua_object_impl.d.ts +29 -0
- package/dist/src/ua_object_impl.js +156 -0
- package/dist/src/ua_object_impl.js.map +1 -0
- package/dist/src/ua_object_type.d.ts +49 -0
- package/dist/src/ua_object_type.js +124 -0
- package/dist/src/ua_object_type.js.map +1 -0
- package/dist/src/ua_object_type_impl.d.ts +48 -0
- package/dist/src/ua_object_type_impl.js +124 -0
- package/dist/src/ua_object_type_impl.js.map +1 -0
- package/dist/src/ua_reference_type.d.ts +42 -0
- package/dist/src/ua_reference_type.js +138 -0
- package/dist/src/ua_reference_type.js.map +1 -0
- package/dist/src/ua_reference_type_impl.d.ts +43 -0
- package/dist/src/ua_reference_type_impl.js +138 -0
- package/dist/src/ua_reference_type_impl.js.map +1 -0
- package/dist/src/ua_variable.d.ts +346 -0
- package/dist/src/ua_variable.js +1721 -0
- package/dist/src/ua_variable.js.map +1 -0
- package/dist/src/ua_variable_impl.d.ts +353 -0
- package/dist/src/ua_variable_impl.js +1719 -0
- package/dist/src/ua_variable_impl.js.map +1 -0
- package/dist/src/ua_variable_type.d.ts +54 -0
- package/dist/src/ua_variable_type.js +555 -0
- package/dist/src/ua_variable_type.js.map +1 -0
- package/dist/src/ua_variable_type_impl.d.ts +63 -0
- package/dist/src/ua_variable_type_impl.js +556 -0
- package/dist/src/ua_variable_type_impl.js.map +1 -0
- package/dist/src/ua_view.d.ts +16 -0
- package/dist/src/ua_view.js +42 -0
- package/dist/src/ua_view.js.map +1 -0
- package/dist/src/ua_view_impl.d.ts +15 -0
- package/dist/src/ua_view_impl.js +37 -0
- package/dist/src/ua_view_impl.js.map +1 -0
- package/distHelpers/add_event_generator_object.d.ts +3 -0
- package/distHelpers/add_event_generator_object.js +66 -0
- package/distHelpers/add_event_generator_object.js.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts +10 -0
- package/distHelpers/alarms_and_conditions_demo.js +115 -0
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts +19 -0
- package/distHelpers/assertHasMatchingReference.js +41 -0
- package/distHelpers/assertHasMatchingReference.js.map +1 -0
- package/distHelpers/boiler_system.d.ts +113 -0
- package/distHelpers/boiler_system.js +397 -0
- package/distHelpers/boiler_system.js.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js +171 -0
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -0
- package/distHelpers/dump_statemachine.d.ts +6 -0
- package/distHelpers/dump_statemachine.js +116 -0
- package/distHelpers/dump_statemachine.js.map +1 -0
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/distHelpers/get_address_space_fixture.js +31 -0
- package/distHelpers/get_address_space_fixture.js.map +1 -0
- package/distHelpers/get_mini_address_space.d.ts +7 -0
- package/distHelpers/get_mini_address_space.js +37 -0
- package/distHelpers/get_mini_address_space.js.map +1 -0
- package/distHelpers/index.d.ts +11 -0
- package/distHelpers/index.js +24 -0
- package/distHelpers/index.js.map +1 -0
- package/distNodeJS/generate_address_space.d.ts +4 -0
- package/distNodeJS/generate_address_space.js +31 -0
- package/distNodeJS/generate_address_space.js.map +1 -0
- package/distNodeJS/index.d.ts +1 -0
- package/distNodeJS/index.js +14 -0
- package/distNodeJS/index.js.map +1 -0
- package/generate.js +1 -0
- package/nodeJS.d.ts +1 -0
- package/nodeJS.js +1 -0
- package/package.json +87 -0
- package/source/address_space_ts.ts +217 -0
- package/source/continuation_points/continuation_point_manager.ts +121 -0
- package/source/helpers/adjust_browse_direction.ts +15 -0
- package/source/helpers/argument_list.ts +286 -0
- package/source/helpers/call_helpers.ts +112 -0
- package/source/helpers/check_event_clause.ts +62 -0
- package/source/helpers/coerce_enum_value.ts +33 -0
- package/source/helpers/dump_tools.ts +92 -0
- package/source/helpers/ensure_secure_access.ts +88 -0
- package/source/helpers/make_optionals_map.ts +49 -0
- package/source/helpers/resolve_opaque_on_address_space.ts +23 -0
- package/source/index.ts +49 -0
- package/source/interfaces/alarms_and_conditions/condition_info_i.ts +13 -0
- package/source/interfaces/data_access/ua_multistate_discrete_ex.ts +26 -0
- package/source/interfaces/data_access/ua_multistate_value_discrete_ex.ts +34 -0
- package/source/interfaces/data_access/ua_two_state_discrete_ex.ts +14 -0
- package/source/interfaces/data_access/ua_y_array_item_ex.ts +10 -0
- package/source/interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex.ts +14 -0
- package/source/interfaces/state_machine/ua_finite_state_machine_type.ts +50 -0
- package/source/interfaces/state_machine/ua_program_state_machine_type.ts +13 -0
- package/source/interfaces/state_machine/ua_state_machine_type.ts +261 -0
- package/source/interfaces/state_machine/ua_transition_ex.ts +7 -0
- package/source/interfaces/ua_subscription_diagnostics_variable_ex.ts +8 -0
- package/source/loader/generateAddressSpaceRaw.ts +79 -0
- package/source/loader/load_nodeset2.ts +1600 -0
- package/source/loader/namespace_post_step.ts +36 -0
- package/source/loader/register_node_promoter.ts +8 -0
- package/source/namespace.ts +9 -0
- package/source/namespace_alarm_and_condition.ts +47 -0
- package/source/namespace_data_access.ts +60 -0
- package/source/namespace_machine_state.ts +13 -0
- package/source/pseudo_session.ts +288 -0
- package/source/session_context.ts +345 -0
- package/source/set_namespace_meta_data.ts +68 -0
- package/source/ua_root_folder.ts +10 -0
- package/source/ua_two_state_variable_ex.ts +35 -0
- package/source/xml_writer.ts +15 -0
- package/source_nodejs/generate_address_space.ts +36 -0
- package/source_nodejs/index.ts +1 -0
- package/src/address_space.ts +1575 -0
- package/src/address_space_change_event_tools.ts +177 -0
- package/src/address_space_private.ts +98 -0
- package/src/alarms_and_conditions/check_where_clause.ts +148 -0
- package/src/alarms_and_conditions/condition.ts +89 -0
- package/src/alarms_and_conditions/condition_info.ts +66 -0
- package/src/alarms_and_conditions/condition_snapshot.ts +766 -0
- package/src/alarms_and_conditions/deviation_alarm_helper.ts +66 -0
- package/src/alarms_and_conditions/extract_event_fields.ts +104 -0
- package/src/alarms_and_conditions/index.ts +18 -0
- package/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.ts +339 -0
- package/src/alarms_and_conditions/ua_alarm_condition_impl.ts +513 -0
- package/src/alarms_and_conditions/ua_base_event_impl.ts +55 -0
- package/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.ts +50 -0
- package/src/alarms_and_conditions/ua_condition_impl.ts +1298 -0
- package/src/alarms_and_conditions/ua_discrete_alarm_impl.ts +81 -0
- package/src/alarms_and_conditions/ua_exclusive_deviation_alarm_impl.ts +110 -0
- package/src/alarms_and_conditions/ua_exclusive_level_alarm_impl.ts +19 -0
- package/src/alarms_and_conditions/ua_exclusive_limit_alarm_impl.ts +130 -0
- package/src/alarms_and_conditions/ua_exclusive_rate_of_change_alarm_impl.ts +24 -0
- package/src/alarms_and_conditions/ua_limit_alarm_impl.ts +305 -0
- package/src/alarms_and_conditions/ua_non_exclusive_deviation_alarm_impl.ts +108 -0
- package/src/alarms_and_conditions/ua_non_exclusive_limit_alarm_impl.ts +224 -0
- package/src/alarms_and_conditions/ua_off_normal_alarm_impl.ts +186 -0
- package/src/alarms_and_conditions/ua_system_off_normal_alarm_impl.ts +27 -0
- package/src/apply_condition_refresh.ts +30 -0
- package/src/base_node_impl.ts +1749 -0
- package/src/base_node_private.ts +690 -0
- package/src/data_access/add_dataItem_stuff.ts +75 -0
- package/src/data_access/check_variant_compatibility_ua_analog_item.ts +41 -0
- package/src/data_access/ua_multistate_discrete_impl.ts +168 -0
- package/src/data_access/ua_multistate_value_discrete.ts +299 -0
- package/src/data_access/ua_two_state_discrete.ts +185 -0
- package/src/event_data.ts +117 -0
- package/src/extension_object_array_node.ts +325 -0
- package/src/historical_access/address_space_historical_data_node.ts +828 -0
- package/src/index_current.ts +52 -0
- package/src/namespace_impl.ts +2181 -0
- package/src/namespace_private.ts +60 -0
- package/src/nodeid_manager.ts +228 -0
- package/src/nodeset_tools/adjust_namespace_array.ts +11 -0
- package/src/nodeset_tools/construct_namespace_dependency.ts +40 -0
- package/src/nodeset_tools/nodeset_to_xml.ts +1317 -0
- package/src/nodeset_tools/typedictionary_to_xml.ts +175 -0
- package/src/reference_impl.ts +169 -0
- package/src/role_permissions.ts +6 -0
- package/src/state_machine/finite_state_machine.ts +428 -0
- package/src/state_machine/ua_shelving_state_machine_ex.ts +314 -0
- package/src/state_machine/ua_two_state_variable.ts +421 -0
- package/src/tool_isSupertypeOf.ts +129 -0
- package/src/ua_condition_type.ts +10 -0
- package/src/ua_data_type_impl.ts +356 -0
- package/src/ua_method_impl.ts +278 -0
- package/src/ua_object_impl.ts +203 -0
- package/src/ua_object_type_impl.ts +158 -0
- package/src/ua_reference_type_impl.ts +174 -0
- package/src/ua_variable_impl.ts +2277 -0
- package/src/ua_variable_type_impl.ts +741 -0
- package/src/ua_view_impl.ts +54 -0
- package/testHelpers.d.ts +1 -0
- package/testHelpers.js +1 -0
- package/test_helpers/add_event_generator_object.ts +71 -0
- package/test_helpers/alarms_and_conditions_demo.ts +147 -0
- package/test_helpers/assertHasMatchingReference.ts +43 -0
- package/test_helpers/boiler_system.ts +618 -0
- package/test_helpers/create_minimalist_address_space_nodeset.ts +208 -0
- package/test_helpers/dump_statemachine.ts +155 -0
- package/test_helpers/get_address_space_fixture.ts +30 -0
- package/test_helpers/get_mini_address_space.ts +42 -0
- package/test_helpers/index.ts +11 -0
- package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +150 -0
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +57 -0
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +136 -0
- package/test_helpers/test_fixtures/dataType_withEnumeration.xml +82 -0
- package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +194 -0
- package/test_helpers/test_fixtures/dataType_with_structures.xml +605 -0
- package/test_helpers/test_fixtures/dataType_with_union.xml +1 -0
- package/test_helpers/test_fixtures/datatype_as_per_1.04.xml +91 -0
- package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +106 -0
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +1303 -0
- package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +362 -0
- package/test_helpers/test_fixtures/issue_846.xml +3172 -0
- package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +33 -0
- package/test_helpers/test_fixtures/mini.Node.Set2.xml +4508 -0
- package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +194 -0
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +8 -0
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +16 -0
- package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +45 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import * as chalk from "chalk";
|
|
5
|
+
|
|
6
|
+
import { assert } from "node-opcua-assert";
|
|
7
|
+
import { isValidByte } from "node-opcua-basic-types";
|
|
8
|
+
import { NodeClass, QualifiedNameLike, QualifiedNameOptions } from "node-opcua-data-model";
|
|
9
|
+
import { AttributeIds } from "node-opcua-data-model";
|
|
10
|
+
import { DataValue, DataValueLike } from "node-opcua-data-value";
|
|
11
|
+
import { getCurrentClock } from "node-opcua-date-time";
|
|
12
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
13
|
+
import { NumericRange } from "node-opcua-numeric-range";
|
|
14
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
15
|
+
import { DataType } from "node-opcua-variant";
|
|
16
|
+
import {
|
|
17
|
+
EventTypeLike,
|
|
18
|
+
RaiseEventData,
|
|
19
|
+
ISessionContext,
|
|
20
|
+
UAMethod,
|
|
21
|
+
UAObject,
|
|
22
|
+
UAObjectType,
|
|
23
|
+
CloneOptions, CloneFilter, CloneExtraInfo, BaseNode, UAEventType
|
|
24
|
+
} from "node-opcua-address-space-base";
|
|
25
|
+
|
|
26
|
+
import { BaseNodeImpl } from "./base_node_impl";
|
|
27
|
+
import { _clone, ToStringBuilder, UAObject_toString } from "./base_node_private";
|
|
28
|
+
import { apply_condition_refresh } from "./apply_condition_refresh";
|
|
29
|
+
|
|
30
|
+
export class UAObjectImpl extends BaseNodeImpl implements UAObject {
|
|
31
|
+
public readonly nodeClass = NodeClass.Object;
|
|
32
|
+
public readonly eventNotifier: number;
|
|
33
|
+
public readonly symbolicName: string;
|
|
34
|
+
|
|
35
|
+
get typeDefinitionObj(): UAObjectType {
|
|
36
|
+
return super.typeDefinitionObj as UAObjectType;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
constructor(options: any) {
|
|
40
|
+
super(options);
|
|
41
|
+
this.eventNotifier = options.eventNotifier || 0;
|
|
42
|
+
assert(typeof this.eventNotifier === "number" && isValidByte(this.eventNotifier));
|
|
43
|
+
this.symbolicName = options.symbolicName || null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public readAttribute(
|
|
47
|
+
context: ISessionContext | null,
|
|
48
|
+
attributeId: AttributeIds,
|
|
49
|
+
indexRange?: NumericRange,
|
|
50
|
+
dataEncoding?: QualifiedNameLike | null
|
|
51
|
+
): DataValue {
|
|
52
|
+
indexRange;
|
|
53
|
+
dataEncoding;
|
|
54
|
+
const now = getCurrentClock();
|
|
55
|
+
const options: DataValueLike = {};
|
|
56
|
+
switch (attributeId) {
|
|
57
|
+
case AttributeIds.EventNotifier:
|
|
58
|
+
assert(isValidByte(this.eventNotifier));
|
|
59
|
+
options.value = { dataType: DataType.Byte, value: this.eventNotifier };
|
|
60
|
+
options.serverTimestamp = now.timestamp;
|
|
61
|
+
options.serverPicoseconds = now.picoseconds;
|
|
62
|
+
options.statusCode = StatusCodes.Good;
|
|
63
|
+
break;
|
|
64
|
+
default:
|
|
65
|
+
return BaseNodeImpl.prototype.readAttribute.call(this, context, attributeId, indexRange, dataEncoding);
|
|
66
|
+
}
|
|
67
|
+
return new DataValue(options);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
public clone(options: CloneOptions, optionalFilter?: CloneFilter, extraInfo?: CloneExtraInfo): UAObject {
|
|
71
|
+
options = options || {};
|
|
72
|
+
options = {
|
|
73
|
+
...options,
|
|
74
|
+
eventNotifier: this.eventNotifier,
|
|
75
|
+
symbolicName: this.symbolicName
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const cloneObject = _clone.call(this, UAObjectImpl, options, optionalFilter, extraInfo) as UAObject;
|
|
79
|
+
// xx newObject.propagate_back_references();
|
|
80
|
+
// xx newObject.install_extra_properties();
|
|
81
|
+
return cloneObject;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* returns true if the object has some opcua methods
|
|
86
|
+
*/
|
|
87
|
+
public get hasMethods(): boolean {
|
|
88
|
+
return this.getMethods().length > 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public getMethodByName(methodName: QualifiedNameOptions): UAMethod | null;
|
|
92
|
+
public getMethodByName(methodName: string, namespaceIndex?: number): UAMethod | null;
|
|
93
|
+
public getMethodByName(methodName: QualifiedNameLike, namespaceIndex?: number): UAMethod | null {
|
|
94
|
+
return super.getMethodByName(methodName as any, namespaceIndex);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public getMethods(): UAMethod[] {
|
|
98
|
+
return super.getMethods();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Raise a transient Event
|
|
103
|
+
*/
|
|
104
|
+
public raiseEvent(eventType: EventTypeLike | BaseNode, data: RaiseEventData): void {
|
|
105
|
+
const addressSpace = this.addressSpace;
|
|
106
|
+
|
|
107
|
+
if (typeof eventType === "string") {
|
|
108
|
+
const eventTypeFound = addressSpace.findEventType(eventType);
|
|
109
|
+
if (!eventTypeFound) {
|
|
110
|
+
throw new Error("raiseEvent: eventType cannot find event Type " + eventType.toString());
|
|
111
|
+
}
|
|
112
|
+
eventType = eventTypeFound;
|
|
113
|
+
if (!eventType || eventType.nodeClass !== NodeClass.ObjectType) {
|
|
114
|
+
throw new Error("eventType must exist and be an UAObjectType");
|
|
115
|
+
}
|
|
116
|
+
} else if (eventType instanceof NodeId) {
|
|
117
|
+
const eventTypeFound = addressSpace.findNode(eventType) as BaseNode;
|
|
118
|
+
if (!eventTypeFound) {
|
|
119
|
+
throw new Error("raiseEvent: eventType cannot find event Type " + eventType.toString());
|
|
120
|
+
}
|
|
121
|
+
eventType = eventTypeFound!;
|
|
122
|
+
if (!eventType || eventType.nodeClass !== NodeClass.ObjectType) {
|
|
123
|
+
throw new Error("eventType must exist and be an UAObjectType" + eventType.toString());
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
eventType = eventType as UAEventType;
|
|
128
|
+
|
|
129
|
+
let eventTypeNode: UAEventType = eventType as UAEventType;
|
|
130
|
+
// istanbul ignore next
|
|
131
|
+
if (!eventTypeNode) {
|
|
132
|
+
throw new Error("UAObject#raiseEventType : Cannot find event type :" + eventType.toString());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// coerce EventType
|
|
136
|
+
eventTypeNode = addressSpace.findEventType(eventType as UAEventType) as UAEventType;
|
|
137
|
+
const baseEventType = addressSpace.findEventType("BaseEventType")!;
|
|
138
|
+
assert(eventTypeNode.isSupertypeOf(baseEventType));
|
|
139
|
+
|
|
140
|
+
data.$eventDataSource = eventTypeNode;
|
|
141
|
+
data.sourceNode = data.sourceNode || { dataType: DataType.NodeId, value: this.nodeId };
|
|
142
|
+
|
|
143
|
+
const eventData1 = addressSpace.constructEventData(eventTypeNode, data);
|
|
144
|
+
|
|
145
|
+
this._bubble_up_event(eventData1);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public _bubble_up_event(eventData: any) {
|
|
149
|
+
const addressSpace = this.addressSpace;
|
|
150
|
+
|
|
151
|
+
const queue: any[] = [];
|
|
152
|
+
// walk up the hasNotify / hasEventSource chain
|
|
153
|
+
const m: any = {};
|
|
154
|
+
|
|
155
|
+
// all events are notified to the server object
|
|
156
|
+
// emit on server object
|
|
157
|
+
const server = addressSpace.findNode("Server") as UAObject;
|
|
158
|
+
|
|
159
|
+
if (server) {
|
|
160
|
+
assert(server.eventNotifier > 0x00, "Server must be an event notifier");
|
|
161
|
+
server.emit("event", eventData);
|
|
162
|
+
m[server.nodeId.toString()] = server;
|
|
163
|
+
} else {
|
|
164
|
+
// tslint:disable:no-console
|
|
165
|
+
console.warn(
|
|
166
|
+
chalk.yellow("Warning. ") +
|
|
167
|
+
chalk.cyan("UAObject#raiseEvent") +
|
|
168
|
+
chalk.red(" cannot find Server object on addressSpace")
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
addInQueue(this);
|
|
173
|
+
|
|
174
|
+
function addInQueue(obj: BaseNode) {
|
|
175
|
+
const key: string = obj.nodeId.toString();
|
|
176
|
+
if (!m[key]) {
|
|
177
|
+
m[key] = obj;
|
|
178
|
+
queue.push(obj);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
while (queue.length) {
|
|
183
|
+
const obj = queue.pop();
|
|
184
|
+
// emit on object
|
|
185
|
+
obj.emit("event", eventData);
|
|
186
|
+
|
|
187
|
+
const elements1 = obj.findReferencesAsObject("HasNotifier", false);
|
|
188
|
+
elements1.forEach(addInQueue);
|
|
189
|
+
|
|
190
|
+
const elements2 = obj.findReferencesAsObject("HasEventSource", false);
|
|
191
|
+
elements2.forEach(addInQueue);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
public _conditionRefresh(_cache?: any) {
|
|
195
|
+
apply_condition_refresh.call(this, _cache);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
public toString(): string {
|
|
199
|
+
const options = new ToStringBuilder();
|
|
200
|
+
UAObject_toString.call(this, options);
|
|
201
|
+
return options.toString();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
import { NodeClass } from "node-opcua-data-model";
|
|
6
|
+
import { AttributeIds } from "node-opcua-data-model";
|
|
7
|
+
import { DataValue, DataValueLike } from "node-opcua-data-value";
|
|
8
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
9
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
10
|
+
import * as utils from "node-opcua-utils";
|
|
11
|
+
import { DataType } from "node-opcua-variant";
|
|
12
|
+
import {
|
|
13
|
+
AddObjectOptions,
|
|
14
|
+
InstantiateObjectOptions,
|
|
15
|
+
ISessionContext,
|
|
16
|
+
UAObject,
|
|
17
|
+
UAObjectType,
|
|
18
|
+
UAReference
|
|
19
|
+
} from "node-opcua-address-space-base";
|
|
20
|
+
|
|
21
|
+
import { SessionContext } from "../source/session_context";
|
|
22
|
+
import { BaseNodeImpl } from "./base_node_impl";
|
|
23
|
+
import { ToStringBuilder, UAObjectType_toString } from "./base_node_private";
|
|
24
|
+
import { get_subtypeOf, get_subtypeOfObj } from "./tool_isSupertypeOf";
|
|
25
|
+
import * as tools from "./tool_isSupertypeOf";
|
|
26
|
+
import { assertUnusedChildBrowseName, initialize_properties_and_components, topMostParentIsObjectTypeOrVariableType } from "./ua_variable_type_impl";
|
|
27
|
+
import { AddressSpacePrivate } from "./address_space_private";
|
|
28
|
+
|
|
29
|
+
export class UAObjectTypeImpl extends BaseNodeImpl implements UAObjectType {
|
|
30
|
+
public readonly nodeClass = NodeClass.ObjectType;
|
|
31
|
+
public readonly isAbstract: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* returns true if the object has some opcua methods
|
|
34
|
+
*/
|
|
35
|
+
public get hasMethods(): boolean {
|
|
36
|
+
return this.getMethods().length > 0;
|
|
37
|
+
}
|
|
38
|
+
public get subtypeOf(): NodeId | null {
|
|
39
|
+
return get_subtypeOf.call(this);
|
|
40
|
+
}
|
|
41
|
+
public get subtypeOfObj(): UAObjectType | null {
|
|
42
|
+
return get_subtypeOfObj.call(this) as any as UAObjectType;
|
|
43
|
+
}
|
|
44
|
+
public isSupertypeOf = tools.construct_isSupertypeOf<UAObjectType>(UAObjectTypeImpl);
|
|
45
|
+
|
|
46
|
+
constructor(options: any) {
|
|
47
|
+
super(options);
|
|
48
|
+
this.isAbstract = utils.isNullOrUndefined(options.isAbstract) ? false : options.isAbstract;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public readAttribute(context: ISessionContext, attributeId: AttributeIds): DataValue {
|
|
52
|
+
assert(context instanceof SessionContext);
|
|
53
|
+
const options: DataValueLike = {};
|
|
54
|
+
switch (attributeId) {
|
|
55
|
+
case AttributeIds.IsAbstract:
|
|
56
|
+
options.value = {
|
|
57
|
+
dataType: DataType.Boolean,
|
|
58
|
+
value: !!this.isAbstract
|
|
59
|
+
};
|
|
60
|
+
options.statusCode = StatusCodes.Good;
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
return BaseNodeImpl.prototype.readAttribute.call(this, context, attributeId);
|
|
64
|
+
}
|
|
65
|
+
return new DataValue(options);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* instantiate an object of this UAObjectType
|
|
70
|
+
* The instantiation takes care of object type inheritance when constructing inner properties and components.
|
|
71
|
+
* @method instantiate
|
|
72
|
+
* @param options
|
|
73
|
+
* @param options.browseName
|
|
74
|
+
* @param [options.description]
|
|
75
|
+
* @param [options.organizedBy] the parent Folder holding this object
|
|
76
|
+
* @param [options.componentOf] the parent Object holding this object
|
|
77
|
+
* @param [options.notifierOf]
|
|
78
|
+
* @param [options.eventSourceOf]
|
|
79
|
+
* @param [options.optionals = [] name of the optional child to create
|
|
80
|
+
* @param [options.modellingRule]
|
|
81
|
+
* @param [options.encodingOf]
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* Note : HasComponent usage scope
|
|
85
|
+
*
|
|
86
|
+
* Source | Destination
|
|
87
|
+
* -------------------+---------------------------
|
|
88
|
+
* Object | Object, Variable,Method
|
|
89
|
+
* ObjectType |
|
|
90
|
+
* -------------------+---------------------------
|
|
91
|
+
* DataVariable | Variable
|
|
92
|
+
* DataVariableType |
|
|
93
|
+
*/
|
|
94
|
+
public instantiate(options: InstantiateObjectOptions): UAObject {
|
|
95
|
+
const addressSpace = this.addressSpace as AddressSpacePrivate;
|
|
96
|
+
assert(!this.isAbstract, "cannot instantiate abstract UAObjectType");
|
|
97
|
+
|
|
98
|
+
assert(options, "missing option object");
|
|
99
|
+
assert(
|
|
100
|
+
typeof options.browseName === "string" || (options.browseName !== null && typeof options.browseName === "object"),
|
|
101
|
+
"expecting a browse name"
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
assert(!Object.prototype.hasOwnProperty.call(options,"propertyOf"), "an Object shall not be a PropertyOf an other object");
|
|
105
|
+
assert(!Object.prototype.hasOwnProperty.call(options,"optional"), "do you mean optionals ?");
|
|
106
|
+
|
|
107
|
+
assertUnusedChildBrowseName(addressSpace, options);
|
|
108
|
+
|
|
109
|
+
const baseObjectType = addressSpace.findObjectType("BaseObjectType")!;
|
|
110
|
+
assert(baseObjectType, "BaseObjectType must be defined in the address space");
|
|
111
|
+
|
|
112
|
+
const references: UAReference[] = [];
|
|
113
|
+
|
|
114
|
+
const copyAlsoModellingRules = topMostParentIsObjectTypeOrVariableType(addressSpace, options);
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
const opts: AddObjectOptions = {
|
|
118
|
+
browseName: options.browseName,
|
|
119
|
+
componentOf: options.componentOf,
|
|
120
|
+
description: options.description || this.description,
|
|
121
|
+
encodingOf: options.encodingOf,
|
|
122
|
+
eventSourceOf: options.eventSourceOf,
|
|
123
|
+
notifierOf: options.notifierOf,
|
|
124
|
+
organizedBy: options.organizedBy,
|
|
125
|
+
references,
|
|
126
|
+
|
|
127
|
+
typeDefinition: this.nodeId,
|
|
128
|
+
|
|
129
|
+
nodeId: options.nodeId,
|
|
130
|
+
|
|
131
|
+
eventNotifier: options.eventNotifier === undefined ? 0 : options.eventNotifier,
|
|
132
|
+
|
|
133
|
+
modellingRule: options.modellingRule
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const namespace = options.namespace || this.addressSpace.getOwnNamespace();
|
|
137
|
+
|
|
138
|
+
const instance = namespace.addObject(opts);
|
|
139
|
+
|
|
140
|
+
initialize_properties_and_components(instance, baseObjectType, this, copyAlsoModellingRules, options.optionals);
|
|
141
|
+
|
|
142
|
+
assert(instance.typeDefinition.toString() === this.nodeId.toString());
|
|
143
|
+
|
|
144
|
+
instance.install_extra_properties();
|
|
145
|
+
|
|
146
|
+
if (this._postInstantiateFunc) {
|
|
147
|
+
this._postInstantiateFunc(instance, this, options);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return instance;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
public toString(): string {
|
|
154
|
+
const options = new ToStringBuilder();
|
|
155
|
+
UAObjectType_toString.call(this, options);
|
|
156
|
+
return options.toString();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UAReference, UAReferenceType } from "node-opcua-address-space-base";
|
|
6
|
+
import { assert } from "node-opcua-assert";
|
|
7
|
+
import { coerceLocalizedText, LocalizedTextOptions } from "node-opcua-data-model";
|
|
8
|
+
import { LocalizedText, NodeClass } from "node-opcua-data-model";
|
|
9
|
+
import { AttributeIds } from "node-opcua-data-model";
|
|
10
|
+
import { DataValue, DataValueLike } from "node-opcua-data-value";
|
|
11
|
+
import { NodeId } from "node-opcua-nodeid";
|
|
12
|
+
import { StatusCodes } from "node-opcua-status-code";
|
|
13
|
+
import { DataType } from "node-opcua-variant";
|
|
14
|
+
|
|
15
|
+
import { SessionContext, UAReferenceType as UAReferenceTypePublic } from "../source";
|
|
16
|
+
import { BaseNodeImpl, InternalBaseNodeOptions } from "./base_node_impl";
|
|
17
|
+
import * as tools from "./tool_isSupertypeOf";
|
|
18
|
+
import { get_subtypeOf, get_subtypeOfObj } from "./tool_isSupertypeOf";
|
|
19
|
+
import { ReferenceImpl } from "./reference_impl";
|
|
20
|
+
import {
|
|
21
|
+
BaseNode_getCache
|
|
22
|
+
} from "./base_node_private";
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
const ReferenceTypeCounter = { count: 0 };
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
function _internal_getAllSubtypes(referenceType: UAReferenceType): UAReferenceTypePublic[] {
|
|
29
|
+
const addressSpace = referenceType.addressSpace;
|
|
30
|
+
const possibleReferenceTypes: UAReferenceType[] = [];
|
|
31
|
+
|
|
32
|
+
const hasSubtypeReferenceType = addressSpace.findReferenceType("HasSubtype")!;
|
|
33
|
+
|
|
34
|
+
function _findAllSubType(referenceTypeInner: UAReferenceType) {
|
|
35
|
+
possibleReferenceTypes.push(referenceTypeInner);
|
|
36
|
+
assert(referenceTypeInner.nodeClass === NodeClass.ReferenceType);
|
|
37
|
+
const references = referenceTypeInner.findReferences(hasSubtypeReferenceType, true);
|
|
38
|
+
for (const _r of references) {
|
|
39
|
+
const subType: UAReferenceTypePublic = addressSpace.findReferenceType(_r.nodeId)!;
|
|
40
|
+
_findAllSubType(subType);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
_findAllSubType(referenceType);
|
|
44
|
+
return possibleReferenceTypes;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _getAllSubtypes(ref: UAReferenceType) {
|
|
48
|
+
|
|
49
|
+
const _cache = BaseNode_getCache(ref);
|
|
50
|
+
|
|
51
|
+
if (!_cache._allSubTypesVersion || _cache._allSubTypesVersion < ReferenceTypeCounter.count) {
|
|
52
|
+
_cache._allSubTypes = null;
|
|
53
|
+
}
|
|
54
|
+
if (!_cache._allSubTypes) {
|
|
55
|
+
_cache._allSubTypes = _internal_getAllSubtypes(ref);
|
|
56
|
+
_cache._allSubTypesVersion = ReferenceTypeCounter.count;
|
|
57
|
+
}
|
|
58
|
+
return _cache._allSubTypes;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function _internal_getSubtypeIndex(referenceType: UAReferenceType): { [key: string]: UAReferenceTypePublic } {
|
|
62
|
+
const possibleReferenceTypes = _getAllSubtypes(referenceType);
|
|
63
|
+
// create a index of reference type with browseName as key for faster search
|
|
64
|
+
const keys: any = {};
|
|
65
|
+
for (const refType of possibleReferenceTypes) {
|
|
66
|
+
keys[refType.nodeId.toString()] = refType;
|
|
67
|
+
}
|
|
68
|
+
return keys;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function _getSubtypeIndex(referenceType: UAReferenceType): { [key: string]: UAReferenceTypePublic } {
|
|
72
|
+
|
|
73
|
+
const _cache = BaseNode_getCache(referenceType);
|
|
74
|
+
if (!_cache._subtype_idx || _cache._subtype_idxVersion < ReferenceTypeCounter.count) {
|
|
75
|
+
// the cache need to be invalidated
|
|
76
|
+
_cache._subtype_idx = null;
|
|
77
|
+
}
|
|
78
|
+
if (!_cache._subtype_idx) {
|
|
79
|
+
_cache._subtype_idx = _internal_getSubtypeIndex(referenceType);
|
|
80
|
+
_cache._subtype_idxVersion = ReferenceTypeCounter.count;
|
|
81
|
+
}
|
|
82
|
+
return _cache._subtype_idx;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
export interface UAReferenceTypeOptions extends InternalBaseNodeOptions {
|
|
87
|
+
isAbstract?: boolean;
|
|
88
|
+
symmetric?: boolean;
|
|
89
|
+
inverseName: null | string | LocalizedTextOptions;
|
|
90
|
+
}
|
|
91
|
+
export class UAReferenceTypeImpl extends BaseNodeImpl implements UAReferenceType {
|
|
92
|
+
public readonly nodeClass = NodeClass.ReferenceType;
|
|
93
|
+
public readonly isAbstract: boolean;
|
|
94
|
+
public readonly symmetric: boolean;
|
|
95
|
+
public readonly inverseName: LocalizedText;
|
|
96
|
+
|
|
97
|
+
public get subtypeOfObj(): UAReferenceTypePublic | null {
|
|
98
|
+
return get_subtypeOfObj.call(this) as UAReferenceType;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public get subtypeOf(): NodeId | null {
|
|
102
|
+
return get_subtypeOf.call(this);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* returns true if self is a super type of baseType
|
|
107
|
+
*/
|
|
108
|
+
public isSupertypeOf = tools.construct_isSupertypeOf<UAReferenceType>(UAReferenceTypeImpl);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
113
|
+
public _slow_isSupertypeOf = tools.construct_slow_isSupertypeOf<UAReferenceType>(UAReferenceTypeImpl);
|
|
114
|
+
|
|
115
|
+
constructor(options: UAReferenceTypeOptions) {
|
|
116
|
+
super(options);
|
|
117
|
+
this.isAbstract = options.isAbstract === undefined ? false : !!options.isAbstract;
|
|
118
|
+
this.symmetric = options.symmetric === undefined ? false : !!options.symmetric;
|
|
119
|
+
// Note: Inverse name is not required anymore in 1.0.4
|
|
120
|
+
this.inverseName = coerceLocalizedText(options.inverseName || this.browseName.name)!;
|
|
121
|
+
|
|
122
|
+
ReferenceTypeCounter.count += 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public readAttribute(context: SessionContext | null, attributeId: AttributeIds): DataValue {
|
|
126
|
+
assert(!context || context instanceof SessionContext);
|
|
127
|
+
|
|
128
|
+
const options: DataValueLike = {};
|
|
129
|
+
switch (attributeId) {
|
|
130
|
+
case AttributeIds.IsAbstract:
|
|
131
|
+
options.value = { dataType: DataType.Boolean, value: !!this.isAbstract };
|
|
132
|
+
options.statusCode = StatusCodes.Good;
|
|
133
|
+
break;
|
|
134
|
+
case AttributeIds.Symmetric:
|
|
135
|
+
options.value = { dataType: DataType.Boolean, value: !!this.symmetric };
|
|
136
|
+
options.statusCode = StatusCodes.Good;
|
|
137
|
+
break;
|
|
138
|
+
case AttributeIds.InverseName: // LocalizedText
|
|
139
|
+
options.value = { dataType: DataType.LocalizedText, value: this.inverseName };
|
|
140
|
+
options.statusCode = StatusCodes.Good;
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
return super.readAttribute(context, attributeId);
|
|
144
|
+
}
|
|
145
|
+
return new DataValue(options);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public toString(): string {
|
|
149
|
+
let str = "";
|
|
150
|
+
str += this.isAbstract ? "A" : " ";
|
|
151
|
+
str += this.symmetric ? "S" : " ";
|
|
152
|
+
str += " " + this.browseName.toString() + "/" + this.inverseName.text + " ";
|
|
153
|
+
str += this.nodeId.toString();
|
|
154
|
+
return str;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
public install_extra_properties(): void { /** */ }
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* returns a array of all ReferenceTypes in the addressSpace that are self or a subType of self
|
|
161
|
+
* recursively
|
|
162
|
+
*/
|
|
163
|
+
public getAllSubtypes(): UAReferenceType[] {
|
|
164
|
+
return _getAllSubtypes(this);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
public checkHasSubtype(ref: UAReference | NodeId): boolean {
|
|
168
|
+
const _index = _getSubtypeIndex(this);
|
|
169
|
+
const referenceTypeNodeId = ref instanceof ReferenceImpl ? ref.nodeId : ref as NodeId;
|
|
170
|
+
const _key = referenceTypeNodeId.toString();
|
|
171
|
+
return !!_index[_key];
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|