node-opcua-address-space 2.98.0 → 2.98.2
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/dist/source/address_space_ts.d.ts +118 -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 +91 -0
- package/dist/source/continuation_points/continuation_point_manager.js +201 -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 +33 -0
- package/dist/source/helpers/argument_list.js +255 -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 +72 -0
- package/dist/source/helpers/call_helpers.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 +77 -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/multiform_func.d.ts +11 -0
- package/dist/source/helpers/multiform_func.js +76 -0
- package/dist/source/helpers/multiform_func.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 +61 -0
- package/dist/source/index.js +90 -0
- package/dist/source/index.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_info_i.d.ts +19 -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/condition_snapshot.d.ts +193 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/condition_snapshot.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.d.ts +12 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/deviation_stuff.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.d.ts +10 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/install_setpoint_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_alarm_condition_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_condition_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_exclusive_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.d.ts +9 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_deviation_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.d.ts +4 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_non_exclusive_limit_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.d.ts +20 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/instantiate_off_normal_alarm_options.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.d.ts +23 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_acknowledgeable_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.d.ts +32 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_alarm_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.d.ts +19 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_certificate_expiration_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.d.ts +45 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_condition_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.d.ts +7 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js +26 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_discrete_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.d.ts +5 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_deviation_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.d.ts +20 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_exclusive_limit_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.d.ts +26 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_limit_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.d.ts +8 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_deviation_alarm_ex.js.map +1 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.d.ts +10 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.js +3 -0
- package/dist/source/interfaces/alarms_and_conditions/ua_non_exclusive_limit_alarm_ex.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_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_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_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/extension_object_constructor.d.ts +10 -0
- package/dist/source/interfaces/extension_object_constructor.js +3 -0
- package/dist/source/interfaces/extension_object_constructor.js.map +1 -0
- package/dist/source/interfaces/nodeset_loader_options.d.ts +4 -0
- package/dist/source/interfaces/nodeset_loader_options.js +3 -0
- package/dist/source/interfaces/nodeset_loader_options.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_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_shelved_state_machine_ex.d.ts +30 -0
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js +3 -0
- package/dist/source/interfaces/state_machine/ua_shelved_state_machine_ex.js.map +1 -0
- package/dist/source/interfaces/state_machine/ua_state_machine_type.d.ts +234 -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_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/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/decode_xml_extension_object.d.ts +6 -0
- package/dist/source/loader/decode_xml_extension_object.js +72 -0
- package/dist/source/loader/decode_xml_extension_object.js.map +1 -0
- package/dist/source/loader/ensure_datatype_extracted.d.ts +5 -0
- package/dist/source/loader/ensure_datatype_extracted.js +71 -0
- package/dist/source/loader/ensure_datatype_extracted.js.map +1 -0
- package/dist/source/loader/generateAddressSpaceRaw.d.ts +11 -0
- package/dist/source/loader/generateAddressSpaceRaw.js +46 -0
- package/dist/source/loader/generateAddressSpaceRaw.js.map +1 -0
- package/dist/source/loader/load_nodeset2.d.ts +17 -0
- package/dist/source/loader/load_nodeset2.js +1484 -0
- package/dist/source/loader/load_nodeset2.js.map +1 -0
- package/dist/source/loader/make_semver_compatible.d.ts +6 -0
- package/dist/source/loader/make_semver_compatible.js +26 -0
- package/dist/source/loader/make_semver_compatible.js.map +1 -0
- package/dist/source/loader/make_xml_extension_object_parser.d.ts +28 -0
- package/dist/source/loader/make_xml_extension_object_parser.js +327 -0
- package/dist/source/loader/make_xml_extension_object_parser.js.map +1 -0
- package/dist/source/loader/namespace_post_step.d.ts +10 -0
- package/dist/source/loader/namespace_post_step.js +62 -0
- package/dist/source/loader/namespace_post_step.js.map +1 -0
- package/dist/source/loader/register_node_promoter.d.ts +2 -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 +32 -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 +8 -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 +72 -0
- package/dist/source/pseudo_session.js +255 -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 +265 -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_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 +18 -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 +387 -0
- package/dist/src/address_space.js +1386 -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 +153 -0
- package/dist/src/address_space_change_event_tools.js.map +1 -0
- package/dist/src/address_space_private.d.ts +43 -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/condition.d.ts +5 -0
- package/dist/src/alarms_and_conditions/condition.js +79 -0
- package/dist/src/alarms_and_conditions/condition.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.d.ts +26 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.js +55 -0
- package/dist/src/alarms_and_conditions/condition_info_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.d.ts +222 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js +658 -0
- package/dist/src/alarms_and_conditions/condition_snapshot_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.d.ts +9 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js +61 -0
- package/dist/src/alarms_and_conditions/deviation_alarm_helper.js.map +1 -0
- package/dist/src/alarms_and_conditions/index.d.ts +16 -0
- package/dist/src/alarms_and_conditions/index.js +33 -0
- package/dist/src/alarms_and_conditions/index.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.d.ts +44 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js +245 -0
- package/dist/src/alarms_and_conditions/ua_acknowledgeable_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.d.ts +93 -0
- package/dist/src/alarms_and_conditions/ua_alarm_condition_impl.js +419 -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 +26 -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_impl.d.ts +44 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js +184 -0
- package/dist/src/alarms_and_conditions/ua_certificate_expiration_alarm_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.d.ts +155 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js +1029 -0
- package/dist/src/alarms_and_conditions/ua_condition_impl.js.map +1 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.d.ts +14 -0
- package/dist/src/alarms_and_conditions/ua_discrete_alarm_impl.js +35 -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_impl.d.ts +24 -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_impl.d.ts +11 -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_impl.d.ts +23 -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_impl.d.ts +11 -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_impl.d.ts +79 -0
- package/dist/src/alarms_and_conditions/ua_limit_alarm_impl.js +251 -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_impl.d.ts +24 -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_impl.d.ts +19 -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_impl.d.ts +46 -0
- package/dist/src/alarms_and_conditions/ua_off_normal_alarm_impl.js +166 -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_impl.d.ts +18 -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_impl.d.ts +284 -0
- package/dist/src/base_node_impl.js +1455 -0
- package/dist/src/base_node_impl.js.map +1 -0
- package/dist/src/base_node_private.d.ts +81 -0
- package/dist/src/base_node_private.js +833 -0
- package/dist/src/base_node_private.js.map +1 -0
- package/dist/src/check_value_rank_compatibility.d.ts +15 -0
- package/dist/src/check_value_rank_compatibility.js +82 -0
- package/dist/src/check_value_rank_compatibility.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_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_impl.d.ts +52 -0
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js +254 -0
- package/dist/src/data_access/ua_multistate_value_discrete_impl.js.map +1 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.d.ts +25 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.js +156 -0
- package/dist/src/data_access/ua_two_state_discrete_impl.js.map +1 -0
- package/dist/src/event_data.d.ts +34 -0
- package/dist/src/event_data.js +65 -0
- package/dist/src/event_data.js.map +1 -0
- package/dist/src/extension_object_array_node.d.ts +23 -0
- package/dist/src/extension_object_array_node.js +249 -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 +653 -0
- package/dist/src/historical_access/address_space_historical_data_node.js.map +1 -0
- package/dist/src/idx_iterator.d.ts +8 -0
- package/dist/src/idx_iterator.js +51 -0
- package/dist/src/idx_iterator.js.map +1 -0
- package/dist/src/index_current.d.ts +46 -0
- package/dist/src/index_current.js +78 -0
- package/dist/src/index_current.js.map +1 -0
- package/dist/src/namespace_impl.d.ts +456 -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 +23 -0
- package/dist/src/namespace_private.js +33 -0
- package/dist/src/namespace_private.js.map +1 -0
- package/dist/src/nodeid_manager.d.ts +37 -0
- package/dist/src/nodeid_manager.js +184 -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 +18 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js +141 -0
- package/dist/src/nodeset_tools/construct_namespace_dependency.js.map +1 -0
- package/dist/src/nodeset_tools/dump_to_bsd.d.ts +2 -0
- package/dist/src/nodeset_tools/dump_to_bsd.js +165 -0
- package/dist/src/nodeset_tools/dump_to_bsd.js.map +1 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.d.ts +10 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js +1288 -0
- package/dist/src/nodeset_tools/nodeset_to_xml.js.map +1 -0
- package/dist/src/private_namespace.d.ts +5 -0
- package/dist/src/private_namespace.js +20 -0
- package/dist/src/private_namespace.js.map +1 -0
- package/dist/src/reference_impl.d.ts +43 -0
- package/dist/src/reference_impl.js +140 -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/state_machine/finite_state_machine.d.ts +81 -0
- package/dist/src/state_machine/finite_state_machine.js +389 -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 +38 -0
- package/dist/src/state_machine/ua_shelving_state_machine_ex.js +251 -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_isSubtypeOf.d.ts +18 -0
- package/dist/src/tool_isSubtypeOf.js +125 -0
- package/dist/src/tool_isSubtypeOf.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_impl.d.ts +89 -0
- package/dist/src/ua_data_type_impl.js +369 -0
- package/dist/src/ua_data_type_impl.js.map +1 -0
- package/dist/src/ua_method_impl.d.ts +42 -0
- package/dist/src/ua_method_impl.js +218 -0
- package/dist/src/ua_method_impl.js.map +1 -0
- package/dist/src/ua_object_impl.d.ts +35 -0
- package/dist/src/ua_object_impl.js +169 -0
- package/dist/src/ua_object_impl.js.map +1 -0
- package/dist/src/ua_object_type_impl.d.ts +50 -0
- package/dist/src/ua_object_type_impl.js +127 -0
- package/dist/src/ua_object_type_impl.js.map +1 -0
- package/dist/src/ua_reference_type_impl.d.ts +45 -0
- package/dist/src/ua_reference_type_impl.js +142 -0
- package/dist/src/ua_reference_type_impl.js.map +1 -0
- package/dist/src/ua_variable_impl.d.ts +380 -0
- package/dist/src/ua_variable_impl.js +1739 -0
- package/dist/src/ua_variable_impl.js.map +1 -0
- package/dist/src/ua_variable_impl_ext_obj.d.ts +23 -0
- package/dist/src/ua_variable_impl_ext_obj.js +671 -0
- package/dist/src/ua_variable_impl_ext_obj.js.map +1 -0
- package/dist/src/ua_variable_type_impl.d.ts +74 -0
- package/dist/src/ua_variable_type_impl.js +598 -0
- package/dist/src/ua_variable_type_impl.js.map +1 -0
- package/dist/src/ua_view_impl.d.ts +19 -0
- package/dist/src/ua_view_impl.js +44 -0
- package/dist/src/ua_view_impl.js.map +1 -0
- package/dist/tsconfig_common.tsbuildinfo +1 -0
- package/distHelpers/add_event_generator_object.d.ts +3 -0
- package/{test_helpers/add_event_generator_object.ts → distHelpers/add_event_generator_object.js} +16 -22
- package/distHelpers/add_event_generator_object.js.map +1 -0
- package/distHelpers/alarms_and_conditions_demo.d.ts +9 -0
- package/{test_helpers/alarms_and_conditions_demo.ts → distHelpers/alarms_and_conditions_demo.js} +21 -56
- package/distHelpers/alarms_and_conditions_demo.js.map +1 -0
- package/distHelpers/assertHasMatchingReference.d.ts +19 -0
- package/{test_helpers/assertHasMatchingReference.ts → distHelpers/assertHasMatchingReference.js} +12 -14
- package/distHelpers/assertHasMatchingReference.js.map +1 -0
- package/distHelpers/boiler_system.d.ts +113 -0
- package/{test_helpers/boiler_system.ts → distHelpers/boiler_system.js} +81 -295
- package/distHelpers/boiler_system.js.map +1 -0
- package/distHelpers/create_minimalist_address_space_nodeset.d.ts +5 -0
- package/{test_helpers/create_minimalist_address_space_nodeset.ts → distHelpers/create_minimalist_address_space_nodeset.js} +51 -87
- package/distHelpers/create_minimalist_address_space_nodeset.js.map +1 -0
- package/distHelpers/date_utils.d.ts +3 -0
- package/distHelpers/date_utils.js +10 -0
- package/distHelpers/date_utils.js.map +1 -0
- package/distHelpers/dump_statemachine.d.ts +0 -0
- package/distHelpers/dump_statemachine.js +128 -0
- package/distHelpers/dump_statemachine.js.map +1 -0
- package/distHelpers/get_address_space_fixture.d.ts +1 -0
- package/{test_helpers/get_address_space_fixture.ts → distHelpers/get_address_space_fixture.js} +8 -7
- 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.js +29 -0
- package/distHelpers/index.js.map +1 -0
- package/distHelpers/mock_session.d.ts +10 -0
- package/distHelpers/mock_session.js +26 -0
- package/distHelpers/mock_session.js.map +1 -0
- package/distNodeJS/generate_address_space.d.ts +6 -0
- package/distNodeJS/generate_address_space.js +53 -0
- package/distNodeJS/generate_address_space.js.map +1 -0
- package/distNodeJS/index.js +18 -0
- package/distNodeJS/index.js.map +1 -0
- package/package.json +49 -38
- package/source/helpers/dump_tools.ts +92 -0
- package/src/nodeset_tools/dump_to_bsd.ts +198 -0
- package/.mocharc.yml +0 -12
- package/generate.js +0 -1
- package/source_nodejs/generate_address_space.ts +0 -60
- package/test_helpers/date_utils.ts +0 -5
- package/test_helpers/get_mini_address_space.ts +0 -42
- package/test_helpers/mock_session.ts +0 -34
- package/test_helpers/test_fixtures/dataType_in_separateNamespace.xml +0 -150
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_basic.xml +0 -57
- package/test_helpers/test_fixtures/dataType_in_separateNamespace_mix.xml +0 -136
- package/test_helpers/test_fixtures/dataType_issue.xml +0 -80
- package/test_helpers/test_fixtures/dataType_withEnumeration.xml +0 -82
- package/test_helpers/test_fixtures/dataType_with_isOptionSet.xml +0 -194
- package/test_helpers/test_fixtures/dataType_with_qualifiedname.xml +0 -71
- package/test_helpers/test_fixtures/dataType_with_recursive_structure.xml +0 -155
- package/test_helpers/test_fixtures/dataType_with_structures.xml +0 -605
- package/test_helpers/test_fixtures/dataType_with_union.xml +0 -90
- package/test_helpers/test_fixtures/datatype_as_per_1.04.xml +0 -118
- package/test_helpers/test_fixtures/datatype_with_allow_subtype.xml +0 -104
- package/test_helpers/test_fixtures/eurange_issue.xml +0 -74
- package/test_helpers/test_fixtures/example_issue1096.xml +0 -267
- package/test_helpers/test_fixtures/fixture_empty_nodeset2.xml +0 -106
- package/test_helpers/test_fixtures/fixture_simple_statemachine_nodeset2.xml +0 -1305
- package/test_helpers/test_fixtures/fixuture_nodeset_objects_with_some_methods.xml +0 -370
- package/test_helpers/test_fixtures/issue_1132_variable_with_nodeid_value.xml +0 -68
- package/test_helpers/test_fixtures/issue_846.xml +0 -3172
- package/test_helpers/test_fixtures/issue_899_variable_with_nodeid_value.xml +0 -33
- package/test_helpers/test_fixtures/mini.Node.Set2.xml +0 -4736
- package/test_helpers/test_fixtures/mini.nodeset.withVariousVariables.xml +0 -196
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models.xml +0 -8
- package/test_helpers/test_fixtures/minimalist_nodeset_with_models_more_complex.xml +0 -20
- package/test_helpers/test_fixtures/nodeset_no_aliases.xml +0 -30
- package/test_helpers/test_fixtures/nodeset_no_aliases_with_aliases.xml +0 -31
- package/test_helpers/test_fixtures/nodeset_with_analog_items.xml +0 -45
- package/test_helpers/test_fixtures/nodeset_with_guid.xml +0 -1442
- package/test_helpers/test_fixtures/nodeset_with_int64_values.xml +0 -31
- package/test_helpers/test_fixtures/nodeset_with_special_char.xml +0 -34
- package/test_helpers/test_fixtures/nodeset_with_utf8_special_characters.xml +0 -20
- package/test_helpers/test_fixtures/variable_with_value.xml +0 -143
- package/test_helpers/test_fixtures/variabletype_with_value.xml +0 -324
- /package/{test_helpers/index.ts → distHelpers/index.d.ts} +0 -0
- /package/{source_nodejs/index.ts → distNodeJS/index.d.ts} +0 -0
package/{test_helpers/add_event_generator_object.ts → distHelpers/add_event_generator_object.js}
RENAMED
|
@@ -1,71 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.add_eventGeneratorObject = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* @module node-opcua-address-space
|
|
3
6
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { UAFolder } from "node-opcua-nodeset-ua";
|
|
8
|
-
import { CallMethodResultOptions } from "node-opcua-types";
|
|
9
|
-
|
|
10
|
-
export function add_eventGeneratorObject(namespace: INamespace, parentFolder: UAFolder | string): void {
|
|
7
|
+
const node_opcua_status_code_1 = require("node-opcua-status-code");
|
|
8
|
+
const node_opcua_variant_1 = require("node-opcua-variant");
|
|
9
|
+
function add_eventGeneratorObject(namespace, parentFolder) {
|
|
11
10
|
const myEvtType = namespace.addEventType({
|
|
12
11
|
browseName: "MyEventType",
|
|
13
12
|
subtypeOf: "BaseEventType" // should be implicit
|
|
14
13
|
});
|
|
15
|
-
|
|
16
14
|
const myObject = namespace.addObject({
|
|
17
15
|
browseName: "EventGeneratorObject",
|
|
18
16
|
eventNotifier: 1,
|
|
19
17
|
organizedBy: parentFolder
|
|
20
18
|
});
|
|
21
|
-
|
|
22
19
|
myObject.addReference({
|
|
23
20
|
nodeId: myEvtType,
|
|
24
21
|
referenceType: "AlwaysGeneratesEvent"
|
|
25
22
|
});
|
|
26
|
-
|
|
27
23
|
const method = namespace.addMethod(myObject, {
|
|
28
24
|
browseName: "EventGeneratorMethod",
|
|
29
25
|
inputArguments: [
|
|
30
26
|
{
|
|
31
|
-
dataType: DataType.String,
|
|
27
|
+
dataType: node_opcua_variant_1.DataType.String,
|
|
32
28
|
description: { text: "Event Message" },
|
|
33
29
|
name: "message"
|
|
34
30
|
},
|
|
35
31
|
{
|
|
36
|
-
dataType: DataType.UInt32,
|
|
32
|
+
dataType: node_opcua_variant_1.DataType.UInt32,
|
|
37
33
|
description: { text: "Event Severity" },
|
|
38
34
|
name: "severity"
|
|
39
35
|
}
|
|
40
36
|
],
|
|
41
37
|
outputArguments: []
|
|
42
38
|
});
|
|
43
|
-
|
|
44
|
-
method.bindMethod((inputArguments: Variant[], context: ISessionContext, callback: CallbackT<CallMethodResultOptions>) => {
|
|
39
|
+
method.bindMethod((inputArguments, context, callback) => {
|
|
45
40
|
// xx console.log("In Event Generator Method");
|
|
46
41
|
// xx console.log(this.toString());
|
|
47
42
|
// xx console.log(context.object.toString());
|
|
48
|
-
|
|
49
43
|
// xx console.log("inputArguments ", inputArguments[0].toString());
|
|
50
|
-
|
|
51
44
|
const message = inputArguments[0].value || "Hello from Event Generator Object";
|
|
52
45
|
const severity = inputArguments[1].value || 0;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(context.object as UAObject).raiseEvent(myEventType, {
|
|
46
|
+
const myEventType = namespace.addressSpace.findEventType("MyEventType", namespace.index);
|
|
47
|
+
context.object.raiseEvent(myEventType, {
|
|
56
48
|
message: {
|
|
57
|
-
dataType: DataType.LocalizedText,
|
|
49
|
+
dataType: node_opcua_variant_1.DataType.LocalizedText,
|
|
58
50
|
value: { text: message }
|
|
59
51
|
},
|
|
60
52
|
severity: {
|
|
61
|
-
dataType: DataType.UInt32,
|
|
53
|
+
dataType: node_opcua_variant_1.DataType.UInt32,
|
|
62
54
|
value: severity
|
|
63
55
|
}
|
|
64
56
|
});
|
|
65
57
|
const callMethodResult = {
|
|
66
58
|
outputArguments: [],
|
|
67
|
-
statusCode: StatusCodes.Good
|
|
59
|
+
statusCode: node_opcua_status_code_1.StatusCodes.Good
|
|
68
60
|
};
|
|
69
61
|
callback(null, callMethodResult);
|
|
70
62
|
});
|
|
71
63
|
}
|
|
64
|
+
exports.add_eventGeneratorObject = add_eventGeneratorObject;
|
|
65
|
+
//# sourceMappingURL=add_event_generator_object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add_event_generator_object.js","sourceRoot":"","sources":["../test_helpers/add_event_generator_object.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAgE;AAChE,2DAAuD;AAKvD,SAAgB,wBAAwB,CAAC,SAAqB,EAAE,YAA+B;IAC3F,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC;QACrC,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,eAAe,CAAC,qBAAqB;KACnD,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC;QACjC,UAAU,EAAE,sBAAsB;QAClC,aAAa,EAAE,CAAC;QAChB,WAAW,EAAE,YAAY;KAC5B,CAAC,CAAC;IAEH,QAAQ,CAAC,YAAY,CAAC;QAClB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,sBAAsB;KACxC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE;QACzC,UAAU,EAAE,sBAAsB;QAClC,cAAc,EAAE;YACZ;gBACI,QAAQ,EAAE,6BAAQ,CAAC,MAAM;gBACzB,WAAW,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;gBACtC,IAAI,EAAE,SAAS;aAClB;YACD;gBACI,QAAQ,EAAE,6BAAQ,CAAC,MAAM;gBACzB,WAAW,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;gBACvC,IAAI,EAAE,UAAU;aACnB;SACJ;QACD,eAAe,EAAE,EAAE;KACtB,CAAC,CAAC;IAEH,MAAM,CAAC,UAAU,CAAC,CAAC,cAAyB,EAAE,OAAwB,EAAE,QAA4C,EAAE,EAAE;QACpH,+CAA+C;QAC/C,mCAAmC;QACnC,6CAA6C;QAE7C,mEAAmE;QAEnE,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,mCAAmC,CAAC;QAC/E,MAAM,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QAE9C,MAAM,WAAW,GAAG,SAAS,CAAC,YAAY,CAAC,aAAa,CAAC,aAAa,EAAE,SAAS,CAAC,KAAK,CAAE,CAAC;QACzF,OAAO,CAAC,MAAmB,CAAC,UAAU,CAAC,WAAW,EAAE;YACjD,OAAO,EAAE;gBACL,QAAQ,EAAE,6BAAQ,CAAC,aAAa;gBAChC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aAC3B;YACD,QAAQ,EAAE;gBACN,QAAQ,EAAE,6BAAQ,CAAC,MAAM;gBACzB,KAAK,EAAE,QAAQ;aAClB;SACJ,CAAC,CAAC;QACH,MAAM,gBAAgB,GAAG;YACrB,eAAe,EAAE,EAAE;YACnB,UAAU,EAAE,oCAAW,CAAC,IAAI;SAC/B,CAAC;QACF,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACP,CAAC;AA7DD,4DA6DC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AddressSpace, UANonExclusiveLimitAlarmEx, UAExclusiveLimitAlarmEx, UAVariable } from "..";
|
|
2
|
+
export interface IAlarmTestData {
|
|
3
|
+
tankLevel: UAVariable;
|
|
4
|
+
tankLevelCondition: UAExclusiveLimitAlarmEx;
|
|
5
|
+
tankLevel2: UAVariable;
|
|
6
|
+
tankLevelCondition2: UANonExclusiveLimitAlarmEx;
|
|
7
|
+
tankTripCondition: null;
|
|
8
|
+
}
|
|
9
|
+
export declare function construct_demo_alarm_in_address_space(test: IAlarmTestData, addressSpace: AddressSpace): void;
|
package/{test_helpers/alarms_and_conditions_demo.ts → distHelpers/alarms_and_conditions_demo.js}
RENAMED
|
@@ -1,29 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.construct_demo_alarm_in_address_space = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* @module node-opcua-address-space
|
|
3
6
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export interface IAlarmTestData {
|
|
9
|
-
tankLevel: UAVariable;
|
|
10
|
-
tankLevelCondition: UAExclusiveLimitAlarmEx;
|
|
11
|
-
tankLevel2: UAVariable;
|
|
12
|
-
tankLevelCondition2: UANonExclusiveLimitAlarmEx;
|
|
13
|
-
tankTripCondition: null;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function construct_demo_alarm_in_address_space(test: IAlarmTestData, addressSpace: AddressSpace): void {
|
|
17
|
-
const a = addressSpace as any;
|
|
7
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
+
function construct_demo_alarm_in_address_space(test, addressSpace) {
|
|
9
|
+
const a = addressSpace;
|
|
18
10
|
if (a.construct_demo_alarm_in_address_space_called) {
|
|
19
11
|
return;
|
|
20
12
|
}
|
|
21
13
|
a.construct_demo_alarm_in_address_space_called = true;
|
|
22
|
-
|
|
23
14
|
addressSpace.installAlarmsAndConditionsService();
|
|
24
|
-
|
|
25
15
|
const namespace = addressSpace.getOwnNamespace();
|
|
26
|
-
|
|
27
16
|
const tank = namespace.addObject({
|
|
28
17
|
browseName: "Tank",
|
|
29
18
|
description: "The Object representing the Tank",
|
|
@@ -31,8 +20,7 @@ export function construct_demo_alarm_in_address_space(test: IAlarmTestData, addr
|
|
|
31
20
|
notifierOf: addressSpace.rootFolder.objects.server,
|
|
32
21
|
organizedBy: addressSpace.rootFolder.objects
|
|
33
22
|
});
|
|
34
|
-
assert(tank.getNotifiers().length === 0, "expecting a notifier now");
|
|
35
|
-
|
|
23
|
+
(0, node_opcua_assert_1.assert)(tank.getNotifiers().length === 0, "expecting a notifier now");
|
|
36
24
|
const tankLevel = namespace.addVariable({
|
|
37
25
|
browseName: "TankLevel",
|
|
38
26
|
componentOf: tank,
|
|
@@ -42,60 +30,44 @@ export function construct_demo_alarm_in_address_space(test: IAlarmTestData, addr
|
|
|
42
30
|
value: { dataType: "Double", value: 0.5 }
|
|
43
31
|
});
|
|
44
32
|
// assert(tank.getNotifiers().length === 1, "expecting a notifier now");
|
|
45
|
-
|
|
46
33
|
// --------------------------------------------------------------------------------
|
|
47
34
|
// Let's create a exclusive Limit Alarm that automatically raise itself
|
|
48
35
|
// when the tank level is out of limit
|
|
49
36
|
// --------------------------------------------------------------------------------
|
|
50
|
-
|
|
51
37
|
const exclusiveLimitAlarmType = addressSpace.findEventType("ExclusiveLimitAlarmType");
|
|
52
38
|
if (!exclusiveLimitAlarmType) {
|
|
53
39
|
throw new Error("cannot find ExclusiveLimitAlarmType in namespace 0");
|
|
54
40
|
}
|
|
55
|
-
|
|
56
41
|
const tankLevelCondition = namespace.instantiateExclusiveLimitAlarm(exclusiveLimitAlarmType, {
|
|
57
42
|
browseName: "TankLevelCondition",
|
|
58
43
|
componentOf: tank,
|
|
59
44
|
conditionName: "TankLevelCondition",
|
|
60
45
|
conditionSource: tankLevel,
|
|
61
|
-
|
|
62
46
|
highHighLimit: 0.9,
|
|
63
47
|
highLimit: 0.8,
|
|
64
|
-
|
|
65
|
-
inputNode: tankLevel, // the variable that will be monitored for change
|
|
66
|
-
|
|
48
|
+
inputNode: tankLevel,
|
|
67
49
|
lowLimit: 0.2,
|
|
68
|
-
|
|
69
50
|
optionals: [
|
|
70
51
|
"ConfirmedState",
|
|
71
52
|
"Confirm" // confirm state and confirm Method
|
|
72
53
|
],
|
|
73
|
-
|
|
74
54
|
setpointNode: null,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
assert(
|
|
79
|
-
|
|
80
|
-
assert(tankLevel.findReferences("HasCondition").length === 1);
|
|
81
|
-
assert(tankLevel.findReferencesAsObject("HasCondition", true).length === 1);
|
|
82
|
-
|
|
55
|
+
});
|
|
56
|
+
(0, node_opcua_assert_1.assert)(tankLevelCondition.browseName.toString() === "1:TankLevelCondition");
|
|
57
|
+
(0, node_opcua_assert_1.assert)(tankLevel.findReferences("HasCondition").length === 1);
|
|
58
|
+
(0, node_opcua_assert_1.assert)(tankLevel.findReferencesAsObject("HasCondition", true).length === 1);
|
|
83
59
|
const conditionName = tankLevel.findReferencesAsObject("HasCondition", true)[0].browseName.toString();
|
|
84
|
-
const conditionTypeDefinition = (
|
|
85
|
-
tankLevel.findReferencesAsObject("HasCondition", true)[0] as UAObject
|
|
86
|
-
).typeDefinitionObj.browseName.toString();
|
|
60
|
+
const conditionTypeDefinition = tankLevel.findReferencesAsObject("HasCondition", true)[0].typeDefinitionObj.browseName.toString();
|
|
87
61
|
const conditionJavascriptClass = tankLevel.findReferencesAsObject("HasCondition", true)[0].constructor.name.toString();
|
|
88
62
|
if (false) {
|
|
89
63
|
console.log(conditionName, conditionTypeDefinition, conditionJavascriptClass);
|
|
90
64
|
}
|
|
91
|
-
assert("1:TankLevelCondition" === conditionName);
|
|
92
|
-
assert("ExclusiveLimitAlarmType" === conditionTypeDefinition);
|
|
93
|
-
assert("UAExclusiveLimitAlarmImpl" === conditionJavascriptClass);
|
|
94
|
-
|
|
65
|
+
(0, node_opcua_assert_1.assert)("1:TankLevelCondition" === conditionName);
|
|
66
|
+
(0, node_opcua_assert_1.assert)("ExclusiveLimitAlarmType" === conditionTypeDefinition);
|
|
67
|
+
(0, node_opcua_assert_1.assert)("UAExclusiveLimitAlarmImpl" === conditionJavascriptClass);
|
|
95
68
|
// ----------------------------------------------------------------
|
|
96
69
|
// tripAlarm that signals that the "Tank lid" is opened
|
|
97
70
|
const tripAlarmType = addressSpace.findEventType("TripAlarmType");
|
|
98
|
-
|
|
99
71
|
const tankTripCondition = null;
|
|
100
72
|
// to
|
|
101
73
|
// ---------------------------
|
|
@@ -103,7 +75,6 @@ export function construct_demo_alarm_in_address_space(test: IAlarmTestData, addr
|
|
|
103
75
|
// xx tankLevelCondition.currentBranch().setRetain(true);
|
|
104
76
|
// xx tankLevelCondition.raiseNewCondition({message: "Tank is almost 70% full",
|
|
105
77
|
// severity: 100, quality: StatusCodes.Good});
|
|
106
|
-
|
|
107
78
|
// -------------------------------------------------------------
|
|
108
79
|
// Let's create a second variable with no Exclusive alarm
|
|
109
80
|
// -------------------------------------------------------------
|
|
@@ -115,37 +86,31 @@ export function construct_demo_alarm_in_address_space(test: IAlarmTestData, addr
|
|
|
115
86
|
eventSourceOf: tank,
|
|
116
87
|
value: { dataType: "Double", value: 0.5 }
|
|
117
88
|
});
|
|
118
|
-
|
|
119
89
|
const nonExclusiveLimitAlarmType = addressSpace.findEventType("NonExclusiveLimitAlarmType");
|
|
120
90
|
if (!nonExclusiveLimitAlarmType) {
|
|
121
91
|
throw new Error("!!");
|
|
122
92
|
}
|
|
123
|
-
|
|
124
93
|
const tankLevelCondition2 = namespace.instantiateNonExclusiveLimitAlarm(nonExclusiveLimitAlarmType, {
|
|
125
94
|
browseName: "TankLevelCondition2",
|
|
126
95
|
componentOf: tank,
|
|
127
96
|
conditionName: "TankLevel2",
|
|
128
97
|
conditionSource: tankLevel2,
|
|
129
|
-
|
|
130
98
|
highHighLimit: 0.9,
|
|
131
99
|
highLimit: 0.8,
|
|
132
|
-
|
|
133
|
-
inputNode: tankLevel2, // the variable that will be monitored for change
|
|
134
|
-
|
|
100
|
+
inputNode: tankLevel2,
|
|
135
101
|
lowLimit: 0.2,
|
|
136
|
-
|
|
137
102
|
optionals: [
|
|
138
103
|
"ConfirmedState",
|
|
139
104
|
"Confirm" // confirm state and confirm Method
|
|
140
105
|
]
|
|
141
106
|
});
|
|
142
|
-
assert(tankLevel2.findReferences("HasCondition").length === 1);
|
|
143
|
-
assert(tankLevel2.findReferencesAsObject("HasCondition", true).length === 1);
|
|
107
|
+
(0, node_opcua_assert_1.assert)(tankLevel2.findReferences("HasCondition").length === 1);
|
|
108
|
+
(0, node_opcua_assert_1.assert)(tankLevel2.findReferencesAsObject("HasCondition", true).length === 1);
|
|
144
109
|
test.tankLevel = tankLevel;
|
|
145
110
|
test.tankLevelCondition = tankLevelCondition;
|
|
146
|
-
|
|
147
111
|
test.tankLevel2 = tankLevel2;
|
|
148
112
|
test.tankLevelCondition2 = tankLevelCondition2;
|
|
149
|
-
|
|
150
113
|
test.tankTripCondition = tankTripCondition;
|
|
151
114
|
}
|
|
115
|
+
exports.construct_demo_alarm_in_address_space = construct_demo_alarm_in_address_space;
|
|
116
|
+
//# sourceMappingURL=alarms_and_conditions_demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarms_and_conditions_demo.js","sourceRoot":"","sources":["../test_helpers/alarms_and_conditions_demo.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AddReferenceOpts, BaseNode } from "..";
|
|
2
|
+
/**
|
|
3
|
+
* asserts that the provided reference exists in the node references
|
|
4
|
+
*
|
|
5
|
+
* @method assertHasMatchingReference
|
|
6
|
+
*
|
|
7
|
+
* @param node
|
|
8
|
+
* @param reference (Reference}
|
|
9
|
+
* @param reference.referenceType {String}
|
|
10
|
+
* @param reference.nodeId {NodeId}
|
|
11
|
+
* @param reference.isForward {Boolean}
|
|
12
|
+
*
|
|
13
|
+
* @example:
|
|
14
|
+
*
|
|
15
|
+
* assertHasMatchingReference(node,{ referenceType: "Organizes",i sForward:true, nodeId: "ns=1,i=12" });
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertHasMatchingReference(node: BaseNode, reference: AddReferenceOpts): void;
|
package/{test_helpers/assertHasMatchingReference.ts → distHelpers/assertHasMatchingReference.js}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertHasMatchingReference = void 0;
|
|
1
4
|
/**
|
|
2
5
|
* @module node-opcua-address-space
|
|
3
6
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { AddReferenceOpts, BaseNode, UAReference } from "..";
|
|
7
|
-
|
|
7
|
+
const node_opcua_assert_1 = require("node-opcua-assert");
|
|
8
|
+
const node_opcua_nodeid_1 = require("node-opcua-nodeid");
|
|
8
9
|
/**
|
|
9
10
|
* asserts that the provided reference exists in the node references
|
|
10
11
|
*
|
|
@@ -22,22 +23,19 @@ import { AddReferenceOpts, BaseNode, UAReference } from "..";
|
|
|
22
23
|
*
|
|
23
24
|
*
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
function assertHasMatchingReference(node, reference) {
|
|
26
27
|
const addressSpace = node.addressSpace;
|
|
27
|
-
|
|
28
28
|
const normalizedReference = addressSpace.normalizeReferenceType(reference);
|
|
29
|
-
assert(normalizedReference.referenceType instanceof NodeId);
|
|
30
|
-
|
|
29
|
+
(0, node_opcua_assert_1.assert)(normalizedReference.referenceType instanceof node_opcua_nodeid_1.NodeId);
|
|
31
30
|
let refs = node.findReferences(normalizedReference.referenceType, normalizedReference.isForward);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return sameNodeId(ref.nodeId, normalizedReference.nodeId);
|
|
31
|
+
refs = refs.filter((ref) => {
|
|
32
|
+
return (0, node_opcua_nodeid_1.sameNodeId)(ref.nodeId, normalizedReference.nodeId);
|
|
35
33
|
});
|
|
36
|
-
|
|
37
34
|
const dispOpts = { addressSpace };
|
|
38
|
-
|
|
39
35
|
if (refs.length !== 1) {
|
|
40
36
|
throw new Error(" Cannot find reference " + JSON.stringify(normalizedReference));
|
|
41
37
|
}
|
|
42
|
-
assert(refs.length === 1);
|
|
38
|
+
(0, node_opcua_assert_1.assert)(refs.length === 1);
|
|
43
39
|
}
|
|
40
|
+
exports.assertHasMatchingReference = assertHasMatchingReference;
|
|
41
|
+
//# sourceMappingURL=assertHasMatchingReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertHasMatchingReference.js","sourceRoot":"","sources":["../test_helpers/assertHasMatchingReference.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA2C;AAC3C,yDAAuD;AAGvD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,0BAA0B,CAAC,IAAc,EAAE,SAA2B;IAClF,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IAEvC,MAAM,mBAAmB,GAAG,YAAY,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3E,IAAA,0BAAM,EAAC,mBAAmB,CAAC,aAAa,YAAY,0BAAM,CAAC,CAAC;IAE5D,IAAI,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,aAAa,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAEjG,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAgB,EAAE,EAAE;QACpC,OAAO,IAAA,8BAAU,EAAC,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,EAAE,YAAY,EAAE,CAAC;IAElC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC;KACpF;IACD,IAAA,0BAAM,EAAC,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AAC9B,CAAC;AAlBD,gEAkBC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { DataType } from "node-opcua-variant";
|
|
2
|
+
import { UAFolder, UAAnalogItem } from "node-opcua-nodeset-ua";
|
|
3
|
+
import { AddressSpace, BaseNode, InstantiateObjectOptions, Namespace, UATransitionEventType, UAObject, UAObjectType, UAReferenceType, UAVariable, UAProgramStateMachineEx } from "..";
|
|
4
|
+
export interface FlowToReference extends UAReferenceType {
|
|
5
|
+
}
|
|
6
|
+
export interface HotFlowToReference extends UAReferenceType {
|
|
7
|
+
}
|
|
8
|
+
export interface SignalToReference extends UAReferenceType {
|
|
9
|
+
}
|
|
10
|
+
export interface BoilerHaltedEventType extends UATransitionEventType {
|
|
11
|
+
}
|
|
12
|
+
export interface CustomControllerB {
|
|
13
|
+
input1: UAVariable;
|
|
14
|
+
input2: UAVariable;
|
|
15
|
+
input3: UAVariable;
|
|
16
|
+
controlOut: UAVariable;
|
|
17
|
+
}
|
|
18
|
+
export interface CustomControllerType extends CustomControllerB, UAObjectType {
|
|
19
|
+
}
|
|
20
|
+
export interface CustomController extends CustomControllerB, UAObject {
|
|
21
|
+
}
|
|
22
|
+
export interface GenericSensorB {
|
|
23
|
+
output: UAAnalogItem<number, DataType.Double>;
|
|
24
|
+
}
|
|
25
|
+
export interface GenericSensorType extends GenericSensorB, UAObjectType {
|
|
26
|
+
}
|
|
27
|
+
export interface GenericSensor extends GenericSensorB, UAObject {
|
|
28
|
+
}
|
|
29
|
+
export interface GenericControllerB {
|
|
30
|
+
controlOut: UAVariable;
|
|
31
|
+
measurement: UAVariable;
|
|
32
|
+
setPoint: UAVariable;
|
|
33
|
+
}
|
|
34
|
+
export interface GenericControllerType extends GenericControllerB, UAObjectType {
|
|
35
|
+
}
|
|
36
|
+
export interface GenericController extends GenericControllerB, UAObject {
|
|
37
|
+
}
|
|
38
|
+
export interface FlowControllerType extends GenericControllerType {
|
|
39
|
+
}
|
|
40
|
+
export interface FlowController extends GenericController {
|
|
41
|
+
}
|
|
42
|
+
export interface LevelControllerType extends GenericControllerType {
|
|
43
|
+
}
|
|
44
|
+
export interface LevelController extends GenericController {
|
|
45
|
+
}
|
|
46
|
+
export interface FlowTransmitterType extends GenericSensorType {
|
|
47
|
+
}
|
|
48
|
+
export interface FlowTransmitter extends GenericSensor {
|
|
49
|
+
}
|
|
50
|
+
export interface LevelIndicatorType extends GenericSensorType {
|
|
51
|
+
}
|
|
52
|
+
export interface LevelIndicator extends GenericSensor {
|
|
53
|
+
}
|
|
54
|
+
export interface GenericActuatorType extends UAObjectType {
|
|
55
|
+
input: UAAnalogItem<number, DataType.Double>;
|
|
56
|
+
}
|
|
57
|
+
export interface GenericActuator extends UAObject {
|
|
58
|
+
input: UAAnalogItem<number, DataType.Double>;
|
|
59
|
+
}
|
|
60
|
+
export interface ValveType extends GenericActuatorType {
|
|
61
|
+
}
|
|
62
|
+
export interface Valve extends GenericActuator {
|
|
63
|
+
}
|
|
64
|
+
export interface BoilerInputPipeType extends UAObjectType {
|
|
65
|
+
flowTransmitter: FlowTransmitter;
|
|
66
|
+
valve: Valve;
|
|
67
|
+
}
|
|
68
|
+
export interface BoilerInputPipe extends UAFolder {
|
|
69
|
+
flowTransmitter: FlowTransmitter;
|
|
70
|
+
valve: Valve;
|
|
71
|
+
}
|
|
72
|
+
export interface BoilerOutputPipeType extends UAObjectType {
|
|
73
|
+
flowTransmitter: FlowTransmitter;
|
|
74
|
+
}
|
|
75
|
+
export interface BoilerOutputPipe extends UAFolder {
|
|
76
|
+
flowTransmitter: FlowTransmitter;
|
|
77
|
+
}
|
|
78
|
+
export interface BoilerDrumType extends UAObjectType {
|
|
79
|
+
levelIndicator: LevelIndicator;
|
|
80
|
+
}
|
|
81
|
+
export interface BoilerDrum extends UAFolder {
|
|
82
|
+
levelIndicator: LevelIndicator;
|
|
83
|
+
}
|
|
84
|
+
export interface BoilerStateMachineType extends UAObjectType {
|
|
85
|
+
}
|
|
86
|
+
export interface BoilerStateMachine extends UAObject, UAProgramStateMachineEx {
|
|
87
|
+
}
|
|
88
|
+
export interface BoilerType extends UAObjectType {
|
|
89
|
+
customController: CustomController;
|
|
90
|
+
flowController: FlowController;
|
|
91
|
+
levelController: LevelController;
|
|
92
|
+
inputPipe: BoilerInputPipe;
|
|
93
|
+
boilerDrum: BoilerDrum;
|
|
94
|
+
outputPipe: BoilerOutputPipe;
|
|
95
|
+
boilerDrum2: BoilerDrum;
|
|
96
|
+
simulation: BoilerStateMachine;
|
|
97
|
+
instantiate(options: InstantiateObjectOptions): Boiler;
|
|
98
|
+
}
|
|
99
|
+
export interface Boiler extends UAObject {
|
|
100
|
+
customController: CustomController;
|
|
101
|
+
flowController: FlowController;
|
|
102
|
+
levelController: LevelController;
|
|
103
|
+
inputPipe: BoilerInputPipe;
|
|
104
|
+
boilerDrum: BoilerDrum;
|
|
105
|
+
outputPipe: BoilerOutputPipe;
|
|
106
|
+
boilerDrum2: BoilerDrum;
|
|
107
|
+
simulation: BoilerStateMachine;
|
|
108
|
+
}
|
|
109
|
+
export declare function createBoilerType(namespace: Namespace): BoilerType;
|
|
110
|
+
export declare function makeBoiler(addressSpace: AddressSpace, options: {
|
|
111
|
+
browseName: string;
|
|
112
|
+
organizedBy: BaseNode;
|
|
113
|
+
}): Boiler;
|