A method and apparatus for editing group nodes

By directly adding ports and setting port types on group nodes, the cumbersome ungrouping and grouping operations in existing technologies are simplified, the complexity and error problems of group node editing are solved, and a simple and efficient port addition is achieved.

CN116266111BActive Publication Date: 2025-12-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111551407.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2025-12-02
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

In existing technologies, adding ports to group nodes requires ungrouping, editing, and then regrouping, which is cumbersome and prone to errors, especially when there are many nodes.

Method used

A method for editing group nodes is provided, which displays a node display interface by receiving operations, allows direct addition of ports and connection points to the target group node, and sets the port type from the second type to the first type, thus simplifying the operation process.

Benefits of technology

There's no need to ungroup and regroup; you can directly edit group nodes, simplifying the port addition process and reducing operational steps and the risk of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116266111B_ABST
    Figure CN116266111B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for editing group nodes, relating to the field of software development technology. The method includes: receiving a first operation on a target group node; displaying a node display interface in response to the first operation; receiving a second operation on an output node among the nodes constituting the target group node, the second operation being used to add a port to the output node; adding a first port to the output node and a second port corresponding to the first port to the target group node in response to the second operation, and setting the port type of the first port and the second port to a first type; receiving a third operation, the third operation being used to connect the first port and the third port; connecting the first port and the third port in response to the third operation, and setting the port type of the first port and the second port to a second type, where the second type is the port type of the third port. This invention simplifies the operation of adding ports to a group node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software development technology, and in particular to a method and apparatus for editing group nodes. Background Technology

[0002] In the process of graphical programming, in order to reduce the complexity caused by the number of nodes and quickly reuse the functions implemented by multiple nodes, it is often necessary to combine multiple nodes into a node group, and display the node group as a single node in the graphical programming interface. Such a node composed of multiple nodes is called a group node.

[0003] While group nodes can significantly reduce the complexity caused by the number of nodes and facilitate rapid reuse, current technologies do not support direct editing of group nodes. When it is necessary to add ports to a group node to expand its functionality, the existing editing method involves: first, ungrouping the group node to expand it into individual nodes; then, editing the number and type of ports on one or more of these nodes; and finally, grouping the modified nodes back into a single group node. As described above, adding ports to a group node in the existing technology requires ungrouping, editing, and then regrouping, which is cumbersome and prone to errors when the number of nodes within the group node is large and the grouping details are complex. Summary of the Invention

[0004] In view of this, the present invention provides a group node editing method and apparatus to simplify the operation of adding ports to group nodes.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, embodiments of the present invention provide a group node editing method, including:

[0007] Receive the first operation on the target group node;

[0008] In response to the first operation, a node display interface is displayed, which includes: the nodes that make up the target group of nodes, the ports on the nodes, and the connection relationships between the ports;

[0009] Receive a second operation on an output node among the nodes that make up the target group nodes, the second operation being used to add a port on the output node;

[0010] In response to the second operation, a first port is added to the output node, a second port corresponding to the first port is added to the target group node, and the port types of the first port and the second port are set to a first type;

[0011] Receive a third operation, the third operation being used to connect the first port and the third port;

[0012] In response to the third operation, the first port and the third port are connected, and the port type of the first port and the second port is set to a second type, where the second type is the port type of the third port.

[0013] As an optional implementation of this invention, after connecting the first port and the third port, and setting the port types of the first port and the second port to the second type, the method further includes:

[0014] Receive a fourth operation, the fourth operation being used to connect the first port and the fourth port;

[0015] Determine whether the port type of the fourth port is the second type;

[0016] If so, connect the first port and the fourth port, and keep the port type of the first port and the second port as the second type;

[0017] If not, a prompt message will be output, indicating that the first port and the fourth port are not allowed to connect.

[0018] As an optional implementation of this invention, after connecting the first port and the fourth port, the method further includes:

[0019] Receive a fifth operation, the fifth operation being used to disconnect the connection between the first port and the third port or the fourth port;

[0020] In response to the fifth operation, the connection between the first port and the third port or the fourth port is disconnected, while the port type of the first port and the second port remains the second type.

[0021] As an optional implementation of this invention, after connecting the first port and the fourth port, the method further includes:

[0022] Receive a sixth operation, the sixth operation being used to disconnect the first port from the third port and the fourth port;

[0023] In response to the sixth operation, the connection between the first port and the third and fourth ports is disconnected, and the port type of the first port and the second port is set to the first type.

[0024] As an optional implementation of this invention, after connecting the first port and the third port, and setting the port types of the first port and the second port to the second type, the method further includes:

[0025] A seventh operation is received, the seventh operation being used to disconnect the connection between the first port and the third port;

[0026] In response to the seventh operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

[0027] As an optional implementation of this invention, after connecting the first port and the third port, and setting the port types of the first port and the second port to the second type, the method further includes:

[0028] Receive the eighth operation, which is used to connect the second port and the fifth port;

[0029] In response to the eighth operation, the second port is connected to the fifth port, and the port types of the first port and the second port are kept to the second type.

[0030] As an optional implementation of this invention, after connecting the second port and the fifth port, the method further includes:

[0031] Receive a ninth operation, the ninth operation being used to disconnect the connection between the first port and the third port;

[0032] In response to the ninth operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

[0033] As an optional implementation of this invention, after connecting the second port and the fifth port, the method further includes:

[0034] Receive a tenth operation, the tenth operation being used to disconnect the connection between the second port and the fifth port;

[0035] In response to the tenth operation, the connection between the second port and the fifth port is disconnected, while the port types of the first port and the second port remain the second type.

[0036] Secondly, embodiments of the present invention provide a group node editing device, comprising:

[0037] The user input unit is used to receive the first operation on the target group node;

[0038] A display unit is configured to display a node display interface in response to the first operation. The node display interface includes: nodes that make up the target group of nodes, ports on the nodes, and connection relationships between the ports.

[0039] The user input unit is further configured to receive a second operation on an output node among the nodes constituting the target group nodes, the second operation being configured to add a port to the output node;

[0040] A port adding unit is configured to, in response to the second operation, add a first port on the output node, add a second port corresponding to the first port on the target group node, and set the port type of the first port and the second port to a first type;

[0041] The user input unit is also configured to receive a third operation, the third operation being configured to connect the first port and the third port;

[0042] The processing unit is configured to, in response to the third operation, connect the first port and the third port, and set the port type of the first port and the second port to a second type, wherein the second type is the port type of the third port.

[0043] As an optional implementation of the present invention,

[0044] The user input unit is further configured to receive a fourth operation after connecting the first port and the third port and setting the port type of the first port and the second port to the second type, the fourth operation being used to connect the first port and the fourth port;

[0045] The processing unit is further configured to determine whether the port type of the fourth port is the second type; if yes, then connect the first port and the fourth port, and keep the port types of the first port and the second port as the second type; if no, then output a prompt message, the prompt message being used to indicate that the first port and the fourth port are not allowed to connect.

[0046] As an optional implementation of the present invention,

[0047] The user input unit is further configured to receive a fifth operation after connecting the first port and the fourth port, the fifth operation being configured to disconnect the connection between the first port and the third port or the fourth port;

[0048] The processing unit is further configured to, in response to the fifth operation, disconnect the connection between the first port and the third port or the fourth port, and maintain the port type of the first port and the second port as the second type.

[0049] As an optional implementation of the present invention,

[0050] The user input unit is further configured to receive a sixth operation after connecting the first port and the fourth port, the sixth operation being configured to disconnect the connection between the first port and the third port and the fourth port;

[0051] The processing unit is further configured to, in response to the sixth operation, disconnect the connection between the first port and the third port and the fourth port, and set the port type of the first port and the second port to the first type.

[0052] As an optional implementation of the present invention,

[0053] The user input unit is further configured to receive a seventh operation after connecting the first port and the third port and setting the port type of the first port and the second port to the second type, the seventh operation being used to disconnect the connection between the first port and the third port;

[0054] The processing unit is further configured to, in response to the seventh operation, disconnect the connection between the first port and the third port, and set the port type of the first port and the second port to the first type.

[0055] As an optional implementation of the present invention,

[0056] The user input unit is further configured to receive an eighth operation after connecting the first port and the third port and setting the port types of the first port and the second port to the second type, the eighth operation being used to connect the second port and the fifth port;

[0057] The processing unit is further configured to, in response to the eighth operation, connect the second port and the fifth port, and maintain the port type of the first port and the second port as the second type.

[0058] As an optional implementation of the present invention,

[0059] The user input unit is further configured to receive a ninth operation after connecting the second port and the fifth port, the ninth operation being configured to disconnect the connection between the first port and the third port;

[0060] The processing unit is further configured to, in response to the ninth operation, disconnect the connection between the first port and the third port, and set the port type of the first port and the second port to the first type.

[0061] As an optional implementation of the present invention,

[0062] The user input unit is further configured to receive a tenth operation after connecting the second port and the fifth port, the tenth operation being used to disconnect the connection between the second port and the fifth port;

[0063] The processing unit is further configured to, in response to the tenth operation, disconnect the connection between the second port and the fifth port, and maintain the port type of the first port and the second port as the second type.

[0064] Thirdly, embodiments of the present invention provide an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to cause the electronic device to implement the group node editing method described in the first aspect or any optional implementation of the first aspect when the computer program is invoked.

[0065] Fourthly, embodiments of the present invention provide a computer-readable storage medium that, when executed by a computing device, causes the computing device to implement the group node editing method described in the first aspect or any optional implementation of the first aspect.

[0066] Fifthly, embodiments of the present invention provide a computer program product that, when run on a computer, enables the computer to implement the group node editing method described in the first aspect or any optional implementation of the first aspect.

[0067] The group node editing method provided in this embodiment of the invention first receives a first operation on a target group node, and in response to the first operation displays a node display interface including the nodes constituting the target group node, ports on the nodes, and connection relationships between the ports; then it receives a second operation on an output node among the nodes constituting the target group node, and in response to the second operation adds a first port to the output node, adds a second port corresponding to the first port to the target group node, and sets the port type of the first port and the second port to a first type; then it receives a third operation for connecting the first port and the third port, and in response to the third operation connects the first port and the third port, and sets the port type of the first port and the second port to the port type of the third port. Compared to the prior art, which requires ungrouping, editing, and regrouping when adding ports to a group node, the group node editing method provided in this embodiment of the invention can directly edit the target group node to add ports to the target group node without performing ungrouping and regrouping operations on the target group node first. Therefore, the group node editing method provided in this embodiment of the invention can simplify the operation of adding ports to a group node. Attached Figure Description

[0068] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0069] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0070] Figure 1 This is a flowchart illustrating the steps of a group node editing method provided in an embodiment of the present invention.

[0071] Figure 2 This is one of the scenario interface diagrams for the group node editing method provided in the embodiments of the present invention;

[0072] Figure 3 This is the second scenario interface diagram of the group node editing method provided in this embodiment of the invention;

[0073] Figure 4 The third scenario interface diagram of the group node editing method provided in this embodiment of the invention;

[0074] Figure 5 The fourth scenario interface diagram of the group node editing method provided in this embodiment of the invention;

[0075] Figure 6 Fifth scene interface diagram of the group node editing method provided in the embodiments of the present invention;

[0076] Figure 7 The sixth scene interface diagram of the group node editing method provided in the embodiment of the present invention;

[0077] Figure 8 The seventh scene interface diagram of the group node editing method provided in the embodiment of the present invention;

[0078] Figure 9 Eighth scene interface diagram of the group node editing method provided in the embodiment of the present invention;

[0079] Figure 10 The ninth scene interface diagram of the group node editing method provided in the embodiment of the present invention;

[0080] Figure 11 The tenth scene interface diagram of the group node editing method provided in the embodiment of the present invention;

[0081] Figure 12 A schematic diagram of a group node editing device provided in an embodiment of the present invention;

[0082] Figure 13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0083] To better understand the above-mentioned objectives, features, and advantages of the present invention, the solutions of the present invention will be further described below. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0084] Many specific details are set forth in the following description in order to provide a full understanding of the invention, but the invention may also be practiced in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of the invention, and not all embodiments.

[0085] It should be noted that, in order to clearly describe the technical solutions of the embodiments of the present invention, the terms "first" and "second" are used in the embodiments of the present invention to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" are not intended to limit the quantity or execution order. For example, the first feature image set and the second feature image set are merely to distinguish different feature image sets, rather than to limit the order of the feature image sets.

[0086] In the embodiments of the present invention, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Furthermore, in the description of the embodiments of the present invention, unless otherwise stated, "a plurality of" means two or more.

[0087] Based on the above, this embodiment of the invention provides a method for editing group nodes, referring to... Figure 1 As shown, the group node editing method provided in this embodiment of the invention includes the following steps:

[0088] S11, Receive the first operation on the target group node.

[0089] In this embodiment of the invention, the target group node can be any group node in the graphical programming software, and the first operation can be any operation used to view the information of the target group node. For example, the first operation in this embodiment of the invention can be a user's click operation on the target group node, a user-inputted voice command, or a user-inputted specific gesture.

[0090] In some embodiments of the present invention, the specific gesture can be any one of a single-click gesture, a swipe gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, or a double-tap gesture.

[0091] S12. In response to the first operation, display the node display interface.

[0092] The node display interface includes: the nodes that make up the target group of nodes, the ports on the nodes, and the connection relationships between the ports.

[0093] It should be noted that, unlike the display interface after performing a disgrouping operation on the target group nodes, the node display interface in this embodiment of the invention is used to display each node that makes up the target group nodes, the ports on each node, and the connection relationships between each port. The node display interface does not perform a disgrouping operation on the target group nodes.

[0094] Optionally, the node display interface can be displayed in a preset area of ​​the interface displaying the target group nodes, or in a floating window, or in a newly created content display interface. This embodiment of the invention does not limit this, as long as the node display interface can be displayed.

[0095] For example, refer to Figure 2 As shown, Figure 2 The target group node 200 includes a control 201 for triggering the display of the node's interface, and the first operation is an operation on the control 201, as illustrated in the example. Figure 2 As shown, when a user operation on control 201 (first operation) is received, in response to the user operation on control 201, node display interface 202 is displayed. Node display interface 202 includes input node 21, node 22, node 23, node 24, output node 25, ports on the nodes, and connection relationships between the ports that make up the target group of nodes.

[0096] S13, Receive a second operation on the output node among the nodes that make up the target group nodes.

[0097] The second operation is used to add a port to the output node.

[0098] In this embodiment of the invention, the type of the second operation is not limited, but is based on whether the second operation can trigger the addition of a port on the output node. For example, the second operation is a touch click operation on the output node.

[0099] S14. In response to the second operation, add a first port on the output node, add a second port corresponding to the first port on the target group node, and set the port type of the first port and the second port to a first type.

[0100] In this embodiment of the invention, the first port and the second port are ports with changeable types. The first port and the second port can be defined at the underlying level by enumerating port types. The first type can be a general type (GENERAL).

[0101] For example, refer to Figure 3 As shown, Figure 3 The output node 25, which forms the target group node, includes a control 251 for triggering the addition of a port, and the second operation is an operation on the control 251, as shown in the example. When a user's operation on the control 251 on the output node 25 (the second operation) is received, such as... Figure 3 As shown in (a), a first port 301 is added to the output node 25, as follows: Figure 3 As shown in (b), a second port 302 corresponding to the first port is added to the target group node 200. The port type settings for both the first port 301 and the second port 302 are both Type 1.

[0102] S15, Receive the third operation.

[0103] The third operation is used to connect the first port and the third port.

[0104] In this embodiment of the invention, the type of the third operation is not limited, but is defined as the operation that can trigger the connection between the first port and the third port. For example, the third operation can be an operation of sliding from the first port to the third port.

[0105] S16. In response to the third operation, connect the first port and the third port, and set the port type of the first port and the second port to the second type.

[0106] The second type is the port type of the third port.

[0107] For example, refer to Figure 4 As shown, Figure 4 The example illustrates this by taking port 303 on node 24 as the third port, and the third operation as sliding from port 301 on output node 25 to port 303 on node 24. Figure 4 As shown, when a user input is received to slide from the first port 301 to the third port 303 (the third operation), the first port 301 and the third port 303 are connected, and the port types of the first port 301 and the second port are set to the port type of the third port 303.

[0108] The group node editing method provided in this embodiment of the invention first receives a first operation on a target group node, and in response to the first operation displays a node display interface including the nodes that make up the target group node, the ports on the nodes, and the connection relationships between the ports; then it receives a second operation on an output node in the node, and in response to the second operation adds a first port to the output node, adds a second port corresponding to the first port to the target group node, and sets the port type of the first port and the second port to a first type; then it receives a third operation for connecting the first port and the third port, and in response to the third operation connects the first port and the third port, and sets the port type of the first port and the second port to the port type of the third port. Compared with the prior art, which requires ungrouping, editing, and regrouping when adding ports to a group node, the group node editing method provided in this embodiment of the invention can directly edit the target group node to add ports to the target group node, without having to perform ungrouping and regrouping operations on the target group node first. Therefore, the group node editing method provided in this embodiment of the invention can simplify the operation of adding ports to a group node.

[0109] One application scenario of the group node editing method provided in this invention includes: During the editing of special effects, an effect of automatically applying makeup to an input photo is implemented through node-based visual programming, and the group node implementing this effect is group node A. In subsequent use, if it is desired to expand the function of group node A to add earrings while automatically applying makeup, this expansion requires adding an output port to group node A. In this case, the group node editing method provided in this invention can be used to edit group node A. Ports are directly added to the output nodes among the nodes that make up group node A, and the newly added ports are connected. There is no need to first ungroup group node A, then edit the number and type of ports in one or more nodes, and finally perform a grouping operation on the modified nodes.

[0110] As an optional implementation of the present invention, the group node editing method provided in the present invention further includes the following steps a to d:

[0111] Step a: Receive the fourth operation.

[0112] The fourth operation is used to connect the first port and the fourth port.

[0113] In this embodiment of the invention, the type of the fourth operation is not limited, but is defined as the operation that can trigger the connection between the first port and the fourth port. For example, the fourth operation can be an operation of sliding from the first port to the fourth port.

[0114] Step b: Determine whether the port type of the fourth port is the second type.

[0115] That is, determine whether the port type of the fourth port is the same as the port already connected to the first port (the third port) or the current port type of the first port.

[0116] In step b above, if the port type of the fourth port is the second type, then step c is executed as follows.

[0117] Step c: Connect the first port and the fourth port, and keep the port type of the first port and the second port as the second type.

[0118] For example, refer to Figure 5 As shown, Figure 5 The example illustrates the fourth port as port 304 on node 23, and the fourth operation as sliding from the first port 301 on output node 25 to port 304 on node 23. Figure 5As shown, when a user input is received to slide from the first port 301 to the fourth port 304 (the third operation), the first port 301 and the fourth port 304 are connected, and the port type of the first port 301 is kept to the second type.

[0119] In step b above, if the port type of the fourth port is not the second type, then step d is executed as follows.

[0120] Step d: Output a prompt message.

[0121] The prompt message is used to indicate that the first port and the fourth port are not allowed to connect.

[0122] For example, refer to Figure 6 As shown, Figure 6 The example illustrates the fourth port as port 304 on node 23, and the fourth operation as sliding from the first port 301 on output node 25 to port 304 on node 23. Figure 6 As shown, when the user inputs an operation to slide from the first port 301 to the fourth port 304 (the third operation), a prompt message 600 is output through a window. The content of the prompt message 600 is "The port types are different, and the connection is not allowed".

[0123] As an optional implementation of this invention, after step c (connecting the first port and the fourth port), the group node editing method provided by this invention further includes:

[0124] Receive a fifth operation, the fifth operation being used to disconnect the connection between the first port and the third port or the fourth port;

[0125] In response to the fifth operation, the connection between the first port and the third port or the fourth port is disconnected, while the port type of the first port and the second port remains the second type.

[0126] That is, when the first port is connected to multiple ports, if an operation to disconnect some of the connections is received, the corresponding connections will be disconnected, while keeping the port type of the first port unchanged.

[0127] For example, refer to Figure 7 As shown, Figure 7 The fifth operation is illustrated as a double-click operation on the connection input between the first port 301 and the fourth port 304, and the fifth operation is used to disconnect the connection between the first port 301 and the fourth port 304. Figure 7As shown, when a double-click operation (fifth operation) is received from the user to connect the first port 301 and the fourth port 304, the connection between the first port 301 and the fourth port 304 is disconnected, and the port type of the first port remains unchanged (still the port type of the third port, the second type).

[0128] As an optional implementation of this invention, after step c (connecting the first port and the fourth port), the group node editing method provided by this invention further includes:

[0129] Receive a sixth operation, the sixth operation being used to disconnect the first port from the third port and the fourth port;

[0130] In response to the sixth operation, the connection between the first port and the third and fourth ports is disconnected, and the port type of the first port and the second port is set to the first type.

[0131] That is, when the first port is connected to multiple ports, if an operation to disconnect all connections is received, all connections will be disconnected, and the port type of the first port and the second port will be set to the default port type (first type).

[0132] For example, refer to Figure 8 As shown, Figure 8 The sixth operation is illustrated by clicking the control 800 on output node 25, which is used to disconnect all connections on the first port 301. Figure 8 As shown, when a user clicks on the control 800 (sixth operation), the connection between the first port 301 and the third port 303 is disconnected, the connection between the first port 301 and the fourth port 304 is disconnected, and the port type of the first port and the second port is set to the first type.

[0133] As an optional implementation of this invention, after step S106 (connecting the first port and the third port, and setting the port type of the first port and the second port to the second type), the group node editing method provided by this invention further includes:

[0134] A seventh operation is received, the seventh operation being used to disconnect the connection between the first port and the third port;

[0135] In response to the seventh operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

[0136] That is, when the first port is connected to only one port, if an operation to disconnect the connection is received, the connection is disconnected, and the port type of the first port and the second port is set to the default port type (first type).

[0137] For example, refer to Figure 9 As shown, Figure 9 The seventh operation is illustrated by double-clicking the connection input between the first port 301 on output node 25 and the third port 303 on node 24. Figure 9 As shown, when a double-click operation (seventh operation) is received from the user to connect the first port 301 and the third port 303, the connection between the first port 301 and the third port 303 is disconnected, and the port type of the first port and the second port is set to the first type.

[0138] As an optional implementation of this invention, after step S106 (connecting the first port and the third port, and setting the port type of the first port and the second port to the second type), the group node editing method provided by this invention further includes:

[0139] Receive the eighth operation, which is used to connect the second port and the fifth port;

[0140] In response to the eighth operation, the second port is connected to the fifth port, and the port types of the first port and the second port are kept to the second type.

[0141] That is, if an operation to connect the second port to other ports is received, the second port is connected to the corresponding port, and the port types of the first port and the second port remain unchanged (still the port type of the third port, the second type).

[0142] For example, refer to Figure 10 As shown, Figure 10 The example shown uses port 305 as the port on a node outside the target group node, and the eighth operation is an operation where the second port 302 on the target group node 200 slides to the fifth port 305. Figure 10 As shown, when a user input is received to slide from the second port 302 to the fifth port 305 (eighth operation), the second port 301 and the fifth port 305 are connected, and the port type of the first port and the second port is kept to the second type.

[0143] As an optional implementation of this invention, after connecting the second port and the fifth port, the group node editing method provided in this invention further includes:

[0144] Receive a ninth operation, the ninth operation being used to disconnect the connection between the first port and the third port;

[0145] In response to the ninth operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

[0146] That is, the connection of the second port to other ports does not affect the port type of the first port and the second port. The port type of the first port and the second port is determined by the port to which the first port is connected. If the first port is connected to other ports, the port type of the first port and the second port is the type of the port to which the first port is connected. If the first port is not connected to other ports, the port type of the first port and the second port is the default first type.

[0147] As an optional implementation of this invention, after connecting the second port and the fifth port, the group node editing method provided in this invention further includes:

[0148] Receive a tenth operation, the tenth operation being used to disconnect the connection between the second port and the fifth port;

[0149] In response to the tenth operation, the connection between the second port and the fifth port is disconnected, while the port types of the first port and the second port remain the second type.

[0150] That is, the disconnection of the second port from other ports does not affect the port type of the first port and the second port. The port type of the first port and the second port is determined by the port to which the first port is connected. If the first port is connected to other ports, the port type of the first port and the second port is the type of the port to which the first port is connected. If the first port is not connected to other ports, the port type of the first port and the second port is the default first type.

[0151] For example, refer to Figure 11 As shown, Figure 11 The example shown is a touch click operation on port 305 of node 101 outside the target group node, with the fifth port as the target port, and the tenth operation being a touch click operation on the connection between the second port 302 and the fifth port 305. Figure 11 As shown, when a user input is received to perform a touch click operation (tenth operation) on the connection between the second port 301 and the fifth port 305, the connection between the second port 301 and the fifth port 305 is disconnected, and the port type of the first port and the second port is kept as the second type.

[0152] Based on the same inventive concept, as an implementation of the above method, this embodiment of the invention also provides a group node editing device. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the group node editing device in this embodiment can correspondingly implement all the contents of the aforementioned method embodiment.

[0153] This invention provides a group node editing device. Figure 12 This is a schematic diagram of the structure of the group node editing device, as shown below. Figure 12 As shown, the group node editing device 120 includes:

[0154] User input unit 121 is used to receive the first operation on the target group node;

[0155] Display unit 122 is used to display a node display interface in response to the first operation. The node display interface includes: nodes that make up the target group nodes, ports on the nodes, and connection relationships between the ports.

[0156] The user input unit 121 is further configured to receive a second operation on an output node among the nodes constituting the target group nodes, the second operation being configured to add a port to the output node;

[0157] The port addition unit 123 is configured to, in response to the second operation, add a first port on the output node, add a second port corresponding to the first port on the target group node, and set the port type of the first port and the second port to a first type;

[0158] The user input unit 121 is also used to receive a third operation, the third operation being used to connect the first port and the third port;

[0159] Processing unit 124 is configured to, in response to the third operation, connect the first port and the third port, and set the port type of the first port and the second port to a second type, wherein the second type is the port type of the third port.

[0160] As an optional implementation of the present invention,

[0161] The user input unit 121 is further configured to receive a fourth operation after connecting the first port and the third port and setting the port type of the first port and the second port to the second type, the fourth operation being used to connect the first port and the fourth port;

[0162] The processing unit 124 is further configured to determine whether the port type of the fourth port is the second type; if yes, then connect the first port and the fourth port, and keep the port types of the first port and the second port as the second type; if no, then output a prompt message, the prompt message being used to indicate that the first port and the fourth port are not allowed to connect.

[0163] As an optional implementation of the present invention,

[0164] The user input unit 121 is further configured to receive a fifth operation after connecting the first port and the fourth port, the fifth operation being configured to disconnect the connection between the first port and the third port or the fourth port;

[0165] The processing unit 124 is further configured to, in response to the fifth operation, disconnect the connection between the first port and the third port or the fourth port, and maintain the port type of the first port and the second port as the second type.

[0166] As an optional implementation of the present invention,

[0167] The user input unit 121 is further configured to receive a sixth operation after connecting the first port and the fourth port, the sixth operation being configured to disconnect the connection between the first port and the third port and the fourth port;

[0168] The processing unit 124 is further configured to, in response to the sixth operation, disconnect the connection between the first port and the third port and the fourth port, and set the port type of the first port and the second port to the first type.

[0169] As an optional implementation of the present invention,

[0170] The user input unit 121 is further configured to receive a seventh operation after connecting the first port and the third port and setting the port type of the first port and the second port to the second type, the seventh operation being used to disconnect the connection between the first port and the third port;

[0171] The processing unit 124 is further configured to, in response to the seventh operation, disconnect the connection between the first port and the third port, and set the port type of the first port and the second port to the first type.

[0172] As an optional implementation of the present invention,

[0173] The user input unit 121 is further configured to receive an eighth operation after connecting the first port and the third port and setting the port type of the first port and the second port to the second type, the eighth operation being used to connect the second port and the fifth port;

[0174] The processing unit 124 is further configured to, in response to the eighth operation, connect the second port and the fifth port, and maintain the port type of the first port and the second port as the second type.

[0175] As an optional implementation of the present invention,

[0176] The user input unit 121 is further configured to receive a ninth operation after connecting the second port and the fifth port, the ninth operation being configured to disconnect the connection between the first port and the third port;

[0177] The processing unit 124 is further configured to, in response to the ninth operation, disconnect the connection between the first port and the third port, and set the port type of the first port and the second port to the first type.

[0178] As an optional implementation of the present invention,

[0179] The user input unit 121 is further configured to receive a tenth operation after connecting the second port and the fifth port, the tenth operation being configured to disconnect the connection between the second port and the fifth port;

[0180] The processing unit 124 is further configured to, in response to the tenth operation, disconnect the connection between the second port and the fifth port, and maintain the port type of the first port and the second port as the second type.

[0181] The group node editing device provided in this embodiment can execute the group node editing method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0182] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, such as... Figure 13 As shown, the electronic device provided in this embodiment includes a memory 131 and a processor 132. The memory 131 is used to store computer programs; the processor 132 is used to execute the group node editing method provided in the above embodiment when the computer program is invoked.

[0183] Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the computing device to implement the group node editing method provided in the above embodiments.

[0184] Based on the same inventive concept, this embodiment of the invention also provides a computer program product that, when run on a computer, enables the computing device to implement the group node editing method provided in the above embodiments.

[0185] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0186] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0187] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0188] Computer-readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media can store information using any method or technology; the information can be computer-readable instructions, data structures, units of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media do not include transient computer-readable media, such as modulated data signals and carrier waves.

[0189] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for editing group nodes, characterized in that, include: Receive the first operation on the target group node; In response to the first operation, a node display interface is displayed, which includes: the nodes that make up the target group of nodes, the ports on the nodes, and the connection relationships between the ports; Receive a second operation on an output node among the nodes constituting the target group nodes, the second operation being used to add a port on the output node; In response to the second operation, a first port is added to the output node, a second port corresponding to the first port is added to the target group node, and the port types of the first port and the second port are set to a first type; Receive a third operation, the third operation being used to connect the first port and the third port; In response to the third operation, the first port and the third port are connected, and the port type of the first port and the second port is set to a second type, where the second type is the port type of the third port.

2. The method according to claim 1, characterized in that, After connecting the first port and the third port, and setting the port type of the first port and the second port to the second type, the method further includes: Receive a fourth operation, the fourth operation being used to connect the first port and the fourth port; Determine whether the port type of the fourth port is the second type; If so, connect the first port and the fourth port, and keep the port type of the first port and the second port as the second type; If not, a prompt message will be output, indicating that the first port and the fourth port are not allowed to connect.

3. The method according to claim 2, characterized in that, After connecting the first port and the fourth port, the method further includes: Receive a fifth operation, the fifth operation being used to disconnect the connection between the first port and the third port or the fourth port; In response to the fifth operation, the connection between the first port and the third port or the fourth port is disconnected, while the port type of the first port and the second port remains the second type.

4. The method according to claim 2, characterized in that, After connecting the first port and the fourth port, the method further includes: Receive a sixth operation, the sixth operation being used to disconnect the first port from the third port and the fourth port; In response to the sixth operation, the connection between the first port and the third and fourth ports is disconnected, and the port type of the first port and the second port is set to the first type.

5. The method according to claim 1, characterized in that, After connecting the first port and the third port, and setting the port type of the first port and the second port to the second type, the method further includes: A seventh operation is received, the seventh operation being used to disconnect the connection between the first port and the third port; In response to the seventh operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

6. The method according to claim 1, characterized in that, After connecting the first port and the third port, and setting the port type of the first port and the second port to the second type, the method further includes: Receive the eighth operation, which is used to connect the second port and the fifth port; In response to the eighth operation, the second port is connected to the fifth port, and the port types of the first port and the second port are kept to the second type.

7. The method according to claim 6, characterized in that, After connecting the second port and the fifth port, the method further includes: Receive a ninth operation, the ninth operation being used to disconnect the connection between the first port and the third port; In response to the ninth operation, the connection between the first port and the third port is disconnected, and the port type of the first port and the second port is set to the first type.

8. The method according to claim 6, characterized in that, After connecting the second port and the fifth port, the method further includes: Receive a tenth operation, the tenth operation being used to disconnect the connection between the second port and the fifth port; In response to the tenth operation, the connection between the second port and the fifth port is disconnected, while the port types of the first port and the second port remain the second type.

9. A group node editing device, characterized in that, include: The user input unit is used to receive the first operation on the target group node; A display unit is configured to display a node display interface in response to the first operation. The node display interface includes: nodes that make up the target group of nodes, ports on the nodes, and connection relationships between the ports. The user input unit is further configured to receive a second operation on an output node among the nodes constituting the target group nodes, the second operation being configured to add a port to the output node; A port adding unit is configured to, in response to the second operation, add a first port on the output node, add a second port corresponding to the first port on the target group node, and set the port type of the first port and the second port to a first type; The user input unit is also configured to receive a third operation, the third operation being configured to connect the first port and the third port; The processing unit is configured to, in response to the third operation, connect the first port and the third port, and set the port type of the first port and the second port to a second type, wherein the second type is the port type of the third port.

10. An electronic device, characterized in that, include: A memory and a processor, the memory being used to store a computer program; the processor being used to cause the electronic device to implement the group node editing method according to any one of claims 1-8 when executing the computer program.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a computing device, causes the computing device to implement the group node editing method according to any one of claims 1-8.

12. A computer program product, characterized in that, When the computer program product is run on a computer, the computer enables the group node editing method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • A method for realizing visual graphical programming

    CN109542422A

  • A system and method for dynamic, portable, customize, contextual, unified and integrated network(s).

    WO2013098830A1