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,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
// tslint:disable:no-console
|
|
5
|
+
import * as chalk from "chalk";
|
|
6
|
+
|
|
7
|
+
import { assert } from "node-opcua-assert";
|
|
8
|
+
import { BrowseDirection } from "node-opcua-data-model";
|
|
9
|
+
import { NodeId, NodeIdLike } from "node-opcua-nodeid";
|
|
10
|
+
import { BrowseDescription, BrowseDescriptionOptions, ReferenceDescription } from "node-opcua-types";
|
|
11
|
+
|
|
12
|
+
import { IAddressSpace, BaseNode, UAReference, UAReferenceType as UAReferenceTypePublic } from "node-opcua-address-space-base";
|
|
13
|
+
|
|
14
|
+
import { resolveReferenceType } from "../../src/reference_impl";
|
|
15
|
+
|
|
16
|
+
export function referenceTypeToString(addressSpace: IAddressSpace, referenceTypeId: NodeIdLike | null): string {
|
|
17
|
+
// istanbul ignore next
|
|
18
|
+
if (!referenceTypeId) {
|
|
19
|
+
return "<null> ";
|
|
20
|
+
} else {
|
|
21
|
+
const referenceType = addressSpace.findNode(referenceTypeId)! as UAReferenceTypePublic;
|
|
22
|
+
return referenceTypeId.toString() + " " + referenceType.browseName.toString() + "/" + referenceType.inverseName!.text;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function nodeIdInfo(addressSpace: IAddressSpace, nodeId: NodeId): string {
|
|
27
|
+
const obj = addressSpace.findNode(nodeId);
|
|
28
|
+
const name = obj ? obj.browseName.toString() : " <????>";
|
|
29
|
+
return nodeId.toString() + " [ " + name + " ]";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function dumpReferenceDescription(addressSpace: IAddressSpace, referenceDescription: ReferenceDescription): void {
|
|
33
|
+
assert(referenceDescription.referenceTypeId); // must be known;
|
|
34
|
+
|
|
35
|
+
console.log(chalk.red("referenceDescription"));
|
|
36
|
+
console.log(" referenceTypeId : ", referenceTypeToString(addressSpace, referenceDescription.referenceTypeId));
|
|
37
|
+
console.log(" isForward : ", referenceDescription.isForward ? "true" : "false");
|
|
38
|
+
console.log(" nodeId : ", nodeIdInfo(addressSpace, referenceDescription.nodeId));
|
|
39
|
+
console.log(" browseName : ", referenceDescription.browseName.toString());
|
|
40
|
+
console.log(" nodeClass : ", referenceDescription.nodeClass.toString());
|
|
41
|
+
console.log(" typeDefinition : ", nodeIdInfo(addressSpace, referenceDescription.typeDefinition));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function dumpReferenceDescriptions(addressSpace: IAddressSpace, referenceDescriptions: ReferenceDescription[]): void {
|
|
45
|
+
referenceDescriptions.forEach((r: ReferenceDescription) => dumpReferenceDescription(addressSpace, r));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function dumpBrowseDescription(node: BaseNode, _browseDescription: BrowseDescriptionOptions): void {
|
|
49
|
+
const browseDescription = new BrowseDescription(_browseDescription);
|
|
50
|
+
|
|
51
|
+
const addressSpace = node.addressSpace;
|
|
52
|
+
|
|
53
|
+
console.log(" Browse Node :");
|
|
54
|
+
|
|
55
|
+
if (browseDescription.nodeId) {
|
|
56
|
+
console.log(" nodeId : ", chalk.cyan(browseDescription.nodeId.toString()));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
console.log(" nodeId : ", chalk.cyan(node.browseName.toString()), "(", node.nodeId.toString(), ")");
|
|
60
|
+
console.log(" referenceTypeId :", referenceTypeToString(addressSpace, browseDescription.referenceTypeId));
|
|
61
|
+
|
|
62
|
+
console.log(" browseDirection :", chalk.cyan(BrowseDirection[browseDescription.browseDirection]));
|
|
63
|
+
console.log(" includeSubType :", browseDescription.includeSubtypes ? "true" : "false");
|
|
64
|
+
console.log(" nodeClassMask :", browseDescription.nodeClassMask);
|
|
65
|
+
console.log(" resultMask :", browseDescription.resultMask);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @method dumpReferences
|
|
70
|
+
* @param addressSpace {IAddressSpace}
|
|
71
|
+
* @param references {Array<Reference>|null}
|
|
72
|
+
* @static
|
|
73
|
+
*/
|
|
74
|
+
export function dumpReferences(addressSpace: IAddressSpace, references: UAReference[]): void {
|
|
75
|
+
assert(addressSpace);
|
|
76
|
+
for (const reference of references) {
|
|
77
|
+
const referenceType = resolveReferenceType(addressSpace, reference);
|
|
78
|
+
if (!referenceType) {
|
|
79
|
+
// unknown type ... this may happen when the address space is not fully build
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const dir = reference.isForward ? "(=>)" : "(<-)";
|
|
83
|
+
const objectName = nodeIdInfo(addressSpace, reference.nodeId);
|
|
84
|
+
console.log(
|
|
85
|
+
" referenceType : ",
|
|
86
|
+
dir,
|
|
87
|
+
referenceType ? referenceType.browseName.toString() : reference.referenceType.toString(),
|
|
88
|
+
" ",
|
|
89
|
+
objectName
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { allPermissions, BrowseDirection, makeAccessRestrictionsFlag, makePermissionFlag, NodeClass } from "node-opcua-data-model";
|
|
2
|
+
import { MessageSecurityMode } from "node-opcua-types";
|
|
3
|
+
import { BaseNode, UAVariable, UAMethod, UAObject, ISessionContext, IChannelBase } from "node-opcua-address-space-base";
|
|
4
|
+
import { WellKnownRoles } from "../session_context";
|
|
5
|
+
|
|
6
|
+
function isChannelSecure(channel: IChannelBase): boolean {
|
|
7
|
+
if (channel.securityMode === MessageSecurityMode.SignAndEncrypt) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function newIsUserReadable(this: BaseNode, context: ISessionContext): boolean {
|
|
14
|
+
if (context) {
|
|
15
|
+
if (!context.session) {
|
|
16
|
+
// console.log(" context has no session", context);
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
if (!context.session.channel) {
|
|
20
|
+
// console.log(" context has no channel", context);
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (!isChannelSecure(context.session.channel)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
function replaceMethod(obj: any, method: string, func: any) {
|
|
31
|
+
const oldMethod = obj[method];
|
|
32
|
+
if (!oldMethod) {
|
|
33
|
+
throw new Error("I cannot find method " + method + " on object " + obj.browseName.toString());
|
|
34
|
+
}
|
|
35
|
+
obj[method] = function (this: any, ...args: any[]) {
|
|
36
|
+
const ret = func.apply(this, args);
|
|
37
|
+
if (!ret) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
return oldMethod.apply(this, args);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* make sure that the given ia node can only be read
|
|
45
|
+
* by Administrator user on a encrypted channel
|
|
46
|
+
* @param node
|
|
47
|
+
|
|
48
|
+
*/
|
|
49
|
+
const restrictedPermissions = [
|
|
50
|
+
{ roleId: WellKnownRoles.SecurityAdmin, permissions: allPermissions },
|
|
51
|
+
{ roleId: WellKnownRoles.ConfigureAdmin, permissions: allPermissions },
|
|
52
|
+
{ roleId: WellKnownRoles.Supervisor, permissions: allPermissions },
|
|
53
|
+
{ roleId: WellKnownRoles.Operator, permissions: makePermissionFlag("Browse") },
|
|
54
|
+
{ roleId: WellKnownRoles.Engineer, permissions: makePermissionFlag("Browse") },
|
|
55
|
+
{ roleId: WellKnownRoles.Observer, permissions: makePermissionFlag("Browse") }
|
|
56
|
+
/*
|
|
57
|
+
{ roleId: WellKnownRoles.Anonymous, permissions: makePermissionFlag("Browse") },
|
|
58
|
+
{ roleId: WellKnownRoles.AuthenticatedUser, permissions: makePermissionFlag("Browse") },
|
|
59
|
+
*/
|
|
60
|
+
];
|
|
61
|
+
const restrictedAccessFlag = makeAccessRestrictionsFlag("SigningRequired | EncryptionRequired");
|
|
62
|
+
/**
|
|
63
|
+
* this method install the access right restriction on the given node and its children
|
|
64
|
+
* values will only be available to user with role Administrator or supervisor and
|
|
65
|
+
* with a signed and encrypted channel.
|
|
66
|
+
*
|
|
67
|
+
* @param node the node which permissions are to be adjusted
|
|
68
|
+
*/
|
|
69
|
+
export function ensureObjectIsSecure(node: BaseNode): void {
|
|
70
|
+
node.setAccessRestrictions(restrictedAccessFlag);
|
|
71
|
+
if (node.nodeClass === NodeClass.Variable) {
|
|
72
|
+
// replaceMethod(node, "isUserReadable", newIsUserReadable);
|
|
73
|
+
const variable = node as UAVariable;
|
|
74
|
+
variable.setRolePermissions(restrictedPermissions);
|
|
75
|
+
}
|
|
76
|
+
if (node.nodeClass === NodeClass.Method) {
|
|
77
|
+
const method = node as UAMethod;
|
|
78
|
+
method.setRolePermissions(restrictedPermissions);
|
|
79
|
+
}
|
|
80
|
+
if (node.nodeClass === NodeClass.Object) {
|
|
81
|
+
const object = node as UAObject;
|
|
82
|
+
object.setRolePermissions(restrictedPermissions);
|
|
83
|
+
}
|
|
84
|
+
const children = node.findReferencesExAsObject("Aggregates", BrowseDirection.Forward);
|
|
85
|
+
for (const child of children) {
|
|
86
|
+
ensureObjectIsSecure(child);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { assert } from "node-opcua-assert";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* transform optional into a map
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```javascript
|
|
11
|
+
* const optionals = [ "A", "B", "C.D" ];
|
|
12
|
+
*
|
|
13
|
+
* const map = makeOptionalsMap(optionals);
|
|
14
|
+
* const map = {
|
|
15
|
+
* A: {}
|
|
16
|
+
* B: {}
|
|
17
|
+
* C: { D: {} }
|
|
18
|
+
* };
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export interface OptionalMap {
|
|
24
|
+
[key: string]: OptionalMap;
|
|
25
|
+
}
|
|
26
|
+
export function makeOptionalsMap(optionals?: string[] | null): OptionalMap {
|
|
27
|
+
const resultMap: OptionalMap = {};
|
|
28
|
+
if (!optionals) {
|
|
29
|
+
return resultMap;
|
|
30
|
+
}
|
|
31
|
+
assert(optionals instanceof Array);
|
|
32
|
+
|
|
33
|
+
function insertInMap(map: OptionalMap, s: string[]): void {
|
|
34
|
+
const key = s[0];
|
|
35
|
+
|
|
36
|
+
if (!map[key]) {
|
|
37
|
+
map[key] = {};
|
|
38
|
+
}
|
|
39
|
+
if (s.length > 1) {
|
|
40
|
+
insertInMap(map[key], s.splice(1));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
for (const opt of optionals) {
|
|
45
|
+
const s: string[] = opt.split(".");
|
|
46
|
+
insertInMap(resultMap, s);
|
|
47
|
+
}
|
|
48
|
+
return resultMap;
|
|
49
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { resolveDynamicExtensionObject } from "node-opcua-client-dynamic-extension-object";
|
|
2
|
+
import { Variant } from "node-opcua-variant";
|
|
3
|
+
import { IAddressSpace } from "node-opcua-address-space-base";
|
|
4
|
+
import { PseudoSession } from "../pseudo_session";
|
|
5
|
+
import { ensureDatatypeExtracted } from "../loader/load_nodeset2";
|
|
6
|
+
|
|
7
|
+
export async function resolveOpaqueOnAddressSpace(addressSpace: IAddressSpace, variants: (Variant | null) | (Variant | null)[]): Promise<void> {
|
|
8
|
+
if (!variants) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const session = new PseudoSession(addressSpace);
|
|
12
|
+
const extraDataTypeManager = await ensureDatatypeExtracted(addressSpace);
|
|
13
|
+
if (variants instanceof Variant) {
|
|
14
|
+
await resolveDynamicExtensionObject(session, variants, extraDataTypeManager);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
// resolve opaque data structure from inputArguments
|
|
18
|
+
for (const variant of variants) {
|
|
19
|
+
if (variant) {
|
|
20
|
+
await resolveDynamicExtensionObject(session, variant, extraDataTypeManager);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/source/index.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
export * from "./address_space_ts";
|
|
5
|
+
|
|
6
|
+
export * from "./interfaces/state_machine/ua_state_machine_type";
|
|
7
|
+
export * from "./interfaces/state_machine/ua_exclusive_limit_state_machine_type_ex";
|
|
8
|
+
export * from "./interfaces/state_machine/ua_finite_state_machine_type";
|
|
9
|
+
export * from "./interfaces/state_machine/ua_program_state_machine_type";
|
|
10
|
+
export * from "./interfaces/state_machine/ua_transition_ex";
|
|
11
|
+
|
|
12
|
+
export * from "./interfaces/ua_subscription_diagnostics_variable_ex";
|
|
13
|
+
|
|
14
|
+
export * from "./interfaces/data_access/ua_multistate_discrete_ex";
|
|
15
|
+
export * from "./interfaces/data_access/ua_multistate_value_discrete_ex";
|
|
16
|
+
export * from "./interfaces/data_access/ua_two_state_discrete_ex";
|
|
17
|
+
export * from "./interfaces/data_access/ua_y_array_item_ex";
|
|
18
|
+
|
|
19
|
+
export { promoteToMultiStateDiscrete } from "../src/data_access/ua_multistate_discrete_impl";
|
|
20
|
+
export { promoteToMultiStateValueDiscrete } from "../src/data_access/ua_multistate_value_discrete";
|
|
21
|
+
export { promoteToTwoStateDiscrete } from "../src/data_access/ua_two_state_discrete";
|
|
22
|
+
|
|
23
|
+
export * from "../source/ua_root_folder";
|
|
24
|
+
export * from "./session_context";
|
|
25
|
+
export * from "./pseudo_session";
|
|
26
|
+
|
|
27
|
+
export * from "./helpers/dump_tools";
|
|
28
|
+
export * from "./helpers/make_optionals_map";
|
|
29
|
+
export * from "./helpers/check_event_clause";
|
|
30
|
+
export * from "./helpers/argument_list";
|
|
31
|
+
export * from "./helpers/call_helpers";
|
|
32
|
+
export * from "./helpers/ensure_secure_access";
|
|
33
|
+
export { adjustBrowseDirection } from "./helpers/adjust_browse_direction";
|
|
34
|
+
export { resolveOpaqueOnAddressSpace } from "./helpers/resolve_opaque_on_address_space";
|
|
35
|
+
|
|
36
|
+
export { ContinuationPointManager } from "./continuation_points/continuation_point_manager";
|
|
37
|
+
export { ensureDatatypeExtracted, ensureDatatypeExtractedWithCallback } from "./loader/load_nodeset2";
|
|
38
|
+
export * from "../source/loader/generateAddressSpaceRaw";
|
|
39
|
+
|
|
40
|
+
export * from "./namespace";
|
|
41
|
+
export * from "../src/alarms_and_conditions";
|
|
42
|
+
export * from "../src/namespace_private";
|
|
43
|
+
|
|
44
|
+
export { NodeIdManager, ConstructNodeIdOptions } from "../src/nodeid_manager";
|
|
45
|
+
export * from "../src/event_data";
|
|
46
|
+
export * from "./set_namespace_meta_data";
|
|
47
|
+
|
|
48
|
+
export * from "node-opcua-address-space-base";
|
|
49
|
+
export * from "node-opcua-nodeset-ua";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { UInt16 } from "node-opcua-basic-types";
|
|
5
|
+
import { LocalizedTextLike } from "node-opcua-data-model";
|
|
6
|
+
import { StatusCode } from "node-opcua-status-code";
|
|
7
|
+
|
|
8
|
+
export interface ConditionInfoOptions {
|
|
9
|
+
message?: string | LocalizedTextLike |null ;
|
|
10
|
+
quality?: StatusCode |null;
|
|
11
|
+
severity?: UInt16 | null;
|
|
12
|
+
retain?: boolean | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { DataType, Variant } from "node-opcua-variant";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.3
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @module node-opcua-address-space.DataAccess
|
|
12
|
+
*/
|
|
13
|
+
import { StatusCode } from "node-opcua-status-code";
|
|
14
|
+
import { UAMultiStateDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
15
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
16
|
+
|
|
17
|
+
export { UAMultiStateDiscrete } from "node-opcua-nodeset-ua";
|
|
18
|
+
|
|
19
|
+
export interface UAMultiStateDiscreteEx<T, DT extends DataType> extends UAVariableT<T, DT>, UAMultiStateDiscrete_Base<T, DT> {
|
|
20
|
+
//------------ helpers ------------------
|
|
21
|
+
getValue(): number;
|
|
22
|
+
getValueAsString(): string;
|
|
23
|
+
getIndex(value: string): number;
|
|
24
|
+
setValue(value: string | number): void;
|
|
25
|
+
checkVariantCompatibility(value: Variant): StatusCode;
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space.DataAccess
|
|
3
|
+
*/
|
|
4
|
+
import { DataType, Variant } from "node-opcua-variant";
|
|
5
|
+
import { Int64, UInt64 } from "node-opcua-basic-types";
|
|
6
|
+
import { UAMultiStateValueDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
7
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @see https://reference.opcfoundation.org/v104/Core/docs/Part8/5.3.3/#5.3.3.4
|
|
11
|
+
*/
|
|
12
|
+
export interface UAMultiStateValueDiscreteEx<T, DT extends DataType>
|
|
13
|
+
extends UAVariableT<T, DT>,
|
|
14
|
+
UAMultiStateValueDiscrete_Base<T, DT> {
|
|
15
|
+
/**
|
|
16
|
+
* EnumValues is an array of EnumValueType. Each entry of the array represents one enumeration
|
|
17
|
+
* value with its integer notation, a human-readable representation, and help information.
|
|
18
|
+
* This represents enumerations with integers that are not zero-based or have gaps (e.g. 1, 2, 4, 8, 16).
|
|
19
|
+
* See OPC 10000-3 for the definition of this type. MultiStateValueDiscrete Variables expose the
|
|
20
|
+
* current integer notation in their Value Attribute. Clients will often read the EnumValues
|
|
21
|
+
* Property in advance and cache it to lookup a name or help whenever they receive the numeric representation.
|
|
22
|
+
*/
|
|
23
|
+
//------------ helpers ------------------
|
|
24
|
+
// getValue(): number;
|
|
25
|
+
// getIndex(value: string): number;
|
|
26
|
+
|
|
27
|
+
getValueAsString(): string;
|
|
28
|
+
getValueAsNumber(): number;
|
|
29
|
+
|
|
30
|
+
setValue(value: string | number | Int64): void;
|
|
31
|
+
|
|
32
|
+
findValueAsText(value: number | UInt64): Variant;
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LocalizedTextLike } from "node-opcua-data-model";
|
|
2
|
+
import { DataType } from "node-opcua-variant";
|
|
3
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
4
|
+
import { UATwoStateDiscrete_Base } from "node-opcua-nodeset-ua";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @see https://reference.opcfoundation.org/v104/Core/VariableTypes/TwoStateDiscreteType/
|
|
8
|
+
*/
|
|
9
|
+
export interface UATwoStateDiscreteEx extends UAVariableT<boolean, DataType.Boolean>, UATwoStateDiscrete_Base<boolean> {
|
|
10
|
+
// --- helpers ---
|
|
11
|
+
getValue(): boolean;
|
|
12
|
+
getValueAsString(): string;
|
|
13
|
+
setValue(value: boolean | LocalizedTextLike): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { UAVariableT } from "node-opcua-address-space-base";
|
|
5
|
+
import { DataType } from "node-opcua-variant";
|
|
6
|
+
import { DT3DOrientation, UAYArrayItem_Base } from "node-opcua-nodeset-ua";
|
|
7
|
+
|
|
8
|
+
export interface UAYArrayItemEx<DT extends DataType.Double|DataType.Float> extends UAVariableT<number[], DT>, UAYArrayItem_Base<number[], DT> {
|
|
9
|
+
// --- helpers ---
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { InstantiateObjectOptions, UAObject } from "node-opcua-address-space-base";
|
|
5
|
+
import { UAExclusiveLimitStateMachine, UAExclusiveLimitStateMachine_Base } from "node-opcua-nodeset-ua";
|
|
6
|
+
|
|
7
|
+
import { UAStateMachineEx, UAStateMachineHelper, UAStateMachineType } from "./ua_state_machine_type";
|
|
8
|
+
|
|
9
|
+
export interface UAExclusiveLimitStateMachineEx extends UAObject, UAExclusiveLimitStateMachine_Base , UAStateMachineHelper, UAStateMachineEx {}
|
|
10
|
+
|
|
11
|
+
export interface UAExclusiveLimitStateMachineType extends UAStateMachineType {
|
|
12
|
+
isAbstract: false;
|
|
13
|
+
instantiate(options: InstantiateObjectOptions): UAExclusiveLimitStateMachineEx;
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
import { InstantiateObjectOptions } from "node-opcua-address-space-base";
|
|
5
|
+
|
|
6
|
+
import { UAStateMachineEx, UAStateMachineType } from "./ua_state_machine_type";
|
|
7
|
+
/**
|
|
8
|
+
* Finite State Machine
|
|
9
|
+
*
|
|
10
|
+
* The FiniteStateMachineType is the base ObjectType for StateMachines that explicitly define
|
|
11
|
+
* the possible States and Transitions. Once the States are defined subtypes shall not add new
|
|
12
|
+
* States (see B.4.18).
|
|
13
|
+
* The States of the machine are represented with instances of the StateType ObjectType.
|
|
14
|
+
*
|
|
15
|
+
* EachState shall have a BrowseName which is unique within the StateMachine and shall have a
|
|
16
|
+
* StateNumber which shall also be unique across all States defined in the StateMachine.
|
|
17
|
+
*
|
|
18
|
+
* Be aware that States in a SubStateMachine may have the same StateNumber or BrowseName as
|
|
19
|
+
* States in the parent machine. A concrete subtype of FiniteStateMachineType shall define at
|
|
20
|
+
* least one State.
|
|
21
|
+
*
|
|
22
|
+
* A StateMachine may define one State which is an instance of the InitialStateType. This State
|
|
23
|
+
* is the State that the machine goes into when it is activated.
|
|
24
|
+
*
|
|
25
|
+
* The Transitions that may occur are represented with instances of the TransitionType.
|
|
26
|
+
*
|
|
27
|
+
* Each Transition shall have a BrowseName which is unique within the StateMachine and may have a
|
|
28
|
+
* TransitionNumber which shall also be unique across all Transitions defined in the StateMachine.
|
|
29
|
+
*
|
|
30
|
+
* The initial State for a Transition is a StateType Object which is the target of a FromState
|
|
31
|
+
* Reference. The final State for a Transition is a StateType Object which is the target of a ToState
|
|
32
|
+
* Reference. The FromState and ToState References shall always be specified.
|
|
33
|
+
* A Transition may produce an Event. The Event is indicated by a HasEffect Reference to a
|
|
34
|
+
* subtype of BaseEventType. The StateMachineType shall have GeneratesEvent References to
|
|
35
|
+
* the targets of a HasEffect Reference for each of its Transitions.
|
|
36
|
+
* A FiniteStateMachineType may define Methods that cause a transition to occur. These Methods
|
|
37
|
+
* are targets of HasCause References for each of the Transitions that may be triggered by the
|
|
38
|
+
* Method. The Executable Attribute for a Method is used to indicate whether the current State of
|
|
39
|
+
* the machine allows the Method to be called.
|
|
40
|
+
*
|
|
41
|
+
* A FiniteStateMachineType may have sub-state-machines which are represented as instances
|
|
42
|
+
* of StateMachineType ObjectTypes. Each State shall have a HasSubStateMachine Reference
|
|
43
|
+
* to the StateMachineType Object which represents the child States. The SubStateMachine is
|
|
44
|
+
* not active if the parent State is not active. In this case the CurrentState and LastTransition
|
|
45
|
+
* Variables of the SubStateMachine shall have a status equal to BadStateNotActive (see Table
|
|
46
|
+
* B.17).
|
|
47
|
+
*/
|
|
48
|
+
export interface UAFiniteStateMachineType extends UAStateMachineType {
|
|
49
|
+
instantiate(options: InstantiateObjectOptions): UAStateMachineEx;
|
|
50
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module node-opcua-address-space
|
|
3
|
+
*/
|
|
4
|
+
// tslint:disable:no-empty-interface
|
|
5
|
+
import { InstantiateObjectOptions, UAMethod, UAObject, UAObjectType } from "node-opcua-address-space-base";
|
|
6
|
+
import { UAFiniteStateMachine, UAProgramStateMachine, UAProgramStateMachine_Base } from "node-opcua-nodeset-ua";
|
|
7
|
+
import { UAStateMachineEx, UAStateMachineType } from "./ua_state_machine_type";
|
|
8
|
+
|
|
9
|
+
export interface UAProgramStateMachineEx extends UAStateMachineEx {}
|
|
10
|
+
|
|
11
|
+
export interface UAProgramStateMachineType extends UAProgramStateMachine_Base, UAObjectType {
|
|
12
|
+
instantiate(options: InstantiateObjectOptions): UAProgramStateMachineEx;
|
|
13
|
+
}
|