CN-121996344-A - Interaction method and system of software interface based on man-machine interaction
Abstract
The invention discloses an interaction method and an interaction system of a software interface based on man-machine interaction, which relate to the technical field of man-machine interaction and are used for analyzing metadata of an internal package of a data source wrapper, extracting unique identification, source type and key logic paths of the metadata, disassembling the logic paths into hierarchical addressing instructions, positioning corresponding physical data objects in a memory and improving the accuracy of the physical data objects. The data source wrapper subscribes to the physical data object in combination with the corresponding interface characteristics, a real-time communication link based on event driving is established, the data source wrapper acquires the corresponding event change content, and triggers the real-time reading of the memory in combination with the UI response mechanism to determine the corresponding data object reference, forcedly triggers the local refreshing of the UI control, and seamlessly maps the result corresponding to the physical data object to the software interface to present the interaction event of the software interface, so that the accuracy of the interaction event of the software interface is improved.
Inventors
- XIANG XIAOLIN
- YU KAI
- LI XIANG
- YE JIAJIA
- DU LONGSHAN
- XIAO SUYU
- WANG ZIHAO
- LIU XUANXUAN
Assignees
- 诺德凯(苏州)智能装备有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260409
Claims (10)
- 1. An interaction method of a software interface based on man-machine interaction is characterized by comprising the following steps: when a user opens a software interface, man-machine interaction is carried out in the software interface, and a corresponding UI control is loaded, at the moment, attribute setting logic is triggered based on the UI control to activate a data source wrapper; Performing recursion analysis on the logic path, decomposing the logic path into hierarchical addressing instructions, and positioning corresponding physical data objects in a memory, wherein the physical data objects comprise pins, variables and background data; when the data source wrapper enters an active state, the data source wrapper subscribes to a physical data object in combination with a corresponding interface feature, and establishes an event-driven-based real-time communication link which presents corresponding event change contents; The data source wrapper acquires the corresponding event change content, triggers the real-time reading of the memory by combining with the UI response mechanism to determine the corresponding data object reference, forcibly triggers the local refreshing of the UI control, and seamlessly maps the result corresponding to the physical data object to the software interface to present the interaction event of the software interface.
- 2. The method according to claim 1, wherein when the user opens the software interface, the user performs man-machine interaction in the software interface and loads the corresponding UI control, and at this time, the attribute setting logic is triggered based on the UI control to activate the data source wrapper, and the analyzing metadata of the internal package of the data source wrapper and extracting the unique identifier, the source type and the key logic path of the metadata include: The user starts the software and opens the preset interface, the interaction with the software interface is triggered through the corresponding interaction operation, and the corresponding UI control is dynamically loaded according to the layout of the software interface and the corresponding interaction operation, wherein the UI control covers buttons, text boxes and charts.
- 3. The interaction method of a software interface based on man-machine interaction according to claim 2, wherein when a user opens the software interface, man-machine interaction is performed in the software interface and corresponding UI controls are loaded, at this time, attribute setting logic is triggered based on the UI controls to activate the data source wrapper, metadata of an internal package of the data source wrapper is parsed, unique identification, source type and key logic path of the metadata are extracted, and the method further comprises: After the UI control is loaded, the system triggers the attribute setting logic thereof and sets the attribute setting logic in the corresponding dimension, the attribute setting logic of the UI control identifies and acquires data source information related to the attribute, the information is directly defined in the attribute of the UI control, the system creates and activates a corresponding data source wrapper according to the data source information, the data source wrapper encapsulates metadata of a data source, and the system analyzes the metadata in the data source wrapper and determines unique identification, source type and logic path of the metadata.
- 4. The interaction method of a software interface based on man-machine interaction according to claim 1, wherein said recursively resolving the logic path disassembles the logic path into hierarchical addressing instructions and locates corresponding physical data objects in the memory, the physical data objects including pins, variables, and background data, and the method comprises: and acquiring the logic path, calling an analysis engine to carry out recursion analysis on the character string of the logic path, and decomposing the character string into a series of hierarchical addressing instructions of a main flow, a sub-flow, a visual detection node and a detection score in the analysis process.
- 5. The interaction method of a software interface based on man-machine interaction according to claim 4, wherein said recursively resolving the logic path disassembles the logic path into hierarchical addressing instructions and locates corresponding physical data objects in the memory, the physical data objects including pins, variables, and background data, further comprising: And utilizing a dynamic positioning service interface to carry out depth traversal and positioning in a memory space according to the disassembled hierarchical addressing instruction, searching corresponding memory objects step by step according to the name or identifier of each hierarchy at the moment, and successfully locking and returning real physical data objects which cover pin instances, platform variable instances or background data descriptors comprising functional nodes.
- 6. The interaction method of a software interface based on man-machine interaction according to claim 1, wherein when the data source wrapper enters an active state, the data source wrapper subscribes to physical data objects in combination with corresponding interface features, and establishes an event-driven real-time communication link, which presents corresponding event change contents, comprising: The method comprises the steps of marking a plurality of state data of a data source wrapper, determining a corresponding activation state according to the plurality of state data, monitoring the activation state of the data source wrapper in real time, matching corresponding interface characteristics according to the content of the data source wrapper, triggering a corresponding subscription route along the interface characteristics, determining a corresponding physical data object along the execution of the subscription route, subscribing the data source wrapper to a PropertyChanged event of a functional node pin if the physical data object is the pin, and subscribing the data source wrapper to a ValueChanged event of a variable if the physical data object is a platform variable.
- 7. The method according to claim 6, wherein when the data source wrapper enters an active state, the data source wrapper subscribes to the physical data object in combination with the corresponding interface feature, and establishes an event-driven real-time communication link, which presents the corresponding event change content, and further comprising: By subscribing to events corresponding to physical data objects, the data source wrapper is able to receive notifications of changes in data in real time and establish an event-driven based real-time communication link for communicating the content of the changes in the event, which links the physical data objects to the data source wrapper, and when the values of the physical data objects change, the event notifications are communicated to the data source wrapper along the communication link.
- 8. The interaction method of a software interface based on man-machine interaction according to claim 1, wherein the data source wrapper obtains the corresponding event change content, triggers real-time reading of a memory in combination with a UI response mechanism to determine a corresponding data object reference, forcibly triggers local refreshing of a UI control, seamlessly maps a result corresponding to a physical data object to the software interface to present an interaction event of the software interface, and comprises: The method comprises the steps of marking an event corresponding to a physical data object, tracing the change of the event at different moments to determine corresponding event change content, acquiring corresponding event change content by a data source wrapper, meanwhile, acquiring a preset UI response mechanism, marking a response chain corresponding to the UI response mechanism, combining the corresponding event change content to trigger the real-time reading operation of a memory, and locking the real physical data object reference in the memory, wherein the process is completed in the memory without any intermediate serialization or reverse sequence procedure.
- 9. The interaction method of a software interface based on man-machine interaction according to claim 8, wherein the data source wrapper obtains corresponding event change content, triggers real-time reading of a memory in combination with a UI response mechanism to determine a corresponding data object reference, forcibly triggers local refreshing of a UI control, and seamlessly maps a result corresponding to a physical data object to the software interface to present an interaction event of the software interface, further comprising: The data source wrapper utilizes a Dispatcher mechanism to forcedly trigger the local refreshing of the UI control, and directly maps the acquired latest physical data object value to the corresponding attribute of the UI control, so that the latest interaction event is presented on a software interface, and in the interaction event, the data is ensured to be transferred from the node to the corresponding UI element with the highest efficiency.
- 10. An interaction system of a software interface based on man-machine interaction, which is characterized in that the interaction system of the software interface based on man-machine interaction is applied to the interaction method of the software interface based on man-machine interaction according to any one of claims 1-9, wherein the interaction system of the software interface based on man-machine interaction comprises: The metadata module is used for carrying out man-machine interaction in the software interface when a user opens the software interface and loading a corresponding UI control, and at the moment, the attribute setting logic of the UI control is triggered based on the UI control to activate the data source wrapper; the recursion analysis module is used for recursion analysis of the logic path, decomposing the logic path into hierarchical addressing instructions and positioning corresponding physical data objects in the memory, wherein the physical data objects comprise pins, variables and background data; The communication link module is used for subscribing the physical data object by the data source wrapper in combination with the corresponding interface characteristic when the data source wrapper enters the active state, and establishing an event-driven-based real-time communication link which presents the corresponding event change content; The interface interaction module is used for acquiring corresponding event change contents by the data source wrapper, triggering real-time reading of the memory by combining with the UI response mechanism to determine corresponding data object references, forcedly triggering local refreshing of the UI control, and seamlessly mapping a result corresponding to the physical data object to the software interface to present interaction events of the software interface.
Description
Interaction method and system of software interface based on man-machine interaction Technical Field The invention relates to the technical field of man-machine interaction, in particular to an interaction method and an interaction system of a software interface based on man-machine interaction. Background In the traditional industrial HMI (human-machine interface) development and software interface interaction technology, the binding of the UI control and the back-end data usually adopts a static binding mode (such as static Path binding in MVVM mode), and the traditional technology has the remarkable defects that the attribute of the UI control and the back-end variable Path are hard coded in a configuration file or source code in the development stage in the traditional mode, when the back-end logic structure is adjusted or a user needs to dynamically modify a data source in a complex industrial field, the system cannot carry out recursion analysis and dynamic addressing on the logic Path in running, so that the UI control cannot be accurately positioned to a real physical data object (such as a pin, a variable and back-end data) in a memory, the accuracy of the physical data object is influenced, and the accuracy of an interaction event of the software interface is low. Disclosure of Invention The invention aims to overcome the defects of the prior art, and provides an interaction method and an interaction system of a software interface based on man-machine interaction. The embodiment of the invention provides an interaction method of a software interface based on man-machine interaction, which comprises the following steps: when a user opens a software interface, man-machine interaction is carried out in the software interface, and a corresponding UI control is loaded, at the moment, attribute setting logic is triggered based on the UI control to activate a data source wrapper; Performing recursion analysis on the logic path, decomposing the logic path into hierarchical addressing instructions, and positioning corresponding physical data objects in a memory, wherein the physical data objects comprise pins, variables and background data; when the data source wrapper enters an active state, the data source wrapper subscribes to a physical data object in combination with a corresponding interface feature, and establishes an event-driven-based real-time communication link which presents corresponding event change contents; The data source wrapper acquires the corresponding event change content, triggers the real-time reading of the memory by combining with the UI response mechanism to determine the corresponding data object reference, forcibly triggers the local refreshing of the UI control, and seamlessly maps the result corresponding to the physical data object to the software interface to present the interaction event of the software interface. The embodiment of the invention provides an interaction system of a software interface based on man-machine interaction, which is applied to the interaction method of the software interface based on man-machine interaction, and comprises the following steps: The metadata module is used for carrying out man-machine interaction in the software interface when a user opens the software interface and loading a corresponding UI control, and at the moment, the attribute setting logic of the UI control is triggered based on the UI control to activate the data source wrapper; the recursion analysis module is used for recursion analysis of the logic path, decomposing the logic path into hierarchical addressing instructions and positioning corresponding physical data objects in the memory, wherein the physical data objects comprise pins, variables and background data; The communication link module is used for subscribing the physical data object by the data source wrapper in combination with the corresponding interface characteristic when the data source wrapper enters the active state, and establishing an event-driven-based real-time communication link which presents the corresponding event change content; The interface interaction module is used for acquiring corresponding event change contents by the data source wrapper, triggering real-time reading of the memory by combining with the UI response mechanism to determine corresponding data object references, forcedly triggering local refreshing of the UI control, and seamlessly mapping a result corresponding to the physical data object to the software interface to present interaction events of the software interface. Compared with the prior art, the invention has the beneficial effects that: (1) When a user opens a software interface, man-machine interaction is performed in the software interface, a corresponding UI control is loaded, at the moment, attribute setting logic is triggered based on the UI control to activate a data source wrapper, metadata of the internal package of the data source wrapper is analyzed, unique