Connection method and device for equipment legends in relation graph, equipment and storage medium

By automating the connection process of equipment legends in the relationship diagram generation system, and using physical world data to generate parallel main pipes and parallel connections, the problem of low drawing efficiency in the existing system is solved, and more efficient relationship diagram drawing is achieved.

CN119647033APending Publication Date: 2025-03-18PERSAGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411718588.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The existing relationship diagram generation system requires engineers to draw equipment legends and their connections one by one, resulting in low drawing efficiency.

Method used

By determining the project equipment and its connection relationship based on physical world data, generating parallel main pipes and parallel connections, and drawing basic connections, automating the connection process of equipment legends.

Benefits of technology

Improve the efficiency of relationship drawing, reduce the steps of manual operation, and enhance the automation capabilities of the drawing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119647033A_ABST
    Figure CN119647033A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment legend connection method and device in a relation graph, equipment and a storage medium, and the method comprises the steps: determining each piece of project equipment in a target project, and a connection relation and an arrangement mode between each piece of project equipment according to physical world data corresponding to the target project; after an equipment legend corresponding to each piece of project equipment is drawn, parallel equipment legends with a parallel relation are screened from all the equipment legends according to the connection relation and the arrangement mode of all the project equipment, and parallel main pipes corresponding to all the parallel equipment legends are generated; according to the position relation between each parallel equipment legend and the corresponding parallel main pipe, determining the direction of an external connecting line of the parallel main pipe, and generating a parallel connecting line from the starting anchor point of the parallel equipment legend to the link anchor point of the link equipment legend along the direction of the external connecting line; according to the connection relation between the project equipment, the basic connection lines between the non-parallel equipment legend are drawn, and the relation graph drawing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software engineering, and in particular to a method, device, equipment and storage medium for connecting device legends in a relationship diagram. Background Art

[0002] At present, in many fields such as building design, power system and data center management, relationship diagrams are usually used to express the composition structure of buildings or systems. The above relationship diagrams are usually presented through equipment legends, and the specific physical connection relationship between each equipment legend is expressed by connecting lines.

[0003] The existing relationship diagram generation system usually relies on engineers to draw the equipment legends corresponding to the project equipment one by one, as well as the connections between the equipment legends, resulting in low efficiency in relationship diagram drawing. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for connecting equipment legends in a relationship diagram, which can improve the efficiency of drawing the relationship diagram.

[0005] In a first aspect, an embodiment of the present invention provides a method for connecting device legends in a relationship diagram, which is executed by a relationship diagram generation system, and the method includes:

[0006] Determine the equipment of each project in the target project, as well as the connection relationship and arrangement between the equipment of each project, based on the physical world data corresponding to the target project;

[0007] After drawing the equipment legends corresponding to each project equipment, according to the connection relationship and arrangement between the equipment of each project, select the parallel equipment legends with parallel relationship in each equipment legend, and generate parallel main pipes corresponding to each parallel equipment legend;

[0008] According to the positional relationship between each parallel device legend and the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined, and a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend is generated along the external connection direction;

[0009] The non-parallel device legends obtained after filtering the device legends are obtained, and the basic connection lines between the non-parallel device legends are drawn according to the connection relationship between the devices of each project.

[0010] In a second aspect, an embodiment of the present invention further provides a device for connecting device legends in a relationship diagram, which is executed by a relationship diagram generation system, and the device includes:

[0011] A project equipment determination module is used to determine each project equipment in the target project, as well as the connection relationship and arrangement between each project equipment, based on the physical world data corresponding to the target project;

[0012] A parallel main pipe generation module is used to select parallel equipment legends with parallel relationships in each equipment legend after drawing the equipment legends corresponding to each project equipment, according to the connection relationship and arrangement between the equipment of each project, and generate parallel main pipes corresponding to each parallel equipment legend;

[0013] A parallel connection generation module is used to determine the external connection direction of the parallel main pipe according to the positional relationship between each parallel device legend and the corresponding parallel main pipe, and generate a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction;

[0014] The basic connection generation module is used to obtain the non-parallel device legends obtained after screening the device legends, and draw the basic connection lines between the non-parallel device legends according to the connection relationship between the devices of each project.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the wiring method of the device legend in the relationship diagram provided in any embodiment of the present invention.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer instructions, which are used to enable a processor to implement a method for connecting device legends in a relationship diagram provided in any embodiment of the present invention when executing the computer instructions.

[0017] The technical solution of the present invention determines the external connection direction of the parallel main pipe according to the positional relationship between each parallel device and the corresponding parallel main pipe, and generates a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction; according to the connection relationship between the equipment of each project, a technical means of drawing the basic connection between the legends of each non-parallel device is solved, which solves the problem that the existing relationship diagram generation system needs to rely on manual drawing of the connection lines between the legends of each device one by one, resulting in low efficiency in relationship diagram drawing, and improves the efficiency of relationship diagram drawing.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a method for connecting device legends in a relationship diagram provided according to Embodiment 1 of the present invention;

[0021] Figure 2 is a flow chart of another method for connecting device legends in a relationship diagram provided according to Embodiment 2 of the present invention;

[0022] Figure 3 is a schematic diagram of a project equipment connection relationship provided according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram for representing a connection mode between parallel devices according to an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of an external connection direction provided according to an embodiment of the present invention;

[0025] Figure 6 is a schematic diagram of another external connection direction provided according to an embodiment of the present invention;

[0026] Figure 7 is a first schematic diagram for reflecting the connection status between parallel device legends and link devices provided according to an embodiment of the present invention;

[0027] Figure 8 is a second schematic diagram for reflecting the connection status between parallel device legends and link devices provided according to an embodiment of the present invention;

[0028] Fig. 9 is a third schematic diagram for reflecting the connection status between parallel device legends and link devices provided according to an embodiment of the present invention;

[0029] Fig.10 is a flow chart of a device hiding processing method provided according to an embodiment of the present invention;

[0030] Fig.11 is a structural schematic diagram of a connection device of a device legend in a relationship diagram provided according to a third embodiment of the present invention;

[0031] Fig.12 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 It is a flowchart of a method for connecting a device legend in a relationship diagram provided according to a first embodiment of the present invention. This embodiment can be applicable to the situation of generating connections between device legends in a relationship diagram. The method can be executed by a connection device for the device legend in the relationship diagram. The connection device for the device legend in the relationship diagram can be implemented in the form of hardware and / or software. The connection device for the device legend in the relationship diagram can be configured in an electronic device such as a computer.

[0036] like Figure 1 As shown, a method for connecting device legends in a relationship diagram disclosed in this embodiment is executed by a relationship diagram generation system, and the method includes:

[0037] S110 . Determine, based on the physical world data corresponding to the target project, the equipment of each project in the target project, as well as the connection relationship and arrangement between the equipment of each project.

[0038] In this embodiment, the physical world data may be a complete expression of the objective physical information of the target project, including at least each project device in the target project, and the connection relationship and position relationship between each project device.

[0039] In this step, specifically, the equipment of each project in the target project, as well as the connection relationship and position relationship between the equipment of each project can be determined based on the physical world data corresponding to the target project, and the arrangement of the equipment of each project can be determined based on the position relationship between the equipment of each project. The target project includes but is not limited to physical buildings, power systems, and data center management systems. The arrangement of the equipment of each project includes but is not limited to horizontal and vertical arrangements.

[0040] S120. After drawing the equipment legends corresponding to each project equipment, select the parallel equipment legends with parallel relationships in each equipment legend according to the connection relationship and arrangement between the project equipment, and generate parallel main pipes corresponding to each parallel equipment legend.

[0041] In this step, specifically, the device legends that are linked to the same link device and arranged in the same manner can be used as the same type of parallel device legends. Exemplarily, after determining the candidate device legends with the same arrangement manner, the parallel device legends that are linked to the same link device can be selected from each candidate device legend, or after determining the candidate device legends that are linked to the same link device, the parallel device legends that are arranged in the same manner can be selected from each candidate device legend.

[0042] Then, parallel main pipes corresponding to each parallel device legend may be generated, and the distance between adjacent parallel main pipes may be set to a first preset distance. The first preset distance may be set arbitrarily according to user requirements, and this embodiment does not limit this.

[0043] S130. Determine the external connection direction of the parallel main pipe according to the positional relationship between each parallel device legend and the corresponding parallel main pipe, and generate a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction.

[0044] In this step, specifically, at least one external connection direction can be generated according to the positional relationship between each parallel device legend and its corresponding parallel main pipe. The above positional relationship can be that each parallel device legend is on the same side of its corresponding parallel main pipe, or each parallel device legend is on different sides of its corresponding parallel main pipe. Then, at least one parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend can be generated along at least one external connection direction. Among them, the parallel connection line can be a connection line starting from the starting anchor point of the parallel device legend, passing through the parallel main pipe along at least one external connection direction and finally to the link anchor point.

[0045] Optionally, when there are multiple parallel lines corresponding to the same parallel main pipe, the number of turning points on each parallel line can be obtained, and the parallel line with the least number of turning points is used as the parallel line finally displayed to the user.

[0046] S140, obtaining a non-parallel device legend obtained after screening each device legend, and drawing a basic connection line between each non-parallel device legend according to the connection relationship between each project device.

[0047] In this step, specifically, after drawing the basic lines between the non-parallel device legends, it is possible to detect whether there are overlapping basic lines. If overlapping basic lines are detected, the overlapping basic lines are separated by setting the distance between the overlapping basic lines to a second preset distance. The first preset distance may be equal to or different from the second preset distance.

[0048] Furthermore, it may be detected whether there are intersections on each parallel connection line and each basic connection line, and the intersections may be set as solid points.

[0049] The technical solution of this embodiment determines the project equipment in the target project, as well as the connection relationship and arrangement between the project equipment, based on the physical world data corresponding to the target project; after drawing the equipment legend corresponding to each project equipment, according to the connection relationship and arrangement between the project equipment, the parallel equipment legends with parallel relationships are screened in each equipment legend, and parallel main pipes corresponding to each parallel equipment legend are generated; according to the positional relationship between each parallel equipment and the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined, and parallel connections from the starting anchor point of the parallel equipment legend to the link anchor point of the link equipment legend are generated along the external connection direction; the non-parallel equipment legends obtained after screening each equipment legend are obtained, and according to the connection relationship between each project equipment, the basic connection between each non-parallel equipment legend is drawn. The technical means solves the problem that the existing relationship diagram generation system needs to rely on manual drawing of the connection between each equipment legend one by one, resulting in low efficiency in relationship diagram drawing, thereby improving the efficiency of relationship diagram drawing.

[0050] Embodiment 2

[0051] Figure 2 It is a flowchart of another method for connecting device legends in a relationship diagram provided according to Example 2 of the present invention. This embodiment is based on the further optimization and expansion of the above embodiments, and can be combined with various optional technical solutions in the above implementation methods.

[0052] like Figure 2 As shown, a method for connecting device legends in a relationship diagram disclosed in this embodiment is executed by a relationship diagram generation system, and the method includes:

[0053] S210: Determine the equipment of each project in the target project, as well as the connection relationship and arrangement between the equipment of each project, based on the physical world data corresponding to the target project.

[0054] S220: After drawing the equipment legends corresponding to each project equipment, determine candidate equipment legends with the same arrangement in each equipment legend according to the arrangement between the project equipment.

[0055] S230. According to the connection relationship between the equipment of each project, determine the parallel equipment legends linked to the same linking equipment legend in each candidate equipment legend, and generate parallel main pipes corresponding to each parallel equipment legend.

[0056] For example, Figure 3 As shown, the target project includes a first project device, a second project device, a third project device, and a fourth project device, and the first project device and the second project device can both be connected to the third project device and the fourth project device. Figure 4 As shown, after instantiating each project equipment, 4 first project equipment legends corresponding to the first project equipment, 0 second project equipment legends corresponding to the second project equipment, 4 third project equipment legends corresponding to the third project equipment, and 0 fourth project equipment legends corresponding to the fourth project equipment are obtained. Since the 4 first project equipment legends and the 4 third project equipment legends are all arranged vertically, and there is a link relationship between the 4 first project equipment legends and the 4 third project equipment legends, the first parallel main pipes corresponding to the 4 first project equipment legends and the second parallel main pipes corresponding to the 4 third project equipment legends can be generated. In addition, in order to realize the connection between the 4 first project equipment legends and the 4 third project equipment legends, a third parallel main pipe is added between the first parallel main pipe and the second parallel main pipe.

[0057] S240. If the legends of the parallel devices are all located on the first side of the corresponding parallel main pipe, determine that the external connection direction of the parallel main pipe is any direction except the first side.

[0058] In this embodiment, the first side of the parallel main pipe may be the left side or the right side of the parallel main pipe.

[0059] For example, Figure 5 As shown in (1)-(3), when the first device legend, the second device legend and the third device legend are all located on the left side of the parallel main pipe, the external connection direction of the parallel main pipe can be the right side, top or bottom of the parallel main pipe.

[0060] S250. If the legends of the parallel devices are all located on the second side of the corresponding parallel main pipe, determine that the external connection direction of the parallel main pipe is any direction except the second side.

[0061] In this embodiment, the second side of the parallel main pipe may be the left side or the right side of the parallel main pipe, and the first side and the second side of the parallel main pipe are different.

[0062] The advantage of this arrangement is that when the parallel device legends are on the same side, external connection lines are led out from the other side of the parallel device legend, thereby avoiding conflicts between the external connection lines of the parallel main pipe and the parallel device legends.

[0063] S260. If the parallel device legends are not all located on the first side or the second side of the corresponding parallel main pipe, determine that the external connection direction of the parallel main pipe is an arbitrary direction.

[0064] For example, Figure 6 As shown, when the parallel device legends corresponding to the current parallel main pipe are only the first device legend and the second device legend, and the first device legend is located on the left side of the parallel main pipe and the second device legend is located on the right side of the parallel main pipe, the external connection direction of the parallel main pipe can be any direction such as the left side, right side, top and bottom of the parallel main pipe.

[0065] S270: Generate a parallel connection line from the start anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction.

[0066] Optionally, before generating a parallel connection from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction, it also includes: determining the number of starting anchor points according to the type of the starting anchor point and / or the correspondence between the starting anchor point and the sub-device legend in the parallel device legend, and generating the starting anchor point according to the number of starting anchor points.

[0067] The types of starting anchor points include, but are not limited to, static and dynamic. Static anchor points can be moved to any position in the parallel device diagram in any way, and dynamic anchor points are only allowed to be moved in parallel to any position in the parallel device diagram. Horizontal movement methods may include parallel movement and vertical movement. The movement directions of static anchor points and dynamic anchor points may remain unchanged.

[0068] Specifically, if the starting anchor point is a static anchor point, the number of the starting anchor points is unique. If the starting anchor point is a dynamic anchor point, the number of the starting anchor points can be determined according to the corresponding relationship between the starting anchor point and the sub-device legend in the parallel device legend.

[0069] Furthermore, if the starting anchor point is a dynamic anchor point, and it is detected that the starting anchor point represents a sub-device legend within the parallel device legend, the number of starting anchor points is determined according to the number of instantiations of the sub-device legend. The number of instantiations of the sub-device legend can be determined based on the physical world data of the target project. If the starting anchor point is a dynamic anchor point, and it is not detected that the starting anchor point represents any sub-device legend, the number of starting anchor points is determined based on the number of instantiated connections corresponding to the parallel device legend. When it is necessary to hide the sub-device legend within the parallel device legend, the sub-device legend within the parallel device legend is represented by the starting anchor point.

[0070] Exemplarily, assuming that the parallel device legend is a machine room, and there is a first sub-device legend for representing an electric meter in the machine room, after receiving an instruction to hide the first sub-device legend, the first sub-device legend can be hidden, and the anchor point located on the first sub-device legend can be displayed on the parallel device legend to represent the first sub-device legend. If the above anchor point is used as the starting anchor point, and the above anchor point is a dynamic anchor point, the number of instantiations of the first sub-device legend can be obtained, and the number of instantiations of the first sub-device legend can be used as the number of starting anchor points.

[0071] Furthermore, assuming that there are two parallel device legends and three linked devices, when both the starting anchor point and the link anchor point are dynamic anchor points that do not represent any sub-device legends, the connection status of the parallel device legend and the linked device can be as follows: Figure 7 When the starting anchor point is a dynamic anchor point that does not represent any sub-device legend, the link anchor point is a dynamic anchor point that represents a sub-device legend, and there are 4 sub-device legends after instantiation, the connection between the parallel device legend and the link device can be as follows: Figure 7 When the starting anchor point is a dynamic anchor point that does not represent any sub-device legend, and the link anchor point is a static anchor point, the connection between the parallel device legend and the link device can be as follows: Figure 7 When the starting anchor point is a dynamic anchor point that does not represent any sub-device legend, and the linking device is a riser group, the connection between the parallel device legend and the linking device can be as follows: Figure 7 As shown in (4) in .

[0072] When the starting anchor is a dynamic anchor representing a sub-device legend, the link anchor is a dynamic anchor that does not represent any sub-device legend, and there are 6 sub-device legends after instantiation, the connection between the parallel device legend and the link device can be as follows: Figure 8 When both the starting anchor point and the link anchor point are dynamic anchor points representing sub-device legends, and the starting anchor point represents 6 sub-device legends and the link anchor point represents 4 sub-device legends, the connection between the parallel device legend and the link device can be as follows: Figure 8 When the starting anchor point is a dynamic anchor point representing any sub-device legend, the link anchor point is a static anchor point, and there are 6 sub-device legends represented by the starting anchor point, the connection between the parallel device legend and the link device can be as follows: Figure 8 When the starting anchor point is a dynamic anchor point representing any sub-device legend, the link anchor point is a riser group, and there are 6 sub-device legends represented by the starting anchor point, the connection between the parallel device legend and the link device can be as follows: Figure 8 As shown in (4) in .

[0073] When the starting anchor is a static anchor and the link anchor is a dynamic anchor that does not represent any child device legend, the connection between the parallel device legend and the link device can be as follows: Fig. 9 When the starting anchor point is a static anchor point, and the link anchor point is a dynamic anchor point representing a sub-device legend, and there are 4 sub-device legends represented by the link anchor point, the connection between the parallel device legend and the link device can be as follows: Fig. 9 When both the starting anchor point and the link anchor point are static anchor points, the connection status of the parallel device legend and the link device can be as follows: Fig. 9 When the starting anchor point is a static anchor point and the linking device is a riser group, the parallel device legend and the connection of the linking device can be as follows: Fig. 9 As shown in (4) in .

[0074] S280, obtaining a non-parallel device legend obtained after screening each device legend, and drawing a basic connection line between each non-parallel device legend according to the connection relationship between each project device.

[0075] Optionally, the direction and / or connection relationship type of each connection line corresponding to the same device legend may be set to be different, and the connection relationship type corresponding to each connection line is unique. The above connection lines may include parallel connection lines and basic connection lines.

[0076] S290. When it is detected that the connection relationship between two non-associated device legends is an indirect connection, the intermediate device legend is hidden according to the link initiation line between the link initiator and the intermediate device legend, and the link termination line between the intermediate device legend and the link termination party.

[0077] Among them, Fig.10 As shown, S290 may specifically include:

[0078] S291. When it is detected that the connection relationship between two non-associated device legends is an indirect connection, a link initiation line between a link initiator and an intermediate device legend, and a link termination line between the intermediate device legend and a link termination party are obtained.

[0079] S292, determine whether the directions of the link initiation connection and the link termination connection are detected, if so, execute S293, if not, execute S296.

[0080] S293, determine whether the directions of the link initiation connection and the link termination connection are the same, if so, execute S294, if not, execute S295.

[0081] S294. Determine whether to display the direct connection between the link initiator and the link terminator and the connection relationship type corresponding to the direct connection at the same time after hiding the intermediate device legend, based on whether the connection relationship types corresponding to the link initiator connection and the link terminator connection are the same.

[0082] In this embodiment, the connection relationship types of the link initiation line and the link termination line are unique.

[0083] In this step, specifically, if the directions of the link initiation connection and the link termination connection are the same, and the connection relationship type of the link initiation connection is the same as the connection relationship type of the link termination connection, then after hiding the intermediate device legend, the link initiator, the link terminator, the direct connection between the link initiator and the link terminator, and the connection relationship type corresponding to the direct connection are displayed simultaneously. If the directions of the link initiation connection and the link termination connection are the same, but the connection relationship type of the link initiation connection is different from the connection relationship type of the link termination connection, then after hiding the intermediate device legend, only the link initiator, the link terminator, and the direct connection between the link initiator and the link terminator are displayed.

[0084] S295. Hide the intermediate device legend and the connection between the link initiator and the link terminator.

[0085] In this step, specifically, if the directions of the link initiation line and the link termination line are different, but the connection relationship type of the link initiation line is the same as the connection relationship type of the link termination line, then the intermediate device legend and the connection line between the link initiator and the link terminator are hidden, that is, only the link initiator and the link terminator are displayed. If the directions of the link initiation line and the link termination line are different, and the connection relationship type of the link initiation line is different from the connection relationship type of the link termination line, then the intermediate device legend and the connection line between the link initiator and the link terminator are hidden.

[0086] Optionally, if only the direction of the link initiating wire or the link terminating wire is detected, the intermediate device legend and the wire between the link initiator and the link terminator are hidden.

[0087] S296. Determine whether to display the direct connection between the link initiator and the link terminator and the connection relationship type corresponding to the direct connection at the same time after hiding the intermediate device legend, based on whether the connection relationship types corresponding to the link initiator connection and the link terminator connection are the same.

[0088] In this step, specifically, if the directions of the link initiation line and the link termination line are not detected, but the connection relationship type of the link initiation line is the same as the connection relationship type of the link termination line, then after hiding the intermediate device legend, the link initiator, the link terminator, the direct line between the link initiator and the link terminator, and the line relationship type corresponding to the direct line are displayed simultaneously. If the directions of the link initiation line and the link termination line are not detected, and the connection relationship type of the link initiation line is different from the connection relationship type of the link termination line, then after hiding the intermediate device legend, only the link initiator, the link terminator, and the direct line between the link initiator and the link terminator are displayed.

[0089] The technical solution of this embodiment, when each parallel device legend is located on the first side or the second side of the corresponding parallel main pipe, determines the external connection direction of the parallel main pipe to be any direction except the side where each parallel device legend is located, thereby avoiding the conflict between the external connection of the parallel main pipe and the parallel device legend, and improving the user experience. Secondly, when it is detected that the connection relationship between two non-associated device legends is an indirect connection, the intermediate device legend is hidden according to the link initiation connection between the link initiator and the intermediate device legend, and the link termination connection between the intermediate device legend and the link termination party, thereby improving the visualization effect of the relationship diagram while ensuring the consistency of the connection information between the device legends.

[0090] Embodiment 3

[0091] Fig.11 It is a structural schematic diagram of a connection device for a device legend in a relationship diagram provided according to Embodiment 3 of the present invention. This embodiment can be applied to the situation of generating connections between device legends in a relationship diagram. The connection device for the device legend in the relationship diagram can be implemented in the form of hardware and / or software and can be configured in an electronic device such as a computer.

[0092] like Fig.11 As shown, the connection device of the device legend in the relationship diagram disclosed in this embodiment is executed by the relationship diagram generation system, and the device includes:

[0093] The project equipment determination module 100 is used to determine the project equipment in the target project, as well as the connection relationship and arrangement between the project equipment, based on the physical world data corresponding to the target project;

[0094] The parallel main pipe generation module 200 is used to select parallel equipment legends with parallel relationships in each equipment legend after drawing the equipment legends corresponding to each project equipment, according to the connection relationship and arrangement between the equipment of each project, and generate parallel main pipes corresponding to each parallel equipment legend;

[0095] The parallel connection generation module 300 is used to determine the external connection direction of the parallel main pipe according to the positional relationship between each parallel device legend and the corresponding parallel main pipe, and generate a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction;

[0096] The basic connection generation module 400 is used to obtain the non-parallel device legends obtained after screening the device legends, and draw the basic connection lines between the non-parallel device legends according to the connection relationship between the devices of each project.

[0097] The technical solution in this embodiment solves the problem of low efficiency in relationship diagram drawing in the existing relationship diagram generation system, which relies on manual drawing of the connections between each device legend, through the mutual cooperation of the project equipment determination module, the parallel main pipe generation module, the parallel connection generation module and the basic connection generation module, thereby improving the efficiency of relationship diagram drawing.

[0098] Optionally, the parallel main pipe generation module 200 is specifically used to: determine candidate device legends with the same arrangement in each device legend according to the arrangement between the equipment of each project; determine parallel device legends linked to the same linking device legend in each candidate device legend according to the connection relationship between the equipment of each project.

[0099] Optionally, the parallel connection generation module 300 is specifically used for: if the parallel device legends are all located on the first side of the corresponding parallel main pipe, then the external connection direction of the parallel main pipe is determined to be any direction except the first side; if the parallel device legends are all located on the second side of the corresponding parallel main pipe, then the external connection direction of the parallel main pipe is determined to be any direction except the second side; if the parallel device legends are not all located on the first side or the second side of the corresponding parallel main pipe, then the external connection direction of the parallel main pipe is determined to be any direction.

[0100] Optionally, the device also includes a device hiding processing module, which is used to obtain the link initiation line between the link initiator and the intermediate device legend, and the link termination line between the intermediate device legend and the link terminator when it is detected that the connection relationship between two non-associated device legends is an indirect connection; when the directions of the link initiation line and the link termination line are not detected, determine whether to display the direct line between the link initiator and the link terminator at the same time after hiding the intermediate device legend, and the direction of the direct line corresponding to the link initiation line and the link termination line according to whether the connection relationship types corresponding to the link initiation line and the link termination line are the same. connection relationship type; wherein, the connection relationship type of the link initiating connection and the link terminating connection is unique; when the directions of the link initiating connection and the link terminating connection are detected, determine whether the directions of the link initiating connection and the link terminating connection are the same; if so, determine whether to display the direct connection between the link initiator and the link terminator and the connection relationship type corresponding to the direct connection at the same time after hiding the intermediate device legend based on whether the connection relationship types respectively corresponding to the link initiating connection and the link terminating connection are the same; if not, hide the intermediate device legend and the connection between the link initiator and the link terminator.

[0101] Optionally, the device hiding processing module is specifically used for: if the connection relationship type of the link initiating connection is the same as the connection relationship type of the link terminating connection, then after hiding the intermediate device legend, the direct connection between the link initiator and the link terminator, and the connection relationship type corresponding to the direct connection are displayed at the same time; if the connection relationship type of the link initiating connection is different from the connection relationship type of the link terminating connection, then after hiding the intermediate device legend, only the direct connection between the link initiator and the link terminator is displayed.

[0102] Optionally, the device also includes an anchor point generation module, which is used to determine the number of starting anchor points according to the type of the starting anchor point and / or the correspondence between the starting anchor point and the sub-device legend in the parallel device legend, and generate the starting anchor point according to the number of starting anchor points.

[0103] Optionally, the anchor point generation module is specifically used for: if the starting anchor point is a static anchor point, the number of starting anchor points is unique; if the starting anchor point is a dynamic anchor point, and it is detected that the starting anchor point represents a sub-device legend within the parallel device legend, the number of starting anchor points is determined according to the number of instantiations of the sub-device legend; if the starting anchor point is a dynamic anchor point, and it is not detected that the starting anchor point represents any sub-device legend, the number of starting anchor points is determined according to the number of instantiated connections corresponding to the parallel device legend; wherein, when it is necessary to hide the sub-device legend within the parallel device legend, the sub-device legend within the parallel device legend is represented by the starting anchor point.

[0104] The wiring device for the device legend in the relationship diagram provided in the embodiment of the present invention can execute the wiring method for the device legend in the relationship diagram provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, reference can be made to the description in any method embodiment of the present application.

[0105] Embodiment 4

[0106] Fig.12 FIG. 1 is a schematic diagram showing the structure of an electronic device 10 that can be used to implement an embodiment of the present invention. Fig.12 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0107] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0108] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the wiring method of the device legend in the relationship diagram.

[0109] In some embodiments, the wiring method of the device legend in the relationship diagram can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the wiring method of the device legend in the relationship diagram described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the wiring method of the device legend in the relationship diagram in any other appropriate manner (for example, by means of firmware).

[0110] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0111] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0112] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0114] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0115] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0116] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0117] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for connecting device legends in a relationship diagram, characterized in that: Executed by a relationship graph generation system, the method includes: Determine the equipment of each project in the target project, as well as the connection relationship and arrangement between the equipment of each project, based on the physical world data corresponding to the target project; After drawing the equipment legends corresponding to each project equipment, according to the connection relationship and arrangement between the equipment of each project, select the parallel equipment legends with parallel relationship in each equipment legend, and generate parallel main pipes corresponding to each parallel equipment legend; According to the positional relationship between each parallel device legend and the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined, and a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend is generated along the external connection direction; The non-parallel device legends obtained after filtering the device legends are obtained, and the basic connection lines between the non-parallel device legends are drawn according to the connection relationship between the devices of each project.

2. The method according to claim 1, characterized in that According to the connection relationship and arrangement between the equipment of each project, select the parallel equipment legends with parallel relationship in each equipment legend, including: According to the arrangement of the equipment in each project, determine the candidate equipment legends with the same arrangement in each equipment legend; According to the connection relationship between the devices of each project, a parallel device legend linked to the same linking device legend is determined in each candidate device legend.

3. The method according to claim 1, characterized in that According to the positional relationship between each parallel equipment legend and the corresponding parallel main pipe, determine the external connection direction of the parallel main pipe, including: If the legends of each parallel device are located on the first side of the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined to be any direction except the first side; If the legends of each parallel device are located on the second side of the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined to be any direction except the second side; If the parallel equipment legends are not all located on the first side or the second side of the corresponding parallel main pipe, the external connection direction of the parallel main pipe is determined to be an arbitrary direction.

4. The method according to claim 1, characterized in that: After drawing the basic connection lines between the non-parallel equipment legends according to the connection relationship between the equipment of each project, it also includes: When it is detected that the connection relationship between the two non-associated device legends is an indirect connection, a link initiation line between the link initiator and the intermediate device legend, and a link termination line between the intermediate device legend and the link termination party are obtained; When the directions of the link initiating line and the link terminating line are not detected, determining whether to simultaneously display the direct line between the link initiator and the link terminating party and the line relationship type corresponding to the direct line after hiding the intermediate device legend, according to whether the connection relationship types respectively corresponding to the link initiating line and the link terminating line are the same; Among them, the connection relationship types of the link initiation connection and the link termination connection are unique; When the directions of the link initiation line and the link termination line are detected, determining whether the directions of the link initiation line and the link termination line are the same; If so, determining whether to display the direct connection between the link initiator and the link terminator and the connection relationship type corresponding to the direct connection at the same time after hiding the intermediate device legend, according to whether the connection relationship types corresponding to the link initiator connection and the link terminator connection are the same; If not, hide the intermediate device legend and the line between the link initiator and the link terminator.

5. The method according to claim 4, characterized in that According to whether the connection relationship types corresponding to the link initiating connection line and the link terminating connection line are the same, it is determined whether to display the direct connection line between the link initiator and the link terminating party at the same time after hiding the intermediate device legend, and the connection relationship type corresponding to the direct connection line, including: If the connection relationship type of the link initiating connection is the same as the connection relationship type of the link terminating connection, then after hiding the intermediate device legend, the direct connection between the link initiator and the link terminating party and the connection relationship type corresponding to the direct connection are displayed simultaneously; If the connection relationship type of the link initiator wire is different from the connection relationship type of the link terminator wire, only the direct wire between the link initiator and the link terminator is displayed after the intermediate device legend is hidden.

6. The method according to claim 1, characterized in that Before generating a parallel connection line from the start anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction, the method further includes: The number of the starting anchor points is determined according to the type of the starting anchor point and / or the corresponding relationship between the starting anchor point and the sub-device legend in the parallel device legend, and the starting anchor points are generated according to the number of the starting anchor points.

7. The method according to claim 6, characterized in that The number of the starting anchor points is determined according to the type of the starting anchor point and / or the corresponding relationship between the starting anchor point and the sub-device legend in the parallel device legend, including: If the starting anchor point is a static anchor point, the number of starting anchor points is unique; If the starting anchor point is a dynamic anchor point, and it is detected that the starting anchor point represents a sub-device legend within a parallel device legend, the number of starting anchor points is determined according to the number of instantiations of the sub-device legend; If the starting anchor point is a dynamic anchor point, and it is not detected that the starting anchor point represents any sub-device legend, the number of starting anchor points is determined according to the number of instantiated lines corresponding to the parallel device legend; When it is necessary to hide the sub-device legend in the parallel device legend, the sub-device legend in the parallel device legend is represented by the starting anchor point.

8. A device for connecting equipment legends in a relationship diagram, characterized in that: The method is performed by a relationship diagram generation system, and the device includes: A project equipment determination module is used to determine each project equipment in the target project, as well as the connection relationship and arrangement between each project equipment, based on the physical world data corresponding to the target project; A parallel main pipe generation module is used to select parallel equipment legends with parallel relationships in each equipment legend after drawing the equipment legends corresponding to each project equipment, according to the connection relationship and arrangement between the equipment of each project, and generate parallel main pipes corresponding to each parallel equipment legend; A parallel connection generation module is used to determine the external connection direction of the parallel main pipe according to the positional relationship between each parallel device legend and the corresponding parallel main pipe, and generate a parallel connection line from the starting anchor point of the parallel device legend to the link anchor point of the link device legend along the external connection direction; The basic connection generation module is used to obtain the non-parallel device legends obtained after screening the device legends, and draw the basic connection lines between the non-parallel device legends according to the connection relationship between the devices of each project.

9. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the wiring method of the device legend in the relationship diagram described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a wiring method for a device legend in a relationship diagram in any one of claims 1 to 7 when executed.