Association relation creating method and device and electronic equipment

By automatically creating and verifying the association relationship between the receiving port and the interactive interface in the automotive electrical software architecture in the EEA tool, the problem of inefficient modeling is solved and more efficient and accurate association relationship management is achieved.

CN119179474APending Publication Date: 2024-12-24GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411006233.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In automotive electronic and electrical architecture design, when modeling automotive electrical software architecture based on EEA tools, the modeling efficiency is inefficient due to the huge and complexity of model elements, and there are difficulties and errors in creating and verifying the association relationship.

Method used

By responding to the association creation instruction, determine the receiving port and sending port to be established in the model element center. According to the name of the reception port and the name of the interaction interface, the association relationship between the reception port and the interaction interface is automatically created or verified, and the pre-order Establish joint construction rules to ensure consistency.

Benefits of technology

Improves the efficiency and consistency of relationship creation, reduces manual errors, simplifies the multi-person collaborative modeling process, and ensures the accuracy and consistency of software architecture modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179474A_ABST
    Figure CN119179474A_ABST
Patent Text Reader

Abstract

The invention discloses an incidence relation creation method and device and electronic equipment, and the method comprises the steps: determining a target interaction interface with the same name as a receiving port from a plurality of interaction interfaces according to the name corresponding to the receiving port and the names corresponding to the plurality of interaction interfaces; according to a preset connection establishment rule and the incidence relation between the multiple interaction interfaces and the multiple sending ports, the incidence relation between the receiving port and the target interaction interface is established, the preset connection establishment rule indicates that the names of the sending ports, the receiving ports and the interaction interfaces corresponding to the same interaction relation are the same, and the number of the interaction interfaces is one; therefore, according to the name of the receiving port, the name of the interactive interface, the preset connection establishment rule and the association relationship between the interactive interface and the sending port, the association relationship between the interactive interface and the receiving port is automatically established, and the association relationship establishment efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software engineering, and more specifically, to a method, device and electronic device for creating an association relationship. Background Art

[0002] With the development of automotive electronic and electrical architecture design in recent years, automotive electronic and electrical architecture design is mainly carried out in automotive electronic and electrical architecture E / E architecture (EEA) tools. A large number of automotive electronic design products such as communication design and wiring harness design come from EEA forward construction, and the most core link is the construction of vehicle software architecture. In related technologies, the work of modeling automotive electrical software architecture based on EEA tools is often done by engineers manually and collaboratively, and because the model elements of automotive electrical software architecture are large and complex. Therefore, in the process of modeling automotive electrical software architecture based on EEA tools, there is a problem of low modeling efficiency. Summary of the invention

[0003] In view of this, the embodiments of the present application propose a method, device and electronic device for creating an association relationship to improve the above-mentioned problem.

[0004] In the first aspect, an embodiment of the present application provides a method for creating an association relationship, the method comprising: in response to an association relationship creation instruction, determining a receiving port to be associated in a model element set, the model element set also comprising multiple sending ports and multiple interaction interfaces; determining a target interaction interface with the same name as the receiving port from the multiple interaction interfaces according to a name corresponding to the receiving port and a name corresponding to each of the multiple interaction interfaces; creating an association relationship between the receiving port and the target interaction interface according to a preset association rule and an association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, the receiving port, and the interaction interface corresponding to the same interaction relationship are the same, and the number of the interaction interface is one.

[0005] In the second aspect, the embodiment of the present application provides a device for creating an association relationship, the device comprising: a receiving port determination module, a target interaction interface determination module and an association relationship creation module. The receiving port determination module is used to determine the receiving port to be associated in the model element set in response to the association relationship creation instruction, and the model element set also includes multiple sending ports and multiple interaction interfaces; the target interaction interface determination module is used to determine a target interaction interface with the same name as the receiving port from the multiple interaction interfaces according to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces; the association relationship creation module is used to create an association relationship between the receiving port and the target interaction interface according to the preset association rules and the association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rules indicate that the names of the sending port, the receiving port and the interaction interface corresponding to the same interaction relationship are the same, and the number of interaction interfaces is one.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.

[0008] In the scheme of the present application, by responding to the association relationship creation instruction, the receiving port to be associated in the model element set is determined, and the model element set also includes multiple sending ports and multiple interactive interfaces, and according to the name corresponding to the receiving port to be associated and the names corresponding to the multiple interactive interfaces, a target interactive interface with the same name as the receiving port is determined from the multiple interactive interfaces, so that the interactive interface with the same name as the receiving port to be associated is preliminarily determined according to the name of the receiving port and the name of the interactive interface. And in the case of determining the target interactive interface with the same name as the receiving port to be associated, according to the preset association rule and the association relationship between the multiple interactive interfaces and the multiple sending ports, the association relationship between the receiving port to be associated and the target interactive interface with the same name is automatically created, wherein the preset association rule indicates that the names of the sending port, the receiving port and the interactive interface corresponding to the same interactive relationship are the same, and the number of the interactive interface is one, so that the sending port, the receiving port and the interactive interface corresponding to the same interactive relationship are checked for consistency based on the preset association rule, so as to create and verify the association relationship between the receiving port and the interactive interface, thereby improving the efficiency of association relationship creation. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram showing a flow chart of a method for creating an association relationship provided in an embodiment of the present application;

[0011] Figure 2 A schematic diagram of an association relationship creation interface provided by an embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram showing a flow chart of a method for creating an association relationship provided in an embodiment of the present application;

[0013] Figure 4 A schematic diagram showing a flow chart of a method for creating an association relationship provided in an embodiment of the present application;

[0014] Figure 5 A schematic diagram showing a flow chart of a method for creating an association relationship provided in an embodiment of the present application;

[0015] Figure 6 A schematic diagram showing a flow chart of a method for creating an association relationship provided in an embodiment of the present application;

[0016] Figure 7 A module block diagram of a device for creating an association relationship provided by an embodiment of the present application is shown;

[0017] Figure 8 A block diagram of an electronic device according to an embodiment of the present application for executing a method for creating an association relationship according to an embodiment of the present application is shown;

[0018] Fig. 9 A storage unit for storing or carrying program codes for implementing a method for creating an association relationship according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] The traditional EEA tool method of building vehicle software architecture is generally to divide the existing vehicle functions and division of labor into multiple domains and subsystems, manually create model elements one by one on the graphical interface, and then drag and associate the model elements one by one to the outside of the subsystem or domain until all model elements are associated. When modeling the automotive electrical software architecture based on the current EEA tool, the engineer who needs to provide the interaction interface (that is, the person in charge of the software module to which the sending port belongs) first creates the model element of the corresponding interaction interface, associates it to the corresponding sending port, and stores it in the specified path; then the engineer who needs to receive the interaction interface searches for the corresponding interaction interface in the specified path and associates it to the corresponding receiving port.

[0021] The consistency requirements of the above modeling work are particularly high. If the association between any port and the interactive interface is missing or wrong, the subsequent creation of the connector and signal routing between ports will not be possible or will produce erroneous results. When the number of people involved in collaborative modeling is large and the software module is large and complex, the above work will become cumbersome and prone to errors. For example, the sender has not created the interactive interface required or the naming is wrong, resulting in the receiver being unable to find the target element; the sender has not associated the created interactive interface with the corresponding sending port, and the receiver cannot form a correct sending and receiving relationship; there are multiple interactive interfaces with the same name or similar names, and the receiver and the sender are not associated with the same model element; due to the need for change, the receiver or the sender changes the interactive interface or allocation relationship, while the other end is not updated synchronously; if multiple people search and manually associate in the specified storage path, it is easy to modify the model elements created by others by mistake, and increasing permission isolation will be limited by the capabilities of the EEA tool and increase the responsibility of permission management.

[0022] In addition, when engineers from multiple fields (or systems) perform modeling work in a collaborative environment, their respective plans and progress cannot be guaranteed to be completely consistent, and there are differences in the engineers' subsequent updates and maintenance plans for the software architecture, making it difficult to coordinate the creation and verification of sending ports, receiving ports, and interactive interfaces, and it is difficult to ensure the accuracy and consistency of each model element and the relationships between them; therefore, in the process of software architecture modeling, the creation and verification of relationships is time-consuming and labor-intensive.

[0023] Therefore, in the related art, in the process of modeling the automotive electrical software architecture based on the EEA tool, there is a problem of low modeling efficiency.

[0024] In view of the above problems, the inventor has found through long-term research that a method, device and electronic device for creating an association relationship provided in the embodiments of the present application are proposed. The association relationship between the receiving port and the interaction interface is created or verified according to the name corresponding to the receiving port to be associated, the names corresponding to each of the multiple interaction interfaces, the preset association rules and the association relationship between the multiple interaction interfaces and the multiple sending ports, thereby improving the efficiency and consistency of the association relationship creation. Among them, the specific method for creating the association relationship is described in detail in the subsequent embodiments.

[0025] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for creating an association relationship provided by an embodiment of the present application. In a specific embodiment, the method for creating an association relationship can be applied to Figure 7 The apparatus 200 for creating an association relationship and the electronic device 100 ( Figure 8 ). The following will take electronic equipment as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic equipment used in this embodiment may include desktop computers, laptops, vehicle terminals, vehicle large screens and other devices, which are not limited here. Figure 1 The process shown is described in detail, and the method for creating the association relationship may specifically include the following steps:

[0026] Step S110: In response to the association relationship creation instruction, determine the receiving port to be associated in the model element set, where the model element set also includes multiple sending ports and multiple interaction interfaces.

[0027] In some embodiments, the electronic device may include an association creation tool, such as an EEA tool, a tool that supports modeling of software transceiver ports and interactive interfaces for secondary development, etc. Exemplarily, the electronic device includes an EEA tool, based on which the electronic device can perform modeling and design of the automotive electrical software architecture layer based on the EEA tool. Among them, the electronic device can receive a first control instruction input by a user, and the first control instruction can be used to instruct the electronic device to perform modeling and design of the automotive electrical software architecture layer. Accordingly, the electronic device can display an association creation interface corresponding to the EEA tool in response to the first control instruction, so that the user can perform modeling and design of the automotive electrical software architecture layer based on the association creation interface.

[0028] The association relationship creation interface may include an interface for creating an association relationship between ports and interfaces during the process of modeling and designing the automotive electrical software architecture layer of the electronic device. The association relationship creation interface corresponds to a model element set; the model elements in the model element set may include: receiving ports, sending ports, interactive interfaces, association relationship chains, software modules, etc. The model element set may include one or more receiving ports, one or more sending ports, one or more interactive interfaces, one or more association relationship chains, and one or more software modules.

[0029] Among them, the software module can represent an application, service, database or other software component in the modeling of the automotive electrical software architecture layer based on the EEA tool, and can include a receiving port and a sending port. Among them, the association relationship chain can represent the association relationship between the port and the interface; exemplarily, if the receiving port and the interactive interface are connected through an association relationship chain, it can represent that the receiving port is associated with the interactive interface, that is, there is an association relationship between the receiving port and the interactive interface; or, if the receiving port and the interactive interface are not connected through an association relationship chain, it can represent that the receiving port is not associated with the interactive interface, that is, there is no association relationship between the receiving port and the interactive interface. Among them, the model elements in the model element set each have a corresponding name. Among them, in the process of displaying the association relationship creation interface by the electronic device, the model elements included in the model element set corresponding to the association relationship creation interface can be displayed.

[0030] For example, see Figure 2 , which shows a schematic diagram of an association relationship creation interface provided by an embodiment of the present application. Among them, the model elements in the model element set corresponding to the association relationship creation interface include: software module 1, software module 2, software module 3 and an interactive interface. Among them, software module 1 includes a sending port named RecA, software module 2 includes a receiving port named RecA, software module 3 includes a receiving port named RecA, and the name of the interactive interface is RecA. Among them, the model elements in the model element set corresponding to the association relationship creation interface may also include: an association relationship chain 1 between the sending port named RecA in software module 1 and the interactive interface named RecA, an association relationship chain 2 between the receiving port named RecA in software module 2 and the interactive interface named RecA, and an association relationship chain 3 between the receiving port named RecA in software module 3 and the interactive interface named RecA.

[0031] Optionally, after the electronic device displays the association relationship creation interface, it can receive a sending port creation instruction and a sending port naming instruction input by the user based on the association relationship creation interface, and can create and name the sending port in the association relationship creation interface based on the sending port creation instruction and the sending port naming instruction. Among them, the electronic device can also receive an interactive interface creation instruction and an interactive interface naming instruction input by the user based on the association relationship creation interface, and can create and name the interactive interface in the association relationship creation interface based on the interactive interface creation instruction and the interactive interface naming instruction. Among them, the electronic device can also receive a sending port and an interactive interface association creation instruction input by the user based on the association relationship creation interface, and the sending port and the interactive interface association creation instruction can carry a sending port and an interactive interface; accordingly, the electronic device can create an association relationship between the sending port and the interactive interface carried in the sending port and the interactive interface association creation instruction based on the sending port and the interactive interface association creation instruction. Among them, the electronic device can also receive a receiving port creation instruction and a receiving port naming instruction input by the user based on the association relationship creation interface, and can create and name the receiving port in the association relationship creation interface based on the receiving port creation instruction and the receiving port naming instruction.

[0032] In some embodiments, the association relationship creation interface may include a target control; accordingly, the electronic device may obtain an association relationship creation instruction in response to a touch operation on the target control; and may determine the receiving port to be associated in the model element set in response to the association relationship creation instruction, so as to verify and create an association relationship between the receiving port to be associated and the interactive interface; wherein the receiving port to be associated may be any receiving port included in the model element set. The task of automatically checking and creating an association relationship between a receiving port and an interactive interface by the electronic device can be triggered at any time, and the execution scope can also be selected as needed, which improves the accuracy of association relationship creation and also improves the user experience.

[0033] As an implementable method, the association relationship creation interface may include controls corresponding to each model element in the corresponding model element set. Accordingly, the electronic device may detect the touch conditions corresponding to each control to perform vehicle electrical software architecture layer modeling.

[0034] Optionally, the electronic device can use the control corresponding to the receiving port in the association relationship creation interface as the target control. Accordingly, the electronic device can obtain an association relationship creation instruction in response to a touch operation on the target control; and can determine the receiving port corresponding to the target control in the model element set as the receiving port to be associated in response to the association relationship creation instruction, so as to verify and create an association relationship between the receiving port to be associated and the interactive interface.

[0035] Optionally, the electronic device can use the control corresponding to the software module in the association relationship creation interface as the target control. Accordingly, the electronic device can obtain an association relationship creation instruction in response to a touch operation on the target control; and can determine the receiving port in the software module corresponding to the target control in the model element set as the receiving port to be associated in response to the association relationship creation instruction, so as to verify and create an association relationship between the receiving port to be associated and the interactive interface.

[0036] In some embodiments, the electronic device may further include a physical button for creating an association relationship; accordingly, the electronic device may determine the receiving port to be associated in the model element set in response to a pressing operation on the physical button for creating an association relationship, so as to verify and create an association relationship between the receiving port to be associated and the interactive interface. The receiving port to be associated may be any receiving port included in the model element set.

[0037] Among them, the electronic device can write program code (such as Java code, etc.) through the secondary development environment in the EEA tool and the attributes of the model elements in the model element set (such as name, association relationship, etc.) to implement the association relationship creation method, and encapsulate it into a shortcut operation button as a trigger entry for the electronic device to automatically create an association relationship; wherein the shortcut operation button can be understood as a physical button for the association relationship creation, thereby improving the efficiency of the association relationship creation.

[0038] Step S120: According to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, determine a target interaction interface having the same name as the receiving port from the multiple interaction interfaces.

[0039] In some implementations, after the electronic device determines the receiving port to be linked, it can determine a target interaction interface with the same name as the receiving port from multiple interaction interfaces based on the name corresponding to the receiving port and the names corresponding to each of the multiple interaction interfaces included in the model element set.

[0040] Optionally, after determining the receiving port to be associated, the electronic device may also highlight the receiving port in the association relationship creation interface, such as making the border of the receiving port thicker, dotted, or highlighted. Accordingly, the electronic device may also receive a second control instruction input by the user based on the association relationship creation interface that highlights the receiving port, and in response to the second control instruction, determine a target interaction interface with the same name as the receiving port from the multiple interaction interfaces according to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces included in the model element set.

[0041] Among them, each model element included in the model element set has a corresponding name. Accordingly, the electronic device can determine a target interaction interface with the same name as the receiving port from multiple interaction interfaces based on the name of the receiving port to be established and the names corresponding to the multiple interaction interfaces included in the model element set.

[0042] Optionally, the electronic device may determine the number of interaction interfaces with the same name as the receiving port to be associated from multiple interaction interfaces. If the number is determined to be 1, the interaction port with the same name as the receiving port to be associated may be determined as the target interaction interface; if the number is determined not to be 1, it may be determined that there is no target interaction interface corresponding to the receiving port to be associated among the multiple interaction interfaces, so as to ensure that the interaction interface associated with the receiving port is unique, and to ensure the accuracy and consistency of the creation of the association between the receiving port and the interaction interface.

[0043] Among them, the case where the number of interactive ports with the same name as the receiving port to be connected is not 1 may include the case where the number is 0 or the number is not less than 2. Among them, the case where the number is 0 can be understood as not creating an interactive interface with the same name as the receiving port to be connected or the naming of the interactive interface is wrong; accordingly, the electronic device cannot automatically create a link between the receiving port to be connected and the interactive interface. Based on this, the electronic device can prompt and display related model elements (such as the receiving port to be connected, multiple interactive interfaces, etc.) for users to view, which is convenient for manual verification and creation of association relationships, improves the efficiency, consistency and accuracy of creating association relationships, and improves the user experience.

[0044] Among them, the situation where the number is not less than 2 can be understood as repeated creation or naming errors of the interactive interface; accordingly, the electronic device cannot automatically create an association between the interactive interface and the receiving port. Based on this, the electronic device can prompt and display related model elements (such as the receiving port to be associated, the interactive interface with the same name as the receiving port to be associated, etc.) for the user to view, which is convenient for manual verification and creation of association relationships, improves the efficiency, consistency and accuracy of association relationship creation, and also improves the user experience.

[0045] Step S130: Create an association relationship between the receiving port and the target interaction interface according to a preset association rule and an association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, the receiving port and the interaction interface corresponding to the same interaction relationship are the same, and the number of the interaction interface is one.

[0046] In some embodiments, after the electronic device determines the receiving port to be connected and a target interaction interface with the same name as the receiving port, it can create an association relationship between the receiving port to be connected and the target interaction interface based on preset connection rules and the association relationship between multiple interaction interfaces and multiple sending ports in a model element set.

[0047] The association relationship between the multiple interaction interfaces and the multiple sending ports in the model element set may include that the multiple sending ports are associated with the same interaction interface, and one sending port is associated with the same interaction interface. The names of the associated interaction interfaces and the sending ports are the same.

[0048] The preset association rule indicates that the names of the sending port, receiving port and interaction interface corresponding to the same interaction relationship are the same, and the number of interaction interfaces is one. The preset association rule can also be understood as using the same name for the sending port, receiving port and interaction interface in the same interaction relationship, and no two interaction interfaces with the same name can appear. The same type of interaction content can be transmitted between the sending port, receiving port and interaction interface in the same interaction relationship.

[0049] Based on this, electronic devices can be modeled "top-down" based on preset connection rules; therefore, when engineers from different fields or subsystems design the same model at the architectural level in the same modeling environment, the system engineers only need to have the same names for the ports and interfaces corresponding to different interaction requirements to automatically complete the matching of ports and interfaces; and based on the preset connection rules, the consistency and accuracy of the interaction relationship between the sending port, receiving port and interactive interface can be detected in real time, which greatly reduces the extra workload caused by communication in modeling and manual modeling errors among engineers.

[0050] Exemplarily, when multiple engineers perform modeling work for matching interaction requirements between different systems in the same modeling environment, the electronic device can quickly detect the status of ports and interfaces based on the preset association rules, locate modeling problems, and automatically create association relationships for components that meet the conditions (such as receiving ports, interaction interfaces, etc.), thereby ensuring that the association relationships of the sending ports (or service providing ports), interaction interfaces (or service interfaces), and receiving ports (or service consumption ports) on different systems or software modules for the same interaction requirement are consistent. Among them, since only one interaction interface (or service interface) needs to be created for one interaction requirement, and the engineer of the sending (or providing) party is responsible for creating or modifying it, there will be no inconsistency in the internal parameter type, parameter name, and other information. Based on this, the electronic device searches for model elements and determines the association relationship based on the preset association rules, thereby improving the efficiency, consistency, and accuracy of the association relationship creation. In addition, it can be understood that since the input terminals cannot be merged and there are many interaction requirements for the entire vehicle, the complexity of the model cannot be reduced by merging only some input ports, and the association relationship creation method provided in this embodiment can be applied to multi-system collaborative modeling, and the interaction requirements can be realized through modeling actions, thereby improving the efficiency of modeling.

[0051] In some embodiments, after determining the target interactive interface, the electronic device can obtain the port associated with the target interactive interface according to the association relationship between multiple interactive interfaces and multiple sending ports, and determine whether the ports associated with the target interactive interface include the sending port. If included, the association between the receiving port to be associated and the multiple interactive interfaces included in the model element set can be obtained. If it is determined that the receiving port to be associated is not associated with any interactive interface, an association between the receiving port to be associated and the target interactive interface can be created to automatically create an association relationship between the receiving port and the interactive interface that meets the preset association rules. Among them, the receiving port can be matched to a unique interactive interface with the same name, and the interactive interface has an associated sending port, which improves the consistency and effectiveness of the association relationship creation.

[0052] Among them, if the electronic device determines that the port associated with the target interaction interface does not include the sending port, it can be determined that the target interaction interface is not associated with the sending port. Among them, the target interaction interface is not associated with the sending port, which can be understood as having no sending source with the target interaction interface, such as the sending port is deleted or the association relationship between the target interaction interface and the sending port is not created. Based on this, the electronic device can prompt and display related model elements (such as the receiving port to be established, the target interaction interface, etc.) for the user to view, which is convenient for the user to locate and troubleshoot problems, and also facilitates manual verification and creation of association relationships, thereby improving the efficiency, consistency and accuracy of association relationship creation, and improving the user experience.

[0053] Among them, if the electronic device detects that the receiving port is associated with an interactive interface with a different name, it can be determined that the receiving port has been associated with an interactive interface with a different name. Among them, the receiving port has been associated with an interactive interface with a different name can be understood as the receiving port naming error or the receiving port has updated its name. Based on this, the electronic device can prompt and display relevant model elements (such as the receiving port to be connected, the interactive interface associated with the receiving port to be connected, the target interactive interface, etc.) for the user to view, which is convenient for manual verification and creation of association relationships, improves the efficiency, consistency and accuracy of association relationship creation, and improves the user experience.

[0054] In some embodiments, after the electronic device creates the association relationship between the receiving port to be connected and the target interactive interface, the sixth prompt information can be output. The sixth prompt information can be used to prompt the successful automatic association to the interactive interface that meets the preset association rule. Accordingly, the electronic device can display the association relationship chain between the receiving port to be connected and the target interactive interface in the association relationship creation interface for the user to view, thereby improving the user's experience.

[0055] The method for creating an association relationship provided by an embodiment of the present application determines the receiving port to be associated in the model element set in response to the association relationship creation instruction, wherein the model element set also includes multiple sending ports and multiple interactive interfaces, and determines a target interactive interface with the same name as the receiving port from the multiple interactive interfaces according to the name corresponding to the receiving port to be associated and the names corresponding to the multiple interactive interfaces, thereby preliminarily determining the interactive interface with the same name as the receiving port to be associated according to the name of the receiving port and the name of the interactive interface. And according to the preset association rule and the association relationship between the multiple interactive interfaces and the multiple sending ports, automatically create an association relationship between the receiving port to be associated and the target interactive interface with the same name, wherein the preset association rule indicates that the names of the sending port, the receiving port and the interactive interface corresponding to the same interactive relationship are the same, and the number of the interactive interface is one, so as to perform consistency check on the sending port, the receiving port and the interactive interface corresponding to the same interactive relationship based on the preset association rule, thereby creating and verifying the association relationship between the receiving port and the interactive interface, improving the efficiency and quality of association relationship creation, and improving the efficiency, accuracy and consistency of software construction modeling.

[0056] See also Figure 3 , Figure 3 The schematic diagram of the process of creating an association relationship provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 3 The process shown is described in detail, and the method for creating the association relationship may specifically include the following steps:

[0057] Step S210: In response to the association relationship creation instruction, determine the receiving port to be associated in the model element set, where the model element set also includes multiple sending ports and multiple interaction interfaces.

[0058] For the specific description of step S210, please refer to the above description of step S110, which will not be repeated here.

[0059] Step S220: If it is determined, based on the name corresponding to the receiving port and the names corresponding to the multiple interactive interfaces, that there is no interactive interface with the same name as the receiving port among the multiple interactive interfaces, a first prompt message is output, wherein the first prompt message is used to prompt that there is no interactive interface with the same name as the receiving port.

[0060] In some implementations, after the electronic device determines the receiving port to be linked, it can determine the number of interaction interfaces having the same name as the receiving port according to the name corresponding to the receiving port and the names corresponding to each of the multiple interaction interfaces included in the model element set.

[0061] Among them, if the electronic device determines that the number of interactive interfaces with the same name as the receiving port is 0, that is, it determines that there is no interactive interface with the same name as the receiving port among the multiple interactive interfaces, then a first prompt message can be output. Among them, the first prompt message can be used to prompt that there is no interactive interface with the same name as the receiving port to be associated. Among them, the electronic device can also display the receiving port and multiple interactive interfaces included in the model element set in the association relationship creation interface to display related model elements for users to view, so as to facilitate users to locate problems in the creation of association relationships during the modeling process, verify and create association relationships, and improve the efficiency, accuracy and consistency of association relationship creation.

[0062] Step S230: If at least two interactive interfaces with the same name as the receiving port are determined from the multiple interactive interfaces based on the name corresponding to the receiving port and the names corresponding to each of the multiple interactive interfaces, a second prompt message is output, wherein the second prompt message is used to prompt that there are at least two interactive interfaces with the same name on the receiving port.

[0063] Among them, if the electronic device determines that the number of interactive interfaces with the same name as the receiving port to be established is not less than 2 based on the name corresponding to the receiving port to be established and the names corresponding to each of the multiple interactive interfaces included in the model element set, then at least two interactive interfaces with the same name as the receiving port can be determined from the multiple interactive interfaces; accordingly, the electronic device can output a second prompt message.

[0064] The second prompt information can be used to prompt that there are at least two interactive interfaces with the same name on the receiving port. The electronic device can also display the receiving port to be associated and the interactive interface with the same name as the receiving port in the association creation interface to display relevant model elements for the user to view, so as to facilitate the user to locate the problem of association creation, verify and modify the association, and improve the efficiency, accuracy and consistency of association creation.

[0065] Step S240: If a target interaction interface with the same name as the receiving port is determined from the multiple interaction interfaces based on the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, an association relationship between the receiving port and the target interaction interface is created based on a preset association rule and the association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, the receiving port, and the interaction interface corresponding to the same interaction relationship are the same, and the number of interaction interfaces is one.

[0066] For the specific description of step S240, please refer to the description of step S130 above, which will not be described in detail here. In addition, it should be noted that step S220, step S230 and step S240 are in parallel relationship, and there is no execution order.

[0067] Compared with the method for creating an association relationship provided in an embodiment of the present application, Figure 1 The method for creating an association relationship shown in the figure can also output a first prompt message if it is determined that there is no interaction interface with the same name as the receiving port among the multiple interaction interfaces based on the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, and the first prompt message is used to prompt that there is no interaction interface with the same name as the receiving port; or, if at least two interaction interfaces with the same name as the receiving port are determined from the multiple interaction interfaces based on the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, a second prompt message is output, wherein the second prompt message is used to prompt that there are at least two interaction interfaces with the same name as the receiving port, so that when it is determined that the number of interaction interfaces with the same name as the receiving port to be associated is not 1, the prompt message is output, so that the user can quickly locate the problem of association relationship creation based on the prompt message, thereby improving the efficiency, accuracy and consistency of association relationship creation.

[0068] See also Figure 4 , Figure 4 The schematic diagram of the process of creating an association relationship provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 4 The process shown is described in detail, and the method for creating the association relationship may specifically include the following steps:

[0069] Step S310: In response to the association relationship creation instruction, determine the receiving port to be associated in the model element set, where the model element set also includes multiple sending ports and multiple interaction interfaces.

[0070] Step S320: According to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, determine a target interaction interface having the same name as the receiving port from the multiple interaction interfaces.

[0071] For the detailed description of step S310 to step S320, please refer to the above description of step S110 to step S120, which will not be repeated here.

[0072] Step S330: Determine whether there is a sending port associated with the target interaction interface according to the association relationship between the multiple interaction interfaces and the multiple sending ports.

[0073] In some embodiments, after the electronic device determines the receiving port to be connected and a target interaction interface with the same name as the receiving port, it can determine whether there is a sending port associated with the target interaction interface based on the association relationship between multiple interaction interfaces and multiple sending ports included in the model element set.

[0074] Optionally, the association relationship between the interaction interface and the sending port can be represented by an association relationship chain in the association relationship creation interface; wherein the interaction interface and the sending port with an association relationship can include the same tag, and the interaction interface and the sending port with an association relationship can use the same name.

[0075] As an implementable method, the electronic device can detect whether the ports in the association relationship chain with the target interaction interface include a sending port. If so, it can be determined that there is a sending port associated with the target interaction interface; if not, it can be determined that there is no sending port associated with the target interaction interface.

[0076] As another implementable method, an associated interaction interface and a sending port may include the same tag, and the electronic device may obtain a port with the same tag as the target interaction interface. If the port includes a sending port, it can be determined that there is a sending port associated with the target interaction interface; if the port does not include a sending port, it can be determined that there is no sending port associated with the target interaction interface.

[0077] As another feasible method, if the electronic device detects the existence of a sending port with the same name as the target interaction interface, it can be determined that there is a sending port associated with the target interaction interface; if the electronic device does not detect a sending port with the same name as the target interaction interface, it can be determined that there is no sending port associated with the target interaction interface.

[0078] Step S340: If it is determined that there is a sending port associated with the target interactive interface, and it is determined that the receiving port is not associated with an interactive interface, an association relationship between the receiving port and the target interactive interface is created.

[0079] In some implementations, if it is determined that there is a sending port associated with the target interactive interface, the association between the receiving port to be associated and multiple interactive interfaces is obtained, and the association relationship between the receiving port and the target interactive interface can be determined based on the association. The association can include whether the receiving port is associated with an interactive interface, and can also include whether the receiving port is associated with the target interactive interface.

[0080] Among them, if the electronic device determines that there is no association relationship between the receiving port to be connected and multiple interactive interfaces included in the model element set based on the association status of the receiving port to be connected, that is, the receiving port is not associated with the interactive interface, then the association relationship between the receiving port and the target interactive interface can be automatically created, and after the association relationship between the receiving port and the target interactive interface is created, the sixth prompt information can be output. Among them, the sixth prompt information can be used to prompt that the receiving port to be connected is successfully associated with the target interactive interface. Among them, the electronic device can also display the receiving port and the target interactive interface in the association relationship creation interface, and can also display the association relationship chain between the receiving port and the target interactive interface to display related model elements for users to view, thereby improving the user experience.

[0081] In some embodiments, if the electronic device determines that the receiving port to be associated is associated with an interactive interface with a different name based on the association of the receiving port to be associated, the electronic device may output a third prompt message, wherein the third prompt message may be used to prompt that the receiving port to be associated is associated with an interactive interface with a different name.

[0082] Among them, the electronic device can also display the receiving port and the interactive interfaces with different names associated with the receiving port in the association relationship creation interface, and can also display the association relationship chain between the receiving port and the interactive interfaces with different names to display relevant model elements for users to view, making it convenient for users to locate problems in association relationship creation and modify association relationships, thereby improving the efficiency, accuracy and consistency of association relationship creation.

[0083] In some embodiments, if the electronic device determines that the receiving port to be connected is only associated with the target interactive interface according to the association of the receiving port to be connected, the fourth prompt information can be output. The fourth prompt information can be used to prompt that the association between the receiving port to be connected and the target interactive interface meets the preset connection rule.

[0084] Among them, the electronic device can also display the receiving port to be connected and the target interactive interface in the association relationship creation interface, and can also display the association relationship chain between the receiving port to be connected and the target interactive interface to display relevant model elements for users to view, thereby improving the user experience.

[0085] In some implementations, if the electronic device determines that there is no transmission port associated with the target interaction interface, the fifth prompt information may be output, wherein the fifth prompt information may be used to prompt that the target interaction interface is not associated with the transmission port.

[0086] Among them, the electronic device can also display the receiving port to be established, the target interaction interface and multiple sending ports included in the model element set in the association relationship creation interface to display the relevant model elements for users to view, which is convenient for users to locate problems in the association relationship creation, verify and create the association relationship, and improve the efficiency, accuracy and consistency of the association relationship creation.

[0087] For example, see Figure 5 , which shows a schematic flow diagram of a method for creating an association relationship provided by an embodiment of the present application. Among them, the electronic device can display an association relationship creation interface, and can receive a sending port creation instruction input by a user based on the association relationship creation interface, and create and name the sending port; it can also receive an interactive interface creation instruction input by a user based on the association relationship creation interface, and create and name the interactive interface; it can also receive an interactive interface and sending port association creation instruction input by a user based on the association relationship creation interface, and create an interactive interface and sending port association; it can also receive a receiving port creation instruction input by a user based on the association relationship creation interface, and create and name the receiving port.

[0088] Wherein, the association relationship creation interface displayed by the electronic device includes model elements in the corresponding model element set, such as multiple sending ports, multiple interactive interfaces, multiple receiving ports, multiple software modules, etc. Wherein, the electronic device can receive an association relationship creation instruction input by the user based on the association relationship creation interface; wherein, the association relationship creation instruction can carry the name of the receiving port to be associated, and can also carry the name of the software module to which the receiving port to be associated belongs. Accordingly, the electronic device can determine the receiving port to be associated from the model element set in response to the association relationship creation instruction, and can also determine any receiving port included in the software module corresponding to the association relationship creation instruction as the receiving port to be associated in response to the association relationship creation instruction.

[0089] Optionally, the electronic device can also respond to a trigger operation input by the user, and based on the name corresponding to the receiving port to be connected, the names corresponding to each of the multiple interactive interfaces, the preset connection rules, and the association between the multiple interactive interfaces and the multiple sending ports, automatically determine whether the association relationship between the receiving port to be connected and the interactive interface complies with the preset connection rules, and execute the operation of creating the association relationship between the receiving port to be connected and the interactive interface.

[0090] After the electronic device determines the receiving port to be connected, it can obtain the number of all the interactive interfaces with the same name as the target receiving port in the multiple interactive interfaces included in the association relationship creation interface, and determine whether the number is 1; if it is 1, it can determine a target interactive interface with the same name as the receiving port to be connected from the multiple interactive interfaces, and obtain the port associated with the target interactive interface, and determine whether the port includes a sending port; if it includes a sending port, the association between the receiving port to be connected and the multiple interactive interfaces included in the association relationship creation interface is obtained, and it is determined whether the receiving port is associated with the target interactive interface; if so, a fourth prompt information can be generated to prompt that the association between the receiving port to be connected and the target interactive interface meets the preset connection rule, and the receiving port to be connected, the target interactive interface and other related model elements can be displayed. The electronic device can also determine whether to traverse the receiving ports included in the software module corresponding to the association relationship creation instruction, and use the multiple receiving ports included in the software module as the receiving ports to be connected for association relationship judgment and creation, and if so, it can end.

[0091] Among them, if the electronic device determines that the number of interactive interfaces with the same name as the receiving port to be established is not 1, it can determine whether the number is 0. If it is 0, it can generate first prompt information for prompting that there is no interactive interface with the same name as the receiving port to be established among multiple interactive interfaces, and can display related model elements such as the receiving port to be established, multiple interactive interfaces, etc.

[0092] Among them, if the electronic device determines that the number of interactive interfaces with the same name as the receiving port to be connected is greater than 1, it can generate second prompt information for prompting that there are multiple interactive interfaces with the same name as the receiving port to be connected among the multiple interactive interfaces, and can display relevant model elements such as the receiving port to be connected, the multiple interactive interfaces with the same name as the receiving port to be connected, etc.

[0093] Among them, if the electronic device determines that the target interaction interface is not associated with a sending port, it can generate a fifth prompt information for prompting that the target interaction interface is not associated with a sending port, and can display relevant model elements such as the receiving port to be associated, the target interaction interface, multiple sending ports, etc.

[0094] Among them, if the electronic device determines that the receiving port to be connected is not associated with the target interactive interface, and is not associated with multiple interactive interfaces included in the association relationship creation interface, then the association relationship between the receiving port to be connected and the target interactive interface can be created, and after the association relationship between the receiving port to be connected and the target interactive interface is created, a sixth prompt information for prompting that the receiving port to be connected is successfully associated with the target interactive interface can be generated, and the receiving port to be connected and related model elements such as the target interactive interface can be displayed. Among them, the electronic device can also determine whether to traverse the receiving ports included in the software module corresponding to the association relationship creation instruction, and use the multiple receiving ports included in the software module as the receiving ports to be connected for association relationship judgment and creation, and if so, it can end.

[0095] Among them, if the electronic device determines that the receiving port to be connected is associated with an interactive interface with a different name, it can generate third prompt information for prompting that the receiving port to be connected is associated with an interactive interface with a different name, and can display relevant model elements such as the receiving port to be connected, the interactive interface with a different name associated with the receiving port to be connected, etc.

[0096] Among them, the electronic device can also obtain the model element update instruction input by the user based on the first prompt information, the second prompt information, the third prompt information and the fifth prompt information, wherein the model element update instruction can carry the model element attributes (such as name, association relationship, etc.); accordingly, the electronic device can update the model elements included in the association relationship creation interface based on the model element update instruction. Accordingly, after updating the model element, the electronic device can also respond to the trigger operation input by the user, based on the name corresponding to the receiving port to be connected, the names corresponding to each of the multiple interactive interfaces, the preset connection rules and the association relationship between the multiple interactive interfaces and the multiple sending ports, automatically determine whether the association relationship between the receiving port to be connected and the interactive interface to be connected meets the preset connection rules, and execute the operation of creating the association relationship between the receiving port to be connected and the interactive interface to be connected.

[0097] In this embodiment, when the user creates and maintains the association relationship between the sending port and the interactive interface within each subsystem, the name of the receiving port can be created on demand, and the association relationship between the interface port and the interactive interface can be checked and created at any time. The user can also quickly locate problems in the creation of the association relationship based on the prompt information output by the electronic device and the displayed model elements, thereby improving the efficiency, accuracy and consistency of the creation of the association relationship.

[0098] Compared with the method for creating an association relationship provided in an embodiment of the present application, Figure 1The method for creating an association relationship shown in the figure can also determine whether there is a sending port associated with the target interaction interface based on the association relationship between multiple interaction interfaces and multiple sending ports; if it is determined that there is a sending port associated with the target interaction interface, and it is determined that the receiving port is not associated with the interaction interface, then create an association relationship between the receiving port and the target interaction interface, thereby automatically creating an association relationship between the receiving port to be associated and the interaction interface based on the name corresponding to the receiving port to be associated, the names corresponding to the multiple interaction interfaces, the preset association rules, and the association relationship between the multiple interaction interfaces and the multiple sending ports, so as to ensure that the receiving port to be associated is associated with the interaction interface with the same unique name, thereby ensuring the accuracy and consistency of the association relationship between the model elements corresponding to the same interaction relationship, reducing the time and effort of manually creating and verifying the association relationship, and improving the user experience.

[0099] See also Figure 6 , Figure 6 The schematic diagram of the process of creating an association relationship provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 6 The process shown is described in detail, and the method for creating the association relationship may specifically include the following steps:

[0100] Step S410: In response to the association relationship creation instruction, determine the receiving port to be associated in the model element set, where the model element set also includes multiple sending ports and multiple interaction interfaces.

[0101] Step S420: According to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, determine a target interaction interface having the same name as the receiving port from the multiple interaction interfaces.

[0102] For the detailed description of step S410 to step S420, please refer to the above description of step S110 to step S120, which will not be repeated here.

[0103] Step S430: Determine the names corresponding to the multiple sending ports.

[0104] In some embodiments, after the electronic device displays the association relationship creation interface, it can obtain the names corresponding to multiple sending ports included in the model element set corresponding to the association relationship creation interface, so that the electronic device can automatically create an interactive interface with the same name based on the created and named sending port, and automatically create an association relationship between the sending port with the same name and the interactive interface.

[0105] Step S440: creating, according to the names corresponding to the multiple sending ports, interactive interfaces with the same names as those corresponding to the multiple sending ports, and creating associations between the sending ports with the same names and the interactive interfaces.

[0106] Among them, after the electronic device determines the names of multiple sending ports, it can create multiple interactive interfaces with the same name corresponding to each of the multiple sending ports according to the names of the multiple sending ports, and can create an association relationship between the sending ports and the interactive interface with the same name, thereby automatically creating an association relationship between the sending ports and the interactive interface, thereby improving the efficiency and consistency of creating the association relationship.

[0107] Step S450: Create an association relationship between the receiving port and the target interaction interface according to a preset association rule and an association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, the receiving port, and the interaction interface corresponding to the same interaction relationship are the same, and the number of the interaction interface is one.

[0108] For the specific description of step S450, please refer to the above description of step S130, which will not be repeated here.

[0109] Compared with the method for creating an association relationship provided in an embodiment of the present application, Figure 1 The method for creating an association relationship shown in the figure can also determine the names corresponding to the multiple sending ports before creating the association relationship between the receiving port and the target interactive interface according to the preset association rules and the association relationship between the multiple interactive interfaces and the multiple sending ports; create interactive interfaces with the same names as the names corresponding to the multiple sending ports according to the names corresponding to the multiple sending ports, and create associations between the sending ports with the same names and the interactive interfaces, thereby automatically creating an association relationship between the sending ports and the interactive interfaces, while improving the efficiency of creating the association relationship, ensuring the consistency of the associated sending ports and the interactive interfaces, and improving the user experience.

[0110] See also Figure 7 , Figure 7 The module block diagram of the device for creating an association relationship provided by an embodiment of the present application is shown. The device for creating an association relationship 200 is applied to the above electronic device. Figure 7 The process shown in FIG. 1 is described in detail. The association relationship creation device 200 may include: a receiving port determination module 210, a target interaction interface determination module 220, and an association relationship creation module 230, wherein:

[0111] The receiving port determining module 210 is used to determine the receiving port to be associated in the model element set in response to the association relationship creation instruction. The model element set also includes multiple sending ports and multiple interaction interfaces.

[0112] The target interaction interface determination module 220 is used to determine a target interaction interface having the same name as the receiving port from the multiple interaction interfaces according to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces.

[0113] The association relationship creation module 230 is used to create an association relationship between the receiving port and the target interaction interface according to a preset association rule and the association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, the receiving port and the interaction interface corresponding to the same interaction relationship are the same, and the number of the interaction interface is one.

[0114] Furthermore, the association relationship creation device 200 may further include: a first prompt information output unit and a second prompt information output unit, wherein:

[0115] The first prompt information output unit is used to output first prompt information if it is determined that there is no interactive interface with the same name as the receiving port among the multiple interactive interfaces, wherein the first prompt information is used to prompt that there is no interactive interface with the same name as the receiving port.

[0116] The second prompt information output unit is used to output second prompt information if at least two interactive interfaces with the same name as the receiving port are determined from the multiple interactive interfaces, wherein the second prompt information is used to prompt the receiving port that there are at least two interactive interfaces with the same name.

[0117] Furthermore, the association relationship creation module 230 may include: a target interaction interface associated port determination unit and an association relationship creation subunit, wherein:

[0118] The target interactive interface associated port determination unit is used to determine whether there is a sending port associated with the target interactive interface according to the association relationship between the multiple interactive interfaces and the multiple sending ports.

[0119] The association relationship creation subunit is used to create an association relationship between the receiving port and the target interaction interface if it is determined that there is a sending port associated with the target interaction interface and it is determined that the receiving port is not associated with an interaction interface.

[0120] Furthermore, the association relationship creation device 200 may further include: a third prompt information output unit, wherein:

[0121] The third prompt information output unit is used to output third prompt information if it is determined that there is an association between the receiving port and the interactive interface with a different name, wherein the third prompt information is used to prompt that the receiving port is associated with the interactive interface with a different name.

[0122] Furthermore, the association relationship creation device 200 may further include: a fourth prompt information output unit, wherein:

[0123] The fourth prompt information output unit is used to output the fourth prompt information if it is determined that the receiving port is associated only with the target interactive interface, wherein the fourth prompt information is used to prompt that the association between the receiving port and the target interactive interface complies with the preset association rule.

[0124] Furthermore, the association relationship creation device 200 may further include: a fifth prompt information output unit, wherein:

[0125] The fifth prompt information output unit is used to output fifth prompt information if it is determined that there is no sending port associated with the target interactive interface, wherein the fifth prompt information is used to prompt that the target interactive interface is not associated with a sending port.

[0126] Further, before creating the association relationship between the receiving port and the target interactive interface according to the preset association rule and the association relationship between the multiple interactive interfaces and the multiple sending ports, the association relationship creation device 200 may also include: a sending port name determination unit and a sending port and interactive interface association relationship creation unit, wherein:

[0127] The sending port name determining unit is used to determine the names corresponding to the multiple sending ports.

[0128] The sending port and interactive interface association relationship creating unit is used to create interactive interfaces with the same names as the names corresponding to the multiple sending ports respectively according to the names corresponding to the multiple sending ports respectively, and to create association relationships between the sending ports and interactive interfaces with the same names.

[0129] Further, before determining the receiving port to be associated in the model element set in response to the association creation instruction, and the model element set further includes multiple sending ports and multiple interactive interfaces, the association creation device 200 may also include: an interface display unit and an association creation instruction obtaining unit, wherein:

[0130] The interface display unit is used to display an association relationship creation interface, wherein the association relationship creation interface includes a target control.

[0131] The association relationship creation instruction obtaining unit is used to obtain the association relationship creation instruction in response to a touch operation on the target control.

[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0133] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0134] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0135] See also Figure 8 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be an electronic device with processing capabilities, such as a vehicle, a tablet computer, a robot, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0136] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 110 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0137] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0138] See also Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0139] The computer readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in an appropriate form.

[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for creating an association relationship, characterized in that: The method comprises: In response to the association relationship creation instruction, determining a receiving port to be associated in the model element set, wherein the model element set further includes a plurality of sending ports and a plurality of interaction interfaces; According to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces, determining a target interaction interface having the same name as the receiving port from the multiple interaction interfaces; According to the preset association rules and the association relationship between the multiple interaction interfaces and the multiple sending ports, an association relationship between the receiving port and the target interaction interface is created, wherein the preset association rules indicate that the names of the sending port, the receiving port and the interaction interface corresponding to the same interaction relationship are the same, and the number of the interaction interface is one.

2. The method according to claim 1, characterized in that The method further comprises: If it is determined that there is no interactive interface with the same name as the receiving port among the multiple interactive interfaces, outputting first prompt information, where the first prompt information is used to prompt that there is no interactive interface with the same name as the receiving port; or If at least two interactive interfaces with the same name as the receiving port are determined from the multiple interactive interfaces, second prompt information is output, wherein the second prompt information is used to prompt the receiving port that there are at least two interactive interfaces with the same name.

3. The method according to claim 1, characterized in that The step of creating an association relationship between the receiving port and the target interaction interface according to a preset association rule and an association relationship between the multiple interaction interfaces and the multiple sending ports includes: Determining whether there is a sending port associated with the target interactive interface according to the association relationship between the multiple interactive interfaces and the multiple sending ports; If it is determined that there is a sending port associated with the target interactive interface, and it is determined that the receiving port is not associated with an interactive interface, an association relationship between the receiving port and the target interactive interface is created.

4. The method according to claim 3, characterized in that The method further comprises: If it is determined that there is an association between the receiving port and the interaction interface with a different name, third prompt information is output, wherein the third prompt information is used to prompt that the receiving port is associated with the interaction interface with a different name.

5. The method according to claim 3, characterized in that: The method further comprises: If it is determined that the receiving port is associated only with the target interaction interface, fourth prompt information is output, wherein the fourth prompt information is used to prompt that the association between the receiving port and the target interaction interface complies with the preset association rule.

6. The method according to claim 3, characterized in that The method further comprises: If it is determined that there is no sending port associated with the target interactive interface, fifth prompt information is output, wherein the fifth prompt information is used to prompt that the target interactive interface is not associated with a sending port.

7. The method according to any one of claims 1 to 6, characterized in that: Before creating the association relationship between the receiving port and the target interaction interface according to the preset association rule and the association relationship between the multiple interaction interfaces and the multiple sending ports, the method further includes: Determine the names corresponding to the multiple sending ports respectively; According to the names corresponding to the multiple sending ports, interactive interfaces with the same names as those corresponding to the multiple sending ports are created, and association relationships are created between the sending ports with the same names and the interactive interfaces.

8. The method according to any one of claims 1 to 6, characterized in that: Before the step of determining the receiving port to be associated in the model element set in response to the association relationship creation instruction, wherein the model element set further includes a plurality of sending ports and a plurality of interaction interfaces, the step further includes: Displaying an association relationship creation interface, wherein the association relationship creation interface includes a target control; In response to a touch operation on the target control, the association relationship creation instruction is obtained.

9. A device for creating an association relationship, characterized in that: The device comprises: A receiving port determination module, configured to determine, in response to an association relationship creation instruction, a receiving port to be associated in a model element set, wherein the model element set further includes a plurality of sending ports and a plurality of interaction interfaces; a target interaction interface determination module, configured to determine, from the multiple interaction interfaces, a target interaction interface having the same name as the receiving port according to the name corresponding to the receiving port and the names corresponding to the multiple interaction interfaces; An association relationship creation module is used to create an association relationship between the receiving port and the target interaction interface according to a preset association rule and the association relationship between the multiple interaction interfaces and the multiple sending ports, wherein the preset association rule indicates that the names of the sending port, receiving port and interaction interface corresponding to the same interaction relationship are the same, and the number of interaction interfaces is one.

10. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 8.