Power Wiring Diagram Processing Method and Medium
By initializing and traversing the elements of the power wiring diagram, and automatically judging and marking the warning elements, the problem of error-prone drawing of the power wiring diagram is solved, and the prevention of safety hazards and the simplification of the five defense rules is achieved.
Patent Information
- Application Number
- CN202210049903.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-17
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-01-17
AI Technical Summary
The drawing process of existing power wiring diagrams is cumbersome and prone to errors, resulting in safety hazards, and the generation of five defense rules is difficult and prone to errors.
By obtaining the original power wiring diagram, the basic information of the primitives is initialized in sequence, the link connection relationship is traversed, the warning primitives are marked, and the combined operation rules and sub-operation rules are generated to achieve automatic judgment and modification.
Automatically judge the correctness of the power wiring diagram, prevent safety hazards caused by misoperation, and simplify the process of generating five defense rules.
Smart Images

Figure CN114528612B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power wiring diagram drawing, and particularly relates to a power wiring diagram processing method and a computer-readable storage medium. Background Art
[0002] In related technologies, the drawing of power wiring diagrams is mostly edited manually. During the editing process of power wiring diagrams, due to the extremely cumbersome editing process, it is very easy to make mistakes in power wiring diagrams due to human misoperations, thus generating potential safety hazards; moreover, generating corresponding five-prevention rules according to power wiring diagrams is also extremely cumbersome and error-prone. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems in the above technologies to some extent. To this end, an object of the present invention is to propose a power wiring diagram processing method, which can automatically judge whether a power wiring diagram is normal and prevent potential safety hazards caused by human misoperations.
[0004] A second object of the present invention is to propose a computer-readable storage medium.
[0005] To achieve the above object, an embodiment of the first aspect of the present invention proposes a power wiring diagram processing method, including the following steps: obtaining an original power wiring diagram, and initializing each graphic element in sequence according to the connection relationship and type information of the graphic elements in the original power wiring diagram to initialize the basic information of each graphic element, where the types of graphic elements include power source side graphic elements, power end side graphic elements, and intermediate graphic elements; traversing each graphic element in sequence according to the basic information and the type information, and judging whether each link in the original power wiring diagram is normally connected according to the traversal result; and when the judgment result is negative, marking the corresponding graphic element as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark; generating a closing operation rule and an opening operation rule corresponding to each graphic element according to the modified original power wiring diagram.
[0006] According to the method for processing a power wiring diagram according to an embodiment of the present invention, first, an original power wiring diagram is obtained, and each graphic element is initialized in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram to initialize the basic information of each graphic element, where the types of graphic elements include a power source side graphic element, a power end side graphic element, and an intermediate graphic element; then, each graphic element is traversed in sequence according to the basic information and the type information, and it is determined whether each link in the original power wiring diagram is normally connected according to the traversal result; and when the determination result is negative, the corresponding graphic element is marked as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark; then, a closing operation rule and an opening operation rule corresponding to each graphic element are generated according to the modified original power wiring diagram; thereby realizing automatic determination of whether the power wiring diagram is normal and preventing potential safety hazards caused by human misoperation.
[0007] In addition, the method for processing a power wiring diagram according to the above embodiment of the present invention may further have the following additional technical features:
[0008] Optionally, the basic information of the graphic element includes superior graphic element information, connected graphic element information, and inferior graphic element information. Each graphic element is initialized in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram to initialize the basic information of each graphic element, including: traversing the graphic elements in sequence according to the connection relationship of the graphic elements in the original power wiring diagram; if the graphic element is a power source side graphic element, the superior graphic element information of the graphic element is set to null, and the connected graphic element information of the graphic element is transferred to the inferior graphic element information of the graphic element; if the graphic element is a power end side graphic element, the inferior graphic element information of the graphic element is set to null, and the connected graphic element information of the graphic element is transferred to the superior graphic element information of the graphic element; if the graphic element is an intermediate graphic element, the connected graphic element information of the graphic element is transferred to the inferior graphic element information of the graphic element.
[0009] Optionally, each graphic element is traversed in sequence according to the basic information and the type information, and it is determined whether each link in the original power wiring diagram is normally connected according to the traversal result, including: for each link, traversing the power source side graphic elements, taking the power source side graphic element as the head graphic element of the link, and traversing the graphic elements in the link corresponding to the head graphic element in sequence according to the head graphic element, and updating the basic information of each graphic element in the link during the traversal; after all the graphic elements in the link corresponding to the circuit source side graphic element have been traversed, determining whether there are un-traversed graphic elements in the original power wiring diagram; if so, marking the un-traversed graphic element and all the graphic elements in the link corresponding to the un-traversed graphic element as warning graphic elements.
[0010] Optionally, the type of the graphic element further includes a line graphic element, and the method further includes: traversing the graphic elements on the power end side; for the current graphic element on the power end side during the traversal, setting the graphic element queue corresponding to the current graphic element on the power end side as an empty queue, and setting the result list corresponding to the current graphic element on the power end side as an empty list; determining whether the current graphic element on the power end side is a line graphic element; if so, sequentially adding all the superior graphic elements of the current graphic element on the power end side to the end of the graphic element queue; if not, adding the current graphic element on the power end side to the result list; determining whether the graphic element queue is an empty queue; if not, taking the head graphic element in the graphic element queue as the current graphic element, removing the head graphic element from the graphic element queue, and returning to the step of determining whether the current graphic element on the power end side is a line graphic element; if so, removing the current graphic element on the power end side from the result list and returning the result list.
[0011] Optionally, it further includes: determining whether the numerical value in the result list corresponding to the graphic element on the power end side is 1; if so, marking the graphic element on the power end side as a warning graphic element; if not, determining whether the type of the graphic element in the result list corresponding to the graphic element on the power end side is a grounding knife switch, and marking the graphic element on the power end side as a warning graphic element when the determination result is negative.
[0012] Optionally, the type of the graphic element further includes a circuit breaker graphic element, a disconnecting switch graphic element, and a grounding knife switch graphic element.
[0013] Optionally, generating the closing operation rule and the opening operation rule corresponding to each graphic element according to the modified original power wiring diagram includes: if the type of the graphic element is a circuit breaker graphic element, setting the closing operation rule and the opening operation rule of the circuit breaker graphic element as empty; if the type of the graphic element is a disconnecting switch graphic element, for each link involved in the disconnecting switch, setting the state of the first graphic element of the type of grounding knife switch graphic element or circuit breaker graphic element as the open state, and when the first graphic element is a circuit breaker graphic element, traversing with the circuit breaker graphic element as the head graphic element of the link, and setting the state of the first graphic element of the type of grounding knife switch graphic element or circuit breaker graphic element obtained by the traversal as the open state to complete the generation of the closing operation rule; setting the state of the circuit breaker graphic element in the link set by the disconnecting switch graphic element as the open state to complete the generation of the opening operation rule; if the type of the graphic element is a grounding knife switch graphic element, setting the opening operation rule of the grounding knife switch graphic element as empty; for each link involved in the grounding knife switch graphic element, setting the state of the first graphic element of the type of disconnecting switch graphic element or circuit breaker graphic element as the open state, and when the first graphic element is a circuit breaker graphic element, traversing with the circuit breaker graphic element as the head graphic element of the link, and setting the state of the first graphic element of the type of disconnecting switch graphic element obtained by the traversal as the open state to complete the generation of the closing operation rule.
[0014] To achieve the above object, an embodiment of the second aspect of the present invention provides a computer-readable storage medium, on which a power wiring diagram processing program is stored. When the power wiring diagram processing program is executed by a processor, the power wiring diagram processing method as described above is implemented.
[0015] According to the computer-readable storage medium of the embodiment of the present invention, by storing the power wiring diagram processing program, when the processor executes the power wiring diagram processing program, the power wiring diagram processing method as described above is implemented, so as to automatically determine whether the power wiring diagram is normal and prevent potential safety hazards caused by human misoperation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic flowchart of the power wiring diagram processing method according to the embodiment of the present invention;
[0017] Figure 2 It is a schematic flowchart of the primitive initialization according to the embodiment of the present invention;
[0018] Figure 3 It is a schematic flowchart of the primitive traversal according to the embodiment of the present invention;
[0019] Figure 4 It is a schematic flowchart of the primitive traversal of the power end side according to the embodiment of the present invention;
[0020] Figure 5 It is a schematic flowchart of the five-prevention rule generation according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] Embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
[0022] In the related art, it is very easy to cause errors in the power wiring diagram due to manual misoperation, which may further lead to potential safety hazards. According to the power wiring diagram processing method of the embodiments of the present invention, first, an original power wiring diagram is obtained, and each graphic element is initialized in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram, so as to initialize the basic information of each graphic element. Among them, the types of graphic elements include power source side graphic elements, power end side graphic elements and intermediate graphic elements. Then, each graphic element is traversed in sequence according to the basic information and the type information, and it is judged whether each link in the original power wiring diagram is normally connected according to the traversal result. And when the judgment result is negative, the corresponding graphic element is marked as a warning graphic element, so that relevant personnel can modify the warning graphic element according to the mark. Then, the combined operation rule and the split operation rule corresponding to each graphic element are generated according to the modified original power wiring diagram. Thus, it is realized to automatically judge whether the power wiring diagram is normal and prevent potential safety hazards caused by human misoperation.
[0023] In order to better understand the above technical solutions, the exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided so that the present invention can be more thoroughly understood and the scope of the present invention can be completely conveyed to those skilled in the art.
[0024] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementation manners.
[0025] Figure 1 It is a schematic flowchart of the power wiring diagram processing method according to the embodiments of the present invention. As Figure 1 shown, the power wiring diagram processing method includes the following steps:
[0026] S101, obtain an original power wiring diagram, and initialize each graphic element in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram, so as to initialize the basic information of each graphic element. Among them, the types of graphic elements include power source side graphic elements, power end side graphic elements and intermediate graphic elements.
[0027] That is to say, obtain the original power wiring diagram completed by the user. The original power wiring diagram contains multiple types of graphic elements, and, multiple types of graphic elements are connected in a possible connection relationship under the user's operation. And after obtaining the original power wiring diagram, each graphic element is initialized in sequence according to the connection relationship of the graphic elements in the original power wiring diagram and the type information of each graphic element, so as to initialize the basic information of each graphic element. Among them, the types of graphic elements include power source side graphic elements, power end side graphic elements and intermediate graphic elements.
[0028] Among them, the basic information of the graphic elements can include various types; for example, the basic information of the graphic elements can include the information of the superior graphic elements, the information of the connected graphic elements, and the information of the subordinate graphic elements; that is to say, among the basic information corresponding to each graphic element, it includes the information of the superior graphic element of this graphic element, the information of the connected graphic element of this graphic element, and the information of the subordinate graphic element of this graphic element.
[0029] In some embodiments, each graphic element is initialized in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram, so as to initialize the basic information of each graphic element, including: traversing the graphic elements in sequence according to the connection relationship of the graphic elements in the original power wiring diagram; if the graphic element is a power source side graphic element, then set the information of the superior graphic element of this graphic element to null, and transfer the information of the connected graphic element of this graphic element to the information of the subordinate graphic element of this graphic element; if the graphic element is a power end side graphic element, then set the information of the subordinate graphic element of this graphic element to null, and transfer the information of the connected graphic element of this graphic element to the information of the superior graphic element of this graphic element; if the graphic element is an intermediate graphic element, then transfer the information of the connected graphic element of this graphic element to the information of the subordinate graphic element of this graphic element.
[0030] As an example, as Figure 2 shown, each graphic element is initialized in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram, so as to initialize the basic information of each graphic element, including:
[0031] S201, start.
[0032] S202, perform traversal of graphic elements.
[0033] S203, determine whether there are still graphic elements not traversed; if not, then execute step S217; if so, then execute step S204.
[0034] S204, take the untraversed graphic element as the current graphic element.
[0035] S205, determine whether the current graphic element has completed the outer layer traversal; if so, then execute step S206; if not, then execute step S207.
[0036] S206, do not process the current graphic element, and return to step S203.
[0037] S207, determine whether the current graphic element generates electricity; if so, then execute step S208; if not, then execute step S209.
[0038] S208, take the current graphic element as a power source side graphic element, set the information of the superior graphic element of this power source side graphic element to null, and transfer the information of the connected graphic element of this power source side graphic element to the information of the subordinate graphic element of this power source side graphic element, and execute step S212.
[0039] S209, Determine whether the current graphic element is the power end-side graphic element; if so, execute step S210; if not, execute step S211.
[0040] S210, Take the current graphic element as the power end-side graphic element, set the subordinate graphic element information of this power end-side graphic element to empty, and transfer the connection graphic element information of this power end-side graphic element to the superior graphic element information of this graphic element, then execute step S212.
[0041] S211, Take the current graphic element as the intermediate graphic element, and transfer the connection graphic element information of this intermediate graphic element to the subordinate graphic element information of this graphic element, then execute step S212.
[0042] S212, Initialize the basic information of the current graphic element.
[0043] S213, Determine whether there is a connected graphic element for the current graphic element; if so, execute step S214; if not, return to step S203.
[0044] S214, Take the connected graphic element as the current graphic element.
[0045] S215, Determine whether the current graphic element has completed the inner-layer traversal; if so, execute step S216; if not, return to step S207.
[0046] It can be understood that the inner-layer traversal is the traversal of the link where the current graphic element is located, and the outer-layer traversal is used to determine whether all the links corresponding to the graphic element have been traversed when the graphic element exists in multiple links.
[0047] S216, Ignore the current graphic element and return to step S213.
[0048] S217, End.
[0049] Through the above steps, the original power wiring diagram can be effectively initialized to facilitate subsequent further analysis and judgment of the original power wiring diagram.
[0050] S102, Sequentially traverse each graphic element according to the basic information and type information, and determine whether each link in the original power wiring diagram is connected normally according to the traversal result; and when the judgment result is no, mark the corresponding graphic element as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark.
[0051] That is to say, traverse the graphic elements in the original power wiring diagram in sequence according to the basic information and type information corresponding to each graphic element and the connection sequence of each graphic element; and judge whether each link in the original power wiring diagram is connected normally according to the traversal result; if not, it means that there is a problem with the drawing of the link; furthermore, mark the corresponding graphic element as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark.
[0052] In some embodiments, traversing each graphic element in sequence according to the basic information and type information, and judging whether each link in the original power wiring diagram is connected normally according to the traversal result includes: for each link, traversing the graphic elements on the power source side and using the graphic elements on the power source side as the head graphic elements of the link, and traversing the graphic elements in the link corresponding to the head graphic elements in sequence according to the head graphic elements, and updating the basic information of each graphic element in the link during the traversal process; after all the graphic elements in the link corresponding to the graphic elements on the circuit source side have been traversed, judging whether there are un-traversed graphic elements in the original power wiring diagram; if so, marking the un-traversed graphic element and all the graphic elements in the link corresponding to the un-traversed graphic element as warning graphic elements.
[0053] As an example, as Figure 3 shown, traversing each graphic element in sequence according to the basic information and type information, and judging whether each link in the original power wiring diagram is connected normally includes:
[0054] S301, start.
[0055] S302, judge whether there are un-traversed graphic elements on the power source side; if so, execute step S303; if not, execute step S308.
[0056] S303, update the cached graphic element according to the graphic element on the power source side.
[0057] S304, judge whether the cached graphic element has subordinate graphic elements; if not, return to step S302; if so, execute step S305.
[0058] S305, use the subordinate graphic element corresponding to the cached graphic element as the current graphic element.
[0059] S306, move the cached graphic element information in the subordinate graphic element information of the current graphic element to the superior graphic element information of the current graphic element.
[0060] S307, update the cached graphic element according to the current graphic element and return to step S304.
[0061] S308, judge whether there are still un-traversed graphic elements; if not, execute step S314. If so, execute step S309.
[0062] S309. Update the cached primitive according to the un-traversed primitive.
[0063] S310. Determine whether there is a subordinate primitive for the cached primitive; if not, return to step S308; if so, execute step S311.
[0064] S311. Use the subordinate primitive corresponding to the cached primitive as the current primitive.
[0065] S312. Move the cached primitive information in the subordinate primitive information of the current primitive to the superior primitive information of the current primitive.
[0066] S313. Mark the current primitive as a warning primitive, update the cached primitive according to the current primitive, and return to step S308.
[0067] S314. End.
[0068] In some embodiments, the type of primitive further includes a line primitive, and the method further includes: traversing the power end primitive; for the current power end primitive during traversal, set the primitive queue corresponding to the current power end primitive to an empty queue, and set the result list corresponding to the current power end primitive to an empty list; determine whether the current power end primitive is a line primitive; if so, sequentially add all the superior primitives of the current power end primitive to the end of the primitive queue; if not, add the current power end primitive to the result list; determine whether the primitive queue is an empty queue; if not, use the head primitive in the primitive queue as the current primitive, remove the head primitive from the primitive queue, and return to the step of determining whether the current power end primitive is a line primitive; if so, remove the current power end primitive from the result list and return the result list.
[0069] As an example, as Figure 4 shown, the method further includes the following steps:
[0070] S401. Start.
[0071] S402. Determine whether there is an un-traversed power end primitive; if not, execute step S413; if so, execute step S403.
[0072] S403. Use the un-traversed power end primitive as the current power end primitive.
[0073] S404. Set the primitive queue corresponding to the current power end primitive to an empty queue.
[0074] S405. Set the result list corresponding to the current power end primitive to an empty list.
[0075] S406, Determine whether the primitive at the end side of the current power supply is a line primitive; if so, execute step S407; if not, execute step S408.
[0076] S407, Add all the superior primitives of the primitive at the end side of the current power supply to the end of the primitive queue in sequence, and execute step S409.
[0077] S408, Add the primitive at the end side of the current power supply to the result list.
[0078] S409, Determine whether the primitive queue is an empty queue; if so, execute step S411; if not, execute step S410.
[0079] S410, Take the header primitive in the primitive queue as the current primitive, remove the header primitive from the primitive queue, and return to step S406.
[0080] S411, Remove the primitive at the end side of the current power supply from the result list.
[0081] S412, Return the result list.
[0082] S413, End.
[0083] It can be understood that in the above manner, it is possible to determine whether there is a real superior primitive for the primitive; and if the step of S407 is replaced by adding all the inferior primitives of the primitive at the end side of the current power supply to the end of the primitive queue in sequence; then in the above manner, it is possible to determine whether there is a real inferior primitive for the primitive.
[0084] In some embodiments, the method proposed by the embodiments of the present invention further includes: determining whether the numerical value in the result list corresponding to the primitive at the end side of the power supply is 1; if so, marking the primitive at the end side of the power supply as a warning primitive; if not, determining whether the type of the primitive in the result list corresponding to the primitive at the end side of the power supply is a grounding switch, and marking the primitive at the end side of the power supply as a warning primitive when the determination result is negative.
[0085] It can be understood that in this way, it is possible to effectively determine whether the primitive at the end side of the power supply during traversal is a real grounding switch primitive.
[0086] S103, Generate the closing operation rule and opening operation rule corresponding to each primitive according to the modified original power wiring diagram.
[0087] In some embodiments, the types of primitives further include breaker primitives, disconnecting switch primitives, and grounding switch primitives.
[0088] In some embodiments, closing operation rules and opening operation rules corresponding to each graphic element are generated according to the modified original power wiring diagram, including: if the type of the graphic element is a circuit breaker graphic element, the closing operation rules and opening operation rules of the circuit breaker graphic element are set to be empty; if the type of the graphic element is a disconnecting switch graphic element, for each link involved in the disconnecting switch, the state of the first graphic element of the type of earthing switch graphic element or circuit breaker graphic element is set to the off state, and when the first graphic element is a circuit breaker graphic element, traversal is performed with the circuit breaker graphic element as the leading graphic element of the link, and the state of the first graphic element of the type of earthing switch graphic element or circuit breaker graphic element obtained by traversal is set to the off state to complete the generation of the closing operation rules; the state of the circuit breaker graphic element in the link set by the disconnecting switch graphic element is set to the off state to complete the generation of the opening operation rules; if the type of the graphic element is an earthing switch graphic element, the opening operation rules of the earthing switch graphic element are set to be empty; for each link involved in the earthing switch graphic element, the state of the first graphic element of the type of disconnecting switch graphic element or circuit breaker graphic element is set to the off state, and when the first graphic element is a circuit breaker graphic element, traversal is performed with the circuit breaker graphic element as the leading graphic element of the link, and the state of the first graphic element of the type of disconnecting switch graphic element obtained by traversal is set to the off state to complete the generation of the closing operation rules.
[0089] As an example, as Figure 5 shown, closing operation rules and opening operation rules corresponding to each graphic element are generated according to the modified original power wiring diagram, including:
[0090] S501, start.
[0091] S502, determine whether there are circuit breaker graphic elements, earthing switch graphic elements and disconnecting switch graphic elements; if not, execute step S511; if so, execute step S503.
[0092] S503, determine whether the current graphic element is a circuit breaker graphic element; if so, execute step S504; if not, execute step S505.
[0093] S504, set the closing operation rules and opening operation rules of the circuit breaker graphic element to be empty, and return to step S502.
[0094] S505, determine whether the current graphic element is an earthing switch graphic element; if so, execute step S506; if not, execute step S508.
[0095] S506, set the opening operation rules of the earthing switch graphic element to be empty.
[0096] S507. For each link related to the earthing switch graphic element, set the state of the first disconnector graphic element or circuit breaker graphic element to the off state. When the first graphic element is a circuit breaker graphic element, traverse with this circuit breaker graphic element as the leading graphic element of the link, and set the state of the first graphic element with the type of disconnector graphic element obtained from the traversal to the off state to complete the generation of the closing operation rule; return to step S502.
[0097] S508. Determine whether the current graphic element is a disconnector graphic element; if so, execute step S509; if not, return to step S502.
[0098] S509. For each link related to the disconnector, set the state of the first earthing switch graphic element or circuit breaker graphic element to the off state. When the first graphic element is a circuit breaker graphic element, traverse with this circuit breaker graphic element as the leading graphic element of the link, and set the state of the first graphic element with the type of earthing switch graphic element or circuit breaker graphic element obtained from the traversal to the off state to complete the generation of the closing operation rule.
[0099] S510. Set the state of the circuit breaker graphic element in the link set for the disconnector graphic element to the off state to complete the generation of the opening operation rule; return to step S502.
[0100] S511. End.
[0101] In summary, according to the power wiring diagram processing method of the embodiments of the present invention, first, obtain the original power wiring diagram, and initialize each graphic element in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram to initialize the basic information of each graphic element, where the types of graphic elements include power source side graphic elements, power end side graphic elements, and intermediate graphic elements; then, traverse each graphic element in sequence according to the basic information and the type information, and determine whether each link in the original power wiring diagram is connected normally according to the traversal result; and when the judgment result is no, mark the corresponding graphic element as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark; then, generate the closing operation rule and opening operation rule corresponding to each graphic element according to the modified original power wiring diagram; thereby realizing the automatic judgment of whether the power wiring diagram is normal and preventing potential safety hazards caused by human misoperation.
[0102] To implement the above embodiments, an embodiment of the present invention proposes a computer-readable storage medium, on which a power wiring diagram processing program is stored. When the power wiring diagram processing program is executed by a processor, it implements the power wiring diagram processing method as described above.
[0103] A computer-readable storage medium according to an embodiment of the present invention stores a power wiring diagram processing program, so that when a processor executes the power wiring diagram processing program, the power wiring diagram processing method as described above is implemented, thereby realizing automatic judgment on whether the power wiring diagram is normal and preventing potential safety hazards caused by human misoperation.
[0104] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program code.
[0105] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0106] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for realizing the functions specified in Figure 1 one or more of the processes Figure 1 or multiple processes and / or blocks
[0108] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words may be interpreted as names.
[0109] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn the basic inventive concept. Therefore, the appended claims are intended to be construed to cover the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.
[0110] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
[0111] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0112] In the present invention, unless otherwise clearly defined and limited, the terms "mounted", "connected", "coupled", "fixed", etc. shall be construed in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the internal communication of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0113] In the present invention, unless otherwise clearly defined and limited, the first feature being "on" or "under" the second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply indicates that the horizontal height of the first feature is higher than that of the second feature. The first feature being "under", "below" and "beneath" the second feature may mean that the first feature is directly below or obliquely below the second feature, or simply indicates that the horizontal height of the first feature is less than that of the second feature.
[0114] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0115] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for processing an electrical wiring diagram, characterized in that, Including the following steps: Obtain the original power wiring diagram, and initialize each graphic element in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram, so as to initialize the basic information of each graphic element, where the types of graphic elements include power source side graphic elements, power end side graphic elements, and intermediate graphic elements; Traverse each graphic element in sequence according to the basic information and the type information, and judge whether each link in the original power wiring diagram is connected normally according to the traversal result; and when the judgment result is no, mark the corresponding graphic element as a warning graphic element so that relevant personnel can modify the warning graphic element according to the mark; Generate the closing operation rule and opening operation rule corresponding to each graphic element according to the modified original power wiring diagram; The type of graphic element also includes line graphic elements, and the method further includes: Traverse the power end side graphic elements; For the current power end side graphic element in the traversal, set the graphic element queue corresponding to the current power end side graphic element to an empty queue, and set the result list corresponding to the current power end side graphic element to an empty list; Judge whether the current power end side graphic element is a line graphic element; If so, add all the superior graphic elements of the current power end side graphic element to the end of the graphic element queue in sequence; If not, add the current power end side graphic element to the result list; Judge whether the graphic element queue is an empty queue; If not, use the header graphic element in the graphic element queue as the current graphic element, remove the header graphic element from the graphic element queue, and return to the step of judging whether the current power end side graphic element is a line graphic element; If so, remove the current power end side graphic element from the result list and return the result list.
2. The power wiring diagram processing method according to claim 1, characterized in that, The basic information of the graphic element includes superior graphic element information, connected graphic element information, and inferior graphic element information. Initialize each graphic element in sequence according to the connection relationship of the graphic elements and the type information of the graphic elements in the original power wiring diagram to initialize the basic information of each graphic element, including: Traverse the graphic elements in sequence according to the connection relationship of the graphic elements in the original power wiring diagram; If the graphic element is a power source side graphic element, set the superior graphic element information of the graphic element to be empty, and transfer the connected graphic element information of the graphic element to the inferior graphic element information of the graphic element; If the graphic element is a power end side graphic element, set the inferior graphic element information of the graphic element to be empty, and transfer the connected graphic element information of the graphic element to the superior graphic element information of the graphic element; If the graphic element is an intermediate graphic element, transfer the connected graphic element information of the graphic element to the inferior graphic element information of the graphic element.
3. The power wiring diagram processing method according to claim 2, characterized in that, Traverse each graphic element in sequence according to the basic information and the type information, and judge whether each link in the original power wiring diagram is connected normally, including: For each link, traverse the power source side graphic elements, use the power source side graphic element as the head graphic element of the link, and traverse the graphic elements in the link corresponding to the head graphic element in sequence according to the head graphic element, and update the basic information of each graphic element in the link during the traversal; After all the elements in the link corresponding to the circuit source side element have been traversed, determine whether there are any untraversed elements in the original power wiring diagram; If so, mark the untraversed element and all the elements in the link corresponding to the untraversed element as warning elements.
4. The method for processing a power wiring diagram according to claim 1, characterized in that, It further includes: Determine whether the numerical value in the result list corresponding to the power end side element is 1; If so, mark the power end side element as a warning element; If not, determine whether the type of the element in the result list corresponding to the power end side element is a grounding knife switch, and mark the power end side element as a warning element when the judgment result is negative.
5. The power wiring diagram processing method according to claim 1, wherein, The types of the elements also include circuit breaker elements, disconnecting switch elements and grounding knife switch elements.
6. The method for processing a power wiring diagram according to claim 5, wherein, Generate the closing operation rule and opening operation rule corresponding to each element according to the modified original power wiring diagram, including: If the type of the element is a circuit breaker element, set the closing operation rule and opening operation rule of the circuit breaker element to be empty; If the type of the element is a disconnecting switch element, for each link involved in the disconnecting switch, set the state of the first element of the type of grounding knife switch element or circuit breaker element to the off state, and when the first element is a circuit breaker element, traverse with the circuit breaker element as the leading element of the link, and set the state of the first traversed element of the type of grounding knife switch element or circuit breaker element to the off state to complete the generation of the closing operation rule; Set the state of the circuit breaker element in the link set by the disconnecting switch element to the off state to complete the generation of the opening operation rule; If the type of the element is a grounding knife switch element, set the opening operation rule of the grounding knife switch element to be empty; For each link involved in the grounding knife switch element, set the state of the first element of the type of disconnecting switch element or circuit breaker element to the off state, and when the first element is a circuit breaker element, traverse with the circuit breaker element as the leading element of the link, and set the state of the first traversed element of the type of disconnecting switch element to the off state to complete the generation of the closing operation rule.
7. A computer-readable storage medium, characterized in that, It stores a power wiring diagram processing program, and when the power wiring diagram processing program is executed by a processor, it implements the power wiring diagram processing method according to any one of claims 1-6.
Citation Information
Patent Citations
Transformer substation main wiring diagram G file normativity verification method
CN111625944A