A method, device and electronic equipment for generating pipeline software interface

By parsing and constructing pipeline graphic element objects and dynamically updating pipeline section pressure values, the problem in the existing technology of being unable to dynamically display the liquid flow status in the pipeline is solved, and the development of a software interface with high versatility and low equipment performance usage is achieved.

CN118426773BActive Publication Date: 2024-09-27CHINA RAILWAY CONSTR HEAVY IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410881092.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-27
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing technology cannot dynamically display the liquid circulation status in the pipeline, and the software interface development has problems such as poor versatility, reliance on specific drawing software and graphics libraries, and high equipment performance requirements.

Method used

By parsing the graphic element information in the source file, the pipeline graphic element object is constructed, the initial pressure value is set, the pipeline diagram is drawn using the GDI drawing method that comes with the operating system, and the pressure value of the pipeline section is recursively checked and updated based on the valve switch status. Dynamically displays the flow of liquid in the pipeline.

Benefits of technology

It realizes dynamic monitoring of liquid circulation status in pipelines, improves the versatility and flexibility of software functions, simplifies the development process, reduces equipment performance requirements, and enhances the independence and ease of maintenance of the interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426773B
    Figure CN118426773B
Patent Text Reader

Abstract

The present application discloses a method, device, and electronic device for generating a pipeline software interface. The method parses predefined primitive information, including type, position, size, and other attributes, and draws a pipeline diagram on the software interface in a specified order using the GDI method provided by the operating system. The method also parses the pipeline direction and automatically calculates and checks the pipeline pressure value, and combines the real-time drawing function to achieve the effect of dynamically displaying the flow state of the liquid in the pipeline. The method for generating a pipeline software interface provided by the present application supports the dynamic display of the flow state of the liquid in the pipeline, has strong versatility, does not rely on specific drawing software and graphics libraries, and does not occupy too much equipment performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer image technology, and in particular, to a method, device and electronic equipment for generating a pipeline software interface. Background Art

[0002] In the process of software interface development, the graphical interface of the pipeline system is usually displayed by using background pictures or program drawings to intuitively display its distribution and operation status.

[0003] At present, the development of graphical functions of piping systems in software interfaces is mainly based on the following four methods: the first method is to use pre-drawn piping diagrams to represent the structure of piping systems; the second method is to parse graphic files drawn based on other tool software, obtain their graphic information, and then implement program drawing. For example, CAD software is used to draw piping diagrams, and the graphic information is obtained by parsing DXF files in the program, and then interface graphics are drawn; the third method is to use graphics libraries such as OpenGL and 3D model technology to display 3D piping diagrams; the fourth method is to use the controls provided by the development tool to build piping diagrams, and implement the control logic of the pipelines through customized codes;

[0004] These methods all have shortcomings in the software interface development process. The first method can only present static interface effects, and the loading of pictures also increases the burden of interface rendering; the second method relies on specific software. If these technologies or tools change or are no longer maintained, it will affect the stability and maintainability of the software functions; the third method has high requirements on equipment configuration and performance, which may cause the device end to be under greater pressure and performance degradation when processing complex tasks; the fourth method requires redesigning the interface and writing code when the pipeline structure or control requirements change, and lacks the versatility and flexibility of software functions.

[0005] In addition, the first three methods mentioned above cannot achieve the dynamic monitoring effect of the liquid flow status in the pipeline through interaction with the graphical interface.

[0006] In summary, for the development of graphical functions of pipeline systems in software interfaces, it is very necessary to study an interface generation method that can dynamically display the flow status of liquid in pipelines, has strong versatility, does not rely on specific drawing software and graphics libraries, and does not occupy too much equipment performance. Summary of the invention

[0007] On the one hand, the present application provides a method for generating a pipeline software interface to solve the technical problems that the prior art does not support dynamic display of the liquid flow status in the pipeline, has poor versatility, relies on specific drawing software and graphics libraries, and occupies too much equipment performance.

[0008] A method for generating a pipeline software interface comprises the steps of:

[0009] S1, parsing the graphic element information in the source file, parsing the graphic element information into a list of corresponding objects according to the set classification, the set classification includes circle, rectangle, polyline, text, additional graphic elements, and the additional graphic elements include valve and pump graphic elements;

[0010] S2. Construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects pipenode, and construct polyline graphic elements into pipeline segment objects pipeline;

[0011] S3, adaptive conversion of graphic element size, according to the container and graphic element size information stored in the source file, and the size information of the current graphical interface, the graphic element is proportionally converted into a real size value that is suitable for the current interface;

[0012] S4, setting the initial pressure value of the pipeline, determining the first end slurry inlet pump and the terminal slurry discharge pump and setting the initial pressure for them, and then starting the cyclic judgment from these two pumps, starting from the currently designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value setting of all pipeline sections is completed;

[0013] S5. Execute drawing. According to the graphic element information stored in the source file and the parsed valve and pump pipeline node information, the operating system's built-in GDI drawing method is used to draw graphic elements and valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending real-time values ​​of corresponding switch variables.

[0014] S6. Execute pipeline status self-check and redefine. When the switch status of the valve is detected to be changed, recursively check and set the pressure value of the upstream and downstream pipeline sections of the valve, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is branched. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system.

[0015] S7. Redraw the pipeline graphical interface. According to the updated final pressure value status of each pipeline section, use different colored brushes to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the flow of liquid in the pipeline.

[0016] Furthermore, in step S1, before parsing the graphic element information in the source file, the following steps are also included:

[0017] The source file storing the graphic element information of the pipeline class interface is read, wherein the source file is stored in an external file and used as an embedded resource.

[0018] Furthermore, step S2 specifically includes the steps of:

[0019] S21, select the graphic elements of valve and pump type, parse their attribute information, and construct them into pipeline node objects pipenode;

[0020] S22, read all the polyline primitives, loop to determine whether the polyline contains pipeline nodes, if it contains pipeline nodes, split the polyline primitives according to the nodes and construct multiple pipeline segment objects pipeline, if it does not contain pipeline nodes, directly construct the polyline into pipeline segment objects pipeline;

[0021] S23, determining the upstream and downstream directions of the pump type pipeline node, regarding the pipeline segment objects on both sides thereof as Pipe1 and Pipe2, and regarding the side indicated by the pump direction as Pipe1 according to the direction attribute value of the pump;

[0022] S24, looping through all pipeline sections, calculating the relationship between the main and branch lines between pipeline sections based on the point-line position relationship, and recording the branch information of each pipeline section and the pipeline section information it merges into.

[0023] Furthermore, the step S4 specifically includes the steps of:

[0024] S41, clear the pipeline pressure value, identify the slurry inlet pump and the slurry discharge pump according to the consistency between the liquid inflow direction of the pipeline system specified in the source file and the liquid flow direction when the pump rotates forward, if the liquid flow direction when the pump rotates forward is consistent with the liquid inflow direction of the pipeline system, it is the slurry inlet pump, otherwise it is the slurry discharge pump, set the initial pressure value of the slurry inlet pump and the initial pressure value of the slurry discharge pump, wherein the initial pressure value of the slurry inlet pump is greater than the initial pressure value of the slurry discharge pump;

[0025] S42, launching a loop judgment on the pipeline nodes of all pump types, and recursively setting the initial pressure values ​​of the upstream and downstream pipeline sections of the pump;

[0026] S43, determine whether the pressure value has been set for the current pipeline section. If not, continue to determine the type of the front-end pipeline node. For the pump-type pipeline node, the original pressure change trend needs to be adjusted. Otherwise, return to step S42 and continue to operate the next pump in the circulation body.

[0027] S44, after determining the pressure change trend, setting the initial pressure value of the current pipeline section, and recursively setting the pressure values ​​of all branches of the current pipeline section;

[0028] S45, determine whether the end of the pipeline has been reached. If the current pipeline segment still has a downstream pipeline segment, recursively set the pressure value of the downstream pipeline segment; otherwise, return to step S42 and continue to operate the next pump in the circulation body.

[0029] Further, when the switch state of the valve is open, the step S6 specifically includes the steps of:

[0030] S601, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on one side and no slurry on the other side, the pipeline is adjusted from the inspection direction to expand toward the pipeline section without slurry, and it is regarded as the current pipeline section, otherwise the setting is stopped;

[0031] S602, restore the pressure value of the current slurry-free pipe section;

[0032] S603, obtaining the outflow branch of the current pipeline section, conducting a cyclic judgment on all outflow branch pipeline sections without slurry, and restoring the pressure value of the pipeline section without slurry;

[0033] S604, obtaining the current pipeline segment as the pipeline segment into which the branch merges, if the pipeline segment into which the branch merges has no slurry, recursively executing steps S602 to S606 for self-checking and pressure setting operations on the pipeline segment into which the branch merges, otherwise stopping the setting;

[0034] S605, setting the pressure of the downstream pipeline section of the current pipeline section, and determining whether the type of the next pipeline node is a valve or a pump;

[0035] S606. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-check direction, then execute steps S602 to S606 to recursively set the downstream pipeline section pressure value, otherwise stop setting.

[0036] Further, when the switch state of the valve is closed, the step S6 specifically includes the steps of:

[0037] S611, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on both sides, continue to execute, otherwise stop setting, compare the pressure of the pipeline sections on both sides of the valve, adjust the pipeline from the inspection direction to the pipeline section with lower pressure value, and regard it as the current pipeline section;

[0038] S612, clear the pressure value of the current pipeline segment, determine whether there is other valid inflows in the current pipeline segment, if not, continue to execute, otherwise restore the pressure value of the current pipeline segment and stop setting;

[0039] S613, obtaining the outflow branch of the current pipeline section, recursively checking and judging all outflow branch pipeline sections with slurry, and executing steps S612 to S616 for each branch;

[0040] S614, obtaining the current pipeline section as the pipeline section into which the branch merges, and if there is slurry in the merged pipeline section, recursively executing steps S612 to S616 for self-checking and pressure setting operations on the merged pipeline section, otherwise, stopping the setting;

[0041] S615, setting the downstream pipeline section pressure of the current pipeline section, and determining whether the next pipeline node is a valve or a pump;

[0042] S616. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-inspection direction, execute steps S612 to S616 to recursively set the pressure value of the downstream pipeline section, otherwise stop setting.

[0043] On the other hand, the present application also provides a device for generating a pipeline software interface, including:

[0044] A source file parsing module, used to parse the graphic element information in the source file, and parse the graphic element information into a list of corresponding objects according to the set classification, wherein the set classification includes circle, rectangle, polyline, text, and additional graphic elements, and the additional graphic elements include valve and pump graphic elements;

[0045] A pipeline graphic element object construction module is used to construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects, and construct polyline graphic elements into pipeline segment objects;

[0046] The adaptive conversion module is used for adaptive conversion of graphic element size. According to the size information of the container and graphic element stored in the source file and the size information of the current graphical interface, the graphic element is proportionally converted into the real size value that adapts to the current interface;

[0047] The initial pressure value setting module of the pipeline is used to set the initial pressure value of the pipeline, determine the first end slurry inlet pump and the terminal slurry discharge pump and set the initial pressure for them, and then start the cyclic judgment from these two pumps, starting from the current designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value setting of all pipeline sections is completed;

[0048] The drawing module is used to execute drawing. According to the graphic element information stored in the source file and the valve and pump pipeline node information parsed, the operating system's built-in GDI drawing method is used to draw the graphic elements and the valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending the real-time values ​​of the corresponding switch variables;

[0049] The pipeline status self-check and redefinition module is used to perform pipeline status self-check and redefinition. When the switch status of the valve is detected to be changed, the pressure value of the upstream and downstream pipeline sections of the valve is recursively checked and set, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is a branch. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system.

[0050] The pipeline graphical interface redrawing module is used to redraw the pipeline graphical interface. According to the final pressure value status of each pipeline section after update, different colored brushes are used to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the circulation of the liquid in the pipeline.

[0051] Furthermore, it also includes:

[0052] The source file reading module is used to read the source file storing the graphic element information of the pipeline interface, wherein the source file is stored in an external file and used as an embedded resource.

[0053] On the other hand, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating the pipeline software interface when executing the computer program.

[0054] On the other hand, the present application further provides a storage medium, which includes a stored program, and when the program is running, controls the device where the storage medium is located to execute the steps of the method for generating a pipeline software interface.

[0055] Compared with the prior art, this application has the following beneficial effects:

[0056] (1) The technical solution of the present application can dynamically display the flow status of the liquid in the pipeline, thereby realizing dynamic monitoring of the flow status of the liquid in the pipeline.

[0057] (2) The technical solution of the present application realizes automatic updating of pipeline status entirely through checking and calculating the pressure value of the pipeline section, without relying on external input or predefined code, thus simplifying the workload of pipeline interface development and improving the versatility and flexibility of software functions.

[0058] (3) The technical solution of the present application adopts the GDI drawing technology that comes with the operating system, without the need to introduce a third-party library, and is not dependent on other specific drawing software and graphics libraries, which simplifies the program development process and improves the independence and maintainability of the software.

[0059] (4) The technical solution of the present application adopts the system's own two-dimensional drawing technology, which also reduces the requirements for equipment configuration and performance, does not occupy too much equipment performance, and is conducive to cost control.

[0060] In addition to the above-described purposes, features and advantages, the present application also has other purposes, features and advantages. The present application will be further described in detail with reference to the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0062] Figure 1 It is a flow chart of a method for generating a pipeline software interface according to a preferred embodiment of the present application.

[0063] Figure 2 This is a schematic diagram of the actual effect of the pipeline interface development obtained after drawing this application.

[0064] Figure 3 This is a schematic diagram of the update status of the pipeline graphical interface redrawn in this application.

[0065] Figure 4 It is a schematic diagram of the sub-step flow of step S2 of the preferred embodiment of the present application.

[0066] Figure 5 It is a schematic diagram of the construction pipeline elements of the preferred embodiment of the present application.

[0067] Figure 6 It is a schematic diagram of the sub-step flow of step S3 of the preferred embodiment of the present application.

[0068] Figure 7 It is a schematic diagram of the sub-step flow of step S6 of the preferred embodiment of the present application.

[0069] Figure 8 It is a schematic diagram of the sub-step flow of step S6 of another preferred embodiment of the present application.

[0070] Fig. 9 It is a schematic diagram of a module of a generation device for a pipeline software interface according to a preferred embodiment of the present application.

[0071] Fig.10 It is a schematic diagram of a module of a generation device for a pipeline software interface according to another preferred embodiment of the present application.

[0072] Fig.11 It is a schematic block diagram of an electronic device entity of a preferred embodiment of the present application.

[0073] Fig.12It is a diagram of the internal structure of a computer device of a preferred embodiment of the present application. DETAILED DESCRIPTION

[0074] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings, but the present application can be implemented in a variety of different ways defined and covered below.

[0075] like Figure 1 As shown, the preferred embodiment of the present application provides a method for generating a pipeline software interface, comprising the steps of:

[0076] S1, parsing the graphic element information in the source file, parsing the graphic element information into a list of corresponding objects according to the set classification, the set classification includes circle, rectangle, polyline, text, additional graphic elements, and the additional graphic elements include valve and pump graphic elements;

[0077] S2. Construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects pipenode, and construct polyline graphic elements into pipeline segment objects pipeline;

[0078] S3, adaptive conversion of graphic element size, according to the container and graphic element size information stored in the source file, and the size information of the current graphical interface, the graphic element is proportionally converted into a real size value that is suitable for the current interface;

[0079] S4, setting the initial pressure value of the pipeline, determining the first end slurry inlet pump and the terminal slurry discharge pump and setting the initial pressure for them, and then starting the cyclic judgment from these two pumps, starting from the currently designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value setting of all pipeline sections is completed;

[0080] S5. Execute drawing. According to the graphic element information stored in the source file and the parsed valve and pump pipeline node information, the operating system's built-in GDI drawing method is used to draw graphic elements and valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending real-time values ​​of corresponding switch variables.

[0081] S6. Execute pipeline status self-check and redefine. When the switch status of the valve is detected to be changed, recursively check and set the pressure value of the upstream and downstream pipeline sections of the valve, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is branched. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system.

[0082] S7. Redraw the pipeline graphical interface. According to the updated final pressure value status of each pipeline section, use different colored brushes to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the flow of liquid in the pipeline.

[0083] In the above embodiment, the actual effect of the pipeline interface development obtained after the drawing is executed in step S6 is as follows: Figure 2 As shown in FIG. 1 , the structure of a specific pipeline and the flow of liquid in the pipeline are shown, and it is assumed that all valves are in an open state. When redrawing the pipeline graphical interface in step S8, the pipeline segment is drawn using a brush of a different color according to the final pressure value after the pipeline segment is updated, such as Figure 3 As shown, in this embodiment, a gray brush is used to draw the pipeline section whose pressure value is cleared; an orange brush is used to draw the pipeline section whose pressure value is not cleared, so as to achieve the effect of dynamically displaying the liquid flow state in the pipeline system. Figure 3 In the figure, after clicking valve v6 to close it, there is no other inflow in the pipeline section downstream of valve v6, so the pressure value of this section of the pipeline is cleared, and the pipeline section between valves v15 and v16 is checked. It is found that there is inflow from the left, so the setting is stopped; after clicking valve v2 to close it, there is no other inflow in the pipeline section downstream of valve v2 and its branch pipeline section, so the pressure value of this part of the pipeline section is cleared, and finally the pipeline graphical interface is redrawn according to the pressure value updated in this process.

[0084] Compared with the prior art, this embodiment has the following beneficial effects:

[0085] (1) The technical solution of this embodiment can dynamically display the flow status of the liquid in the pipeline, thereby realizing dynamic monitoring of the flow status of the liquid in the pipeline.

[0086] (2) The technical solution of this embodiment realizes automatic updating of pipeline status entirely by checking and calculating the pressure value of the pipeline section, without relying on external input or predefined code, thus simplifying the workload of pipeline interface development and improving the versatility and flexibility of software functions.

[0087] (3) The technical solution of this embodiment adopts the GDI drawing technology that comes with operating systems such as Windows and Linux, without the need to introduce third-party libraries and does not rely on other specific drawing software and graphics libraries, which simplifies the program development process and improves the independence and maintainability of the software.

[0088] (4) The technical solution of this embodiment adopts the system's own two-dimensional drawing technology, which also reduces the requirements for equipment configuration and performance, does not occupy too much equipment performance, and is conducive to cost control.

[0089] In a preferred embodiment of the present application, in step S1, before parsing the graphic element information in the source file, the following steps are further included:

[0090] The source file storing the graphic element information of the pipeline class interface is read, and the source file is stored in an external file and used as an embedded resource.

[0091] The technical solution of this embodiment saves the graphic element information of the pipeline interface in an external file and uses it as an embedded resource. After the software is run, dynamic drawing is achieved by reading and parsing the data in the file, which reduces the burden of program loading and improves the efficiency of interface rendering.

[0092] like Figure 4 As shown, in a preferred embodiment of the present application, step S2 specifically includes the steps of:

[0093] S21, select the graphic elements of valve and pump type, parse their attribute information, and construct them into pipeline node pipenode objects (such as Figure 5 shown);

[0094] S22, read all the polyline primitives, loop to determine whether the polyline contains pipeline nodes, if it contains pipeline nodes, split the polyline primitives according to the nodes and construct multiple pipeline segment pipeline objects, if it does not contain pipeline nodes, directly construct the polyline into pipeline segment pipeline objects;

[0095] S23, determining the upstream and downstream directions of the pump type pipeline node, regarding the pipeline segment objects on both sides thereof as Pipe1 and Pipe2, and regarding the side indicated by the pump direction as Pipe1 according to the direction attribute value of the pump;

[0096] S24, looping through all pipeline sections, calculating the relationship between the main and branch lines between pipeline sections based on the point-line position relationship, and recording the branch information of each pipeline section and the pipeline section information it merges into.

[0097] This embodiment constructs a pipeline graphic element object, converts the graphic element information parsed from the source file into a pipeline segment pipeline object and a pipeline node pipenode object, and records the branch and pump direction information of the pipeline segment.

[0098] like Figure 6 As shown, in a preferred embodiment of the present application, step S4 specifically includes the steps of:

[0099] S41, clear the pipeline pressure value, identify the feed pump and the discharge pump according to the consistency between the liquid inflow direction of the pipeline system specified in the source file and the liquid flow direction when the pump rotates forward, if the liquid flow direction when the pump rotates forward is consistent with the liquid inflow direction of the pipeline system, it is the feed pump, otherwise it is the discharge pump, set the initial pressure value of the feed pump (such as 100) and the initial pressure value of the discharge pump (such as 0), wherein the initial pressure value of the feed pump is greater than the initial pressure value of the discharge pump;

[0100] S42, launching a loop judgment on the pipeline nodes of all pump types, and recursively setting the initial pressure values ​​of the upstream and downstream pipeline sections of the pump;

[0101] S43, determine whether the pressure value has been set for the current pipeline section. If not, continue to determine the type of the front-end pipeline node. For the pump-type pipeline node, the original pressure change trend needs to be adjusted. Otherwise, return to step S42 and continue to operate the next pump in the circulation body.

[0102] S44, after determining the pressure change trend, setting the initial pressure value of the current pipeline section, and recursively setting the pressure values ​​of all branches of the current pipeline section;

[0103] S45, determine whether the end of the pipeline has been reached. If the current pipeline segment still has a downstream pipeline segment, recursively set the pressure value of the downstream pipeline segment; otherwise, return to step S42 and continue to operate the next pump in the circulation body.

[0104] The advantage of using the steps of this embodiment to set the initial pressure value of the pipeline is that it has good versatility in different pipeline diagrams with complex pipeline routes. The subsequent steps use the initial pressure value to determine the flow direction of the liquid in the pipeline, supporting the execution of the pipeline self-inspection operation.

[0105] like Figure 7 As shown, in a preferred embodiment of the present application, when the switch state of the valve is open, the step S6 specifically includes the steps of:

[0106] S601, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on one side and no slurry on the other side, the pipeline is adjusted from the inspection direction to expand toward the pipeline section without slurry, and it is regarded as the current pipeline section, otherwise the setting is stopped;

[0107] S602, restore the pressure value of the current slurry-free pipe section;

[0108] S603, obtaining the outflow branch of the current pipeline section, conducting a cyclic judgment on all outflow branch pipeline sections without slurry, and restoring the pressure value of the pipeline section without slurry;

[0109] S604, obtaining the current pipeline segment as the pipeline segment into which the branch merges, if the pipeline segment into which the branch merges has no slurry, recursively executing steps S602 to S606 for self-checking and pressure setting operations on the pipeline segment into which the branch merges, otherwise stopping the setting;

[0110] S605, setting the pressure of the downstream pipeline section of the current pipeline section, and determining whether the type of the next pipeline node is a valve or a pump;

[0111] S606. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-check direction, then execute steps S602 to S606 to recursively set the downstream pipeline section pressure value, otherwise stop setting.

[0112] In this embodiment, when the user operates the interface or physical button to change the valve switch state, such as when the valve is opened, the self-checking and redefinition logic defined by the method of this embodiment will be executed. The advantage is that it can respond quickly and determine through calculation whether there is liquid circulation in the current pipeline section, while not taking up too much equipment performance, and dynamically and intuitively displaying the liquid circulation status in the entire pipeline diagram.

[0113] like Figure 8 As shown, in a preferred embodiment of the present application, when the switch state of the valve is closed, the step S6 specifically includes the steps of:

[0114] S611, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on both sides, continue to execute, otherwise stop setting, compare the pressure of the pipeline sections on both sides of the valve, adjust the pipeline from the inspection direction to the pipeline section with lower pressure value, and regard it as the current pipeline section;

[0115] S612, clear the pressure value of the current pipeline segment, determine whether there is other valid inflows in the current pipeline segment, if not, continue to execute, otherwise restore the pressure value of the current pipeline segment and stop setting;

[0116] S613, obtaining the outflow branch of the current pipeline section, recursively checking and judging all outflow branch pipeline sections with slurry, and executing steps S612 to S616 for each branch;

[0117] S614, obtaining the current pipeline section as the pipeline section into which the branch merges, and if there is slurry in the merged pipeline section, recursively executing steps S612 to S616 for self-checking and pressure setting operations on the merged pipeline section, otherwise, stopping the setting;

[0118] S615, setting the downstream pipeline section pressure of the current pipeline section, and determining whether the next pipeline node is a valve or a pump;

[0119] S616. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-inspection direction, execute steps S612 to S616 to recursively set the pressure value of the downstream pipeline section, otherwise stop setting.

[0120] In this embodiment, when the user operates the interface or physical button to change the valve switch state, such as when the valve is closed, the self-check and redefinition logic defined by the method of this embodiment will be executed. The advantage is that it can respond quickly and determine through calculation whether there is liquid circulation in the current pipeline section, while not taking up too much equipment performance, and dynamically and intuitively displaying the liquid circulation status in the entire pipeline diagram.

[0121] During the specific implementation process, the above-mentioned pipeline software interface generation method can support and be applied to any scenarios including tunnel boring machines, shield machines, etc. that require dynamic and visual display of pipeline flow status. Even the flow status of drainage pipelines in factories and cities can be displayed in real time, dynamically and visually through the pipeline software interface generation method of this application, thereby realizing dynamic monitoring of the liquid flow status in various pipelines. It has strong versatility, does not rely on specific drawing software and graphics libraries, and does not take up too much equipment performance.

[0122] like Fig. 9 As shown, another preferred embodiment of the present application further provides a device for generating a pipeline software interface, comprising:

[0123] A source file parsing module, used to parse the graphic element information in the source file, and parse the graphic element information into a list of corresponding objects according to the set classification, wherein the set classification includes circle, rectangle, polyline, text, and additional graphic elements, and the additional graphic elements include valve and pump graphic elements;

[0124] A pipeline graphic element object construction module is used to construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects, and construct polyline graphic elements into pipeline segment objects;

[0125] The adaptive conversion module is used for adaptive conversion of graphic element size. According to the size information of the container and graphic element stored in the source file and the size information of the current graphical interface, the graphic element is proportionally converted into the real size value that adapts to the current interface;

[0126] The initial pressure value setting module of the pipeline is used to set the initial pressure value of the pipeline, determine the first end slurry inlet pump and the terminal slurry discharge pump and set the initial pressure for them, and then start the cyclic judgment from these two pumps, starting from the current designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value setting of all pipeline sections is completed;

[0127] The drawing module is used to execute drawing. According to the graphic element information stored in the source file and the valve and pump pipeline node information parsed, the operating system's built-in GDI drawing method is used to draw the graphic elements and the valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending the real-time values ​​of the corresponding switch variables;

[0128] The pipeline status self-check and redefinition module is used to perform pipeline status self-check and redefinition. When the switch status of the valve is detected to be changed, the pressure value of the upstream and downstream pipeline sections of the valve is recursively checked and set, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is a branch. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system.

[0129] The pipeline graphical interface redrawing module is used to redraw the pipeline graphical interface. According to the final pressure value status of each pipeline section after update, different colored brushes are used to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the circulation of the liquid in the pipeline.

[0130] like Fig.10 As shown, another preferred embodiment of the present application further provides a device for generating a pipeline software interface, comprising:

[0131] A source file reading module is used to read a source file storing graphic element information of a pipeline interface, wherein the source file is stored in an external file and used as an embedded resource;

[0132] A source file parsing module, used to parse the graphic element information in the source file, and parse the graphic element information into a list of corresponding objects according to the set classification, wherein the set classification includes circle, rectangle, polyline, text, and additional graphic elements, and the additional graphic elements include valve and pump graphic elements;

[0133] A pipeline graphic element object construction module is used to construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects, and construct polyline graphic elements into pipeline segment objects;

[0134] The adaptive conversion module is used for adaptive conversion of graphic element size. According to the size information of the container and graphic element stored in the source file and the size information of the current graphical interface, the graphic element is proportionally converted into the real size value that adapts to the current interface;

[0135] The initial pressure value setting module of the pipeline is used to set the initial pressure value of the pipeline, determine the first end slurry inlet pump and the terminal slurry discharge pump and set the initial pressure for them, and then start the cyclic judgment from these two pumps, starting from the current designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value setting of all pipeline sections is completed;

[0136] The drawing module is used to execute drawing. According to the graphic element information stored in the source file and the valve and pump pipeline node information parsed, the operating system's built-in GDI drawing method is used to draw the graphic elements and the valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending the real-time values ​​of the corresponding switch variables;

[0137] The pipeline status self-check and redefinition module is used to perform pipeline status self-check and redefinition. When the switch status of the valve is detected to be changed, the pressure value of the upstream and downstream pipeline sections of the valve is recursively checked and set, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is a branch. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system.

[0138] The pipeline graphical interface redrawing module is used to redraw the pipeline graphical interface. According to the final pressure value status of each pipeline section after update, different colored brushes are used to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the circulation of the liquid in the pipeline.

[0139] like Fig.11 As shown, a preferred embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating a pipeline software interface in the above embodiment when executing the computer program.

[0140] like Fig.12 As shown, the preferred embodiment of the present application also provides a computer device, which can be a terminal or a liveness detection server, and its internal structure diagram can be as shown in Fig.12As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with other external computer devices through a network connection. When the computer program is executed by the processor, the steps of the method for generating the above-mentioned pipeline software interface are implemented.

[0141] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] A preferred embodiment of the present application further provides a storage medium, which includes a stored program, and when the program is run, controls the device where the storage medium is located to execute the steps of the method for generating a pipeline software interface in the above embodiment.

[0143] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0144] If the functions described in the method of this embodiment are implemented in the form of software functional units and sold or used as independent products, they can be stored in one or more computing devices readable storage media. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0149] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0150] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating a pipeline software interface, characterized in that: Includes steps: S1, parsing the graphic element information in the source file, parsing the graphic element information into a list of corresponding objects according to the set classification, the set classification includes circle, rectangle, polyline, text, additional graphic elements, and the additional graphic elements include valve and pump graphic elements; S2. Construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects pipenode, and construct polyline graphic elements into pipeline segment objects pipeline; S3, adaptive conversion of graphic element size, according to the container and graphic element size information stored in the source file, and the size information of the current graphical interface, the graphic element is proportionally converted into a real size value that is suitable for the current interface; S4, setting the initial pressure value of the pipeline, determining the first end slurry inlet pump and the terminal slurry discharge pump and setting the initial pressure for them, and then starting the cyclic judgment from these two pumps, starting from the current designated pump, setting the increasing pipeline pressure value upstream of the pump, and setting the decreasing pipeline section pressure value downstream of the pump, until the pressure value of all pipeline sections is set, specifically including the steps: S41, clear the pipeline pressure value, identify the slurry inlet pump and the slurry discharge pump according to the consistency between the liquid inflow direction of the pipeline system specified in the source file and the liquid flow direction when the pump rotates forward, if the liquid flow direction when the pump rotates forward is consistent with the liquid inflow direction of the pipeline system, it is the slurry inlet pump, otherwise it is the slurry discharge pump, set the initial pressure value of the slurry inlet pump and the initial pressure value of the slurry discharge pump, wherein the initial pressure value of the slurry inlet pump is greater than the initial pressure value of the slurry discharge pump; S42, launching a loop judgment on the pipeline nodes of all pump types, and recursively setting the initial pressure values ​​of the upstream and downstream pipeline sections of the pump; S43, determine whether the pressure value has been set for the current pipeline section. If not, continue to determine the type of the front-end pipeline node. For the pump-type pipeline node, the original pressure change trend needs to be adjusted. Otherwise, return to step S42 and continue to operate the next pump in the circulation body. S44, after determining the pressure change trend, setting the initial pressure value of the current pipeline section, and recursively setting the pressure values ​​of all branches of the current pipeline section; S45, determining whether the pipeline end has been reached, if the current pipeline segment still has a downstream pipeline segment, recursively setting the pressure value of the downstream pipeline segment, otherwise returning to step S42, and continuing to operate the next pump in the circulation body; S5. Execute drawing. According to the graphic element information stored in the source file and the valve and pump pipeline node information parsed, the operating system's built-in GDI drawing method is used to draw graphic elements and valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending the real-time values ​​of corresponding switch variables. S6. Execute pipeline status self-check and redefine. When the switch status of the valve is detected to be changed, recursively check and set the pressure value of the upstream and downstream pipeline sections of the valve, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is branched. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system. S7. Redraw the pipeline graphical interface. According to the updated final pressure value status of each pipeline section, use different colored brushes to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the flow of liquid in the pipeline.

2. The method for generating a pipeline software interface according to claim 1, characterized in that: In step S1, before parsing the graphic element information in the source file, the following steps are also included: The source file storing the graphic element information of the pipeline class interface is read, wherein the source file is stored in an external file and used as an embedded resource.

3. The method for generating a pipeline software interface according to claim 1, characterized in that: Step S2 specifically includes the following steps: S21, select the graphic elements of valve and pump type, parse their attribute information, and construct them into pipeline node objects pipenode; S22, read all the polyline primitives, loop to determine whether the polyline contains pipeline nodes, if it contains pipeline nodes, split the polyline primitives according to the nodes and construct multiple pipeline segment objects pipeline, if it does not contain pipeline nodes, directly construct the polyline into pipeline segment objects pipeline; S23, determining the upstream and downstream directions of the pump type pipeline node, regarding the pipeline segment objects on both sides thereof as Pipe1 and Pipe2, and regarding the side indicated by the pump direction as Pipe1 according to the direction attribute value of the pump; S24, looping through all pipeline sections, calculating the relationship between the main and branch lines between pipeline sections based on the point-line position relationship, and recording the branch information of each pipeline section and the pipeline section information it merges into.

4. The method for generating a pipeline software interface according to claim 1, characterized in that: When the switch state of the valve is open, step S6 specifically includes the following steps: S601, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on one side and no slurry on the other side, the pipeline is adjusted from the inspection direction to expand toward the pipeline section without slurry, and it is regarded as the current pipeline section, otherwise the setting is stopped; S602, restore the pressure value of the current slurry-free pipe section; S603, obtaining the outflow branch of the current pipeline section, conducting a cyclic judgment on all outflow branch pipeline sections without slurry, and restoring the pressure value of the pipeline section without slurry; S604, obtaining the current pipeline segment as the pipeline segment into which the branch merges, if the pipeline segment into which the branch merges has no slurry, recursively executing steps S602 to S606 for self-checking and pressure setting operations on the pipeline segment into which the branch merges, otherwise stopping the setting; S605, setting the pressure of the downstream pipeline section of the current pipeline section, and determining whether the type of the next pipeline node is a valve or a pump; S606. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-check direction, execute steps S602 to S606 to recursively set the pressure value of the downstream pipeline section, and stop setting in other cases.

5. The method for generating a pipeline software interface according to claim 1, characterized in that: When the switch state of the valve is closed, step S6 specifically includes the following steps: S611, judging the pressure of the pipeline sections on both sides of the valve, if there is slurry on both sides, continue to execute, otherwise stop setting, compare the pressure of the pipeline sections on both sides of the valve, adjust the pipeline from the inspection direction to the pipeline section with lower pressure value, and regard it as the current pipeline section; S612, clear the pressure value of the current pipeline segment, determine whether there is other valid inflows in the current pipeline segment, if not, continue to execute, otherwise restore the pressure value of the current pipeline segment and stop setting; S613, obtaining the outflow branch of the current pipeline section, recursively checking and judging all outflow branch pipeline sections with slurry, and executing steps S612 to S616 for each branch; S614, obtaining the current pipeline section as the pipeline section into which the branch merges, and if there is slurry in the merged pipeline section, recursively executing steps S612 to S616 for self-checking and pressure setting operations on the merged pipeline section, otherwise, stopping the setting; S615, setting the downstream pipeline section pressure of the current pipeline section, and determining whether the next pipeline node is a valve or a pump; S616. If the next pipeline node is a valve and the state is open, or the pipeline node is a pump and the pump direction is consistent with the pipeline self-inspection direction, execute steps S612 to S616 to recursively set the pressure value of the downstream pipeline section, otherwise stop setting.

6. A device for generating a pipeline software interface, characterized in that: include: A source file parsing module, used to parse the graphic element information in the source file, and parse the graphic element information into a list of corresponding objects according to the set classification, wherein the set classification includes circle, rectangle, polyline, text, and additional graphic elements, and the additional graphic elements include valve and pump graphic elements; A pipeline graphic element object construction module is used to construct pipeline graphic element objects, construct valve and pump graphic elements in the source file into pipeline node objects, and construct polyline graphic elements into pipeline segment objects; The adaptive conversion module is used for adaptive conversion of graphic element size. According to the size information of the container and graphic element stored in the source file and the size information of the current graphical interface, the graphic element is proportionally converted into the real size value that adapts to the current interface; The initial pressure value setting module of the pipeline is used to set the initial pressure value of the pipeline, determine the first end slurry pump and the terminal slurry pump and set the initial pressure for them, and then start the cyclic judgment from these two pumps, starting from the current specified pump, set the increasing pipeline pressure value upstream of the pump, and set the decreasing pipeline section pressure value downstream of the pump until the pressure value of all pipeline sections is set. It is specifically used for: Clear the pipeline pressure value, identify the feed pump and the discharge pump according to the consistency between the liquid inflow direction of the pipeline system specified in the source file and the liquid flow direction when the pump rotates forward. If the liquid flow direction when the pump rotates forward is consistent with the liquid inflow direction of the pipeline system, it is the feed pump, otherwise it is the discharge pump. Set the initial pressure value of the feed pump and the initial pressure value of the discharge pump, among which the initial pressure value of the feed pump is greater than the initial pressure value of the discharge pump; Carry out cyclic judgment on pipeline nodes of all pump types and recursively set the initial pressure values ​​of the upstream and downstream pipeline sections of the pump; Determine whether the pressure value of the current pipeline segment has been set. If not, continue to determine the type of the front-end pipeline node. For the pump-type pipeline node, the original pressure change trend needs to be adjusted. Otherwise, return to the loop judgment of all pump-type pipeline nodes, recursively set the initial pressure value of the upstream and downstream pipeline segments of the pump, and continue to operate the next pump in the loop body; After determining the pressure change trend, set the initial pressure value of the current pipeline section, and recursively set the pressure values ​​of all branches of the current pipeline section; Determine whether the end of the pipeline has been reached. If the current pipeline segment still has a downstream pipeline segment, recursively set the pressure value of the downstream pipeline segment. Otherwise, return to the step of looping and judging the pipeline nodes of all pump types, recursively set the initial pressure value of the upstream and downstream pipeline segments of the pump, and continue to operate the next pump in the loop body. The drawing module is used to execute drawing. According to the graphic element information stored in the source file and the valve and pump pipeline node information parsed, the operating system's built-in GDI drawing method is used to draw the graphic elements and the valve and pump node graphic elements that need to be given switch meanings in sequence. The valve and pump node graphic elements are dynamically added buttons and picture controls, which are responsible for receiving and sending the real-time values ​​of the corresponding switch variables; The pipeline status self-check and redefinition module is used to perform pipeline status self-check and redefinition. When the switch status of the valve is detected to be changed, the pressure value of the upstream and downstream pipeline sections of the valve is recursively checked and set, including the pipeline section itself, all branches of the pipeline section, and another pipeline section into which the current pipeline section is a branch. The pressure value of the pipeline section reflects the current state of the pipeline section. The current state of the pipeline section refers to whether there is liquid flowing in the pipe. The change of the pressure value of each pipeline section in the pipeline system can reflect the liquid flow of the entire system. The pipeline graphical interface redrawing module is used to redraw the pipeline graphical interface. According to the final pressure value status of each pipeline section after update, different colored brushes are used to draw pipeline sections in different states, so as to achieve the visual effect of automatically checking and updating the pipeline status according to the valve switch status, and dynamically display the circulation of the liquid in the pipeline.

7. The device for generating a pipeline software interface according to claim 6, characterized in that: Also includes: The source file reading module is used to read the source file storing the graphic element information of the pipeline interface, wherein the source file is stored in an external file and used as an embedded resource.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for generating a pipeline software interface as described in any one of claims 1 to 5 are implemented.

9. A storage medium, comprising a stored program, which controls a device where the storage medium is located to execute the steps of the method for generating a pipeline software interface as claimed in any one of claims 1 to 5 when the program is executed.