Relationship graph template generation method and device, equipment and storage medium
By generating relationship diagram templates corresponding to different types of target items, the problems of low efficiency and poor accuracy of relationship diagram drawing in the prior art are solved, and efficient and accurate relationship diagram customization is achieved.
Patent Information
- Application Number
- CN202411719063.2
- 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
The existing relationship diagram generation system requires engineers to draw the complete relationship representations of each project equipment one by one, resulting in low drawing efficiency and easy errors, resulting in rework.
By generating relationship diagram templates corresponding to different types of target projects, we can customize relationship diagrams for different customers according to the relationship diagram template, and improve drawing efficiency and accuracy. The specific methods include responding to the physical world data input by the user, selecting project equipment and device legends, performing filtering settings, anchor point settings, and instantiating layout settings, and generating a relationship diagram template.
It improves the efficiency and accuracy of relationship drawing, reduces the dependence on engineers' professional qualities, and reduces the possibility of rework.
Smart Images

Figure CN119646912A_ABST
Abstract
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 generating a relationship diagram template. 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 in two-dimensional graphics, and the two-dimensional graphics on the relationship diagram are connected by lines to express their specific physical connection relationships.
[0003] The existing relationship diagram generation system usually relies on engineers to draw the complete relationship representation of each project equipment and the equipment of each project one by one, resulting in low efficiency in relationship diagram drawing. Secondly, the relationship diagram drawing by engineers relies too much on the professional quality of engineers. When the level of engineers is insufficient, relationship diagram drawing errors are prone to occur, resulting in rework after the relationship diagram is implemented. Therefore, how to efficiently and accurately generate relationship diagrams has become a problem that needs to be solved urgently. Summary of the invention
[0004] The present invention provides a relationship diagram template generation method, device, equipment and storage medium, which can generate relationship diagram templates corresponding to different types of target projects, realize personalized customization of relationship diagrams for different customers based on the relationship diagram templates, and improve the efficiency and accuracy of relationship diagram drawing.
[0005] In a first aspect, an embodiment of the present invention provides a method for generating a relationship diagram template, which is executed by a relationship diagram generation system, and the method includes:
[0006] In response to physical world data input by a user for a target project, selecting a project device and a device legend corresponding to the project device in a pre-built data dictionary tree, and adding the project device and the device legend corresponding to the project device to a pre-set legend selection area;
[0007] The physical world data at least includes the equipment in each project of the target project and the complete relationship representation information between the equipment in each project;
[0008] In response to a user dragging a target device legend in a legend selection area, adding the target device legend to a preset relationship diagram drawing area;
[0009] In response to a user clicking operation on a target device legend, filter setting options, anchor point setting options, and instantiation layout options for the target device legend are displayed;
[0010] In response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiated layout option, configuring a target device legend;
[0011] In response to the user's configuration completion instruction, a relationship diagram template corresponding to the target project is generated based on the configured target device legends and the complete relationship representation information between the project devices.
[0012] In a second aspect, an embodiment of the present invention further provides a relationship diagram template generation device, which is executed by a relationship diagram generation system, and the device includes:
[0013] An equipment legend selection module, for selecting project equipment and equipment legends corresponding to the project equipment in a pre-built data dictionary tree in response to physical world data input by a user for a target project, and adding the project equipment and equipment legends corresponding to the project equipment to a pre-set legend selection area;
[0014] The physical world data at least includes the equipment in each project of the target project and the complete relationship representation information between the equipment in each project;
[0015] A device legend adding module, configured to add the target device legend to a preset relationship diagram drawing area in response to a user dragging the target device legend in the legend selection area;
[0016] A configuration item display module, for displaying filter setting options, anchor point setting options and instantiation layout options for the target device legend in response to a user's click operation on the target device legend;
[0017] A device legend configuration module, configured to configure a target device legend in response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiation layout option;
[0018] The relationship diagram template generation module is used to respond to the user's configuration completion instruction and generate a relationship diagram template corresponding to the target project based on the configured target device legends and the complete relationship representation information between the project devices.
[0019] 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 relationship diagram template generation method provided by any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a processor to implement the relationship diagram template generation method provided by any embodiment of the present invention when executed.
[0021] The technical solution of the present invention selects the target device legend corresponding to the target project, performs at least one configuration operation of filter setting, anchor point setting and instantiation layout setting on each target device legend, and generates a relationship diagram template corresponding to the target project according to each configured target device legend and the complete relationship representation information between each project device, thereby solving the problem that the existing relationship diagram generation system requires engineers to draw each project device and the complete relationship representation between each project device one by one, resulting in low efficiency in relationship diagram drawing. Secondly, by generating relationship diagram templates corresponding to different types of target projects, it is possible to achieve personalized customization of relationship diagrams for different customers according to the relationship diagram template, thereby improving the efficiency and accuracy of relationship diagram drawing.
[0022] 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
[0023] 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.
[0024] Figure 1 is a flowchart of a method for generating a relationship diagram template provided according to Embodiment 1 of the present invention;
[0025] Figure 2 is a flowchart of another method for generating a relationship diagram template provided according to Embodiment 2 of the present invention;
[0026] Figure 3 is a structural schematic diagram of a relationship diagram template generating device provided according to Embodiment 3 of the present invention;
[0027] Figure 4 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] Embodiment 1
[0031] Figure 1 It is a flowchart of a relationship diagram template generation method provided according to the first embodiment of the present invention. This embodiment can be applied to the case of generating a relationship diagram corresponding to a target project. The method can be executed by a relationship diagram template generation device. The relationship diagram template generation device can be implemented in the form of hardware and / or software. The relationship diagram template generation device can be configured in an electronic device such as a computer.
[0032] like Figure 1 As shown, a method for generating a relationship diagram template disclosed in this embodiment is executed by a relationship diagram generating system, and the front-end page of the relationship diagram generating system includes at least a legend selection area and a relationship diagram drawing area. The method includes:
[0033] S110. In response to the physical world data input by the user for the target project, select the project equipment and the equipment legend corresponding to the project equipment in the pre-built data dictionary tree, and add the project equipment and the equipment legend corresponding to the project equipment to a pre-set legend selection area.
[0034] The physical world data at least includes the equipment in each project and the complete relationship representation information between the equipment in each project. The complete relationship representation information can be used to reflect the position relationship and routing logic between the equipment in each project. The target projects include but are not limited to architectural design projects, power systems, and data center management systems.
[0035] In this step, specifically, after receiving the physical world data input by the user for the target project, in response to the user's click operation on the load legend button in the legend selection area, the project equipment and the equipment legend corresponding to the project equipment can be selected in the pre-built data dictionary tree according to the physical world data. Among them, the data dictionary tree stores the project equipment corresponding to each target project and the equipment legend corresponding to the project equipment. Then, the project equipment and the equipment legend corresponding to the project equipment can be added in batches to the preset legend selection area. Optionally, the project equipment and the equipment legend corresponding to the project equipment can be added to different columns in the legend selection area one by one. Finally, when the number of project equipment is less than or equal to the preset equipment value, only the project equipment and the equipment legend corresponding to the project equipment in the legend selection area can be displayed; when the number of project equipment is greater than the preset equipment value, the project equipment, the equipment legend corresponding to the project equipment and the preset up and down scroll bars in the legend selection area can be displayed. The preset up and down scroll bars can be used to adjust the display position of the equipment legend in the legend selection area, which provides convenience for users to drag the required equipment legend.
[0036] S120 . In response to a user dragging operation on a target device legend in a legend selection area, adding the target device legend to a preset relationship diagram drawing area.
[0037] In this step, specifically, the target device legend can be added to any position in the relationship diagram drawing area according to user needs. The relationship diagram drawing area can be enlarged or reduced.
[0038] It is worth noting that there is no joint deletion relationship between the device legend in the legend selection area and the device legend in the relationship diagram drawing area. For example, when the first device legend in the legend selection area is deleted, the first device legend in the relationship diagram drawing area is not deleted.
[0039] S130. In response to a user clicking operation on a target device legend, filter setting options, anchor point setting options, and instantiation layout options for the target device legend are displayed.
[0040] In this step, specifically, in response to the user's click operation on the target device legend, a selection box including filter setting options, anchor point setting options and instantiated layout options may be popped up to the user.
[0041] Optionally, after a selection box containing filter setting options, anchor point setting options, and instantiation layout options is popped up to the user, in response to a user clicking on other areas in the relationship diagram drawing area, the selection box display operation may be canceled. The other areas may be areas other than the selection box.
[0042] S140. In response to the user's selection operation on the filter setting option, the anchor point setting option, or the instantiation layout option, configure the target device legend.
[0043] In this step, specifically, in response to the user's selection operation of the filter setting option, the filter condition can be configured for the target device legend. In response to the selection operation of the anchor point setting option, the anchor point on the target device legend can be configured. In response to the selection operation of the instantiation layout option, the instantiation effect of the target device legend can be configured.
[0044] For example, assuming that the target project is a source water supply system, the target device legends corresponding to the project devices such as boiler, primary water pump, heat exchanger, secondary water pump, air conditioning terminal system, water distributor and water collector can be selected in the legend selection area. Then, at least one configuration operation of filter setting, anchor point setting and instantiation layout setting can be performed on each target device legend.
[0045] S150. In response to the user's configuration completion instruction, a relationship diagram template corresponding to the target project is generated according to the configured target device legends and the complete relationship representation information between the project devices.
[0046] Continuing from the previous example, a relationship diagram template corresponding to the source water supply system can be generated based on the configured target device legends and the complete relationship representation information between the project devices. Through the above example, after generating the relationship diagram module corresponding to the source water supply system, the source water supply system relationship diagram that meets the needs of different customers can be automatically generated according to the data logic in the relationship diagram module, thereby improving the efficiency of customizing relationship diagrams for different customers.
[0047] The technical solution of this embodiment is to select project equipment and equipment legends corresponding to the project equipment in a pre-built data dictionary tree in response to the physical world data input by the user for the target project, and add the project equipment and equipment legends corresponding to the project equipment to a pre-set legend selection area; wherein the physical world data at least includes the complete relationship representation information of each project equipment in the target project and each project equipment; in response to the user's dragging operation on the target equipment legend in the legend selection area, add the target equipment legend to the pre-set relationship diagram drawing area; in response to the user's clicking operation on the target equipment legend, add the filtering setting options, anchor point setting options and instantiation layout options for the target equipment legend The technical means of displaying the layout options; configuring the target device legend in response to the user's selection operation of the filter setting option, the anchor setting option or the instantiation layout option; generating a relationship diagram template corresponding to the target project according to the configured legends of each target device and the complete relationship representation information between the equipment of each project in response to the user's configuration completion instruction solves the problem of low efficiency in relationship diagram drawing caused by the existing relationship diagram generation system, which requires engineers to draw each project equipment and the complete relationship representation between the equipment of each project one by one. Relationship diagram templates corresponding to different types of target projects can be generated, so as to realize personalized customization of relationship diagrams for different customers according to the relationship diagram templates, thereby improving the efficiency and accuracy of relationship diagram drawing.
[0048] Embodiment 2
[0049] Figure 2 It is a flowchart of another relationship diagram template generation method provided according to the second embodiment of the present invention. This embodiment is a further optimization and expansion based on the above embodiments, and can be combined with various optional technical solutions in the above implementation methods.
[0050] like Figure 2 As shown, a relationship diagram template generation method disclosed in this embodiment is executed by a relationship diagram generation system, and the front-end page of the relationship diagram generation system at least includes a legend selection area, a relationship diagram drawing area, and a button setting area. The method includes:
[0051] S210. In response to the physical world data input by the user for the target project, select the project equipment and the equipment legend corresponding to the project equipment in the pre-built data dictionary tree, and add the project equipment and the equipment legend corresponding to the project equipment to a pre-set legend selection area.
[0052] In this embodiment, the physical world data at least includes each project device in the target project and the complete relationship representation information between each project device, and each device legend is displayed with the corresponding device name.
[0053] Optionally, after receiving the physical world data input by the user for the target project, it also includes: displaying each candidate button in the preset button setting area; wherein the candidate buttons include a first candidate button for completely displaying the relationship diagram drawing area, a second candidate button for adding a preset equipment group and a third candidate button for adding a floor; in response to the first candidate button selected by the user from each candidate button, the relationship diagram drawing area is displayed; in response to the second candidate button selected by the user from each candidate button, the equipment group legend corresponding to the preset equipment group is added to the relationship diagram drawing area; wherein the preset equipment group is a computer room, a layout group, a shaft or a riser; in response to the third candidate button selected by the user from each candidate button, a floor legend corresponding to the floor is added in the relationship diagram drawing area.
[0054] In this embodiment, the preset button setting area may include a state forward button, a state backward button, a first candidate button, a second candidate button, and a third candidate button. In actual application, the number of state backwards is consistent with the number of times the state forward button is clicked. For example, clicking the state forward button once will return to the state of the previous step, and clicking the state forward button several times will return to the state of the previous several steps. The number of state forwards is consistent with the number of times the state backward button is clicked. For example, clicking the state backward button once will return to the state of the next step, and clicking the state backward button several times will return to the state of the next several steps.
[0055] The second candidate button includes but is not limited to the Add Machine Room button, Add Layout Group button, Add Shaft button and Add Standpipe button. A layout group can be a set of equipment without actual physical meaning composed of multiple project equipment. Each equipment group legend displays the corresponding equipment group name, and each equipment group legend can be enlarged or reduced.
[0056] Specifically, in response to the user's click operation on the first candidate button, the relationship diagram drawing area can be fully displayed. In response to the user's click operation on the Add Computer Room button, the computer room name fill-in box and the computer room type fill-in box are displayed. After the computer room name fill-in box and the computer room type fill-in box are displayed, in response to the computer room name entered by the user in the computer room name fill-in box and the computer room type entered in the computer room type fill-in box, a solid line box is drawn in the relationship diagram drawing area to represent the computer room. It should be noted that since computer rooms cannot be nested, when adding the equipment group legend corresponding to the computer room to the relationship diagram drawing area, it is necessary to avoid drawing another equipment group legend corresponding to the computer room in an equipment group legend corresponding to the computer room.
[0057] In response to the user clicking the add layout group button, the layout group name filling box can be displayed, and in response to the layout group name entered by the user in the layout group filling box, a dotted box representing the layout group can be drawn in the relationship diagram drawing area. It should be noted that since layout groups can be nested, another device group legend corresponding to a layout group can be drawn in a device group legend corresponding to a layout group.
[0058] In response to the user clicking the Add Shaft button, the Shaft Name filling box and the Shaft Type selection box may be displayed, and in response to the machine room name input by the user in the Shaft Name filling box and the Shaft Type selected by the user in the Shaft Type selection box, a box representing the Shaft may be drawn in the relationship diagram drawing area. In response to the user clicking the Add Riser button, the Riser Name filling box may be displayed, and in response to the Riser name input by the user in the Riser Name filling box, a dotted box representing the Riser may be drawn in the relationship diagram drawing area. In response to the user clicking the Third Candidate button, the Floor Name filling box may be displayed, and in response to the Floor name input by the user in the Floor Name filling box, a Floor legend corresponding to the Floor may be added in the relationship diagram drawing area.
[0059] Optionally, the “…” on the device legend and the device legend group can be displayed, and in response to the user's click operation on “…”, a selection box containing information editing options, filter setting options, anchor point setting options, instantiation layout options and typesetting layout options pops up. By clicking each option in the selection box, the editing page corresponding to each option is entered, and by clicking “…” again, the selection box disappears.
[0060] S220. In response to the user's dragging operation on the target device legend in the legend selection area, the target device legend is added to the pre-set relationship diagram drawing area; in response to the user's clicking operation on the target device legend, the filter setting options, anchor point setting options and instantiation layout options for the target device legend are displayed.
[0061] In this step, optionally, if a target device legend in the legend selection area is dragged to the relationship diagram drawing area multiple times, the name of the target device legend can be automatically changed according to the number of times the target device legend is dragged. Exemplarily, assuming that the target device legend is a device legend of a water pump, and the target device legend is dragged to the relationship diagram drawing area three times, the target device legends in the relationship diagram drawing area can be renamed the first water pump, the second water pump, and the third water pump.
[0062] S230: In response to the user's selection operation on the filtering setting option, the information point filtering page and the link relationship page are displayed together.
[0063] The information point filtering page includes a drop-down box for selecting the information point name, a drop-down box for selecting the filtering rule, and a drop-down box for selecting the filtering value. The link relationship page includes a drop-down box for selecting the link device and a drop-down box for selecting the link relationship type. The relationship between the drop-down boxes in the information point filtering page and the drop-down boxes in the link relationship page can be AND, OR, and each drop-down box supports drop-down selection and fuzzy search.
[0064] S240. In response to the user's selection operations on the information point name selection drop-down box, the filter rule selection drop-down box, and the filter value selection drop-down box, the target device legend is configured; in response to the user's selection operations on the link device selection drop-down box and the link relationship type selection drop-down box, the target device legend is configured.
[0065] In this step, specifically, in response to the user's selection operation on the information point name selection drop-down box, the filter rule selection drop-down box, and the filter value selection drop-down box, the filter condition can be configured for the target device legend. Among them, the information point name selection drop-down box, the filter rule selection drop-down box, and the filter value selection drop-down box allow the user to select the desired device legend filter condition. There are multiple filter information points that can be selected by the user in the information point name selection drop-down box, such as brand and model. There are multiple filter rules that can be selected by the user in the filter rule selection drop-down box, such as equal to, greater than, or less than. There are multiple filter values that can be selected by the user in the filter value drop-down box, such as specific brand names and models.
[0066] In response to the user's selection operation on the link device selection drop-down box and the link relationship type selection drop-down box, the target device legends that meet the connection information requirements set by the user for the target device legend can be filtered out from each device legend. Among them, the link device selection drop-down box allows the user to select a connected device legend connected to the target device legend. The link relationship type selection drop-down box allows the user to select the link relationship between the target device legend and the connected device legend. Exemplarily, in response to the connected device legend selected by the user in the link device selection drop-down box and the link relationship selected in the link relationship type selection drop-down box, the filtered target device legends can be displayed to the user.
[0067] Optionally, according to user needs, information point filtering conditions can be added to the information point filtering page of the device legend and device group legend, and relationship filtering conditions can be added to the link relationship page of the device legend and device group legend, and the above information point filtering conditions and relationship filtering conditions can be deleted.
[0068] Optionally, the target device legend may be configured in response to a user's selection operation on at least one drop-down box in the information point filtering page and / or in response to a user's selection operation on at least one drop-down box in the link relationship page.
[0069] S250. In response to the user's selection operation on the anchor point setting option, the anchor point association relationship, the link device legend and the link direction corresponding to each candidate anchor point set on the target device legend are obtained, and the anchor point association relationship, the link device legend and the link direction corresponding to each candidate anchor point set on the target device legend are displayed.
[0070] Among them, one candidate anchor point can be linked to multiple link device legends.
[0071] S260. In response to a target candidate anchor point selected by the user from among the candidate anchor points, as well as the anchor point association relationship, link device legend and link direction corresponding to the target candidate anchor point, the target device legend is configured, and each anchor point to be linked set on the link device legend is displayed; in response to a target link anchor point selected by the user from among the anchor points to be linked, the anchor point association relationship, link device legend and link direction of the target link anchor point are configured.
[0072] In this step, specifically, in response to the target link anchor point selected by the user in the to-be-linked anchor points, the target link anchor point can be highlighted and changed in color to indicate that the target link anchor point is selected, and the number of the target link anchor point is displayed. Optionally, after configuring the anchor point association relationship, link device legend and link direction of the target link anchor point, at least one text area can be set on the line between the target device legend and the link device legend. Among them, the text area can be used to reflect the name of the project device corresponding to the target device legend and the link device legend, respectively, and the information of the fluid transmitted between the project devices. The information of the fluid can include the temperature of the fluid entering the project device, the temperature of the fluid flowing out of the project device, the pressure of the fluid between the project devices, and the transmission rate of the fluid between the project devices. When the user clicks on the text area, the text area is highlighted and changed in color to indicate that the text area is selected, and the number of the text area is displayed. When the user clicks on the text area again, the display of the text area is canceled.
[0073] S270: In response to the user's selection operation on the instantiation layout option, the instantiation page elements used to set the instantiation effect of the relationship diagram template are displayed.
[0074] In this embodiment, the instantiated page elements include at least one of the following: whether to merge the project devices corresponding to the target device legend, the arrangement of the project devices corresponding to the target device legend, the spacing between the project devices corresponding to the target device legend, whether to display the project devices corresponding to the target device legend, and whether to hide the target device legend when the project device corresponding to the target device legend is not detected.
[0075] The arrangement of each project equipment corresponding to the target equipment legend includes but is not limited to horizontal and vertical. Whether to merge the project equipment corresponding to the target equipment legend includes: whether to merge all project equipment corresponding to the target equipment legend, and whether to group and merge the project equipment corresponding to the target equipment legend according to preset grouping conditions. There can be multiple preset grouping conditions, such as equipment manufacturer and equipment model.
[0076] S280. In response to a user's selection operation on at least one instantiated page element, configure a target device legend.
[0077] For example, assuming that the number of project devices corresponding to the target device legend after instantiation is 10, 5 devices are from the first manufacturer, 3 devices are from the second manufacturer, and 2 devices are from the third manufacturer, then when the user chooses to group and merge the project devices corresponding to the target device legend according to the preset grouping condition, and the preset grouping condition is the device manufacturer, the target device legend is merged into: first manufacturer project devices*5, second manufacturer project devices*3, third manufacturer project devices*2. When the user chooses to merge all project devices corresponding to the target device legend, all project devices are merged in the form of device name*device quantity.
[0078] When the user does not select whether to display the project device corresponding to the target device legend, the project device corresponding to the target device legend may be displayed by default. When the user does not select whether to hide the target device legend, the target device legend may be hidden by default when the project device corresponding to the target device legend is not detected.
[0079] Optionally, in response to the instantiation layout option selected for the device group legend corresponding to the computer room, the instantiation page element for setting the instantiation effect of the relationship diagram template can be displayed; wherein the instantiation page element includes at least one of the following: whether to merge all project devices corresponding to the target device legend, whether to group and merge the project devices corresponding to the target device legend according to the preset grouping conditions, the arrangement of each project device corresponding to the target device legend, the spacing of each project device corresponding to the target device legend, whether to display the project device corresponding to the target device legend, and whether to hide the target device legend when the project device corresponding to the target device legend is not detected. After the instantiation page element for setting the instantiation effect of the relationship diagram template is displayed, in response to the user's selection operation on at least one instantiation page element, the target device legend is configured. Since all child nodes downstream of the computer room will be completely hidden once the computer room is hidden, when the current child node is not hidden, there is a conflict between the computer room and the child node, and at this time, a prompt message that the parent-child node has a conflict can be sent to the user. When there is no equipment in the instantiated computer room, the user is prohibited from choosing to hide the target equipment legend. At this time, only an empty equipment group legend corresponding to the computer room is displayed.
[0080] S290. In response to the user's configuration completion instruction, a relationship diagram template corresponding to the target project is generated according to the legends of each target device after configuration and the complete relationship representation information between each project device.
[0081] Optionally, when displaying floors in a relationship diagram template, the floors included in the physical world project can be displayed according to the default height displayed when there is no equipment on the floor, that is, multiple floors without equipment can be combined into one floor for display in the form of floor*number. For floor relationship diagrams with equipment, multiple consecutive floors can be regarded as one standard floor if the number of equipment classes and equipment connection relationship classes on each floor are the same. Alternatively, multiple consecutive floors can be regarded as one standard floor if the number of equipment classes and equipment connection relationship classes on each floor are the same and each floor is connected to the same riser.
[0082] Optionally, since special objects such as valves and sensors cannot be arranged on the pipeline between device objects using a fixed relationship diagram template, they can be arranged using physical world data and data service engine tools.
[0083] Optionally, in response to the instantiation instruction triggered by the user for the relationship diagram template, the instantiated relationship diagram template can be displayed to the user according to the rule of first displaying the device group legend, then displaying the device legend, and finally displaying the connection between the legends. Furthermore, for the same device group legend (except for the floor) and the device legend, the legends can be sorted in ascending order according to the instantiation name of the legend. For the floors, the floors can be sorted from high to low according to the floor number.
[0084] For example, assuming that the relationship diagram template includes a riser group legend, a shaft legend, a floor legend, a device legend, busbar auxiliary lines, and lines between legends, the riser group legend, the shaft legend, the floor legend, the device legend, the busbar auxiliary lines, and lines between legends can be displayed in sequence. Further, assuming that there are two device legends for representing water pumps after instantiation, and they are named Pump 1 and Pump 2 respectively, then Pump 1 can be arranged in front of Pump 2. Assuming that two floors are obtained after instantiation of the device group legend for representing floors, and they are named Floor 1 and Floor 2 respectively, then Floor 2 can be arranged above Floor 1 in descending order.
[0085] The technical solution of this embodiment displays the information point filtering page and the link relationship page together in response to the user's selection operation on the filtering setting option; configures the target device legend in response to the user's selection operation on the information point name selection drop-down box, the filtering rule selection drop-down box and the filtering value selection drop-down box; configures the target device legend in response to the user's selection operation on the link device selection drop-down box and the link relationship type selection drop-down box; obtains the anchor point association relationship, link device legend and link direction corresponding to each candidate anchor point set on the target device legend in response to the user's selection operation on the anchor point setting option, and displays the anchor point association relationship, link device legend and link direction corresponding to each candidate anchor point set on the target device legend; displays the target candidate anchor point selected by the user from each candidate anchor point, as well as the anchor point association relationship, link device legend and link direction corresponding to the target candidate anchor point In response to the user's selection of the target link anchor point among the anchor points to be linked, the anchor point association relationship, link device legend and link direction of the target link anchor point are configured; in response to the user's selection operation of the instantiation layout option, the instantiation page element for setting the instantiation effect of the relationship diagram template is displayed; in response to the user's selection operation of at least one instantiation page element, the technical means for configuring the target device legend solves the problem that the existing relationship diagram generation system requires engineers to draw each project device and the complete relationship representation between each project device one by one, resulting in low efficiency in relationship diagram drawing. The legend of each target device can be pre-configured, which provides convenience for the subsequent personalized customization of relationship diagrams according to different customer needs, thereby improving the efficiency of relationship diagram drawing.
[0086] Embodiment 3
[0087] Figure 3 It is a structural schematic diagram of a relationship diagram template generating device provided according to Example 3 of the present invention. This embodiment can be applied to the situation of generating a relationship diagram corresponding to a target project. The relationship diagram template generating device can be implemented in the form of hardware and / or software and can be configured in an electronic device such as a computer.
[0088] like Figure 3 As shown, the relationship diagram template generation device disclosed in this embodiment is executed by a relationship diagram generation system, and the device includes:
[0089] The device legend selection module 31 is used to select project devices and device legends corresponding to the project devices in a pre-built data dictionary tree in response to the physical world data input by the user for the target project, and add the project devices and device legends corresponding to the project devices to a pre-set legend selection area;
[0090] The physical world data at least includes the equipment in each project of the target project and the complete relationship representation information between the equipment in each project;
[0091] The device legend adding module 32 is used to add the target device legend to a preset relationship diagram drawing area in response to a user dragging operation on the target device legend in the legend selection area;
[0092] The configuration item display module 33 is used to display the filter setting options, anchor point setting options and instantiation layout options for the target device legend in response to the user's click operation on the target device legend;
[0093] The device legend configuration module 34 is used to configure the target device legend in response to the user's selection operation of the filter setting option, the anchor point setting option or the instantiation layout option;
[0094] The relationship diagram template generation module 35 is used to respond to the user's configuration completion instruction and generate a relationship diagram template corresponding to the target project based on the configured target device legends and the complete relationship representation information between the project devices.
[0095] The technical solution in this embodiment solves the problem of low efficiency in relationship diagram drawing in the existing relationship diagram generation system, which requires engineers to draw each project equipment and the complete relationship representation between each project equipment one by one, through the mutual cooperation of the equipment legend selection module, the equipment legend adding module, the configuration item display module, the equipment legend configuration module and the relationship diagram template generation module. Relationship diagram templates corresponding to different types of target projects can be generated, and personalized relationship diagrams can be customized for different customers according to the relationship diagram templates, thereby improving the efficiency and accuracy of relationship diagram drawing.
[0096] Optionally, the device also includes an equipment group adding module, which is used to display each candidate button in the preset button setting area; wherein the candidate buttons include a first candidate button for completely displaying the relationship diagram drawing area, a second candidate button for adding a preset equipment group and a third candidate button for adding a floor; in response to the first candidate button selected by the user from each candidate button, the relationship diagram drawing area is displayed; in response to the second candidate button selected by the user from each candidate button, the equipment group legend corresponding to the preset equipment group is added to the relationship diagram drawing area; wherein the preset equipment group is a computer room, a layout group, a shaft or a riser; in response to the third candidate button selected by the user from each candidate button, a floor legend corresponding to the floor is added to the relationship diagram drawing area.
[0097] Optionally, the device legend configuration module 34 is specifically used to: in response to the user's selection operation on the filter setting option, jointly display the information point filtering page and the link relationship page; wherein the information point filtering page includes an information point name selection drop-down box, a filter rule selection drop-down box and a filter value selection drop-down box, and the link relationship page includes a link device selection drop-down box and a link relationship type selection drop-down box; in response to the user's selection operation on the information point name selection drop-down box, the filter rule selection drop-down box and the filter value selection drop-down box, configure the target device legend; in response to the user's selection operation on the link device selection drop-down box and the link relationship type selection drop-down box, configure the target device legend.
[0098] Optionally, the device legend configuration module 34 is also specifically used to: in response to the user's selection operation on the anchor point setting option, obtain the anchor point association relationship, link device legend and link direction respectively corresponding to each candidate anchor point set on the target device legend, and display the anchor point association relationship, link device legend and link direction respectively corresponding to each candidate anchor point set on the target device legend; in response to the user's selection of the target candidate anchor point from each candidate anchor point, and the anchor point association relationship, link device legend and link direction corresponding to the target candidate anchor point, configure the target device legend, and display each to-be-linked anchor point set on the link device legend; in response to the user's selection of the target link anchor point from the to-be-linked anchor points, configure the anchor point association relationship, link device legend and link direction of the target link anchor point.
[0099] Optionally, the device legend configuration module 34 is also specifically used to: in response to the user's selection operation on the instantiation layout option, display the instantiation page elements used to set the instantiation effect of the relationship diagram template; wherein the instantiation page elements include at least one of the following: whether to merge the project devices corresponding to the target device legend, the arrangement of the project devices corresponding to the target device legend, the spacing between the project devices corresponding to the target device legend, whether to display the project devices corresponding to the target device legend, and whether to hide the target device legend when the project devices corresponding to the target device legend are not detected; in response to the user's selection operation on at least one instantiation page element, configure the target device legend.
[0100] Optionally, whether to merge the project devices corresponding to the target device legend includes: whether to merge all the project devices corresponding to the target device legend, and whether to group and merge the project devices corresponding to the target device legend according to preset grouping conditions.
[0101] The relationship diagram template generation device provided in the embodiment of the present invention can execute the relationship diagram template generation method 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 this application.
[0102] Embodiment 4
[0103] Figure 4 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown.
[0104] like Figure 4 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.
[0105] 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.
[0106] 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a relationship graph template generation method.
[0107] In some embodiments, the relationship diagram template generation method may 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 may 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 relationship diagram template generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the relationship diagram template generation method in any other appropriate manner (e.g., by means of firmware).
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 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).
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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 generating a relationship diagram template, characterized in that: Executed by a relationship graph generation system, the method includes: In response to physical world data input by a user for a target project, selecting a project device and a device legend corresponding to the project device in a pre-built data dictionary tree, and adding the project device and the device legend corresponding to the project device to a pre-set legend selection area; The physical world data at least includes the equipment of each project in the target project and the complete relationship representation information between the equipment of each project; In response to a user dragging a target device legend in a legend selection area, adding the target device legend to a preset relationship diagram drawing area; In response to a user clicking operation on a target device legend, filter setting options, anchor point setting options, and instantiation layout options for the target device legend are displayed; In response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiated layout option, configuring a target device legend; In response to the user's configuration completion instruction, a relationship diagram template corresponding to the target project is generated based on the configured target device legends and the complete relationship representation information between the project devices.
2. The method according to claim 1, characterized in that After receiving the physical world data input by the user for the target project, the method further includes: Display each candidate button in the preset button setting area; The candidate buttons include a first candidate button for completely displaying the relationship diagram drawing area, a second candidate button for adding a preset device group, and a third candidate button for adding a floor; In response to a first candidate button selected by a user from among the candidate buttons, displaying the relationship diagram drawing area; In response to a second candidate button selected by the user from among the candidate buttons, adding a device group legend corresponding to the preset device group to the relationship diagram drawing area; Wherein, the preset equipment group is a machine room, a typesetting group, a shaft or a riser; In response to the user selecting a third candidate button from among the candidate buttons, a floor legend corresponding to the floor is added in the relationship diagram drawing area.
3. The method according to claim 1, characterized in that In response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiated layout option, configuring a target device legend includes: In response to the user's selection operation of the filter setting option, the information point filtering page and the link relationship page are displayed together; The information point filtering page includes an information point name selection drop-down box, a filtering rule selection drop-down box, and a filtering value selection drop-down box, and the link relationship page includes a link device selection drop-down box and a link relationship type selection drop-down box; In response to the user's selection operation on the information point name selection drop-down box, the filter rule selection drop-down box and the filter value selection drop-down box, the target device legend is configured; In response to the user's selection operation on the link device selection drop-down box and the link relationship type selection drop-down box, the target device legend is configured.
4. The method according to claim 1, characterized in that: In response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiated layout option, configuring a target device legend includes: In response to a user's selection operation of an anchor point setting option, acquiring an anchor point association relationship, a link device legend, and a link direction respectively corresponding to each candidate anchor point set on a target device legend, and displaying the anchor point association relationship, the link device legend, and the link direction respectively corresponding to each candidate anchor point set on the target device legend; In response to a target candidate anchor point selected by a user from among the candidate anchor points, and an anchor point association relationship, a link device legend, and a link direction corresponding to the target candidate anchor point, the target device legend is configured, and each to-be-linked anchor point set on the link device legend is displayed; In response to a target link anchor point selected by a user from among the anchor points to be linked, an anchor point association relationship, a link device legend, and a link direction of the target link anchor point are configured.
5. The method according to claim 1, characterized in that In response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiated layout option, configuring a target device legend includes: In response to the user's selection operation of the instantiation layout option, the instantiation page element used to set the instantiation effect of the relationship diagram template is displayed; The instantiated page element includes at least one of the following: whether to merge the project devices corresponding to the target device legend, the arrangement of the project devices corresponding to the target device legend, the spacing of the project devices corresponding to the target device legend, whether to display the project devices corresponding to the target device legend, and whether to hide the target device legend when the project devices corresponding to the target device legend are not detected; In response to a user's selection operation on at least one instantiated page element, a target device legend is configured.
6. The method according to claim 5, characterized in that Whether to merge the project devices corresponding to the target device legend includes: Whether to merge all project devices corresponding to the target device legend, and whether to group and merge the project devices corresponding to the target device legend according to preset grouping conditions.
7. A relationship diagram template generating device, characterized in that: The method is performed by a relationship diagram generation system, and the device includes: An equipment legend selection module, for selecting project equipment and equipment legends corresponding to the project equipment in a pre-built data dictionary tree in response to physical world data input by a user for a target project, and adding the project equipment and equipment legends corresponding to the project equipment to a pre-set legend selection area; The physical world data at least includes the equipment of each project in the target project and the complete relationship representation information between the equipment of each project; A device legend adding module, configured to add the target device legend to a preset relationship diagram drawing area in response to a user dragging the target device legend in the legend selection area; A configuration item display module, for displaying filter setting options, anchor point setting options and instantiation layout options for the target device legend in response to a user's click operation on the target device legend; A device legend configuration module, configured to configure a target device legend in response to a user's selection operation of a filter setting option, an anchor point setting option, or an instantiation layout option; The relationship diagram template generation module is used to respond to the user's configuration completion instruction and generate a relationship diagram template corresponding to the target project based on the configured target device legends and the complete relationship representation information between the project devices.
8. The device according to claim 7, characterized in that The device further comprises a device group legend adding module, wherein the device group legend adding module is used for: Display each candidate button in the preset button setting area; The candidate buttons include a first candidate button for completely displaying the relationship diagram drawing area, a second candidate button for adding a preset device group, and a third candidate button for adding a floor; In response to a first candidate button selected by a user from among the candidate buttons, displaying the relationship diagram drawing area; In response to a second candidate button selected by the user from among the candidate buttons, adding a device group legend corresponding to the preset device group to the relationship diagram drawing area; Wherein, the preset equipment group is a machine room, a typesetting group, a shaft or a riser; In response to the user selecting a third candidate button from among the candidate buttons, a floor legend corresponding to the floor is added in the relationship diagram drawing area.
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 relationship diagram template generation method described in any one of claims 1-6.
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 the relationship diagram template generation method described in any one of claims 1 to 6 when executed.