CN115134209B - Pipe network area determining method and device, electronic equipment and storage medium - Google Patents

Pipe network area determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115134209B
CN115134209B CN202210523825.6A CN202210523825A CN115134209B CN 115134209 B CN115134209 B CN 115134209B CN 202210523825 A CN202210523825 A CN 202210523825A CN 115134209 B CN115134209 B CN 115134209B
Authority
CN
China
Prior art keywords
node
takeover
pipe network
storage area
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210523825.6A
Other languages
Chinese (zh)
Other versions
CN115134209A (en
Inventor
李少丹
林原胜
陈列
徐广展
宋苹
李勇
戴春辉
代路
劳星胜
柳勇
柴文婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
719th Research Institute of CSIC
Original Assignee
719th Research Institute of CSIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 719th Research Institute of CSIC filed Critical 719th Research Institute of CSIC
Priority to CN202210523825.6A priority Critical patent/CN115134209B/en
Publication of CN115134209A publication Critical patent/CN115134209A/en
Application granted granted Critical
Publication of CN115134209B publication Critical patent/CN115134209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Abstract

The invention provides a pipe network area determining method, a pipe network area determining device, electronic equipment and a storage medium, wherein the method can comprise the following steps: acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring a second node associated with the first node according to the first node information; and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover between the first node and the second node. The method is used for solving the defect that in the prior art, the pipe network storage area corresponding to the nodes with different characteristics cannot be obtained effectively and accurately due to complicated process of dividing the pipe network area, and simplifying the pipe network area dividing process, so that the pipe network storage area corresponding to a certain node is determined effectively and accurately.

Description

Pipe network area determining method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for determining a pipe network area, an electronic device, and a storage medium.
Background
Currently, the process of dividing a pipe network area by an electronic device typically requires consideration of the relevant characteristics of each node in the entire storage area, such as at least one of density, velocity, temperature, and pressure of the fluid flowing through each node. And then, based on the related characteristics, acquiring nodes with the same characteristics, and finally, the electronic equipment acquires corresponding pipe network storage areas based on the nodes with different characteristics. However, the above pipe network region dividing process is complicated, so that pipe network storage regions corresponding to nodes with different characteristics cannot be obtained effectively and accurately.
Disclosure of Invention
The invention provides a pipe network region determining method, device, electronic equipment and storage medium, which are used for solving the defect that in the prior art, the pipe network region dividing process is complicated, so that pipe network storage regions corresponding to nodes with different characteristics cannot be obtained effectively and accurately, and simplifying the pipe network region dividing process, so that the pipe network storage region corresponding to a certain node is determined effectively and accurately.
The invention provides a pipe network area determining method, which comprises the following steps:
acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node;
Acquiring a second node associated with the first node according to the first node information;
and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node.
According to the pipe network area determining method provided by the invention, the second node associated with the first node is obtained according to the first node information, and the method comprises the following steps: acquiring second node information identical to second end information of the first takeover under the condition that the first node information is identical to first end information of the first takeover; and determining a second node according to the second node information.
According to the pipe network area determining method provided by the invention, the second node is determined according to the second node information, and the method comprises the following steps: determining a node corresponding to the second node information as a second node; or determining the node corresponding to the second node information as a third node, and acquiring a second node connected with the third node through a second take-over.
According to the pipe network area determining method provided by the invention, the determination that no other node associated with the second node exists comprises the following steps: and in the case that the second node is detected to be connected with other nodes through a third takeover and a stop valve in the third takeover is in a closed state, determining that the other nodes are not associated with the second node.
According to the pipe network area determining method provided by the invention, the method further comprises the following steps: marking corresponding nodes in the target storage area according to the nodes in the first pipe network storage area to obtain marked nodes; taking nodes except the marked node in the target storage area as unmarked nodes, and acquiring fourth node information corresponding to a fourth node, wherein the fourth node is any node in the unmarked nodes; according to the fourth node information, a fifth node associated with the fourth node is obtained, wherein the fifth node is a node in the unmarked nodes; and if no other unmarked nodes associated with the fourth node exist, determining a second pipe network storage area corresponding to the fourth node according to the fourth node, the fifth node and takeover among the fourth node and the fifth node.
According to the pipe network area determining method provided by the invention, the method can further comprise the following steps: and deleting the corresponding node in the target storage area according to the node in the first pipe network storage area.
The invention also provides a pipe network area determining device, which comprises:
the node acquisition module is used for acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; according to the first node information, a second node associated with the first node is acquired;
And the storage area determining module is used for determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node under the condition that no other node associated with the second node exists.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the pipe network area determining method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a pipe network region determination method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a pipe network region determination method as described in any one of the above.
According to the pipe network area determining method, the pipe network area determining device, the electronic equipment and the storage medium, first node information corresponding to a first node is obtained in a target storage area, the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring a second node associated with the first node according to the first node information; and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node. The method is used for solving the defect that in the prior art, the pipe network region is divided more complicated, so that the pipe network region corresponding to the nodes with different characteristics cannot be obtained effectively and accurately, the pipe network region dividing process is simplified, the electronic equipment can automatically acquire any node in the target memory region, the associated node of any node and the connection pipe between any node and the associated node, and the pipe network memory region corresponding to any node can be determined effectively and accurately.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a pipe network area determination method provided by the invention;
FIG. 2 is a schematic diagram of a target storage area according to the present invention;
FIG. 3 is one of the schematic diagrams of a second node associated with a first node provided by the present invention;
FIG. 4 is a schematic diagram of a second node associated with a first node according to the second embodiment of the present invention;
FIG. 5 is a second flow chart of the pipe network area determining method according to the present invention;
FIG. 6 is a schematic diagram of a first network storage area according to the present invention;
FIG. 7 is a third flow chart of the pipe network area determining method according to the present invention;
FIG. 8 is a second schematic diagram of a first pipe network storage area according to the present invention;
FIG. 9 is a third schematic diagram of a first network storage area according to the present invention;
FIG. 10 is a schematic flow chart of a pipe network area determining method according to the present invention;
FIG. 11 is a schematic view of a scenario of the pipe network area determination method provided by the present invention;
FIG. 12 is a schematic structural view of the pipe network area determining device provided by the invention;
fig. 13 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, the execution body of the embodiment of the present invention may be a pipe network area determining device or an electronic device. The following describes an embodiment of the present invention by taking an electronic device as an example.
As shown in fig. 1, a flow chart of a pipe network area determining method provided by the present invention may include:
101. and acquiring first node information corresponding to the first node in the target storage area.
The target storage area may include, but is not limited to, at least one node and at least one takeover, and the first node is any node in the at least one node.
In the target storage area, the node-to-node connection can be performed by taking over. Each node corresponds to one node information, and the node information corresponding to different nodes is different; each takeover corresponds to one piece of takeover information, and the takeover information corresponding to different takeovers is also different. That is, the target storage area may store not only at least one node and at least one takeover, but also node information corresponding to each node and takeover information corresponding to each takeover.
Exemplary, as shown in fig. 2, a schematic diagram of the structure of the target storage area provided by the present invention is shown. In fig. 2, the target storage area 20 includes at least one node a and at least one takeover B, and the node a may be connected to another node a through one takeover B. The target storage area 20 stores at least one node a, at least one takeover B, node information corresponding to the at least one node a, and takeover information corresponding to the at least one takeover B.
Alternatively, the node information may include, but is not limited to, at least one of: inlet takeover information of the node, outlet takeover information of the node, geometry of the node, and physical characteristics of the node. The inlet takeover information of the node refers to the number information corresponding to the inlet takeover connected with the node; the outlet takeover information of the node refers to the number information corresponding to the outlet takeover connected with the node; the geometry of the node may include, but is not limited to, a circle or polygon, etc.; the physical characteristics of the node may include, but are not limited to, at least one of density, velocity, temperature, and pressure of the fluid flowing through the node.
The takeover information may include, but is not limited to, at least one of: the first end information of the takeover, the second end information of the takeover, the geometry of the takeover, and the physical characteristics of the takeover. When the first end information of the takeover refers to the number information of the connection node on the left side of the takeover, the second end information of the takeover refers to the number information of the connection node on the right side of the takeover, and when the first end information of the takeover refers to the number information of the connection node on the right side of the takeover, the second end information of the takeover refers to the number information of the connection node on the left side of the takeover, which is not particularly limited herein; the geometry of the nipple may include, but is not limited to, a cylinder or cube, etc.; the physical characteristics of the nipple may include, but are not limited to, at least one of a material, a length, a radius, a diameter, and a cross-sectional area of the nipple.
In some embodiments, the electronic device may read each node in the target storage area in turn, and use the node read for the first time as the first node; it is also possible to randomly read a node in the above-mentioned target storage area, and use this randomly read node as the first node, which is not particularly limited here. Then, the electronic device acquires the first node information corresponding to the first node again, so that the electronic device can be used later.
102. And acquiring a second node associated with the first node according to the first node information.
Wherein, the second node associated with the first node refers to a node directly connected with the first node through one takeover, or a node connected with the first node through a plurality of takeover and at least one node. Wherein the number of the second nodes is at least one.
Exemplary, as shown in fig. 3, is a schematic diagram of a second node associated with a first node provided by the present invention. In fig. 3, a first node a 1 Through a first connecting pipe B 1 Directly connected to the second node A 2 Wherein the second node A 2 Is 2 in number; as shown in fig. 4, a schematic diagram of a second node associated with a first node provided by the present invention. In fig. 4, a first node a 1 Through a first connecting pipe B 1 Connecting a third node A 3 Third node A 3 Through a second connecting pipe B 2 Connecting the second node A 2 Wherein the second node A 2 Is 1 in number, a third node A 3 The number of second connecting pipes B is not limited 2 Is not limited in number.
Optionally, the electronic device obtains a second node associated with the first node according to the first node information, including: the electronic equipment acquires second node information which is the same as second end information of the first takeover under the condition that the first node information is the same as the first end information of the first takeover; the electronic device determines a second node according to the second node information.
In some embodiments, the electronic device may directly or indirectly obtain the second node associated with the first node based on the second node information. That is, the electronic device may directly use the node corresponding to the second node information as the second node, or may use the node corresponding to the second node information as an intermediate node between the second nodes, which is not specifically limited herein.
In some embodiments, the electronic device obtains the second node associated with the first node based mainly on the ingress takeover information and/or the egress takeover information in the first node information corresponding to the first node.
Optionally, a stop valve is arranged inside the connecting pipe between the first node and the second node, and the number of the stop valves is not limited.
In some embodiments, when the first node is connected to the second node through at least one takeover, the electronic device needs to first determine whether a stop valve exists inside a certain takeover of the at least one takeover. If not, directly determining that the second node is associated with the first node; if the valve is in the open state or the closed state, judging whether the stop valve is in the open state or the closed state; if the shut-off valve is in an open state, it may be determined that the second node is associated with the first node. That is, in either case, fluid flowing through the first node may take over from the one to the second node, or fluid flowing through the second node may take over from the one to the first node, at which point the electronic device may determine that the second node is associated with the first node.
However, if the shut-off valve is in a closed state, it may be determined that the second node is not associated with the first node. That is, in this case, liquid flowing through the first node cannot flow to the second node through the one takeover, or liquid flowing through the second node cannot flow to the first node through the one takeover, at which point the electronic device may determine that the second node is not associated with the first node.
It should be noted that, in the process of acquiring the second node associated with the first node, the electronic device traverses each node in the target storage area, so as to ensure that the second node associated with the first node is not missed.
103. And under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover between the first node and the second node.
In some embodiments, after acquiring a second node associated with a first node, the electronic device needs to determine whether there are other nodes associated with the second node. If the first node does not exist and the first node and the second node are directly connected through a takeover, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover; or if the first node and the second node are not present and are connected through a plurality of takeoffs and at least one node, determining a first pipe network storage area corresponding to the first node according to the first node, the second node, the plurality of takeoffs and the at least one node. If so, the electronic device cannot directly determine a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover between the first node and the second node, but needs to acquire the nodes associated with the other nodes until no associated node exists in a certain node, that is, until no associated node exists in a target node, and then the electronic device determines the first pipe network storage area corresponding to the first node according to the first node, the target node, the takeover between the first node and the target node and the node between the first node and the target node.
If the number of second nodes associated with the different first nodes is different, the first pipe network storage areas respectively corresponding to the different first nodes determined by the electronic device are also different. If the number of second nodes associated with different first nodes is the same, there may be a case that the number of takeoffs between the different first nodes and the different number of second nodes is different, then the first pipe network storage areas determined by the electronic device and respectively corresponding to the different first nodes are also different, which is not specifically limited herein.
Optionally, the determining, by the electronic device, that there are no other nodes associated with the second node may include: the electronic device determines that the other node is not associated with the second node if the second node is detected to be connected with the other node through a third takeover and a stop valve in the third takeover is in a closed state.
In some embodiments, when the second node is connected to other nodes through the third connection pipe, the electronic device needs to first determine whether the stop valve exists inside the third connection pipe. If not, directly determining that the second node is associated with the other node; if the valve is in the open state or the closed state, judging whether the stop valve is in the open state or the closed state; if it is determined that the shut-off valve is in an open state, it may be determined that the second node is associated with the other node. If the shut-off valve is determined to be in the closed state, it is determined that the other node is not associated with the second node. In summary, the electronic device may determine that the second node has another node connected to the second node, but the other node has no association with the second node, that is, the electronic device may determine that there is no other node associated with the second node.
Because the current state of the stop valve in the takeover is changed in real time, the electronic equipment determines the first pipe network storage area corresponding to the first node based on the first node, the second node and the takeover between the first node and the second node.
In some embodiments, the first pipe network storage area may store not only the first node, the second node, and the takeover between the first node and the second node, but also the first node information corresponding to the first node, the second node information corresponding to the second node, and the takeover information corresponding to each takeover.
Optionally, if there are other nodes between the first node and the second node, the first pipe network storage area further stores the other nodes and other node information corresponding to the other nodes.
Optionally, if a stop valve is provided in the connection pipe between the first node and the second node, the first pipe network storage area further stores stop valve information corresponding to the stop valve.
The stop valve information may include, but is not limited to, at least one of manufacturer information of the stop valves, the number of the stop valves, and a current state of the stop valves.
Optionally, after step 103, the method may further include one of the following implementations:
implementation 1: the electronic device periodically acquires a first pipe network storage area corresponding to the first node.
In this way, the electronic device can update the different first pipe network storage areas in real time.
Implementation 2: the electronic device stops running in response to a stop operation by the user.
When the user does not need the electronic equipment to calculate the storage area, the stopping operation is input to the electronic equipment, and the electronic equipment responds to the stopping operation to stop operation.
Implementation 3: and stopping the movement of the electronic equipment after the preset time period.
The preset duration may be set before the electronic device leaves the factory, or may be customized by a user according to actual requirements, which is not specifically limited herein.
Whether in implementation 2 or implementation 3, the power consumption of the electronic device can be saved, thereby prolonging the service life of the electronic device.
In the embodiment of the invention, the pipe network region dividing process is simplified, and the electronic equipment can automatically acquire any node in the target storage region, namely the first node, the second node associated with the first node and the takeover between the first node and the second node, so that the first pipe network storage region corresponding to the first node can be effectively and accurately determined.
As shown in fig. 5, a flow chart of the pipe network area determining method provided by the present invention may include:
501. and acquiring first node information corresponding to the first node in the target storage area.
The target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node.
It should be noted that, step 501 is similar to step 101 shown in fig. 1, and is not described herein in detail.
502. And under the condition that the first node information is the same as the first end information of the first takeover, acquiring second node information which is the same as the second end information of the first takeover.
In some embodiments, the electronic device may obtain the second node associated with the first node based on the first node information corresponding to the first node.
If the inlet takeover information in the first node information is the same as the first end information of the first takeover, the first node is determined to be connected to the left side of the first takeover, and at this time, the electronic device can acquire the second end information of the first takeover and acquire the second node information which is the same as the second end information. Or if the exit takeover information in the first node information is the same as the first end information of the first takeover, determining that the first node is connected to the right side of the first takeover, and at this time, the electronic device may acquire the second end information of the first takeover and acquire the second node information which is the same as the second end information. That is, the electronic device can quickly and accurately acquire the second node information by using the first node information and the first takeover information.
503. And determining the node corresponding to the second node information as a second node.
In some embodiments, after the electronic device obtains the second node information, the node corresponding to the second node information may be determined as the second node.
When the first node is connected to the left side of the first takeover, the right side of the first takeover is connected with the second node; when the first node is connected to the right side of the first takeover, the left side of the first takeover is connected to the second node. In either case, the first node is connected to the second node through the first takeover, that is, the second node is associated with the first node.
Illustratively, at a first node A 1 Import takeover information and first takeover B 1 Is identical in first end information of (a) and a first takeover B 1 And second node a 2 In case the exit takeover information of (c) is the same, the electronic device may determine the first node a 1 Through a first connecting pipe B 1 With the second node A 2 The second node a can be determined by direct connection, i.e. 2 With the first node A 1 Is associated.
504. And determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the first takeover under the condition that no other node associated with the second node exists.
In some embodiments, after acquiring the second node associated with the first node, if it is determined that there are no other nodes associated with the second node and the first node is directly connected to the second node through a takeover, the electronic device may determine the first pipe network storage area corresponding to the first node according to the first node, the second node, and the one takeover.
Wherein the number of the takeover is not limited, the number of the second node is not limited, and the number of the takeover corresponds to the number of the second node.
Fig. 6 is a schematic structural diagram of a first pipe network storage area according to the present invention. In fig. 6, a first node a 1 Through a first connecting pipe B 1 Connecting the second node A 2 . Wherein the first connecting pipe B 1 Is 4 in number, the second node A 2 Is 4 in number.
In the embodiment of the invention, the pipe network region dividing process is simplified, and the electronic equipment can automatically acquire any node in the target storage region, namely the first node, the second node directly connected with the first node and the first takeover between the first node and the second node, so that the first pipe network storage region corresponding to the first node can be effectively and accurately determined.
As shown in fig. 7, a flow chart of the pipe network area determining method provided by the present invention may include:
701. and acquiring first node information corresponding to the first node in the target storage area.
The target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node.
It should be noted that, step 701 is similar to step 101 shown in fig. 1, and detailed description thereof is omitted herein.
702. Acquiring second node information identical to second end information of the first takeover under the condition that the first node information is identical to the first end information of the first takeover;
in some embodiments, the electronic device may obtain the second node associated with the first node based on the first node information corresponding to the first node. However, in many cases, the first node is not directly connected to the second node, but the first node needs to be connected to the second node through a plurality of takeover and at least one node. Therefore, the electronic device needs to first acquire the node between the first node and the second node and take over.
After determining that the first node is connected to the first takeover, the electronic device may determine node information connected to the other end of the first takeover for subsequent determination of a second node associated with the first node.
703. And determining the node corresponding to the second node information as a third node, and acquiring the second node connected with the third node through a second take-over.
In some embodiments, after acquiring the second node information, the electronic device may use a node corresponding to the second node information as an intermediate node connected between the second nodes, and acquire, based on the intermediate node, the second node associated with the first node, that is, the second node is indirectly associated with the first node.
In some embodiments, after the electronic device obtains the second node information, the node corresponding to the second node information may be determined as a third node, where the third node is the intermediate node.
When the first node is connected to the left side of the first takeover, the right side of the first takeover is connected with a third node; when the first node is connected to the right side of the first takeover, the left side of the first takeover is connected to the third node. In either case, the electronic device needs to determine whether the third node is connected to the second takeover, if not, it indicates that there is no node associated with the third node, and if so, it needs to acquire the second node connected to the second takeover.
Illustratively, at a first node A 1 Import takeover information and first takeover B 1 Is identical in first end information of (a) and a first takeover B 1 And a third node a 3 In case of identical exit takeover information, the first node a may be determined 1 Through a first connecting pipe B 1 And a third node A 3 Connected, then at the third node A 3 And (B) the second takeover B 2 Is identical in first end information and second takeover B 2 And second node a 2 In case of identical import takeover information, a third node a may be determined 2 Through a second connecting pipe B 2 With the second node A 2 And (5) connection. Thus, the first node A 1 Through a first connecting pipe B 1 Second connecting pipe B 2 Third node A 3 With the second node A 2 Connection, i.e. first node A 1 With the second node A 2 Is indirectly associated.
In some embodiments, in the process of acquiring the second node connected to the third node through the second takeover, the third node may be connected to the plurality of second nodes through the plurality of second takeover, where the electronic device determines the second node based on the first second takeover, and then determines the second node corresponding to each second takeover based on the second takeover, the third second takeover, and the like in turn, so that the electronic device may traverse the entire target storage area to acquire the second node associated with the first node, and other second nodes associated with the first node may not be missed.
704. And under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node, the third node, the first takeover and the second takeover.
In some embodiments, after acquiring a second node associated with a first node, the electronic device needs to determine whether there are other nodes associated with the second node. If there is no first node and the first node is connected to the second node through a plurality of takeoffs and at least one node, then a first pipe network storage area corresponding to the first node is determined based on the first node, the second node, the plurality of takeoffs and the at least one node.
Fig. 8 is a schematic structural diagram of a first pipe network storage area according to the present invention. In fig. 8, a first node a 1 Through a first connecting pipe B 1 And a third node A 3 Connection, third node A 3 Then through the second connecting pipe B 2 With the second node A 2 And (5) connection. Wherein the first connecting pipe B 1 The number of second connecting pipes B is 2 2 Is 3, the third node A 3 Is 2 in number, the second node A 2 Is 3.
It should be noted that, if the first pipe network storage area shown in fig. 3 and the first pipe network storage area shown in fig. 2 have the same node, the first pipe network storage area shown in fig. 3 and the first pipe network storage area shown in fig. 2 are combined into one storage area, and the storage area is a new first pipe network storage area.
Exemplary, as shown in fig. 9, a schematic structural diagram of a first pipe network storage area provided by the present invention is shown. In fig. 9, a first node a 1 Through a first connecting pipe B 1 With the second node A 2 Connection, first node A 1 Also through the first connecting pipe B 1 And a third node A 3 Connection, third node A 3 Then through the second connecting pipe B 2 With the second node A 2 And (5) connection. Wherein the first connecting pipe B 1 The number of second connecting pipes B is 2 2 Is 1 in number, a third node A 3 Is 1 in number, the second node A 2 Is 2.
In the embodiment of the invention, the pipe network region dividing process is simplified, and the electronic equipment can automatically acquire any node in the target storage region, namely the first node, the second node indirectly connected with the first node, and the takeover and the node between the first node and the second node, so that the first pipe network storage region corresponding to the first node can be effectively and accurately determined.
As shown in fig. 10, a flow chart of the pipe network area determining method provided by the present invention may include:
1001. and acquiring first node information corresponding to the first node in the target storage area.
The target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node.
1002. And acquiring a second node associated with the first node according to the first node information.
1003. And under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover between the first node and the second node.
It should be noted that steps 1001-1003 are similar to steps 101-103 shown in fig. 1, and detailed description thereof is omitted herein.
1004. And marking the corresponding node in the target storage area according to the node in the first pipe network storage area to obtain a marked node.
In some embodiments, the electronic device may determine the first node acquired in the target storage area, the second node associated with the first node, and the takeover between the first node and the second node as the first pipe network storage area corresponding to the first node, that is, the electronic device divides a new storage area, that is, the first pipe network storage area corresponding to the first node, based on the first node in the target storage area. Then, the electronic device finds corresponding nodes, such as a first node and a second node, in the target storage area according to the nodes in the first pipe network storage area, and marks the corresponding nodes to obtain marked nodes.
Optionally, after step 1004, the method may further include: the electronic device may delete the corresponding node in the target storage area according to the node in the first pipe network storage area.
Therefore, the nodes stored in the first pipe network storage area can be avoided and further stored in the target storage area, and then the nodes stored in the first pipe network storage area can be effectively prevented from being reused when the electronic equipment divides the target storage area into new pipe network storage areas again.
1005. And taking nodes except the marked nodes in the target storage area as unmarked nodes, and acquiring fourth node information corresponding to the fourth node.
The fourth node is any node in the unmarked nodes.
In some embodiments, the electronic device may first obtain nodes in the target storage area other than the marked nodes and determine those nodes as unmarked nodes. Then, the electronic device acquires any node, namely a fourth node, from the unmarked nodes, and acquires fourth node information corresponding to the fourth node, so that the electronic device subsequently prompts the target storage area to continue to divide a new storage area.
In some embodiments, the electronic device may read each unlabeled node in turn, and take the unlabeled node read for the first time as the fourth node; alternatively, one of the unlabeled nodes may be read randomly, and the unlabeled node thus read randomly may be used as the fourth node, which is not particularly limited herein. And then, the electronic equipment acquires fourth node information corresponding to the fourth node so as to facilitate the subsequent use of the electronic equipment.
Optionally, after the electronic device has deleted the corresponding node in the target storage area according to the node in the first pipe network storage area, the method may further include: the electronic device may use the node that is not deleted in the target storage area directly as an unmarked node. That is, the electronic device may take the remaining nodes in the target storage area directly as unlabeled nodes.
1006. And acquiring a fifth node associated with the fourth node according to the fourth node information.
Wherein the fifth node is a node in the untagged nodes, and the number of the fifth node is at least one. The fifth node associated with the fourth node refers to a node directly connected with the fourth node through one takeover, or a node connected with the fourth node through a plurality of takeover and at least one node.
It should be noted that, the explanation of step 1006 is similar to that of step 1002, and detailed description thereof is omitted here.
1007. And in the case that no other unmarked nodes associated with the fifth node exist, determining a second pipe network storage area corresponding to the fourth node according to the fourth node, the fifth node and takeover between the fourth node and the fifth node.
In some embodiments, after acquiring the fifth node associated with the fourth node, the electronic device needs to determine whether there are other unlabeled nodes associated with the fifth node. If the fourth node does not exist and the fourth node and the fifth node are directly connected through a takeover, determining a second pipe network storage area corresponding to the fourth node according to the fourth node, the fifth node and the takeover; or if the fourth node is not present and the fourth node is connected with the fifth node through a plurality of takeoffs and at least one node, determining a second pipe network storage area corresponding to the fourth node according to the fourth node, the fifth node, the plurality of takeoffs and the at least one node. If so, acquiring the nodes associated with the other nodes until a node does not have an associated node, namely, until a target node does not have an associated node, and then, the electronic device determines a second pipe network storage area corresponding to the fourth node according to the fourth node, the target node, takeover between the fourth node and the target node and the node between the fourth node and the target node.
It can be appreciated that, since the unmarked node of the target storage area is a node other than the node of the first pipe network storage area after the corresponding marking of the target storage area, and the second pipe network storage area corresponding to the fourth node is determined based on the unmarked node, the second pipe network storage area and the first pipe network storage area are relatively independent storage areas.
In some embodiments, if the number of fifth nodes associated with the different fourth nodes is different, then the second pipe network storage areas respectively corresponding to the different fourth nodes as determined by the electronic device are also different. If the number of fifth nodes associated with different fourth nodes is the same, there may be a case that the number of takeoffs between the different fourth nodes and the different number of fifth nodes is different, and the second pipe network storage areas determined by the electronic device and respectively corresponding to the different fourth nodes are also different, which is not specifically limited herein.
Optionally, the electronic device determining that there are no other unlabeled nodes associated with the fifth node may include: the electronic device determines that the other unmarked node is not associated with the fifth node if it is detected that the fifth node is connected with the other unmarked node through a fourth takeover and a stop valve in the fourth takeover is in a closed state.
In some embodiments, when the fifth node is connected to other unmarked nodes through the fourth takeover, the electronic device needs to first determine whether a stop valve exists inside the fourth takeover. If not, directly determining that the other unlabeled nodes are associated with the fifth node; if the valve is in the open state or the closed state, judging whether the stop valve is in the open state or the closed state; if it is determined that the shut-off valve is in an open state, it may be determined that the other unlabeled node is associated with the fifth node. If it is determined that the shut-off valve is in the closed state, the electronic device may determine that there are no other unlabeled nodes associated with the fifth node.
Because the current state of the stop valve in the takeover is changed in real time, the electronic equipment determines the second pipe network storage area corresponding to the fourth node based on the fourth node, the fifth node and the takeover between the fourth node and the fifth node.
In some embodiments, the second pipe network storage area stores not only the fourth node, the fifth node, the takeover between the fourth node and the fifth node, but also fourth node information corresponding to the fourth node, fifth node information corresponding to the fifth node, and takeover information corresponding to each takeover.
Optionally, if there are other nodes between the fourth node and the fifth node, the second pipe network storage area further stores the other nodes and other node information corresponding to the other nodes.
Optionally, if a stop valve is disposed in the connection pipe between the fourth node and the fifth node, the second pipe network storage area further stores stop valve information corresponding to the stop valve.
Fig. 11 is a schematic view of a scenario of the pipe network area determining method provided by the present invention. In fig. 11, the target storage area 20 includes at least one node a and at least one takeover B, and the node a may be connected to another node a through one takeover B. The electronic device reads a node randomly and takes the node as a first node A 1 The method comprises the steps of carrying out a first treatment on the surface of the Next, the electronic device is based on the first node a 1 Determining with the first node A 1 And a corresponding first pipe network storage area. Then, the electronic device marks the corresponding node in the target storage area according to the node in the first pipe network storage area to obtain a marked node, randomly reads one node from the nodes except the marked node, and takes the node as a fourth node A 5 The method comprises the steps of carrying out a first treatment on the surface of the Next, the electronic device is based on the fourth node a 5 Determining and fourth node A 5 And a corresponding second pipe network storage area.
In the embodiment of the invention, the pipe network region dividing process is simplified, the electronic equipment can automatically acquire the pipe network storage region corresponding to any node in the target storage region, and each storage region is mutually independent.
It should be noted that, the steps 1004-1007 shown in fig. 10 may be combined with the step 504 shown in fig. 5 and the step 704 shown in fig. 7, respectively, to form a new embodiment, and the new embodiment is also within the scope of protection of the present invention, which is not described herein in detail.
The pipe network area determining device provided by the invention is described below, and the pipe network area determining device described below and the pipe network area determining method described above can be referred to correspondingly.
As shown in fig. 12, which is a schematic structural diagram of the pipe network area determining device provided by the present invention, the pipe network area determining device may include:
the node obtaining module 1201 is configured to obtain, in a target storage area, first node information corresponding to a first node, where the target storage area includes at least one node and at least one takeover, and the first node is any node in the at least one node; according to the first node information, a second node associated with the first node is acquired;
A storage determining module 1202, configured to determine, when it is determined that there is no other node associated with the second node, a first pipe network storage corresponding to the first node according to the first node, the second node, and takeover between the first node and the second node.
Optionally, the node obtaining module 1201 is specifically configured to obtain, when the first node information is the same as the first end information of the first takeover, second node information that is the same as the second end information of the first takeover; and determining a second node according to the second node information.
Optionally, the node obtaining module 1201 is specifically configured to determine a node corresponding to the second node information as a second node; or determining the node corresponding to the second node information as a third node, and acquiring a second node connected with the third node through a second take-over.
Optionally, the storage area determining module 1202 is specifically configured to determine that the other node is not associated with the second node when it is detected that the second node is connected to the other node through a third takeover, and a stop valve in the third takeover is in a closed state.
Optionally, a node marking module 1203 may also be included,
The node marking module 1203 is configured to mark a corresponding node in the target storage area according to the node in the first pipe network storage area, so as to obtain a marked node; and taking nodes except the marked node in the target storage area as unmarked nodes;
the node obtaining module 1201 is further configured to obtain fourth node information corresponding to a fourth node, where the fourth node is any node in the untagged nodes; according to the fourth node information, a fifth node associated with the fourth node is obtained, wherein the fifth node is a node in the unmarked nodes;
the storage determining module 1202 is further configured to determine, if it is determined that there are no other unmarked nodes associated with the fourth node, a second pipe network storage corresponding to the fourth node according to the fourth node, the fifth node, and takeovers between the fourth node and the fifth node.
Optionally, the storage determining module 1202 is further configured to delete a corresponding node in the target storage according to a node in the first pipe network storage.
Fig. 13 illustrates a physical structure diagram of an electronic device, as shown in fig. 13, which may include: processor 1310, communication interface (Communications Interface) 1320, memory 1330 and communication bus 1340, wherein processor 1310, communication interface 1320, memory 1330 communicate with each other via communication bus 1340. Processor 1310 may invoke logic instructions in memory 1330 to perform a pipe network region determination method, the method comprising: acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring a second node associated with the first node according to the first node information; and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node.
Further, the logic instructions in the memory 1330 can be implemented in the form of software functional units and can be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can perform a pipe network area determining method provided by the above methods, and the method includes: acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring a second node associated with the first node according to the first node information; and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the pipe network region determining method provided by the above methods, the method comprising: acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring a second node associated with the first node according to the first node information; and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for determining a pipe network region, comprising:
acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node;
acquiring second node information identical to second end information of a first takeover under the condition that the first node information is identical to the first end information of the first takeover;
determining a second node according to the second node information;
and under the condition that no other node associated with the second node exists, determining a first pipe network storage area corresponding to the first node according to the first node, the second node and takeover among the first node and the second node.
2. The method for determining a pipe network area according to claim 1, wherein determining the second node according to the second node information comprises:
determining a node corresponding to the second node information as a second node; or alternatively, the process may be performed,
and determining the node corresponding to the second node information as a third node, and acquiring a second node connected with the third node through a second connecting pipe.
3. The pipe network region determination method according to any one of claims 1 or 2, wherein the determining that no other node associated with the second node exists comprises:
and in the case that the second node is detected to be connected with other nodes through a third takeover and a stop valve in the third takeover is in a closed state, determining that the other nodes are not associated with the second node.
4. A pipe network area determination method according to claim 3, further comprising:
marking corresponding nodes in the target storage area according to the nodes in the first pipe network storage area to obtain marked nodes;
taking nodes except the marked nodes in the target storage area as unmarked nodes, and acquiring fourth node information corresponding to a fourth node, wherein the fourth node is any node in the unmarked nodes;
according to the fourth node information, a fifth node associated with the fourth node is obtained, wherein the fifth node is a node in the unmarked nodes;
and if no other unmarked nodes associated with the fourth node exist, determining a second pipe network storage area corresponding to the fourth node according to the fourth node, the fifth node and takeover among the fourth node and the fifth node.
5. The method of pipe network area determination according to claim 4, further comprising:
and deleting the corresponding node in the target storage area according to the node in the first pipe network storage area.
6. A pipe network area determining device, comprising:
the node acquisition module is used for acquiring first node information corresponding to a first node in a target storage area, wherein the target storage area comprises at least one node and at least one takeover, and the first node is any node in the at least one node; acquiring second node information identical to second end information of the first takeover under the condition that the first node information is identical to first end information of the first takeover; determining a second node according to the second node information;
and the storage area determining module is used for determining a first pipe network storage area corresponding to the first node according to the first node, the second node and the takeover among the first node and the second node under the condition that no other node associated with the second node exists.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the pipe network region determination method of any one of claims 1 to 5 when the program is executed by the processor.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the pipe network region determination method according to any one of claims 1 to 5.
CN202210523825.6A 2022-05-13 2022-05-13 Pipe network area determining method and device, electronic equipment and storage medium Active CN115134209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210523825.6A CN115134209B (en) 2022-05-13 2022-05-13 Pipe network area determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210523825.6A CN115134209B (en) 2022-05-13 2022-05-13 Pipe network area determining method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115134209A CN115134209A (en) 2022-09-30
CN115134209B true CN115134209B (en) 2023-10-27

Family

ID=83376928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210523825.6A Active CN115134209B (en) 2022-05-13 2022-05-13 Pipe network area determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115134209B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001297120A (en) * 2000-04-13 2001-10-26 Nippon Suido Sekkeisha:Kk Pipeline net simulation device and computer readable recording medium
JP2013054757A (en) * 2012-10-31 2013-03-21 Taiki Survey Corp Method for generating data for pipe network analysis, device for generating data for pipe network analysis, and program
CN108843977A (en) * 2018-06-28 2018-11-20 武汉新烽光电股份有限公司 The real-time leakage loss analysis method of water supply network, equipment, system and storage medium
CN109214549A (en) * 2018-08-01 2019-01-15 武汉众智鸿图科技有限公司 A kind of water supply network auxiliary DMA partition method and system based on graph theory
CN110750601A (en) * 2019-10-16 2020-02-04 北京网众共创科技有限公司 Interaction method and device based on connection path, storage medium and electronic device
CN111353202A (en) * 2020-05-13 2020-06-30 南京邮电大学 Partitioning method for underground pipe network general investigation in municipal administration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659430B (en) * 2017-08-14 2019-03-19 北京三快在线科技有限公司 A kind of Node Processing Method, device, electronic equipment and computer storage medium
US11133993B2 (en) * 2019-02-28 2021-09-28 At&T Intellectual Property I, L.P. Augmented/mixed reality virtual venue pipeline optimization
CN112291751B (en) * 2019-04-02 2022-01-14 华为技术有限公司 Data processing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001297120A (en) * 2000-04-13 2001-10-26 Nippon Suido Sekkeisha:Kk Pipeline net simulation device and computer readable recording medium
JP2013054757A (en) * 2012-10-31 2013-03-21 Taiki Survey Corp Method for generating data for pipe network analysis, device for generating data for pipe network analysis, and program
CN108843977A (en) * 2018-06-28 2018-11-20 武汉新烽光电股份有限公司 The real-time leakage loss analysis method of water supply network, equipment, system and storage medium
CN109214549A (en) * 2018-08-01 2019-01-15 武汉众智鸿图科技有限公司 A kind of water supply network auxiliary DMA partition method and system based on graph theory
CN110750601A (en) * 2019-10-16 2020-02-04 北京网众共创科技有限公司 Interaction method and device based on connection path, storage medium and electronic device
CN111353202A (en) * 2020-05-13 2020-06-30 南京邮电大学 Partitioning method for underground pipe network general investigation in municipal administration

Also Published As

Publication number Publication date
CN115134209A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
CN104461693B (en) Virtual machine update method and system under a kind of desktop cloud computing environment
CN105809055B (en) Access control method, device and relevant device
CN108833191B (en) Gateway equipment configuration method and device
CN109978290A (en) A kind of operation flow backspacing processing method of extensive makeup, flow engine and operation system
CN109409096A (en) Kernel loophole restorative procedure, device, server and system
WO2017063424A1 (en) Private information leakage prevention method, device and terminal
CN111176888B (en) Disaster recovery method, device and system for cloud storage
CN106598746B (en) Method and device for realizing global lock in distributed system
CN104536841B (en) A kind of android system Data subregions self-repair method and system
CN115134209B (en) Pipe network area determining method and device, electronic equipment and storage medium
CN110275793B (en) Detection method and equipment for MongoDB data fragment cluster
CN105426544B (en) Method and device for monitoring database state
CN104866951B (en) Business information update method and system in operation flow
CN106293622A (en) A kind of self-healing over-the-air upgrade method of power-off and device
CN107231624A (en) A kind of method, storage device and the mobile terminal of retention data information
CN109587218B (en) Cluster election method and device
CN104504348B (en) A kind of data guard method based on high availability storage system
CN106569741A (en) Disk space expansion method and apparatus
US20040008111A1 (en) Alarm recovery method and system using two notification messages
CN107517452A (en) A kind of method, equipment and computer-readable storage medium for being used to manage short message
CN114372282A (en) File access control method, file access control device, electronic device, medium, and program product
CN109547439B (en) Processing method and device for service node access network
CN107046600A (en) A kind of determination method and device of android system standard time
CN111258501B (en) Control method, device and equipment for deleting logical volume
CN110020288A (en) A kind of page furbishing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant