Engineering template creation method and apparatus, engineering project construction method and apparatus, and storage medium

By generating and analyzing the graph structure of the project, automatically creating basic templates and extended branches of modular projects, solving the problem of time-consuming and expert-dependent problems in the existing technology, and achieving rapid construction and reuse of engineering projects.

WO2025030322A1PCT designated stage expired Publication Date: 2025-02-13SIEMENS AG +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/111519
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2025-02-13

AI Technical Summary

Technical Problem

In existing modular projects, predefined templates are usually manually summarized by experts, which consume time and rely on professional knowledge. The templates are fixed and cannot be automatically modified according to user needs, resulting in difficulty in reusing the project.

Method used

By obtaining multiple engineering projects with similarity meeting the setting requirements, generating a graph structure, obtaining the maximum common sub-graph and the maximum directional difference sub-graph, determining the basic engineering template and candidate extension branches, realizing the automatic creation of engineering templates and engineering project Build.

Benefits of technology

It realizes the automatic creation of engineering templates and the rapid construction of engineering projects, reduces the dependence on expert technology, makes full use of existing engineering projects, and improves the reusability and efficiency of engineering projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023111519_13022025_PF_FP_ABST
    Figure CN2023111519_13022025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are an engineering template creation method and apparatus, an engineering project construction method and apparatus, and a computer-readable storage medium. The engineering template creation method comprises: acquiring a plurality of engineering projects, the similarity between which meets set requirements; for each engineering project, generating a graph structure, which comprises nodes that represent engineering objects in the engineering project and arrows that represent mapping relationships between the engineering objects; obtaining the maximum common sub-graph between all the graph structures and the maximum directional difference sub-graph between every two graph structures; taking the maximum common sub-graph as a basic engineering template; and on the basis of each maximum directional difference sub-graph, determining at least one correspondence between an engineering object that serves as an input condition and an engineering object that serves as an output result, and on the basis of the correspondence, determining a candidate extension branch of the basic engineering template. The technical solution in the embodiments of the present application can realize engineering modularization.
Need to check novelty before this filing date? Find Prior Art

Description

Engineering template creation, engineering project construction method, device and storage medium Technical Field

[0001] The present application relates to the field of industrial technology, and in particular to an engineering template creation method, an engineering project construction method, an engineering template creation device, an engineering project construction device, and a computer-readable storage medium.

[0002] Background of the Invention

[0003] Most current modular projects are based on providing predefined templates that can be modified by project users. However, these predefined templates are usually manually compiled by experts in the field, which not only requires a high level of expertise but also takes a long time. In the case of high system complexity, how to construct templates is also a significant challenge for experts. Furthermore, most templates are fixed and cannot be automatically modified according to user requirements. Engineers can only manually modify the templates according to their needs. Furthermore, many engineering suppliers, such as engineering general contractors (EPCs) and system integrators, have many past projects. If these projects cannot be reused, they will no longer generate profits for these companies, as not all companies can create a useful template library from past projects.

[0004] Therefore, those skilled in the art are still working on finding other implementation solutions for modular engineering.

[0005] Summary of the Invention

[0006] In view of this, the embodiments of the present application provide, on the one hand, a method for creating an engineering template and a method for constructing an engineering project, and on the other hand, provide an engineering template creation device, an engineering project construction device and a computer-readable storage medium, which can realize modular engineering.

[0007] To solve the above technical problems, the technical solution of this application is implemented as follows:

[0008] A method for creating an engineering template comprises: obtaining a plurality of engineering projects whose similarities meet set requirements; generating a graph structure for each engineering project, the graph structure comprising nodes representing engineering objects in the engineering project and arrows representing mapping relationships between engineering objects; obtaining the maximum common subgraph between all graph structures and the maximum directional difference subgraph between every two graph structures; using the maximum common subgraph as a basic engineering template; determining, based on each maximum directional difference subgraph, at least one set of corresponding relationships between engineering objects as input conditions and engineering objects as output results, and determining a candidate extension branch of the basic engineering template based on each set of corresponding relationships.

[0009] A method for constructing an engineering project, comprising: outputting a basic engineering template in response to an engineering project construction instruction with a user's default input condition; outputting the basic engineering template and corresponding extended branches in response to an engineering project construction instruction with a user's input condition; wherein the extended branches include engineering objects as output results corresponding to the engineering objects as input conditions; wherein the basic engineering template is the maximum common subgraph between graph structures corresponding to multiple engineering projects whose similarities meet set requirements; and the correspondence between the engineering objects as input conditions and the engineering objects as output results is determined based on the maximum directional difference subgraphs between the graph structures corresponding to the multiple engineering projects whose similarities meet set requirements.

[0010] A device for creating an engineering template comprises: a first module for acquiring a plurality of engineering projects whose similarities meet set requirements; a second module for generating a graph structure for each engineering project, wherein the graph structure comprises nodes representing each engineering object in the engineering project and arrows representing mapping relationships between engineering objects; a third module for obtaining the maximum common subgraph between all graph structures and the maximum directional difference subgraph between every two graph structures; and a fourth module for using the maximum common subgraph as a basic engineering template; and determining, based on each maximum directional difference subgraph, at least one set of corresponding relationships between engineering objects as input conditions and engineering objects as output results, and determining a candidate extension branch of the basic engineering template based on each set of corresponding relationships.

[0011] A device for constructing an engineering project comprises: a fourth module comprising a basic engineering template, and at least one set of correspondences between engineering objects as input conditions and engineering objects as output results, and determining a candidate extension branch of the basic engineering template based on each set of correspondences; wherein the basic engineering template is the maximum common subgraph between graph structures corresponding to a plurality of engineering projects whose similarities meet set requirements; the correspondences between the at least one set of engineering objects as input conditions and engineering objects as output results are determined based on the maximum directional difference subgraphs between the graph structures corresponding to the plurality of engineering projects whose similarities meet set requirements; a fifth module for outputting the basic engineering template in response to an engineering project construction instruction with a user's default input condition; and outputting the basic engineering template and the corresponding extension branch in response to an engineering project construction instruction with a user's input condition; wherein the extension branch comprises the engineering object as the output result corresponding to the engineering object as the input condition.

[0012] A device for creating an engineering template includes at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the computer program stored in the at least one memory to execute the engineering template creation method described above.

[0013] A project construction device includes at least one memory and at least one processor, wherein: the at least one memory is used to store a computer program; the at least one processor is used to call the computer program stored in the at least one memory to execute the project construction method described above.

[0014] A computer-readable storage medium stores a computer program thereon; the computer program can be executed by a processor and implement the engineering template creation method or engineering project construction method as described above.

[0015] As can be seen from the above technical solution, in the embodiment of the present application, multiple engineering projects whose similarities meet the set requirements are pre-determined, and then based on the graph structure of each engineering project, the maximum common subgraph and the maximum directional difference subgraph obtained by pairwise comparison are found, and then the maximum common subgraph is used as the basic engineering template. The correspondence between the engineering object as the input condition and the engineering object as the output result is determined based on the maximum directional difference subgraph, and then the candidate extension branch of the basic engineering template is determined based on the correspondence. Then, new engineering projects can be constructed based on the basic engineering template and the extension branch, thereby realizing modular engineering. And because the engineering template is constructed based on existing engineering projects, it not only fully utilizes the existing projects, but also realizes the automatic creation of templates, reducing the dependence of engineering template creation on technical personnel such as experts.

[0016] BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to better understand the present application, the embodiments of the present application will be described in detail below with reference to the accompanying drawings so that those skilled in the art can better understand the above and other features and advantages of the present application. In the accompanying drawings:

[0018] FIG1 is an exemplary flow chart of a method for creating an engineering template in an embodiment of the present application.

[0019] 2A to 2C are schematic diagrams of the graph structures of three “feeding line” engineering projects whose similarities meet the set requirements in an example of this application.

[0020] 3A to 3I are schematic diagrams of the maximum common subgraph and the maximum directional difference subgraph obtained by pairwise comparison of the graph structures of the three “feeding line” engineering projects shown in FIG. 2A to FIG. 2C in an example of the present application.

[0021] FIG4 is a schematic diagram of the largest common subgraph among all graph structures in an example of this application.

[0022] FIG. 5A to FIG. 5D are schematic diagrams respectively showing an example of constructing a project based on the project template in this embodiment.

[0023] FIG6 is a detailed implementation flowchart of the engineering template creation process and engineering project construction process in an example of this application.

[0024] FIG7 is an exemplary structural diagram of an engineering template creation device in an embodiment of the present application.

[0025] FIG8 is an exemplary structural diagram of an engineering project construction device in an embodiment of the present application.

[0026] FIG9 is an exemplary structural diagram of another engineering template creation device in an embodiment of the present application.

[0027] FIG10 is an exemplary structural diagram of another engineering project construction device in an embodiment of the present application.

[0028] The accompanying drawings are numerals as follows:

[0029] Methods of implementing this application

[0030] In an embodiment of the present application, in order to reduce the dependence of engineering template creation on experts and other technical personnel, it is considered to provide an automatic engineering template creation solution, and in order to make full use of past engineering projects, the solution considers creating corresponding engineering templates by analyzing and summarizing existing engineering projects.

[0031] In order to make the purpose, technical solutions and advantages of this application more clear, the technical solutions of this application are described in detail below with reference to the accompanying drawings and examples.

[0032] FIG1 is an exemplary flow chart of a method for creating a project template in an embodiment of the present application. As shown in FIG1 , the method may include the following steps:

[0033] Step S12: Acquire multiple engineering projects whose similarities meet set requirements.

[0034] In specific implementations, there are various methods for determining the similarity of engineering projects. For example, in one embodiment, various engineering projects may be compared based on predetermined comparison items, and the engineering projects whose comparison results meet the set requirements are determined as engineering projects whose similarity meets the set requirements.

[0035] In one example, the predetermined comparison items may include: engineering software libraries, engineering functions, engineering objects and / or engineering parameters used by the engineering project. Accordingly, the engineering projects may be compared as follows:

[0036] 1) Engineering Software Library Comparison: Do the compared projects use the same engineering software library? If the engineering software library usage differs significantly, the compared projects will have completely different functionality, making comparison impossible. For example, if Project A uses the SIMATIC Robot Library and Project B uses the SIMATIC Kinematics Library, the two cannot be compared. If neither project uses a standard software library, proceed directly to step 2.

[0037] 2) Project Function Comparison: Do the projects being compared achieve the same function? There's no need to compare projects with different functions. For example, if Project A implements a "feeding line" and Project B implements "environmental control," the two cannot be compared.

[0038] 3) Project Object Comparison: Are the compared projects based on a certain number of identical project objects? Excessively different project objects will result in completely different functional objectives for the compared projects, rendering them incomparable. For example, if Project A implements a "primary feed line" for agriculture with its "motor," "silo," and "flow sensor"; Project B implements a "primary feed line" for agriculture with its "motor," "silo," and "weigher"; and Project C implements a "secondary feed line" for agriculture with its "motor," "hopper," "object detection sensor," and "switch valve," then Project C is less comparable with Projects A and B than Projects A and B are with each other.

[0039] 4) Project Parameter Comparison: Many project parameters are used repeatedly. When project parameters differ, comparability decreases. For example, if Project A's parameter list includes the robot's six joint values: key, joint 1, ..., joint 6; Project B's parameter list includes the robot's spatial coordinates: x, y, z, yaw (i.e., x-axis rotation), pitch (i.e., y-axis rotation), and roll (i.e., z-axis rotation), the two projects become less comparable.

[0040] In some examples, only one of the engineering objects and engineering parameters may be compared; in some examples, both may be compared.

[0041] The above comparisons can be performed based on a list or matrix method. The threshold corresponding to the comparison result, that is, the similarity to be met, can be set in advance and can be formulated by the user and can also be adjusted as needed.

[0042] It can be seen that in this example, the engineering projects whose comparison results meet the set requirements can be: engineering projects that use the same engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters; and / or, engineering projects that do not use the standard engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters.

[0043] Step S14 : generating a graph structure for each engineering project, wherein the graph structure includes nodes representing engineering objects in the engineering project and arrows representing mapping relationships between engineering objects.

[0044] In this step, you can use the graph generator to convert the engineering project into the corresponding graph structure.

[0045] As shown in Figures 2A to 2C, the graph structure of three "feeding line" engineering projects in an example whose similarity meets the set requirements. In this example, the engineering objects may include: engineering equipment information, engineering equipment attributes and configuration information, and engineering requirement information. Among them, solid nodes and their arrow connections represent equipment information and equipment attributes and configuration information, and hollow nodes and their arrow connections represent requirement information. The arrow connection between the hollow node and the solid node represents the initialization connection between the requirement information and information such as the equipment and its attribute configuration. It can be seen that the mapping relationship between engineering objects may include: the mapping relationship between engineering equipment information and engineering equipment attribute information, the mapping relationship between engineering equipment attribute information and engineering equipment configuration information, the mapping relationship between engineering requirement information and engineering equipment information, the mapping relationship between engineering requirement information and engineering equipment attribute information, and the mapping relationship between engineering requirement information and engineering equipment configuration information.

[0046] As shown in Figure 2A, the feeder line 1 of Project A has project equipment information 11 and project requirement information 12. Project equipment information 11 may include: two silos 111 and a motor 112. Motor 112 has attribute information of motor type 1121 and its configuration information is constant speed 11211. Project requirement information 12 may include: farm size 121 and livestock type 122. Farm size 121 is greater than 1000 (numbered 1211 in the figure), and livestock type 122 is type B (numbered 1221 in the figure). A farm size greater than 1000 and livestock type B result in the need for two silos 111 and a motor 112, with motor type 1121 being constant speed 11211.

[0047] As shown in Figure 2B, the feeder line 1 of Project B has project equipment information 11 and project requirement information 12. Project equipment information 11 may include: a silo 111, a motor 112, and a sensor 113. Motor 112 has two attributes: motor type 1121 and protocol 1122. Motor type 1121 has variable speed 11212, and protocol 1122 has Ethernet protocol 11221. Project requirement information 12 may include: farm size 121 and livestock type 122. Farm size 121 is 500-1000 (numbered 1212 in the figure), and livestock type 122 is type A (numbered 1222 in the figure). A farm size of 500-1000 and livestock type A would require a silo 111, a sensor 113, and a motor 112. Motor type 1121 is variable speed 11212, and protocol 1122 is Ethernet protocol 11221.

[0048] As shown in Figure 2C , the feeder line 1 of Project C has project equipment information 11 and project requirement information 12. Project equipment information 11 may include two silos 111 and a motor 112. Motor 112 has attribute information for motor type 1121 and variable speed configuration 11212. Project requirement information 12 may include farm size 121 and livestock type 122. Farm size 121 is greater than 1,000 (numbered 1211 in the figure), and livestock type 122 is type A (numbered 1222 in the figure). A farm size greater than 1,000 and livestock type A require two silos 111 and a motor 112, with motor type 1121 being variable speed 11212.

[0049] Step S16: Find the maximum common subgraph between all graph structures, and find the maximum directional difference subgraph between every two graph structures.

[0050] In this step, a graph comparator may be used to calculate the maximum common subgraph and the maximum orientation difference subgraph between every two graphs.

[0051] In a specific implementation, the maximum common subgraph between all graph structures and the maximum directional difference subgraph between every two graph structures can be directly obtained. Alternatively, the maximum common subgraph between every two graph structures can be first obtained, and then all the obtained maximum common subgraphs between every two graph structures can be compared to obtain the maximum common subgraph between all graph structures; and for every two graph structures, each of the two graph structures can be compared with the maximum common subgraph between the two graph structures to obtain the maximum directional difference subgraph of each graph structure relative to the other graph structure.

[0052] Figures 3A to 3I illustrate the maximum common subgraph and maximum directional difference subgraph obtained by pairwise comparison of the graph structures of the three "feeding line" projects shown in Figures 2A to 2C in an example. As shown in Figures 3A to 3I, Figure 3A is the maximum common subgraph between the graph structures of Project A shown in Figure 2A and Project B shown in Figure 2B, Figure 3B is the maximum directional difference subgraph between the graph structure of Project A shown in Figure 2A and the graph structure of Project B shown in Figure 2B, and Figure 3C is the maximum directional difference subgraph between the graph structure of Project A shown in Figure 2B and the graph structure of Project B shown in Figure 2A. Figure 3D is the maximum common subgraph between the graph structure of Project A shown in Figure 2A and the graph structure of Project C shown in Figure 2C, Figure 3E is the maximum directional difference subgraph between the graph structure of Project A shown in Figure 2A and the graph structure of Project C shown in Figure 2C, and Figure 3F is the maximum directional difference subgraph between the graph structure of Project C shown in Figure 2C and the graph structure of Project A shown in Figure 2A. Figure 3G is the maximum common subgraph between the graph structure of project B shown in Figure 2B and the graph structure of project C shown in Figure 2C, Figure 3H is the maximum directional difference subgraph of the graph structure of project B shown in Figure 2B relative to the graph structure of project C shown in Figure 2C, and Figure 3I is the maximum directional difference subgraph of the graph structure of project C shown in Figure 2C relative to the graph structure of project B shown in Figure 2B.

[0053] By further comparing the maximum common subgraphs in Figures 3A, 3D, and 3G, we can obtain the maximum common subgraph between all graph structures, as shown in Figure 4. As shown in Figure 4, for the three engineering projects shown in Figures 2A to 3C, regardless of the engineering requirements, the engineering equipment information in the engineering projects will always include at least one silo 111 and one motor 112, and motor 112 always has the motor type 1121 attribute.

[0054] Step S18, determining a basic engineering template based on the maximum common subgraph between all graph structures, and determining at least one set of correspondences between engineering objects as input conditions and engineering objects as output results based on each maximum directional difference subgraph, and determining a candidate extension branch of the basic engineering template based on each set of correspondences.

[0055] In this step, a basic engineering template can be determined based on the largest common subgraph between all graph structures. In specific implementation, for the largest common subgraph between the graph structures of the above three "feeding line" engineering projects, the engineering equipment information part therein can be used as the basic engineering template, or the largest common subgraph can be directly used as the basic engineering template.

[0056] For the graph structures of the three "feeder line" projects described above, when determining candidate extension branches for the basic project template based on each maximum directional difference subgraph, further comparison of each maximum directional difference subgraph can be performed to determine the correspondence between project requirement information and project equipment information. The project requirement information is the project object serving as the input, and the project equipment information is the corresponding project object serving as the output.

[0057] For example, based on the maximum orientation difference subgraphs shown in Figure 3B and Figure 3C, we can conclude that:

[0058] 1. When the farm size is > 1000 and the livestock type is type B, there will be:

[0059] 1.1 The number of silos is 2

[0060] 1.2 Motor type is constant speed

[0061] 2. When the farm size is 500-1000 and the livestock type is type A, there will be:

[0062] 1.1 Number of sensors: 1

[0063] 1.2 Motor type is variable speed

[0064] 1.3 The motor has a motor protocol, and the motor protocol is an Ethernet protocol

[0065] According to the maximum orientation difference subgraphs shown in Figure 3E and Figure 3F, it can be concluded that:

[0066] 1. When the farm size is > 1000, there will be:

[0067] 1.1 The number of silos is 2

[0068] 2. When the livestock type is B, there will be:

[0069] 1.1 Motor type is constant speed

[0070] 3. When the livestock type is type A, there will be:

[0071] 1.1 Motor type is variable speed

[0072] According to the maximum orientation difference subgraphs shown in Figure 3H and Figure 3I, it can be concluded that:

[0073] 1. When the farm size is 500-1000, there will be:

[0074] 1.1 Number of sensors: 1

[0075] 1.2 The motor has a motor protocol, and the motor protocol is an Ethernet protocol

[0076] 2. When the farm size is > 1000, there will be:

[0077] 1.1 The number of silos is 2

[0078] By cross-comparing the maximum directional difference subgraphs, the following correspondence between demand information and device information can be easily obtained:

[0079] 1. When the farm size is > 1000, there will be:

[0080] 1.1 The number of silos is 2

[0081] 2. When the farm size is 500-1000, there will be:

[0082] 1.1 Number of sensors: 1

[0083] 1.2 The motor has a motor protocol, and the motor protocol is an Ethernet protocol

[0084] 3. When the livestock type is type A, there will be:

[0085] 1.1 Motor type is variable speed

[0086] 4. When the livestock type is B, there will be:

[0087] 1.1 Motor type is constant speed

[0088] The four sets of corresponding relationships described above can each serve as candidate extension branches for the basic project template shown in Figure 4. For example, if the input condition is "farm size > 1000," a branch corresponding to the equipment information for farm size > 1000 will be added to the basic project template, specifically a branch for two silos. Of course, the above example only illustrates a project template created based on three projects. In practice, as the number of projects increases, the resulting project modules will become more sophisticated and complex.

[0089] After creating the project template, the user can build a new project based on the project template. Specifically, when the user needs to build a project, the method may include: outputting the basic project template in response to the project construction instruction with the user's default input conditions; outputting the basic project template and the corresponding extended branch in response to the project construction instruction with the user's input conditions; wherein the extended branch includes the project object corresponding to the project object as the input condition as the output result. The above example is still used as an example for illustration. Figures 5A to 5D respectively show schematic diagrams of building a project based on the project template in this embodiment in an example.

[0090] As shown in FIG5A , when a user constructs a project without inputting any requirement information, the system outputs a basic project template.

[0091] As shown in Figure 5B, when the user builds an engineering project by inputting the demand information of a farm size of 500 to 1000, the system will output a basic engineering template and add an extended branch based on the basic engineering template. The extended branch includes: 1 sensor and motor protocol attributes, and the motor protocol is the configuration of the Ethernet protocol.

[0092] As shown in FIG5C , when the user constructs an engineering project by inputting the demand information of livestock type B, the system outputs a basic engineering template and adds an extended branch based on the basic engineering template. The extended branch includes a configuration of a motor type of constant speed.

[0093] As shown in Figure 5D, when a user enters the required farm size of 500 to 1000 and livestock type B to build a project, the system outputs a basic project template and adds two extensions to the basic project template. One extension includes: a sensor and motor protocol attribute, and the motor protocol is configured as Ethernet. The other extension includes: a motor type configuration of constant speed.

[0094] It can be seen that the engineering project constructed as shown in Figure 5D includes a combination of requirements that does not exist in the engineering projects shown in Figures 2A and 2C. It can be seen that according to the technical solution in the embodiments of the present application, an engineering template can be created based on an existing engineering project, and more engineering projects can be expanded based on the engineering template.

[0095] Figure 6 is a detailed implementation flow chart of the engineering template creation process and engineering project construction process in an example of this application. As shown in Figure 6, engineering projects P1 to Pn are respectively generated by a graph generator GG to generate corresponding graph structures G1 to Gn; the graph structures G1 to Gn are compared pairwise by a graph comparator GC to obtain the corresponding maximum common subgraph MCS 1,2 To the maximum common subgraph MCS n-1,n , and the maximum directed difference subgraph MDS 1,2 MDS to the maximum directed difference subgraph n,n-1 ; Maximum common subgraph MCS 1,2 To the maximum common subgraph MCS n-1,n Further comparison is performed through the common subgraph comparator CGC to obtain the basic engineering template BM and provide it to the template generator MG; the maximum directional difference subgraph MDS 1,2 to Maximum Directed Difference Subgraph (MDS) n,n-1Further comparison is performed through the difference subgraph comparator DGC to obtain the candidate extension branches EB of the basic engineering template BM and provide them to the template generator MG. Afterwards, the user interacts with the template generator MG through an input device with a human-computer interaction interface (GUI). In response to the engineering project construction instruction without input conditions indicated by the user through the input device, the template generator MG provides the basic engineering template BM to the template output generator MOG of the input device to output the basic engineering template BM. When the user inputs the corresponding input conditions through the demand information GUI of the input device, in response to the engineering project construction instruction with input conditions, the template generator MG provides the basic engineering template BM and the corresponding extension branches EB to the template output generator MOG of the input device to output the basic engineering template BM and the corresponding extension branches EB.

[0096] The above describes in detail the project template creation method according to an embodiment of the present invention. The following describes in detail the project template creation apparatus according to an embodiment of the present invention. The project template creation apparatus according to an embodiment of the present invention can be used to implement the project template creation method according to an embodiment of the present invention. For details not disclosed in detail in the apparatus embodiment of the present invention, please refer to the corresponding description in the method embodiment of the present invention.

[0097] FIG7 is an exemplary structural diagram of a device for creating a project template according to an embodiment of the present invention. As shown in FIG7 , the device may include: a first module 701 , a second module 702 , a third module 703 , and a fourth module 704 .

[0098] Among them, the first module 701 is used to obtain multiple engineering projects whose similarities meet the set requirements. In one example, the predetermined comparison items may include: the engineering software library, engineering function, engineering object and / or engineering parameters used by the engineering project. Accordingly, the engineering projects whose comparison results meet the set requirements may be: engineering projects that use the same engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters; and / or, engineering projects that do not use a standard engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters.

[0099] The second module 702 is used to generate a graph structure for each engineering project, wherein the graph structure includes nodes representing each engineering object in the engineering project and arrows representing mapping relationships between engineering objects. In one example, the engineering objects may include engineering equipment information, engineering equipment attributes and configuration information, and engineering requirement information. The mapping relationships between engineering objects may include mapping relationships between engineering equipment information and engineering equipment attribute information, mapping relationships between engineering equipment attribute information and engineering equipment configuration information, mapping relationships between engineering requirement information and engineering equipment information, mapping relationships between engineering requirement information and engineering equipment attribute information, and mapping relationships between engineering requirement information and engineering equipment configuration information.

[0100] The third module 703 is used to obtain the maximum common subgraph between all graph structures and the maximum directional difference subgraph between every two graph structures. In one embodiment, the maximum common subgraph between every two graph structures can be obtained first, and then all the obtained maximum common subgraphs between every two graph structures can be compared to obtain the maximum common subgraph between all graph structures; and for every two graph structures, each graph structure in the two graph structures is compared with the maximum common subgraph between the two graph structures to obtain the maximum directional difference subgraph of each graph structure relative to the other graph structure.

[0101] The fourth module 704 is used to determine a basic engineering template based on the maximum common subgraph; and determine the correspondence between at least one group of engineering objects as input conditions and engineering objects as output results based on each maximum directional difference subgraph, and determine a candidate extension branch of the basic engineering template based on each group of correspondences.

[0102] FIG8 is an exemplary structural diagram of an engineering project construction device according to an embodiment of the present invention. As shown in FIG8 , the device may include: the fourth module 704 and the fifth module 801 described in FIG7 .

[0103] Among them, the fifth module 801 is used to output the basic engineering template in response to the engineering project construction instruction with the user's default input conditions; output the basic engineering template and the corresponding extended branch in response to the engineering project construction instruction with the user's input conditions; wherein the extended branch includes the engineering object as the output result corresponding to the engineering object as the input condition.

[0104] In fact, the engineering template creation device provided in this embodiment of the present application can be implemented in various ways. For example, the eco-design assessment device can be compiled into a plug-in installed in a smart terminal using an application programming interface that complies with specific rules, or it can be packaged into an application for user download and use.

[0105] When compiled as a plug-in, the project template creation device can be implemented in various plug-in formats, such as ocx, dll, and cab. The eco-design assessment device provided by this implementation of the present application can also be implemented using specific technologies, such as Flash plug-in technology, RealPlayer plug-in technology, MMS plug-in technology, MIDI plug-in technology, or ActiveX plug-in technology.

[0106] The project template creation method provided by this implementation of the present application can be stored in various storage media in the form of instruction storage or instruction set storage. These storage media include, but are not limited to, floppy disks, optical disks, DVDs, hard disks, flash memory, USB flash memory, CF cards, SD cards, SDHC cards, MMC cards, SM cards, memory sticks, and xD cards.

[0107] It should be clear that the operating system operating in the computer can implement the functions of any of the above embodiments not only by executing the program code read by the computer from the storage medium, but also by using instructions based on the program code to implement part or all of the actual operations.

[0108] For example, Figure 9 is an exemplary structural diagram of another engineering template creation device in an embodiment of the present application. This device can be used to perform the method shown in Figure 1, or to implement the device shown in Figure 7. As shown in Figure 9, the device may include at least one memory 901 and at least one processor 902. In addition, it may also include other components, such as communication ports, input / output controllers, network communication interfaces, etc. These components communicate via a bus 903, etc.

[0109] At least one memory 901 is used to store computer programs. In one example, the computer program can be understood to include the various modules of the apparatus shown in FIG7 . Furthermore, at least one memory 901 can store an operating system, etc. Operating systems include, but are not limited to, Android operating system, Symbian operating system, Windows operating system, Linux operating system, etc.

[0110] At least one processor 902 is configured to invoke a computer program stored in at least one memory 901 to execute the engineering template creation method described in the examples of this application. Processor 902 may be a CPU, a processing unit / module, an ASIC, a logic module, or a programmable gate array, and may receive and send data via a communication port.

[0111] Figure 10 is an exemplary structural diagram of another engineering project construction device according to an embodiment of the present application. This device can be used to execute a corresponding engineering project construction method, or to implement the device shown in Figure 8. As shown in Figure 10, the device may include at least one memory 1001 and at least one processor 1002. In addition, it may include other components, such as communication ports, input / output controllers, and network communication interfaces. These components communicate via a bus 1003, etc.

[0112] At least one memory 1001 is used to store computer programs. In one example, the computer program can be understood to include the various modules of the apparatus shown in FIG8 . Additionally, at least one memory 1001 can store an operating system, etc. Operating systems include, but are not limited to, Android operating system, Symbian operating system, Windows operating system, Linux operating system, etc.

[0113] At least one processor 1002 is configured to invoke a computer program stored in at least one memory 1001 to execute the engineering project construction method described in the examples of this application. Processor 1002 may be a CPU, a processing unit / module, an ASIC, a logic module, or a programmable gate array, and may receive and send data via a communication port.

[0114] It should be understood that "and / or" as used herein is intended to include any and all possible combinations of one or more of the associated listed items.

[0115] The number of the embodiments of the present application is only used for description and does not represent the advantages of the embodiments.

[0116] As can be seen from the above technical solution, in the embodiment of the present application, multiple engineering projects whose similarities meet the set requirements are pre-determined, and then based on the graph structure of each engineering project, the maximum common subgraph and the maximum directional difference subgraph obtained by pairwise comparison are found, and then the maximum common subgraph is used as the basic engineering template. The correspondence between the engineering object as the input condition and the engineering object as the output result is determined based on the maximum directional difference subgraph, and then the candidate extension branch of the basic engineering template is determined based on the correspondence. Then, new engineering projects can be constructed based on the basic engineering template and the extension branch, thereby realizing modular engineering. And because the engineering template is constructed based on existing engineering projects, it not only fully utilizes the existing projects, but also realizes the automatic creation of templates, reducing the dependence of engineering template creation on technical personnel such as experts.

[0117] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for creating a project template, characterized in that: include: Obtain multiple engineering projects whose similarity meets the set requirements; For each engineering project, a graph structure is generated, the graph structure comprising: nodes representing each engineering object in the engineering project and arrows representing mapping relationships between engineering objects; Find the maximum common subgraph between all graph structures and the maximum directed difference subgraph between every two graph structures; Determine a basic engineering template according to the largest common subgraph; At least one set of correspondences between engineering objects as input conditions and engineering objects as output results is determined according to each maximum directional difference subgraph, and a candidate expansion branch of the basic engineering template is determined according to each set of correspondences.

2. The method according to claim 1, characterized in that The multiple engineering projects whose similarity meets the set requirements include: For the predetermined comparison items, the various engineering projects are compared, and the engineering projects whose comparison results meet the set requirements are determined as the engineering projects whose similarity meets the set requirements.

3. The method according to claim 2, characterized in that The predetermined comparison items include: engineering software libraries, engineering functions, and engineering objects and / or engineering parameters used in the engineering project; The engineering projects whose comparison results meet the set requirements are: engineering projects that use the same engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters; and / or engineering projects that do not use a standard engineering software library, implement the same engineering function, and have a set first number or more of the same engineering objects and / or a set second number or more of the same engineering parameters.

4. The method according to claim 1, characterized in that: The method of obtaining the largest common subgraph between all graph structures includes: Find the largest common subgraph between every two graph structures; All the obtained maximum common subgraphs are compared to obtain the maximum common subgraph between all graph structures.

5. The method according to claim 1, characterized in that The step of obtaining the maximum directional difference subgraph between each two graph structures comprises: For each two graph structures, find the largest common subgraph between the two graph structures; Each of the two graph structures is compared with the maximum common subgraph between the two graph structures to obtain the maximum directional difference subgraph of each graph structure relative to the other graph structure.

6. The method according to any one of claims 1 to 5, characterized in that The engineering objects include: engineering equipment information, engineering equipment attributes and configuration information, and engineering demand information; The mapping relationship between engineering objects includes: the mapping relationship between engineering equipment information and engineering equipment attribute information, the mapping relationship between engineering equipment attribute information and engineering equipment configuration information, and the mapping relationship between engineering requirement information and engineering equipment information, attribute information and configuration information.

7. A method for constructing an engineering project, characterized in that: include: In response to the engineering project construction instruction of the user's default input conditions, a basic engineering template is output; In response to a user's engineering project construction instruction with input conditions, the basic engineering template and the corresponding extension branch are output; wherein the extension branch includes an engineering object as an output result corresponding to the engineering object as the input condition; Among them, the basic engineering template is determined according to the maximum common subgraph between the graph structures corresponding to multiple engineering projects whose similarity meets the set requirements; the correspondence between the engineering objects as input conditions and the engineering objects as output results is determined according to the maximum directional difference subgraph between the graph structures corresponding to the multiple engineering projects whose similarity meets the set requirements.

8. A device for creating an engineering template, characterized in that: include: The first module (701) is used to obtain a plurality of engineering projects whose similarity meets the set requirements; The second module (702) is used to generate a graph structure for each engineering project, wherein the graph structure includes: nodes representing each engineering object in the engineering project and arrows representing mapping relationships between engineering objects; The third module (703) is used to obtain the maximum common subgraph between all graph structures and the maximum directional difference subgraph between every two graph structures; and The fourth module (704) is used to determine a basic engineering template based on the maximum common subgraph; and determine at least one set of correspondences between engineering objects as input conditions and engineering objects as output results based on each maximum directional difference subgraph, and determine a candidate expansion branch of the basic engineering template based on each set of correspondences.

9. A construction project construction device, characterized in that: include: The fourth module (704) includes a basic project template and at least one set of project objects as input conditions. and the engineering objects as output results, and determine a candidate extension branch of the basic engineering template according to each set of corresponding relationships; wherein the basic engineering template is determined according to the maximum common subgraph between the graph structures corresponding to the multiple engineering projects whose similarities meet the set requirements; the correspondence between the at least one set of engineering objects as input conditions and the engineering objects as output results is determined according to the maximum directional difference subgraph between the graph structures corresponding to the multiple engineering projects whose similarities meet the set requirements; The fifth module (801) is used to output the basic engineering template in response to the engineering project construction instruction with the user's default input conditions; in response to the engineering project construction instruction with the user's input conditions, output the basic engineering template and the corresponding extended branches; wherein the extended branches include engineering objects as output results corresponding to the engineering objects as input conditions.

10. A device for creating an engineering template, characterized in that: The invention comprises at least one memory (91) and at least one processor (92), wherein: The at least one memory (91) is used to store a computer program; The at least one processor (92) is used to call the computer program stored in the at least one memory (91) to execute the engineering template creation method according to any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon; characterized in that: The computer program can be executed by a processor and implements the engineering template creation method according to any one of claims 1 to 6 or the engineering project construction method according to claim 7.

Citation Information

Patent Citations

  • cloud service API adaptation method based on execution path similarity

    CN109656544A

  • Code template extraction method and related equipment

    CN115454392A

  • Information processing device, information processing method, and computer program product

    US20230213897A1