Topology graph construction method and device, equipment and readable storage medium
Patent Information
- Application Number
- CN202311579208.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2043-11-23
AI Technical Summary
[0004]有鉴于此,本申请提供了一种拓扑结构图构建方法、装置、设备及可读存储介质,用于解决现有技术中拓扑结构图绘制方法容易出错,适用范围较窄的缺点
[0047]从上述的技术方案可以看出,本申请提供的拓扑结构图构建方法,该方法可以获取包含目标管网中不同管网设备间连接关系的结构特征;基于所述结构特征,构建每个管网设备对应的虚拟设备,并确定每个虚拟设备的类别;基于此,本申请可以利用包含目标管网中不同管网设备间连接关系的结构特征,构建虚拟设备与目标管网中的各个管网设备对应,并确定构建的每个虚拟设备的类别,对各个虚拟设备进行分类;基于所述结构特征,在存在连接关系的不同类别虚拟设备间构建管网节点;基于所述结构特征,确定每个管网节点所对应的多个目标设备,每个目标设备与对应管网节点存在连接关系;构建管路连通每一管网节点对应的每个目标设备,形成所述目标管网对应的拓扑结构图在此基础上,本申请可以根据分类结果,在类别不同的虚拟设备间构建管网节点;通过管网节点,可以区分开类别不同的虚拟设备;同时,在区分类别不同的虚拟设备后,本申请可以将连接各个虚拟设备转换为各个虚拟设备与各个管网节点连接,可以通过逐一构建管网节点与对应的目标设备间的连接,实现构建各个虚拟设备间的连接关系,得到拓扑结构图,从而,化繁为简,便于各个虚拟设备间连接关系的清晰化。可见,本申请提供的拓扑结构图构建方法,能够化繁为简,并基于实际的结构特征进行拓扑结构图的绘制,能够进一步提高本申请的适用范围及准确度。同时,本申请在绘制拓扑结构图的过程中,能够化繁为简,便于智能控制管网的快速部署,且使用门槛较低。
Smart Images

Figure CN117556574B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of pipeline technology, and more specifically, to a method, apparatus, device, and readable storage medium for constructing a topology diagram. Background Technology
[0002] A pipeline network is a system of pipes, valves, joints, and ancillary facilities used to transport liquids, gases, or other substances from one place to another. Pipelines are widely used in infrastructure sectors such as urban gas, water supply, and heating, and also in industrial sectors such as transporting oil and natural gas. As pipeline network layouts become increasingly complex, the connections between various devices within the network become more intricate. Therefore, to accurately and intuitively identify the connections between these devices, existing technologies have introduced topology diagrams. Constructing and identifying pipeline network topology diagrams has become a prerequisite for intelligent pipeline network control.
[0003] Currently, when constructing topology diagrams, existing technologies connect similar devices with connectivity relationships in parallel and connect different types of devices with connectivity relationships in series, directly using the resulting unit module as the topology diagram. However, the topology diagrams constructed by the above methods are prone to errors, as not all devices of the same type with connectivity relationships are connected in parallel, limiting their applicability. Summary of the Invention
[0004] In view of this, this application provides a method, apparatus, device and readable storage medium for constructing a topology diagram, which solves the shortcomings of existing topology diagram drawing methods that are prone to errors and have a narrow scope of application.
[0005] To achieve the above objectives, the following solution is proposed:
[0006] A method for constructing a topology graph, comprising:
[0007] Obtain structural features that include the connection relationships between different pipeline equipment in the target pipeline network;
[0008] Based on the aforementioned structural features, a virtual device corresponding to each pipeline network device is constructed, and the category of each virtual device is determined.
[0009] Based on the aforementioned structural features, network nodes are constructed among different categories of virtual devices that have interconnections.
[0010] Based on the aforementioned structural features, multiple target devices are identified for each pipeline node, and each target device has a connection relationship with its corresponding pipeline node.
[0011] Construct pipelines to connect each target device corresponding to each pipeline node, forming a topology diagram corresponding to the target pipeline network.
[0012] Optionally, based on the structural features, constructing network nodes among different categories of virtual devices with interconnected relationships includes:
[0013] Based on the structural features, the main pipe positions between different categories of virtual devices that have a connection relationship are determined. Each main pipe position is used to represent the connection relationship between the corresponding different categories of virtual devices and the series or parallel relationship between the corresponding virtual devices of the same category.
[0014] Pipeline nodes are constructed at the location of the main pipe.
[0015] Optionally, determining the multiple target devices corresponding to each pipeline node based on the structural features includes:
[0016] For each pipeline node, based on the structural characteristics, multiple equipment types corresponding to the pipeline node are determined, and the number of equipment for each equipment type and the number of equipment corresponding to the pipeline node are determined.
[0017] Based on the various equipment types and the number of devices for each equipment type corresponding to each pipeline node, the target devices corresponding to each pipeline node are determined.
[0018] Optionally, obtaining the structural features containing the connection relationships between different pipeline devices in the target pipeline network includes:
[0019] Obtain structural features that include the connection relationships between different pipeline network devices under the target operating mode of the target pipeline network.
[0020] Optional, also includes:
[0021] Obtain the latest structural features of the target pipeline network and use the latest structural features as the target features;
[0022] Determine whether the topology diagram is consistent with the target feature;
[0023] If not, the topology graph is updated based on the target features.
[0024] Optionally, determining whether the topology diagram matches the target feature includes:
[0025] Identify the virtual device categories corresponding to each network node in the topology diagram, and the virtual device values corresponding to each network node for each virtual device category.
[0026] Based on each virtual device category of each network node and the virtual device value of each virtual device category, the topological relationship between each virtual device is determined;
[0027] Determine whether the topological relationship between each virtual device is different from the connection relationship between each network device included in the target feature.
[0028] Optionally, updating the topology graph based on the target features includes:
[0029] Determine the feature information that distinguishes the target feature from the topology graph;
[0030] Based on the feature information and the topology diagram, determine whether it is necessary to add a first virtual device;
[0031] If a first virtual device needs to be added, then the first virtual device is constructed in the topology diagram;
[0032] If it is not necessary to add the first virtual device or construct the first virtual device, then based on the feature information, determine whether there is a first pipeline node that needs to be deleted in the latest topology diagram;
[0033] If a first pipeline node exists, then delete the first pipeline node in the latest topology diagram;
[0034] If the first pipeline node does not exist or is deleted, then based on the aforementioned feature information, it is determined whether it is necessary to add more than one second pipeline node.
[0035] If it is necessary to add a second pipeline node, add each second pipeline node to the latest topology diagram and determine all the second virtual devices corresponding to each second pipeline node; construct pipelines to connect each second virtual device corresponding to each second pipeline node, and complete the update of the topology diagram;
[0036] If there is no need to add a second pipeline node, then the latest topology diagram will be used as the updated topology diagram.
[0037] A topology graph construction apparatus, comprising:
[0038] The structural feature acquisition module is used to acquire structural features that include the connection relationships between different pipeline equipment in the target pipeline network.
[0039] The category determination module is used to construct virtual devices corresponding to each pipeline network device based on the structural features, and to determine the category of each virtual device;
[0040] The pipeline node construction module is used to construct pipeline nodes among different types of virtual devices that have a connection relationship, based on the structural features.
[0041] The target device determination module is used to determine multiple target devices corresponding to each pipeline node based on the structural features, and each target device has a connection relationship with the corresponding pipeline node;
[0042] The pipeline construction module is used to construct pipelines that connect each target device corresponding to each pipeline network node, forming a topology diagram corresponding to the target pipeline network.
[0043] A topology graph construction device, including a memory and a processor;
[0044] The memory is used to store programs;
[0045] The processor is used to execute the program to implement the various steps of the above-described topology graph construction method.
[0046] A readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the various steps of the above-described topology graph construction method.
[0047] As can be seen from the above technical solutions, the topology diagram construction method provided in this application can obtain structural features containing the connection relationships between different pipeline devices in the target pipeline network; based on the structural features, construct virtual devices corresponding to each pipeline device and determine the category of each virtual device; based on this, this application can utilize the structural features containing the connection relationships between different pipeline devices in the target pipeline network to construct virtual devices corresponding to each pipeline device in the target pipeline network, determine the category of each constructed virtual device, and classify each virtual device; based on the structural features, construct pipeline nodes among virtual devices of different categories with connection relationships; based on the structural features, determine multiple target devices corresponding to each pipeline node. Each target device is connected to a corresponding pipeline node. Pipelines are constructed to connect each target device corresponding to each pipeline node, forming a topology diagram of the target pipeline network. Based on this, this application can construct pipeline nodes between virtual devices of different categories according to the classification results. Pipeline nodes can distinguish virtual devices of different categories. Furthermore, after distinguishing different categories of virtual devices, this application can convert the connection between each virtual device into a connection between each virtual device and each pipeline node. By constructing connections between each pipeline node and its corresponding target device one by one, the connection relationship between each virtual device can be constructed, resulting in a topology diagram. This simplifies the process and clarifies the connection relationship between each virtual device. Therefore, the topology diagram construction method provided by this application simplifies the process and draws the topology diagram based on actual structural characteristics, further improving the applicability and accuracy of this application. Simultaneously, this application simplifies the topology diagram drawing process, facilitating the rapid deployment of intelligent control pipeline networks, and has a low barrier to entry. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0049] Figure 1 This is a flowchart of a topology graph construction method disclosed in an embodiment of this application;
[0050] Figure 2 This is a topology diagram illustrating an embodiment of this application;
[0051] Figure 3 This is a structural block diagram of a topology diagram construction device disclosed in an embodiment of this application;
[0052] Figure 4 This is a hardware structure block diagram of a topology diagram construction device disclosed in an embodiment of this application. Detailed Implementation
[0053] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0054] This application can be used in a wide variety of general-purpose or special-purpose computing environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor devices, distributed computing environments including any of the above devices, etc.
[0055] Next, combine Figure 1 The method for constructing the topology diagram in this application is described in detail, including the following steps:
[0056] Step S1: Obtain the structural features containing the connection relationships between different pipeline devices in the target pipeline network.
[0057] Specifically, the target pipeline network can exist in multiple working modes, and the structural characteristics of any working mode can be obtained.
[0058] Among them, structural features can reflect the connection relationship between different pipeline network devices under the corresponding working mode.
[0059] The connection relationship between the same two pipeline network devices can be different under different working modes.
[0060] Step S2: Based on the structural features, construct virtual devices corresponding to each pipeline network device and determine the category of each virtual device.
[0061] Specifically, it is possible to identify all pipeline network devices present in the structural features and construct virtual devices corresponding to each pipeline network device.
[0062] The category corresponding to each virtual device can be determined, and the category of each virtual device is consistent with the category of the corresponding pipeline device.
[0063] Each virtual device category can be used to represent the device name of the corresponding pipeline equipment, such as chiller and chilled water pump; it can also be used to represent the function of the corresponding pipeline equipment, such as water storage and water transmission.
[0064] Step S3: Based on the structural features, construct network nodes among different categories of virtual devices that have connection relationships.
[0065] Specifically, based on structural characteristics, different categories of virtual devices with interconnected relationships can be identified, and network nodes can be constructed among these interconnected virtual devices.
[0066] Structural features can be implemented in various ways to identify different categories of virtual devices with interconnected relationships, and network nodes can be constructed among these interconnected virtual devices.
[0067] For example, each virtual device can be identified as the virtual device subject in turn;
[0068] Based on structural characteristics, multiple virtual devices that have a connection relationship with the virtual device entity can be identified as associated devices.
[0069] Determine the category of each associated device;
[0070] Determine whether there are any parallel virtual devices of the same category among the associated devices.
[0071] If so, based on structural characteristics, connect parallel associated devices of the same category to form a module; determine whether there are associated devices that have a parallel relationship with the virtual device body; if so, connect the associated devices that have a parallel relationship with the virtual device body to form a main module; if not, directly use the virtual device body as the main module; construct network nodes between the main module and each module.
[0072] If there are still associated devices that do not constitute a module among the associated devices, or if there are no parallel virtual devices of the same category among the associated devices, then a pipeline node is constructed between the virtual device and each associated device.
[0073] For example, the location of the main pipe can be determined, and network nodes can be constructed based on the location of the main pipe.
[0074] Virtual devices with interconnected relationships indicate that any two corresponding network devices are directly connected via pipelines, without needing to pass through other network devices in between. If two virtual devices are interconnected, they are directly connected to each other without needing to pass through other virtual devices in between.
[0075] The connection relationship can be a series relationship or a parallel relationship.
[0076] Step S4: Based on the structural features, determine multiple target devices corresponding to each pipeline node, and each target device has a connection relationship with the corresponding pipeline node.
[0077] Specifically, target devices that are connected to pipeline nodes can be identified based on structural characteristics.
[0078] Step S5: Construct pipelines to connect each target device corresponding to each pipeline node, forming a topology diagram corresponding to the target pipeline network.
[0079] Specifically, multiple pipelines can be constructed to connect each pipeline node with its corresponding target device, forming a topology diagram.
[0080] In the topology diagram, each target device corresponding to a network node is connected to the corresponding network node through a corresponding pipeline. Any two target devices connected to the same network node can be connected in parallel or in series, such as... Figure 2 As shown.
[0081] Figure 2 In this context, nodes represent pipeline nodes, and secondary pumps, terminals, chillers, and chilled water pumps all belong to the category of virtual devices.
[0082] See Figure 2 It can be observed that in the topology diagram, one or more network nodes can exist between two identical types of virtual devices. Different virtual devices with connection relationships are connected through network nodes. Different network nodes can reflect the connection relationships between different virtual devices. Each network node can correspond to one or more virtual devices of the same type.
[0083] The topology diagram can reflect the correspondence and backup relationships between the various network devices corresponding to each virtual device.
[0084] As can be seen from the above technical solutions, the topology diagram construction method provided in this application can obtain structural features containing the connection relationships between different pipeline devices in the target pipeline network; based on the structural features, construct virtual devices corresponding to each pipeline device and determine the category of each virtual device; based on this, this application can utilize the structural features containing the connection relationships between different pipeline devices in the target pipeline network to construct virtual devices corresponding to each pipeline device in the target pipeline network, determine the category of each constructed virtual device, and classify each virtual device; based on the structural features, construct pipeline nodes among virtual devices of different categories with connection relationships; based on the structural features, determine multiple target devices corresponding to each pipeline node. Each target device is connected to a corresponding pipeline node. Pipelines are constructed to connect each target device corresponding to each pipeline node, forming a topology diagram of the target pipeline network. Based on this, this application can construct pipeline nodes between virtual devices of different categories according to the classification results. Pipeline nodes can distinguish virtual devices of different categories. Furthermore, after distinguishing different categories of virtual devices, this application can convert the connection between each virtual device into a connection between each virtual device and each pipeline node. By constructing connections between each pipeline node and its corresponding target device one by one, the connection relationship between each virtual device can be constructed, resulting in a topology diagram. This simplifies the process and clarifies the connection relationship between each virtual device. Therefore, the topology diagram construction method provided by this application simplifies the process and draws the topology diagram based on actual structural characteristics, further improving the applicability and accuracy of this application. Simultaneously, this application simplifies the topology diagram drawing process, facilitating the rapid deployment of intelligent control pipeline networks, and has a low barrier to entry.
[0085] In some embodiments of this application, considering that the topology diagram can be maintained in real time after it is constructed, a maintenance process for the topology diagram can be added. The maintenance process for the topology diagram will be described in detail below, with the following steps:
[0086] S6. Obtain the latest structural features of the target pipeline network and use the latest structural features as the target features.
[0087] Specifically, the latest structural features of the target pipeline network can be obtained at regular intervals, and the topology diagram can be maintained using the latest structural features.
[0088] S7. Determine whether the topology diagram is consistent with the target feature; if not, proceed to step S8.
[0089] Specifically, it can identify each network node in the topology diagram, and based on the virtual devices connected to each network node, determine the topology information reflected in the topology diagram, and compare whether the topology information is consistent with the target features.
[0090] If so, a correspondence can be established between the target topology and the topology diagram, and the working mode of the target topology can be determined, and a correspondence can be established between the topology diagram and the working mode of the target topology.
[0091] If not, proceed to step S8.
[0092] Record the latest maintenance time of the topology diagram.
[0093] S8. Update the topology graph based on the target features.
[0094] Specifically, the topology diagram can be updated based on the connection relationships between various network devices in the target features.
[0095] As can be seen from the above technical solution, this embodiment provides an optional method for maintaining the topology diagram. Through the above method, the topology diagram can be updated and maintained in a timely manner, further ensuring the reliability of the topology diagram.
[0096] In some embodiments of this application, the process of step S7, determining whether the topology diagram is consistent with the target feature, is described in detail as follows:
[0097] S70. Identify the virtual device categories corresponding to each network node in the topology diagram, and the virtual device values corresponding to each network node for each virtual device category.
[0098] Specifically, the category of each virtual device corresponding to each network node can be determined as the virtual device category.
[0099] The number of virtual devices of each virtual device category connected to each network node can be determined as the virtual device value.
[0100] S71. Based on each virtual device category of each network node and the virtual device value of each virtual device category, determine the topological relationship between each virtual device.
[0101] Specifically, the topological relationships between virtual devices can be obtained by analyzing the types and quantities of virtual devices corresponding to each network node.
[0102] S72. Determine whether the topological relationship between each virtual device is different from the connection relationship between each network device included in the target feature.
[0103] Specifically, it can be determined whether the topological relationship between each virtual device matches the connection relationship between each network device in the target feature.
[0104] If not, then they are inconsistent; if so, then they are consistent.
[0105] As can be seen from the above technical solution, this embodiment provides an optional method for evaluating whether the topology diagram and the target features are consistent. The matching between the topology diagram and the target features can be accurately evaluated through the above method.
[0106] In some embodiments of this application, the process of updating the topology graph based on the target features is described in detail, and the steps are as follows:
[0107] S80. Determine the feature information that distinguishes the target feature from the topology diagram.
[0108] Specifically, information in the target features that distinguishes them from the topological relationships between virtual devices reflected in the topology diagram can be used as feature information.
[0109] S81. Based on the feature information and the topology diagram, determine whether it is necessary to add a first virtual device; if yes, proceed to step S82; if no, proceed to step S83.
[0110] Specifically, based on feature information, it can be determined whether to add virtual devices corresponding to pipeline network equipment.
[0111] If yes, proceed to step S82; otherwise, proceed directly to step S83.
[0112] Among them, the virtual devices that need to be added can be designated as the first virtual device.
[0113] S82. Construct the first virtual device in the topology diagram.
[0114] Specifically, a first virtual device can be added to the topology diagram, and step S83 can be executed.
[0115] S83. Based on the feature information, determine whether there is a first pipeline node that needs to be deleted in the latest topology diagram; if yes, proceed to step S84; if no, proceed to step S85.
[0116] Specifically, feature information can be analyzed to determine whether there are any network nodes in the topology diagram that need to be deleted.
[0117] If yes, proceed to step S84; otherwise, proceed to step S85.
[0118] Among them, the pipeline node that needs to be deleted can be designated as the first pipeline node.
[0119] S84. Delete the first pipeline node in the latest topology diagram.
[0120] Specifically, all first-level network nodes can be deleted from the latest topology graph.
[0121] S85. Based on the feature information, determine whether it is necessary to add more than one second pipeline node; if yes, proceed to step S86; if no, directly use the latest topology diagram as the updated topology diagram.
[0122] Specifically, by analyzing the feature information, it can be determined whether a pipeline node needs to be added to the latest topology diagram. If so, step S86 is executed; otherwise, the latest topology diagram is directly used as the updated topology diagram.
[0123] The additional pipeline node that needs to be added can be identified as the second pipeline node.
[0124] S86. Add each second pipeline node to the latest topology diagram and determine all the second virtual devices corresponding to each second pipeline node; construct pipelines to connect each second virtual device corresponding to each second pipeline node, and complete the update of the topology diagram.
[0125] Specifically, second network nodes can be added between different categories of virtual devices in the latest topology diagram.
[0126] For each second network node, the corresponding second virtual devices can be identified. Multiple pipelines can be used to connect the second network node to each second virtual device, thereby updating the topology diagram.
[0127] The latest topology diagram is the topology diagram corresponding to the working mode corresponding to the target feature.
[0128] As can be seen from the above technical solution, this embodiment provides an optional method for updating the topology diagram. Through the above method, the updating of the topology diagram can be achieved better. Through the pipeline nodes, the feature information between the target features and the topology diagram can be better identified. By adding a second pipeline node, the various second virtual devices that need to be connected can be clarified, further accelerating the process of updating the topology diagram in this application.
[0129] In some embodiments of this application, the process of step S1, obtaining structural features containing the connection relationships between different pipeline devices in the target pipeline network, is described in detail below:
[0130] S10. Obtain the structural features containing the connection relationships between different pipeline equipment under the target working mode of the target pipeline network.
[0131] Specifically, based on actual needs, any working mode of the target pipeline network can be selected as the target working mode to construct the topology diagram corresponding to any working mode; alternatively, each working mode of the target pipeline network can be selected as the target working mode in turn to gradually construct the topology diagram corresponding to each working mode of the target pipeline network.
[0132] In the structural features of the target working mode, pipeline equipment that does not need to be used in the target working mode but exists in the target pipeline network can be removed, further simplifying the difficulty of constructing the topology diagram of the target working mode.
[0133] As can be seen from the above technical solution, this embodiment provides an optional method for obtaining structural features. Through the above method, a correspondence can be established between the constructed topology diagram and the target working mode of the target pipeline network, further simplifying the topology diagram and facilitating intelligent control.
[0134] In some embodiments of this application, step S3, the process of constructing network nodes among different types of virtual devices with interconnected relationships based on the structural features, is described in detail as follows:
[0135] S30. Based on the structural features, determine the main pipe position between different categories of virtual devices that have a connection relationship. Each main pipe position is used to represent the connection relationship between the corresponding different categories of virtual devices and the series or parallel relationship between the corresponding virtual devices of the same category.
[0136] Specifically, based on structural characteristics, the location of the main control unit among any number of virtual devices can be found.
[0137] Each main control position can connect to two or more types of virtual devices that are interconnected.
[0138] Each master position can correspond to one or more virtual devices of the same type. Each master position can represent the series-parallel relationship between different types of virtual devices and the series-parallel relationship between virtual devices of the same type.
[0139] When the main pipe location corresponds to two types of virtual devices, the connection relationship between the two types of virtual devices can be one-to-one, many-to-one, or one-to-many. When there is a one-to-one connection between the two types of virtual devices, there is only one pipe connecting them, and the location of this pipe can be determined as the main pipe location. When there is a many-to-one or many-to-many connection between the two types of virtual devices, the pipes leading out from multiple virtual devices are called branches, and the pipe formed by the convergence of all branches is the main pipe; the location of the main pipe can be determined as the main pipe location.
[0140] S31. Construct a pipeline node at the location of the main pipe.
[0141] Specifically, a network node can be constructed at the midpoint of each main pipe location. In this case, the network node can represent the connection relationships between different categories of virtual devices, as well as the series or parallel relationships between virtual devices of the same category.
[0142] As can be seen from the above technical solution, this embodiment provides an optional method for constructing network nodes among different types of virtual devices with interconnected relationships based on the structural features. The accuracy of the network nodes can be further improved through the above method, thereby improving the accuracy of the topology diagram constructed in this application.
[0143] In some embodiments of this application, the process of step S4, which involves determining multiple target devices corresponding to each pipeline node based on the structural features, and the connection relationship between each target device and its corresponding pipeline node, is described in detail below:
[0144] S40. For each pipeline node, based on the structural characteristics, determine multiple equipment types corresponding to the pipeline node, and determine the number of devices corresponding to each equipment type and the pipeline node.
[0145] Specifically, the category of the virtual device connected to each network node can be determined as the device type, and the number of virtual devices of each device type corresponding to each network node can be determined.
[0146] S41. Based on the equipment types corresponding to each pipeline node and the number of devices of each equipment type, determine the target devices corresponding to each pipeline node.
[0147] Specifically, the target devices connected to each pipeline node can be determined based on the type and quantity of each device at each pipeline node.
[0148] Different pipeline nodes can correspond to the same target device.
[0149] Each pipeline node can correspond to more than two target devices.
[0150] The same target device can correspond to more than two pipeline nodes.
[0151] As can be seen from the above technical solution, this embodiment provides an optional way to determine each target device of each pipeline node. Through the above method, the connection relationship between each virtual device can be further converted into the connection relationship between the pipeline node and each virtual device, which can further simplify the construction of the topology diagram and improve the construction efficiency and practicality of this application.
[0152] Next, we will combine Figure 3The topology graph construction apparatus provided in this application will be described in detail. The topology graph construction apparatus described below can be compared with the topology graph construction method described above.
[0153] See Figure 3 It can be observed that the topology graph construction device may include:
[0154] The structural feature acquisition module 10 is used to acquire structural features that include the connection relationships between different pipeline equipment in the target pipeline network.
[0155] The category determination module 20 is used to construct virtual devices corresponding to each pipeline network device based on the structural features, and to determine the category of each virtual device;
[0156] Pipeline node construction module 30 is used to construct pipeline nodes among different types of virtual devices that have a connection relationship, based on the structural features.
[0157] The target device determination module 40 is used to determine multiple target devices corresponding to each pipeline node based on the structural features, and each target device has a connection relationship with the corresponding pipeline node;
[0158] The pipeline construction module 50 is used to construct pipelines that connect each target device corresponding to each pipeline network node, forming a topology diagram corresponding to the target pipeline network.
[0159] Furthermore, the pipeline node construction module may include:
[0160] The first pipeline node construction unit is used to determine the main pipe position between different types of virtual devices that have a connection relationship based on the structural features. Each main pipe position is used to represent the connection relationship between different types of virtual devices and the series or parallel relationship between virtual devices of the same type.
[0161] The second pipeline node construction unit is used to construct a pipeline node at the location of the main pipeline.
[0162] Furthermore, the target device determination module may include:
[0163] The first target equipment determination unit is used to determine, for each pipeline node, multiple equipment types corresponding to the pipeline node based on the structural features, and determine the number of equipment types corresponding to the pipeline node.
[0164] The second target equipment determination unit is used to determine each target equipment corresponding to each pipeline node based on each equipment type and the number of equipment of each equipment type corresponding to each pipeline node.
[0165] Furthermore, the structural feature acquisition module may include:
[0166] The first structural feature acquisition unit is used to acquire structural features that include the connection relationships between different pipeline network devices under the target working mode of the target pipeline network.
[0167] Furthermore, the topology graph construction device may also include:
[0168] The target feature determination module is used to obtain the latest structural features of the target pipeline network and use the latest structural features as the target features.
[0169] The feature comparison module is used to determine whether the topology map matches the target feature; if not, the topology map update module is invoked.
[0170] The topology graph update module is used to update the topology graph based on the target features.
[0171] Furthermore, the feature comparison module may include:
[0172] The first feature comparison unit is used to identify each virtual device category corresponding to each network node in the topology diagram and the virtual device value corresponding to each network node for each virtual device category.
[0173] The second feature comparison unit is used to determine the topological relationship between virtual devices based on each virtual device category of each network node and the virtual device value of each virtual device category;
[0174] The third feature comparison unit is used to determine whether the topological relationship between each virtual device is different from the connection relationship between each network device included in the target feature.
[0175] Furthermore, the topology graph update module may include:
[0176] The first topology graph updating unit is used to determine the feature information that distinguishes the target feature from the topology graph;
[0177] The second topology map update unit is used to determine whether a first virtual device needs to be added based on the feature information and the topology map; if yes, the third topology map update unit is called; if no, the fourth topology map update unit is called.
[0178] The third topology graph updating unit is used to construct the first virtual device in the topology graph;
[0179] The fourth topology graph update unit is used to determine, based on the feature information, whether there is a first pipeline node that needs to be deleted in the latest topology graph; if yes, then the fifth topology graph update unit is called; if no, then the sixth topology graph update unit is called.
[0180] The fifth topology graph update unit is used to delete the first pipeline node in the latest topology graph;
[0181] The sixth topology diagram update unit is used to determine, based on the feature information, whether it is necessary to add more than one second pipeline node; if yes, the seventh topology diagram update unit is invoked; if no, the latest topology diagram is used as the updated topology diagram.
[0182] The seventh topology diagram update unit is used to add each second pipeline node to the latest topology diagram and determine all the second virtual devices corresponding to each second pipeline node; construct pipelines to connect each second virtual device corresponding to each second pipeline node, and complete the update of the topology diagram.
[0183] The topology graph construction apparatus provided in this application embodiment can be applied to topology graph construction devices, such as PC terminals, cloud platforms, servers, and server clusters. Optionally, Figure 4 The hardware structure block diagram of the topology diagram construction device is shown, with reference to Figure 4 The hardware structure of the topology diagram construction device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;
[0184] In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4;
[0185] Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
[0186] Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device;
[0187] The memory stores a program, which the processor can call. The program is used for:
[0188] Obtain structural features that include the connection relationships between different pipeline equipment in the target pipeline network;
[0189] Based on the aforementioned structural features, a virtual device corresponding to each pipeline network device is constructed, and the category of each virtual device is determined.
[0190] Based on the aforementioned structural features, network nodes are constructed among different categories of virtual devices that have interconnections.
[0191] Based on the aforementioned structural features, multiple target devices are identified for each pipeline node, and each target device has a connection relationship with its corresponding pipeline node.
[0192] Construct pipelines to connect each target device corresponding to each pipeline node, forming a topology diagram corresponding to the target pipeline network.
[0193] Optionally, the refined and extended functions of the program can be referred to the above description.
[0194] This application embodiment also provides a readable storage medium that can store a program suitable for execution by a processor, the program being used for:
[0195] Obtain structural features that include the connection relationships between different pipeline equipment in the target pipeline network;
[0196] Based on the aforementioned structural features, a virtual device corresponding to each pipeline network device is constructed, and the category of each virtual device is determined.
[0197] Based on the aforementioned structural features, network nodes are constructed among different categories of virtual devices that have interconnections.
[0198] Based on the aforementioned structural features, multiple target devices are identified for each pipeline node, and each target device has a connection relationship with its corresponding pipeline node.
[0199] Construct pipelines to connect each target device corresponding to each pipeline node, forming a topology diagram corresponding to the target pipeline network.
[0200] Optionally, the refined and extended functions of the program can be referred to the above description.
[0201] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0202] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0203] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. The various embodiments of this application can be combined with each other. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a topology graph, characterized in that, include: Obtain structural features that include the connection relationships between different pipeline equipment in the target pipeline network; Based on the aforementioned structural features, a virtual device corresponding to each pipeline network device is constructed, and the category of each virtual device is determined. Based on the structural features, the main pipe positions between different categories of virtual devices that have connection relationships are determined. Each main pipe position is used to represent the connection relationship between the corresponding different categories of virtual devices and the series or parallel relationship between the corresponding virtual devices of the same category. Pipeline nodes are constructed at the main pipe positions. Based on the aforementioned structural features, multiple target devices are identified for each pipeline node, and each target device has a connection relationship with its corresponding pipeline node. Construct pipelines to connect each target device corresponding to each pipeline node, forming a topology diagram corresponding to the target pipeline network.
2. The topology graph construction method according to claim 1, characterized in that, The step of determining multiple target devices corresponding to each pipeline node based on the structural features includes: For each pipeline node, based on the structural characteristics, multiple equipment types corresponding to the pipeline node are determined, and the number of equipment for each equipment type and the number of equipment corresponding to the pipeline node are determined. Based on the various equipment types and the number of devices for each equipment type corresponding to each pipeline node, the target devices corresponding to each pipeline node are determined.
3. The topology graph construction method according to claim 1, characterized in that, The acquisition of structural features containing the connection relationships between different pipeline devices in the target pipeline network includes: Obtain structural features that include the connection relationships between different pipeline network devices under the target operating mode of the target pipeline network.
4. The topology graph construction method according to claim 1, characterized in that, Also includes: Obtain the latest structural features of the target pipeline network and use the latest structural features as the target features; Determine whether the topology diagram is consistent with the target feature; If not, the topology graph is updated based on the target features.
5. The topology graph construction method according to claim 4, characterized in that, Determining whether the topology diagram matches the target feature includes: Identify the virtual device categories corresponding to each network node in the topology diagram, and the virtual device values corresponding to each network node for each virtual device category. Based on each virtual device category of each network node and the virtual device value of each virtual device category, the topological relationship between each virtual device is determined; Determine whether the topological relationship between each virtual device is different from the connection relationship between each network device included in the target feature.
6. The topology graph construction method according to claim 4, characterized in that, The step of updating the topology graph based on the target features includes: Determine the feature information that distinguishes the target feature from the topology graph; Based on the feature information and the topology diagram, determine whether it is necessary to add a first virtual device; If a first virtual device needs to be added, then the first virtual device is constructed in the topology diagram; If it is not necessary to add the first virtual device or construct the first virtual device, then based on the feature information, determine whether there is a first pipeline node that needs to be deleted in the latest topology diagram; If a first pipeline node exists, then delete the first pipeline node in the latest topology diagram; If the first pipeline node does not exist or is deleted, then based on the aforementioned feature information, it is determined whether it is necessary to add more than one second pipeline node. If it is necessary to add a second pipeline node, add each second pipeline node to the latest topology diagram and determine all the second virtual devices corresponding to each second pipeline node; construct pipelines to connect each second virtual device corresponding to each second pipeline node, and complete the update of the topology diagram; If there is no need to add a second pipeline node, then the latest topology diagram will be used as the updated topology diagram.
7. A topology graph construction device, characterized in that, include: The structural feature acquisition module is used to acquire structural features that include the connection relationships between different pipeline equipment in the target pipeline network. The category determination module is used to construct virtual devices corresponding to each pipeline network device based on the structural features, and to determine the category of each virtual device; The pipeline node construction module is used to determine the main pipe positions between different types of virtual devices that have a connection relationship based on the structural features. Each main pipe position is used to represent the connection relationship between the corresponding different types of virtual devices and the series or parallel relationship between the corresponding virtual devices of the same type; and to construct pipeline nodes at the main pipe positions. The target device determination module is used to determine multiple target devices corresponding to each pipeline node based on the structural features, and each target device has a connection relationship with the corresponding pipeline node; The pipeline construction module is used to construct pipelines that connect each target device corresponding to each pipeline network node, forming a topology diagram corresponding to the target pipeline network.
8. A topology graph construction device, characterized in that, Including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the topology graph construction method as described in any one of claims 1-6.
9. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements each step of the topology graph construction method as described in any one of claims 1-6.
Citation Information
Patent Citations
Analog simulation implementation method, system and device for gas pipe network and storage medium
CN116451393A
Distributed optical fiber sensing signal processing method for safety monitoring of underground pipe network
US20180080812A1