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,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dumpStateMachineToGraphViz = exports.dumpStateMachineToPlantUML = void 0;
|
|
4
|
+
function dumpStateMachineToPlantUML(stateMachineType) {
|
|
5
|
+
function w(str) {
|
|
6
|
+
console.log(str);
|
|
7
|
+
}
|
|
8
|
+
function s(state) {
|
|
9
|
+
return state.nodeId.value.toString();
|
|
10
|
+
}
|
|
11
|
+
function n(state) {
|
|
12
|
+
return state.browseName.name.toString();
|
|
13
|
+
}
|
|
14
|
+
w("@startuml "); // + stateMachineType.browseName.toString() + ".png");
|
|
15
|
+
// initial state if any
|
|
16
|
+
if (stateMachineType.initialState) {
|
|
17
|
+
w(" [*] --> " + s(stateMachineType.initialState));
|
|
18
|
+
w(" " + s(stateMachineType.initialState) + ":" + n(stateMachineType.initialState));
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
w("[*] --> [*]");
|
|
22
|
+
}
|
|
23
|
+
function t(transition) {
|
|
24
|
+
let name = n(transition);
|
|
25
|
+
name = name.replace(":", "");
|
|
26
|
+
name = name.replace("To", "\\nTo\\n");
|
|
27
|
+
name = name.replace("Transition", "\\nTransition");
|
|
28
|
+
return name;
|
|
29
|
+
}
|
|
30
|
+
stateMachineType.states.forEach((state) => w(" " + s(state) + ": " + n(state)));
|
|
31
|
+
stateMachineType.transitions.forEach((transition) => w(" " + s(transition.fromStateNode) + " --> " + s(transition.toStateNode) + " : " + t(transition)));
|
|
32
|
+
w("@enduml");
|
|
33
|
+
}
|
|
34
|
+
exports.dumpStateMachineToPlantUML = dumpStateMachineToPlantUML;
|
|
35
|
+
/*
|
|
36
|
+
@startuml
|
|
37
|
+
|
|
38
|
+
2930: Unshelved
|
|
39
|
+
|
|
40
|
+
2932: TimedShelved
|
|
41
|
+
|
|
42
|
+
2933: OneShotShelved
|
|
43
|
+
|
|
44
|
+
2930 --> 2932 : "2935\nUnshelvedToTimedShelved"
|
|
45
|
+
|
|
46
|
+
2930 --> 2933 : "2936\nUnshelvedToOneShotShelved"
|
|
47
|
+
|
|
48
|
+
2932 --> 2930 : "2940\nTimedShelvedToUnshelved"
|
|
49
|
+
|
|
50
|
+
2932 --> 2933 : "2942\nTimedShelvedToOneShotShelved"
|
|
51
|
+
|
|
52
|
+
2933 --> 2930 : "2943\nOneShotShelvedToUnshelved"
|
|
53
|
+
|
|
54
|
+
2933 --> 2932 : "2945\nOneShotShelvedToTimedShelved"
|
|
55
|
+
|
|
56
|
+
@enduml
|
|
57
|
+
|
|
58
|
+
*/
|
|
59
|
+
/*
|
|
60
|
+
digraph finite_state_machine {
|
|
61
|
+
rankdir=LR;
|
|
62
|
+
size="8,5"
|
|
63
|
+
node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
|
|
64
|
+
node [shape = circle];
|
|
65
|
+
LR_0 -> LR_2 [ label = "SS(B)" ];
|
|
66
|
+
LR_0 -> LR_1 [ label = "SS(S)" ];
|
|
67
|
+
LR_1 -> LR_3 [ label = "S($end)" ];
|
|
68
|
+
LR_2 -> LR_6 [ label = "SS(b)" ];
|
|
69
|
+
LR_2 -> LR_5 [ label = "SS(a)" ];
|
|
70
|
+
LR_2 -> LR_4 [ label = "S(A)" ];
|
|
71
|
+
LR_5 -> LR_7 [ label = "S(b)" ];
|
|
72
|
+
LR_5 -> LR_5 [ label = "S(a)" ];
|
|
73
|
+
LR_6 -> LR_6 [ label = "S(b)" ];
|
|
74
|
+
LR_6 -> LR_5 [ label = "S(a)" ];
|
|
75
|
+
LR_7 -> LR_8 [ label = "S(b)" ];
|
|
76
|
+
LR_7 -> LR_5 [ label = "S(a)" ];
|
|
77
|
+
LR_8 -> LR_6 [ label = "S(b)" ];
|
|
78
|
+
LR_8 -> LR_5 [ label = "S(a)" ];
|
|
79
|
+
}
|
|
80
|
+
*/
|
|
81
|
+
function dumpStateMachineToGraphViz(
|
|
82
|
+
/*StateMachineProxy*/
|
|
83
|
+
stateMachineType) {
|
|
84
|
+
function w(str) {
|
|
85
|
+
console.log(str);
|
|
86
|
+
}
|
|
87
|
+
function s(state) {
|
|
88
|
+
return state.nodeId.value.toString();
|
|
89
|
+
}
|
|
90
|
+
function n(state) {
|
|
91
|
+
return state.browseName.name.toString();
|
|
92
|
+
}
|
|
93
|
+
function s_full(state) {
|
|
94
|
+
return s(state) + ' [ label = "' + n(state) + '" ]';
|
|
95
|
+
}
|
|
96
|
+
w("digraph finite_state_machine {");
|
|
97
|
+
// initial state if any
|
|
98
|
+
if (stateMachineType.initialState) {
|
|
99
|
+
w("node [ shape = doublecircle];");
|
|
100
|
+
w(" _" + s_full(stateMachineType.initialState) + " ;");
|
|
101
|
+
}
|
|
102
|
+
w("node [ shape = circle];");
|
|
103
|
+
stateMachineType.states.forEach((state) => w(" _" + s_full(state)));
|
|
104
|
+
stateMachineType.transitions.forEach((transition) => w(" _" +
|
|
105
|
+
s(transition.fromStateNode) +
|
|
106
|
+
" -> _" +
|
|
107
|
+
s(transition.toStateNode) +
|
|
108
|
+
" [ " +
|
|
109
|
+
// " labeltooltip = \"" + i(transition) + "\" " +
|
|
110
|
+
', label = "' +
|
|
111
|
+
n(transition) +
|
|
112
|
+
'" ];'));
|
|
113
|
+
w("}");
|
|
114
|
+
}
|
|
115
|
+
exports.dumpStateMachineToGraphViz = dumpStateMachineToGraphViz;
|
|
116
|
+
//# sourceMappingURL=dump_statemachine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dump_statemachine.js","sourceRoot":"","sources":["../test_helpers/dump_statemachine.ts"],"names":[],"mappings":";;;AAsBA,SAAgB,0BAA0B,CAAC,gBAAkC;IACzE,SAAS,CAAC,CAAC,GAAW;QAClB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,SAAS,CAAC,CAAC,KAAe;QACtB,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,SAAS,CAAC,CAAC,KAAe;QACtB,OAAO,KAAK,CAAC,UAAU,CAAC,IAAK,CAAC,QAAQ,EAAE,CAAC;IAC7C,CAAC;IAED,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,sDAAsD;IACvE,uBAAuB;IAEvB,IAAI,gBAAgB,CAAC,YAAY,EAAE;QAC/B,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;QAClD,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,gBAAgB,CAAC,YAAY,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC;KACtF;SAAM;QACH,CAAC,CAAC,aAAa,CAAC,CAAC;KACpB;IAED,SAAS,CAAC,CAAC,UAAoB;QAC3B,IAAI,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;QACzB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC7B,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACtC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE1F,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAA0B,EAAE,EAAE,CAChE,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,aAAc,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,UAAU,CAAC,WAAY,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CACxG,CAAC;IAEF,CAAC,CAAC,SAAS,CAAC,CAAC;AACjB,CAAC;AAtCD,gEAsCC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,0BAA0B;AACtC,qBAAqB;AACrB,gBAAkC;IAElC,SAAS,CAAC,CAAC,GAAW;QAClB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,SAAS,CAAC,CAAC,KAAe;QACtB,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,SAAS,CAAC,CAAC,KAAe;QACtB,OAAO,KAAK,CAAC,UAAU,CAAC,IAAK,CAAC,QAAQ,EAAE,CAAC;IAC7C,CAAC;IAED,SAAS,MAAM,CAAC,KAAe;QAC3B,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;IACxD,CAAC;IAED,CAAC,CAAC,gCAAgC,CAAC,CAAC;IACpC,uBAAuB;IAEvB,IAAI,gBAAgB,CAAC,YAAY,EAAE;QAC/B,CAAC,CAAC,+BAA+B,CAAC,CAAC;QACnC,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,YAAa,CAAC,GAAG,IAAI,CAAC,CAAC;KAC5D;IACD,CAAC,CAAC,yBAAyB,CAAC,CAAC;IAC7B,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE/E,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE,CAChD,CAAC,CACG,KAAK;QACD,CAAC,CAAC,UAAU,CAAC,aAAc,CAAC;QAC5B,OAAO;QACP,CAAC,CAAC,UAAU,CAAC,WAAY,CAAC;QAC1B,KAAK;QACL,mDAAmD;QACnD,aAAa;QACb,CAAC,CAAC,UAAU,CAAC;QACb,MAAM,CACb,CACJ,CAAC;IAEF,CAAC,CAAC,GAAG,CAAC,CAAC;AACX,CAAC;AA7CD,gEA6CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAddressSpaceFixture(pathname: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAddressSpaceFixture = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-address-space
|
|
6
|
+
*/
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const path = require("path");
|
|
9
|
+
function getAddressSpaceFixture(pathname) {
|
|
10
|
+
// find test_fixtures
|
|
11
|
+
let folder = path.join(__dirname, "./test_fixtures");
|
|
12
|
+
if (!fs.existsSync(folder)) {
|
|
13
|
+
folder = path.join(__dirname, "../test_helpers/test_fixtures");
|
|
14
|
+
if (!fs.existsSync(folder)) {
|
|
15
|
+
folder = path.join(__dirname, "../../test_helpers/test_fixtures");
|
|
16
|
+
// istanbul ignore next
|
|
17
|
+
if (!fs.existsSync(folder)) {
|
|
18
|
+
// tslint:disable:no-console
|
|
19
|
+
console.log(" cannot find test_fixtures folder ");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const filename = path.join(folder, pathname);
|
|
24
|
+
// istanbul ignore next
|
|
25
|
+
if (!fs.existsSync(filename)) {
|
|
26
|
+
throw new Error(" cannot find fixture with name " + pathname);
|
|
27
|
+
}
|
|
28
|
+
return filename;
|
|
29
|
+
}
|
|
30
|
+
exports.getAddressSpaceFixture = getAddressSpaceFixture;
|
|
31
|
+
//# sourceMappingURL=get_address_space_fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_address_space_fixture.js","sourceRoot":"","sources":["../test_helpers/get_address_space_fixture.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yBAAyB;AACzB,6BAA6B;AAE7B,SAAgB,sBAAsB,CAAC,QAAgB;IACnD,qBAAqB;IAErB,IAAI,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;QACxB,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAAC;QAC/D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YACxB,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC;YAElE,uBAAuB;YACvB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;gBACxB,4BAA4B;gBAC5B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;aACrD;SACJ;KACJ;IACD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE7C,uBAAuB;IACvB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC1B,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,QAAQ,CAAC,CAAC;KACjE;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAvBD,wDAuBC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AddressSpace } from "..";
|
|
2
|
+
export declare const mini_nodeset = "mini.Node.Set2.xml";
|
|
3
|
+
export declare const empty_nodeset = "fixture_empty_nodeset2.xml";
|
|
4
|
+
export declare const get_mini_nodeset_filename: () => string;
|
|
5
|
+
export declare const get_empty_nodeset_filename: () => string;
|
|
6
|
+
export declare function getMiniAddressSpace(callback: (err: Error | null, addressSpace?: AddressSpace) => void): void;
|
|
7
|
+
export declare function getMiniAddressSpace(): Promise<AddressSpace>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMiniAddressSpace = exports.get_empty_nodeset_filename = exports.get_mini_nodeset_filename = exports.empty_nodeset = exports.mini_nodeset = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module node-opcua-address-space
|
|
6
|
+
*/
|
|
7
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
+
const __1 = require("..");
|
|
9
|
+
const nodeJS_1 = require("../nodeJS");
|
|
10
|
+
const get_address_space_fixture_1 = require("./get_address_space_fixture");
|
|
11
|
+
exports.mini_nodeset = "mini.Node.Set2.xml";
|
|
12
|
+
exports.empty_nodeset = "fixture_empty_nodeset2.xml";
|
|
13
|
+
const get_mini_nodeset_filename = () => (0, get_address_space_fixture_1.getAddressSpaceFixture)(exports.mini_nodeset);
|
|
14
|
+
exports.get_mini_nodeset_filename = get_mini_nodeset_filename;
|
|
15
|
+
const get_empty_nodeset_filename = () => (0, get_address_space_fixture_1.getAddressSpaceFixture)(exports.empty_nodeset);
|
|
16
|
+
exports.get_empty_nodeset_filename = get_empty_nodeset_filename;
|
|
17
|
+
// tslint:disable:no-var-requires
|
|
18
|
+
// tslint:disable:max-line-length
|
|
19
|
+
const thenify = require("thenify");
|
|
20
|
+
function getMiniAddressSpace(...args) {
|
|
21
|
+
const callback = args[0];
|
|
22
|
+
const addressSpace = __1.AddressSpace.create();
|
|
23
|
+
// register namespace 1 (our namespace);
|
|
24
|
+
const serverNamespace = addressSpace.registerNamespace("http://MYNAMESPACE");
|
|
25
|
+
(0, node_opcua_assert_1.assert)(serverNamespace.index === 1);
|
|
26
|
+
(0, nodeJS_1.generateAddressSpace)(addressSpace, (0, exports.get_mini_nodeset_filename)(), (err) => {
|
|
27
|
+
// istanbul ignore next
|
|
28
|
+
if (err) {
|
|
29
|
+
// tslint:disable:no-console
|
|
30
|
+
console.log("err =", err);
|
|
31
|
+
}
|
|
32
|
+
callback(err || null, addressSpace);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.getMiniAddressSpace = getMiniAddressSpace;
|
|
36
|
+
module.exports.getMiniAddressSpace = thenify.withCallback(module.exports.getMiniAddressSpace);
|
|
37
|
+
//# sourceMappingURL=get_mini_address_space.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_mini_address_space.js","sourceRoot":"","sources":["../test_helpers/get_mini_address_space.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAE3C,0BAAkC;AAClC,sCAAiD;AAEjD,2EAAqE;AAExD,QAAA,YAAY,GAAG,oBAAoB,CAAC;AACpC,QAAA,aAAa,GAAG,4BAA4B,CAAC;AAEnD,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAAC,IAAA,kDAAsB,EAAC,oBAAY,CAAC,CAAC;AAAvE,QAAA,yBAAyB,6BAA8C;AAC7E,MAAM,0BAA0B,GAAG,GAAG,EAAE,CAAC,IAAA,kDAAsB,EAAC,qBAAa,CAAC,CAAC;AAAzE,QAAA,0BAA0B,8BAA+C;AAEtF,iCAAiC;AACjC,iCAAiC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAInC,SAAgB,mBAAmB,CAAC,GAAG,IAAW;IAC9C,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAA6D,CAAC;IAErF,MAAM,YAAY,GAAG,gBAAY,CAAC,MAAM,EAAE,CAAC;IAE3C,wCAAwC;IACxC,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAC7E,IAAA,0BAAM,EAAC,eAAe,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;IAEpC,IAAA,6BAAoB,EAAC,YAAY,EAAE,IAAA,iCAAyB,GAAE,EAAE,CAAC,GAAW,EAAE,EAAE;QAC5E,uBAAuB;QACvB,IAAI,GAAG,EAAE;YACL,4BAA4B;YAC5B,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SAC7B;QACD,QAAQ,CAAC,GAAG,IAAI,IAAI,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC;AAjBD,kDAiBC;AAEA,MAAM,CAAC,OAAe,CAAC,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAE,MAAM,CAAC,OAAe,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
export * from "./add_event_generator_object";
|
|
5
|
+
export * from "./alarms_and_conditions_demo";
|
|
6
|
+
export * from "./assertHasMatchingReference";
|
|
7
|
+
export * from "./create_minimalist_address_space_nodeset";
|
|
8
|
+
export * from "./dump_statemachine";
|
|
9
|
+
export * from "./get_address_space_fixture";
|
|
10
|
+
export * from "./get_mini_address_space";
|
|
11
|
+
export * from "./boiler_system";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
/**
|
|
14
|
+
* @module node-opcua-address-space
|
|
15
|
+
*/
|
|
16
|
+
__exportStar(require("./add_event_generator_object"), exports);
|
|
17
|
+
__exportStar(require("./alarms_and_conditions_demo"), exports);
|
|
18
|
+
__exportStar(require("./assertHasMatchingReference"), exports);
|
|
19
|
+
__exportStar(require("./create_minimalist_address_space_nodeset"), exports);
|
|
20
|
+
__exportStar(require("./dump_statemachine"), exports);
|
|
21
|
+
__exportStar(require("./get_address_space_fixture"), exports);
|
|
22
|
+
__exportStar(require("./get_mini_address_space"), exports);
|
|
23
|
+
__exportStar(require("./boiler_system"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../test_helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;GAEG;AACH,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,4EAA0D;AAC1D,sDAAoC;AACpC,8DAA4C;AAC5C,2DAAyC;AACzC,kDAAgC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IAddressSpace } from "node-opcua-address-space-base";
|
|
2
|
+
export declare function readNodeSet2XmlFile(xmlFile: string, callback: (err: Error | null, xmlData?: string) => void): void;
|
|
3
|
+
export declare function generateAddressSpace(addressSpace: IAddressSpace, xmlFiles: string | string[], callback: (err?: Error) => void): void;
|
|
4
|
+
export declare function generateAddressSpace(addressSpace: IAddressSpace, xmlFiles: string | string[]): Promise<void>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateAddressSpace = exports.readNodeSet2XmlFile = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const node_opcua_debug_1 = require("node-opcua-debug");
|
|
6
|
+
const __1 = require("..");
|
|
7
|
+
const doDebug = (0, node_opcua_debug_1.checkDebugFlag)(__filename);
|
|
8
|
+
const debugLog = (0, node_opcua_debug_1.make_debugLog)(__filename);
|
|
9
|
+
const errorLog = (0, node_opcua_debug_1.make_errorLog)(__filename);
|
|
10
|
+
function readNodeSet2XmlFile(xmlFile, callback) {
|
|
11
|
+
// istanbul ignore next
|
|
12
|
+
if (!fs.existsSync(xmlFile)) {
|
|
13
|
+
const msg = "[NODE-OPCUA-E02] generateAddressSpace : cannot find nodeset2 xml file at " + xmlFile;
|
|
14
|
+
errorLog(msg);
|
|
15
|
+
return callback(new Error(msg));
|
|
16
|
+
}
|
|
17
|
+
debugLog(" parsing ", xmlFile);
|
|
18
|
+
fs.readFile(xmlFile, "ascii", (err, xmlData) => {
|
|
19
|
+
callback(err, xmlData);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.readNodeSet2XmlFile = readNodeSet2XmlFile;
|
|
23
|
+
function generateAddressSpace(addressSpace, xmlFiles, callback) {
|
|
24
|
+
(0, __1.generateAddressSpaceRawCallback)(addressSpace, xmlFiles, readNodeSet2XmlFile, callback);
|
|
25
|
+
}
|
|
26
|
+
exports.generateAddressSpace = generateAddressSpace;
|
|
27
|
+
// tslint:disable:no-var-requires
|
|
28
|
+
// tslint:disable:max-line-length
|
|
29
|
+
const thenify = require("thenify");
|
|
30
|
+
module.exports.generateAddressSpace = thenify.withCallback(module.exports.generateAddressSpace);
|
|
31
|
+
//# sourceMappingURL=generate_address_space.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate_address_space.js","sourceRoot":"","sources":["../source_nodejs/generate_address_space.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,uDAAgF;AAIhF,0BAAqD;AACrD,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAC3C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,UAAU,CAAC,CAAC;AAE3C,SAAgB,mBAAmB,CAAC,OAAe,EAAE,QAAuD;IACxG,uBAAuB;IACvB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QACzB,MAAM,GAAG,GAAG,2EAA2E,GAAG,OAAO,CAAC;QAClG,QAAQ,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,QAAQ,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;KACnC;IACD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/B,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAe,EAAE,EAAE;QACnD,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACP,CAAC;AAXD,kDAWC;AAOD,SAAgB,oBAAoB,CAAC,YAA2B,EAAE,QAA2B,EAAE,QAAwB;IACnH,IAAA,mCAA+B,EAAC,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,CAAC,CAAC;AAC3F,CAAC;AAFD,oDAEC;AAED,iCAAiC;AACjC,iCAAiC;AACjC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,MAAM,CAAC,OAAe,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAE,MAAM,CAAC,OAAe,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./generate_address_space";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./generate_address_space"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../source_nodejs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC"}
|
package/generate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const generator = require("node-opcua-generator");
|
package/nodeJS.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./distNodeJS";
|
package/nodeJS.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./distNodeJS");
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-opcua-address-space",
|
|
3
|
+
"version": "2.51.0",
|
|
4
|
+
"description": "pure nodejs OPCUA SDK - module -address-space",
|
|
5
|
+
"main": "./dist/src/index_current.js",
|
|
6
|
+
"types": "./dist/source/index.d.ts",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=6.10"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc -b",
|
|
12
|
+
"test": "mocha",
|
|
13
|
+
"lint": "tslint source/**/*.ts",
|
|
14
|
+
"clean": "node -e \"require('rimraf').sync('dist');\"",
|
|
15
|
+
"c": "mocha --version"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@types/lodash": "4.14.172",
|
|
19
|
+
"async": "^3.2.1",
|
|
20
|
+
"chalk": "4.1.2",
|
|
21
|
+
"dequeue": "^1.0.5",
|
|
22
|
+
"lodash": "4.17.21",
|
|
23
|
+
"node-opcua-address-space-base": "2.51.0",
|
|
24
|
+
"node-opcua-assert": "2.51.0",
|
|
25
|
+
"node-opcua-basic-types": "2.51.0",
|
|
26
|
+
"node-opcua-client-dynamic-extension-object": "2.51.0",
|
|
27
|
+
"node-opcua-constants": "2.51.0",
|
|
28
|
+
"node-opcua-data-access": "2.51.0",
|
|
29
|
+
"node-opcua-data-model": "2.51.0",
|
|
30
|
+
"node-opcua-data-value": "2.51.0",
|
|
31
|
+
"node-opcua-date-time": "2.51.0",
|
|
32
|
+
"node-opcua-debug": "2.51.0",
|
|
33
|
+
"node-opcua-enum": "2.51.0",
|
|
34
|
+
"node-opcua-factory": "2.51.0",
|
|
35
|
+
"node-opcua-nodeid": "2.51.0",
|
|
36
|
+
"node-opcua-nodeset-ua": "2.51.0",
|
|
37
|
+
"node-opcua-numeric-range": "2.51.0",
|
|
38
|
+
"node-opcua-object-registry": "2.51.0",
|
|
39
|
+
"node-opcua-pseudo-session": "2.51.0",
|
|
40
|
+
"node-opcua-schemas": "2.51.0",
|
|
41
|
+
"node-opcua-service-browse": "2.51.0",
|
|
42
|
+
"node-opcua-service-call": "2.51.0",
|
|
43
|
+
"node-opcua-service-filter": "2.51.0",
|
|
44
|
+
"node-opcua-service-history": "2.51.0",
|
|
45
|
+
"node-opcua-service-translate-browse-path": "2.51.0",
|
|
46
|
+
"node-opcua-service-write": "2.51.0",
|
|
47
|
+
"node-opcua-status-code": "2.51.0",
|
|
48
|
+
"node-opcua-types": "2.51.0",
|
|
49
|
+
"node-opcua-utils": "2.51.0",
|
|
50
|
+
"node-opcua-variant": "2.51.0",
|
|
51
|
+
"node-opcua-xml2json": "2.51.0",
|
|
52
|
+
"pretty-error": "^3.0.4",
|
|
53
|
+
"set-prototype-of": "^1.0.0",
|
|
54
|
+
"thenify": "^3.3.1",
|
|
55
|
+
"xml-writer": "^1.7.0"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"date-utils": "^1.2.21",
|
|
59
|
+
"humanize": "0.0.9",
|
|
60
|
+
"node-opcua-benchmarker": "2.51.0",
|
|
61
|
+
"node-opcua-binary-stream": "2.51.0",
|
|
62
|
+
"node-opcua-extension-object": "2.51.0",
|
|
63
|
+
"node-opcua-leak-detector": "2.51.0",
|
|
64
|
+
"node-opcua-nodesets": "2.51.0",
|
|
65
|
+
"node-opcua-packet-analyzer": "2.51.0",
|
|
66
|
+
"node-opcua-test-fixtures": "2.51.0",
|
|
67
|
+
"should": "^13.2.3",
|
|
68
|
+
"sinon": "^11.1.2",
|
|
69
|
+
"source-map-support": "^0.5.19"
|
|
70
|
+
},
|
|
71
|
+
"author": "Etienne Rossignon",
|
|
72
|
+
"license": "MIT",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git://github.com/node-opcua/node-opcua.git"
|
|
76
|
+
},
|
|
77
|
+
"keywords": [
|
|
78
|
+
"OPCUA",
|
|
79
|
+
"opcua",
|
|
80
|
+
"m2m",
|
|
81
|
+
"iot",
|
|
82
|
+
"opc ua",
|
|
83
|
+
"internet of things"
|
|
84
|
+
],
|
|
85
|
+
"homepage": "http://node-opcua.github.io/",
|
|
86
|
+
"gitHead": "75feb111daf7ec65fa0111e4fa5beb8987fd4945"
|
|
87
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
// tslint:disable:max-classes-per-file
|
|
2
|
+
/**
|
|
3
|
+
* @module node-opcua-address-space
|
|
4
|
+
*/
|
|
5
|
+
import { DateTime, Int64, UAString, UInt32 } from "node-opcua-basic-types";
|
|
6
|
+
|
|
7
|
+
import { AttributeIds, LocalizedText, LocalizedTextLike, NodeClass } from "node-opcua-data-model";
|
|
8
|
+
import { DataValue } from "node-opcua-data-value";
|
|
9
|
+
import { ExtensionObject } from "node-opcua-extension-object";
|
|
10
|
+
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
11
|
+
import { ReadRawModifiedDetails } from "node-opcua-service-history";
|
|
12
|
+
import { DataType } from "node-opcua-variant";
|
|
13
|
+
import {
|
|
14
|
+
BaseNode,
|
|
15
|
+
IAddressSpace,
|
|
16
|
+
AddVariableOptionsWithoutValue,
|
|
17
|
+
BindVariableOptions,
|
|
18
|
+
UAMethod,
|
|
19
|
+
UAVariableT,
|
|
20
|
+
UAReference,
|
|
21
|
+
AddBaseNodeOptions,
|
|
22
|
+
VariableStuff,
|
|
23
|
+
UAVariableType,
|
|
24
|
+
UAVariable,
|
|
25
|
+
UAObject,
|
|
26
|
+
IVariableHistorianOptions,
|
|
27
|
+
IVariableHistorian,
|
|
28
|
+
UAObjectType,
|
|
29
|
+
UADynamicVariableArray,
|
|
30
|
+
UAReferenceType,
|
|
31
|
+
ISessionContext,
|
|
32
|
+
INamespace
|
|
33
|
+
} from "node-opcua-address-space-base";
|
|
34
|
+
import { UAFolder } from "node-opcua-nodeset-ua";
|
|
35
|
+
|
|
36
|
+
import { MinimalistAddressSpace } from "../src/reference_impl";
|
|
37
|
+
import { Namespace } from "./namespace";
|
|
38
|
+
import { UARootFolder } from "./ua_root_folder";
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
export declare function resolveReferenceType(addressSpace: MinimalistAddressSpace, reference: UAReference): UAReferenceType;
|
|
42
|
+
|
|
43
|
+
export declare function resolveReferenceNode(addressSpace: MinimalistAddressSpace, reference: UAReference): BaseNode;
|
|
44
|
+
|
|
45
|
+
export declare function makeAttributeEventName(attributeId: AttributeIds): string;
|
|
46
|
+
|
|
47
|
+
export interface EnumValueTypeOptionsLike {
|
|
48
|
+
value?: Int64 | UInt32;
|
|
49
|
+
displayName?: LocalizedTextLike | null;
|
|
50
|
+
description?: LocalizedTextLike | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface AddMultiStateValueDiscreteOptions extends AddVariableOptionsWithoutValue {
|
|
54
|
+
enumValues: EnumValueTypeOptionsLike[] | { [key: string]: number };
|
|
55
|
+
value?: UInt32 | Int64 | BindVariableOptions;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export enum EUEngineeringUnit {
|
|
59
|
+
degree_celsius
|
|
60
|
+
// to be continued
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface AddMultiStateDiscreteOptions extends AddBaseNodeOptions, VariableStuff {
|
|
64
|
+
enumStrings: string[]; // default value is "BaseVariableType";
|
|
65
|
+
typeDefinition?: string | NodeId | UAVariableType;
|
|
66
|
+
postInstantiateFunc?: (node: UAVariable) => void;
|
|
67
|
+
value?: number | BindVariableOptions;
|
|
68
|
+
}
|
|
69
|
+
// BaseVariableType => BaseDataVariableType => StateVariableType => TwoStateVariableType
|
|
70
|
+
// @see https://reference.opcfoundation.org/v104/Core/VariableTypes/StateVariableType/
|
|
71
|
+
// "EffectiveDisplayName" QualifiedName
|
|
72
|
+
// "Name" LocalizedText
|
|
73
|
+
// "Number" UInt32
|
|
74
|
+
export type AddStateVariableOptionals = "EffectiveDisplayName" | "Name" | "Number" | string;
|
|
75
|
+
export interface AddStateVariableOptions extends AddVariableOptionsWithoutValue {
|
|
76
|
+
id?: any;
|
|
77
|
+
optionals?: AddStateVariableOptionals[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// BaseVariableType => BaseDataVariableType => StateVariableType => TwoStateVariableType
|
|
81
|
+
// @see https://reference.opcfoundation.org/v104/Core/VariableTypes/TwoStateVariableType/
|
|
82
|
+
// "TransitionTime" UtcTime
|
|
83
|
+
// "EffectiveTransitionTime" UtcTime
|
|
84
|
+
// "TrueState" LocalizedText
|
|
85
|
+
// "FalseState" LocalizedText
|
|
86
|
+
export type AddTwoStateVariableOptionals =
|
|
87
|
+
| AddStateVariableOptionals
|
|
88
|
+
| "TransitionTime"
|
|
89
|
+
| "EffectiveTransitionTime"
|
|
90
|
+
| "TrueState"
|
|
91
|
+
| "FalseState";
|
|
92
|
+
|
|
93
|
+
export interface AddTwoStateVariableOptions extends AddStateVariableOptions {
|
|
94
|
+
falseState?: LocalizedTextLike;
|
|
95
|
+
trueState?: LocalizedTextLike;
|
|
96
|
+
optionals?: AddTwoStateVariableOptionals[];
|
|
97
|
+
isFalseSubStateOf?: NodeId | string | BaseNode;
|
|
98
|
+
isTrueSubStateOf?: NodeId | string | BaseNode;
|
|
99
|
+
|
|
100
|
+
value?: boolean | BindVariableOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// BaseVariableType => BaseDataVariableType => DataItemType => DiscreteItemType => TwoStateDiscreteType
|
|
104
|
+
export interface AddTwoStateDiscreteOptions extends AddVariableOptionsWithoutValue {
|
|
105
|
+
falseState?: LocalizedTextLike;
|
|
106
|
+
trueState?: LocalizedTextLike;
|
|
107
|
+
optionals?: string[];
|
|
108
|
+
isFalseSubStateOf?: NodeIdLike | BaseNode;
|
|
109
|
+
isTrueSubStateOf?: NodeIdLike | BaseNode;
|
|
110
|
+
|
|
111
|
+
value?: boolean | BindVariableOptions;
|
|
112
|
+
|
|
113
|
+
/** @example "" */
|
|
114
|
+
definition?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface RangeVariable extends UAVariable {
|
|
118
|
+
low: UAVariableT<number, DataType.Double>;
|
|
119
|
+
high: UAVariableT<number, DataType.Double>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface XAxisDefinitionVariable extends UAVariable {
|
|
123
|
+
engineeringUnits: UAVariableT<UAString, DataType.String>;
|
|
124
|
+
title: UAVariableT<LocalizedText, DataType.LocalizedText>;
|
|
125
|
+
euRange: RangeVariable;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
export declare const NamespaceOptions: { nodeIdNameSeparator: string };
|
|
130
|
+
|
|
131
|
+
export interface UATypesFolder extends UAFolder {
|
|
132
|
+
dataTypes: UAFolder;
|
|
133
|
+
eventTypes: UAFolder;
|
|
134
|
+
objectTypes: UAFolder;
|
|
135
|
+
referenceTypes: UAFolder;
|
|
136
|
+
variableTypes: UAFolder;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface IdentityMappingRuleType {}
|
|
140
|
+
|
|
141
|
+
type LocaleId = string;
|
|
142
|
+
|
|
143
|
+
export interface AddressSpace extends IAddressSpace {
|
|
144
|
+
getOwnNamespace(): Namespace;
|
|
145
|
+
registerNamespace(namespaceUri: string): Namespace;
|
|
146
|
+
rootFolder: UARootFolder;
|
|
147
|
+
}
|
|
148
|
+
export class AddressSpace {
|
|
149
|
+
public static historizerFactory: any;
|
|
150
|
+
|
|
151
|
+
public static create(): AddressSpace {
|
|
152
|
+
return new AddressSpace() as AddressSpace;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
private constructor() {
|
|
156
|
+
/* empty */
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export declare class VariableHistorian implements IVariableHistorian {
|
|
161
|
+
public constructor(node: UAVariable, options: IVariableHistorianOptions);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* push a new value into the history for this variable
|
|
165
|
+
* the method should take a very small amount of time and not
|
|
166
|
+
* directly write to the underlying database
|
|
167
|
+
* @param newDataValue
|
|
168
|
+
*/
|
|
169
|
+
public push(newDataValue: DataValue): Promise<void>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Extract a series of dataValue from the History database for this value
|
|
173
|
+
* @param historyReadRawModifiedDetails
|
|
174
|
+
* @param maxNumberToExtract
|
|
175
|
+
* @param isReversed
|
|
176
|
+
* @param reverseDataValue
|
|
177
|
+
* @param callback
|
|
178
|
+
*/
|
|
179
|
+
public extractDataValues(
|
|
180
|
+
historyReadRawModifiedDetails: ReadRawModifiedDetails,
|
|
181
|
+
maxNumberToExtract: number,
|
|
182
|
+
isReversed: boolean,
|
|
183
|
+
reverseDataValue: boolean,
|
|
184
|
+
callback: (err: Error | null, dataValue?: DataValue[]) => void
|
|
185
|
+
): void;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type UAClonable = UAObject | UAVariable | UAMethod;
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
export interface Enumeration extends UAVariable {}
|
|
192
|
+
export declare function createExtObjArrayNode<T extends ExtensionObject>(
|
|
193
|
+
parentFolder: UAObject,
|
|
194
|
+
options: any
|
|
195
|
+
): UADynamicVariableArray<T>;
|
|
196
|
+
|
|
197
|
+
export declare function bindExtObjArrayNode<T extends ExtensionObject>(
|
|
198
|
+
uaArrayVariableNode: UADynamicVariableArray<T>,
|
|
199
|
+
variableTypeNodeId: string | NodeId,
|
|
200
|
+
indexPropertyName: string
|
|
201
|
+
): UAVariable;
|
|
202
|
+
|
|
203
|
+
export declare function addElement<T extends ExtensionObject>(
|
|
204
|
+
options: any /* ExtensionObjectConstructor | ExtensionObject | UAVariable*/,
|
|
205
|
+
uaArrayVariableNode: UADynamicVariableArray<T>
|
|
206
|
+
): UAVariable;
|
|
207
|
+
|
|
208
|
+
export declare function removeElement<T extends ExtensionObject>(
|
|
209
|
+
uaArrayVariableNode: UADynamicVariableArray<T>,
|
|
210
|
+
element: any /* number | UAVariable | (a any) => boolean | ExtensionObject */
|
|
211
|
+
): void;
|
|
212
|
+
|
|
213
|
+
// }}
|
|
214
|
+
|
|
215
|
+
export declare function dumpXml(node: BaseNode, options: any): string;
|
|
216
|
+
export declare function dumpToBSD(namespace: INamespace): string;
|
|
217
|
+
export declare function adjustNamespaceArray(addressSpace: IAddressSpace): void;
|