Method for detecting the number of isolator protection devices in a tree fire alarm plan
By constructing a set of wires and cables and using a depth-first search algorithm, a set of protection devices for planar electrical equipment is generated, which solves the problems of time-consuming, labor-intensive, and erroneous manual labeling and statistics in existing technologies, and achieves efficient and accurate detection of the number of bus short-circuit isolator protection devices.
Patent Information
- Application Number
- CN202510793647.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In existing technologies, manually marking and counting the number of fire-fighting equipment protected by bus short-circuit isolators by designers is time-consuming, labor-intensive, and prone to statistical errors. Furthermore, the margin detection method carries the risk of economic loss and equipment exceeding limits.
By constructing a set of connected wires and cables for bus short-circuit isolators and a set of connected devices for the wires and cables, a depth-first search algorithm is used to traverse the branch lines of each bus short-circuit isolator to generate a set of protection devices with planar electrical devices as keys, and quantity detection is performed using pre-constructed quantity detection conditions.
It enables efficient and accurate detection of the number of devices protected by bus short-circuit isolators, avoiding the time-consuming and laborious manual labeling and statistical errors, and reducing economic losses.
Smart Images

Figure CN120671541B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment quantity detection technology, and specifically to a method for detecting the quantity of isolator-protected equipment in a tree-shaped automatic fire alarm plan. Background Technology
[0002] During the preparation of the automatic fire alarm floor plan, a bus short-circuit isolator should be installed on the system bus. At the same time, the total number of fire detectors, manual fire alarm buttons and modules protected by each bus short-circuit isolator should not exceed 32.
[0003] Currently, the number of fire protection equipment protected by bus short-circuit isolators is typically detected using the following technical methods:
[0004] One approach involves designers using the color of the planar connection layer to determine if two devices are connected and whether the connection belongs to a signal bus. First, they locate the first and second bus short-circuit isolators along the loop. Then, they count the number of fire-fighting devices on the main loop and the number of fire-fighting devices on the branch loops of the main loop. The sum of the main loop and branch loop counts gives the number of bus short-circuit isolators, which is then marked on the drawing. The disadvantage of this approach is that it is time-consuming and labor-intensive, increasing the workload of designers. Furthermore, project timelines sometimes don't allow for this, and time constraints can easily lead to errors in the marking.
[0005] Another approach involves designers ensuring sufficient redundancy when connecting fire protection equipment to the bus short-circuit isolators in the protection loop. For example, designers typically limit the number of fire protection devices connected to a single bus short-circuit isolator to no more than 20 during loop wiring. Therefore, even with additional equipment added during later layout modifications, the total number of devices will likely not exceed the 32-point requirement. The disadvantage of this approach is that it uses a larger number of bus short-circuit isolators, resulting in some economic loss; and with significant adjustments to some layout equipment, the number of protected fire protection devices may exceed the 32-point requirement.
[0006] Therefore, the present invention aims to provide a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, in order to solve the aforementioned problems. Summary of the Invention
[0007] The technical problem this invention aims to solve is that existing technologies, which rely on manual annotation and statistics by designers, are not only time-consuming and labor-intensive but also prone to statistical errors. The invention provides a method for detecting the number of isolator-protected devices in a tree-shaped fire alarm system plan. This method constructs a set of connected wires and cables for each bus short-circuit isolator and a set of connected devices to those wires and cables, establishing an association between the bus short-circuit isolators and planar electrical devices to facilitate subsequent search and traversal operations. A depth-first search algorithm is used to sequentially traverse all branches of each bus short-circuit isolator, recording the planar electrical devices protected by each isolator, generating a set of protected devices with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value. Then, using pre-constructed quantity detection conditions, the quantity of the protected devices in the short-circuit isolator set is detected, yielding the number of bus short-circuit isolators. This method achieves the detection of the number of bus short-circuit isolator-protected devices in a fire alarm system plan, solving the problem of existing technologies that rely on manual annotation and statistics by designers, which are not only time-consuming and labor-intensive but also prone to statistical errors.
[0008] This invention is achieved through the following technical solution:
[0009] A method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, the method comprising:
[0010] Obtain the set of connected wires and cables for each bus short-circuit isolator, and obtain the set of bus short-circuit isolators constructed from multiple bus short-circuit isolators;
[0011] Extract a bus short-circuit isolator from the set of bus short-circuit isolators, and use a depth-first search algorithm to sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. After visiting and recording all the branch lines of the bus short-circuit isolator, generate a set of protection devices corresponding to the bus short-circuit isolator based on all the visited planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value.
[0012] Based on the pre-built quantity detection conditions, the quantity of the protection device set of the short-circuit isolator is detected to obtain the quantity detection result of the bus short-circuit isolator. After obtaining the quantity detection result of the bus short-circuit isolator, the next bus short-circuit isolator is extracted from the bus short-circuit isolator set for access recording until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
[0013] Furthermore, the method also includes:
[0014] Identify the graphic element information of equipment arranged in the same layer of the automatic fire alarm plan, as well as the graphic element information of wires and cables; among which, the equipment arranged in the plan includes bus short-circuit isolators and plan electrical equipment;
[0015] Based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a tree topology graph representing the connection relationship between the planar layout equipment is constructed with the planar layout equipment as nodes and the wires and cables between the planar layout equipment as edges. The bus short-circuit isolator is used as the root node and the planar electrical equipment is used as the child node.
[0016] Obtain the set of connected wires and cables of the planar layout equipment, as well as the set of connected equipment of the wires and cables, from the tree topology diagram.
[0017] Furthermore, a bus short-circuit isolator is extracted from the set of bus short-circuit isolators, and a depth-first search algorithm is used to sequentially access the wires and cables connected to it, as well as the planar electrical devices connected through the wires and cables, starting from the bus short-circuit isolator. Specifically:
[0018] Extract a bus short-circuit isolator from the bus short-circuit isolator set, access a cable from the connected cable set of the bus short-circuit isolator, and record the bus short-circuit isolator as accessed;
[0019] Extract unvisited planar electrical devices from the set of connected devices of the visited wires and cables. If there is an unvisited wire or cable in the set of connected wires and cables of the planar electrical device, continue to visit the next planar electrical device along the unvisited wire or cable and record the visited planar electrical device until there are no unvisited wires or cables in the visited planar electrical device.
[0020] If there is no unvisited wire or cable in the connected wire and cable set of the plane electrical device, return to the previous plane electrical device and continue to visit its connected wire and cable set until all plane electrical devices and wires and cables are recorded as visited; add the visited plane electrical devices to the protection device set of the bus short-circuit isolator.
[0021] Furthermore, based on the pre-built quantity detection conditions, the quantity of the protected devices of the short-circuit isolator is detected to obtain the quantity detection result of the bus short-circuit isolator, specifically:
[0022] When the number of planar electrical devices in the protection device set exceeds a preset threshold, the bus short-circuit isolator is marked on the automatic fire alarm plan diagram, and a first quantity detection result is obtained; when the number of planar electrical devices in the protection device set does not exceed the preset threshold, a second quantity detection result is obtained.
[0023] Furthermore, when the number of planar electrical devices in the protection device set exceeds a preset threshold, the bus short-circuit isolator will be marked on the automatic fire alarm plan diagram, specifically as follows:
[0024] When the number of planar electrical devices in the protection device set exceeds a preset threshold, obtain the coordinate position information of the bus short-circuit isolator in the fire alarm plan diagram;
[0025] Based on the coordinate location information of the bus short-circuit isolator, the bus short-circuit isolator is marked on the fire alarm plan.
[0026] Furthermore, the first test result is that the number of protected devices of the bus short-circuit isolator is abnormal; the second test result is that the number of protected devices of the bus short-circuit isolator is normal.
[0027] This invention also provides a system for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, the system being used in the method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan as described in any one of the above claims, the system comprising:
[0028] The bus short-circuit isolator set construction module is used to obtain the set of connected wires and cables for each bus short-circuit isolator, and to obtain the bus short-circuit isolator set constructed from multiple bus short-circuit isolators;
[0029] The protection device set generation module is used to extract a bus short-circuit isolator from the bus short-circuit isolator set, and use a depth-first search algorithm to sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. After visiting and recording all the branch lines of the bus short-circuit isolator, the module generates a protection device set corresponding to the bus short-circuit isolator based on all the visited planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value.
[0030] The protection device quantity detection module is used to perform quantity detection on the protection device set of the short-circuit isolator based on pre-built quantity detection conditions, and obtain the quantity detection result of the bus short-circuit isolator; after obtaining the quantity detection result of the bus short-circuit isolator, it continues to extract the next bus short-circuit isolator in the bus short-circuit isolator set for access recording, until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
[0031] The present invention also provides a computer device, including a system memory and a processor, wherein the system memory stores a computer program, and the processor executes the computer program to implement the steps of any of the methods described above.
[0032] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.
[0033] The present invention also provides a computer program product containing instructions that, when executed by a cluster of computer devices, cause the cluster of computer devices to perform the method described in any of the preceding claims.
[0034] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0035] In this invention, a set of connected wires and cables and a set of connected devices for the bus short-circuit isolators are constructed to establish the association between the bus short-circuit isolators and planar electrical devices, facilitating subsequent search and traversal operations. A depth-first search algorithm is used to sequentially traverse all branch lines of each bus short-circuit isolator, recording the planar electrical devices protected by the corresponding bus short-circuit isolator, generating a set of protected devices with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value. Then, using pre-constructed quantity detection conditions, the quantity of the protected devices of the short-circuit isolators is detected, yielding the quantity detection results of the bus short-circuit isolators. This achieves the quantity detection of the protected devices of the bus short-circuit isolators in the fire alarm plan diagram, solving the technical problem of existing technologies that rely on manual annotation and statistics by designers, which is not only time-consuming and labor-intensive but also prone to statistical errors. Attached Figure Description
[0036] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:
[0037] Figure 1 This is a schematic diagram of the method flow for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan in this embodiment;
[0038] Figure 2 This is a schematic diagram of the set of protection devices generated in the method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan in this embodiment;
[0039] Figure 3 This is a schematic diagram of the bus short-circuit isolator markings in a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan view in this embodiment;
[0040] Figure 4This is a schematic diagram of the system modules of an isolator protection device quantity detection system for a tree-shaped automatic fire alarm plan in this embodiment;
[0041] Figure 5 This is a schematic diagram of the structure of a computer device in this embodiment. Detailed Implementation
[0042] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0043] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to define the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0044] The terminology used in the description of the various examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0045] Example 1
[0046] This embodiment is used to detect the number of bus short-circuit isolators in a fire alarm system plan with a tree-shaped wiring diagram. Therefore, to complete the detection of the number of bus short-circuit isolators, the corresponding fire alarm system plan needs to be constructed in CAD software first. The construction process is as follows: Based on professional specifications and architectural, structural, water supply and drainage, HVAC, and electrical professional data, the relevant plan electrical equipment and bus short-circuit isolators are arranged. After the plan electrical equipment and bus short-circuit isolators are arranged, all the plan electrical equipment is connected in sequence using wires and cables according to professional requirements. At the same time, bus short-circuit isolators are set and connected to form the fire alarm system plan. Then, the graphic information of the planar layout equipment and the graphic information of the wires and cables in the same layer of the automatic fire alarm plan are identified; the planar layout equipment includes bus short-circuit isolators and planar electrical equipment; based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a tree topology graph representing the connection relationship between the planar layout equipment is constructed with the planar layout equipment as nodes and the wires and cables between the planar layout equipment as edges, wherein the bus short-circuit isolator is the root node and the planar electrical equipment is the child node; the set of connected wires and cables of each bus short-circuit isolator and the set of connected equipment of the wires and cables are obtained from the tree topology graph.
[0047] See Figure 1 This paper illustrates a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, wherein the method includes:
[0048] S1: Obtain the set of connected wires and cables for each bus short-circuit isolator, and obtain the set of bus short-circuit isolators constructed from multiple bus short-circuit isolators;
[0049] S2: Extract a bus short-circuit isolator from the set of bus short-circuit isolators, and use a depth-first search algorithm to sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables; after visiting and recording all branch lines of the bus short-circuit isolator, generate a set of protection devices corresponding to the bus short-circuit isolator based on all the visited planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value;
[0050] It should be noted that in this embodiment, an accessed set is constructed to record and store accessed bus short-circuit isolators, planar electrical devices, and wires and cables.
[0051] Specifically, in this embodiment, a bus short-circuit isolator is first extracted from the set of bus short-circuit isolators, and a wire or cable in the set of connected wires and cables of the bus short-circuit isolator is accessed, and the bus short-circuit isolator is recorded as accessed;
[0052] Extract unvisited planar electrical devices from the set of connected devices of the visited wires and cables. If there is an unvisited wire or cable in the set of connected wires and cables of the planar electrical device, continue to visit the next planar electrical device along the unvisited wire or cable and record the visited planar electrical device until there are no unvisited wires or cables in the visited planar electrical device.
[0053] If there is no unvisited wire or cable in the connected wire and cable set of the plane electrical device, return to the previous plane electrical device and continue to visit its connected wire and cable set until all plane electrical devices and wires and cables are recorded as visited; add the visited plane electrical devices to the protection device set of the bus short-circuit isolator.
[0054] For example, firstly, a bus short-circuit isolator A1 is extracted from the set of bus short-circuit isolators, and a cable a1 in the set of connected cables of the bus short-circuit isolator A1 is accessed. At the same time, the bus short-circuit isolator A1 is stored in the accessed set and recorded as accessed. Then, an unaccessed planar electrical device B1 is extracted from the set of connected devices of the accessed cable a1 (obtained by comparing the set of connected devices of cable a1 with the accessed set). Cable a1 and planar electrical device B1 are stored in the accessed set and recorded as accessed. An unaccessed cable b1 is found in the set of connected cables of planar electrical device B1 (obtained by comparing the set of connected cables of planar electrical device B1 with the accessed set). An unaccessed planar electrical device B2 is found in the set of connected devices of cable b1. Cable b1 and planar electrical device B2 are stored in the accessed set and recorded as accessed.
[0055] Determine if there are any unvisited wires or cables in the connected cable set of planar electrical device B2. If there is still one unvisited wire or cable in the connected cable set of planar electrical device B2, continue to visit the next planar electrical device along the unvisited wire or cable and record the visited planar electrical device until there are no unvisited wires or cables in the visited planar electrical device. If there are no unvisited wires or cables in the connected cable set of planar electrical device B2, planar electrical device B1 continues to visit its connected cable set until all planar electrical devices and wires and cables are recorded as visited. Add the visited planar electrical devices to the protection device set of the bus short-circuit isolator. See the generated protection device set for details. Figure 2 As shown.
[0056] S3: Based on the pre-built quantity detection conditions, perform quantity detection on the set of protected devices of the short-circuit isolator to obtain the quantity detection result of the bus short-circuit isolator; after obtaining the quantity detection result of the bus short-circuit isolator, continue to extract the next bus short-circuit isolator in the set of bus short-circuit isolators for access recording, until all bus short-circuit isolators in the set of bus short-circuit isolators have been accessed.
[0057] It should be noted that in this embodiment, the pre-constructed quantity detection condition is specifically whether it is greater than or not greater than a preset quantity threshold. In this embodiment, the preset quantity threshold is set to 25. In other embodiments, it can also be set to other quantities that conform to construction specifications according to actual needs, which will not be elaborated on here.
[0058] Specifically, in this embodiment, when the number of planar electrical devices in the protection device set is greater than a preset number threshold, a first number detection result is obtained; when the number of planar electrical devices in the protection device set is not greater than the preset number threshold, a second number detection result is obtained; wherein, the first detection result specifically indicates that the number of protection devices of the bus short-circuit isolator is abnormal; the second detection result specifically indicates that the number of protection devices of the bus short-circuit isolator is normal.
[0059] Meanwhile, after obtaining the first number of test results, see Figure 3 As shown, the coordinate position information of the bus short-circuit isolator in the fire alarm plan is obtained, and then the bus short-circuit isolator is marked on the fire alarm plan using a coil according to the coordinate position information.
[0060] After obtaining the quantity detection result of the bus short-circuit isolator, continue to extract the next bus short-circuit isolator from the bus short-circuit isolator set for access recording, until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed; after all bus short-circuit isolators have been accessed and recorded, the user adjusts the number of protection devices on the branch lines of the bus short-circuit isolator with the first quantity detection result, deletes the marker coil after adjustment, and re-accesses and records the bus short-circuit isolator; if all bus short-circuit isolators with the second quantity detection result, the user is prompted that "all loops are within limits".
[0061] Specifically, in this embodiment, by constructing a set of connected wires and cables and a set of connected devices for the bus short-circuit isolators, the association between the bus short-circuit isolators and the planar electrical devices is established to facilitate subsequent search and traversal operations. A depth-first search algorithm is used to sequentially traverse all branch lines of each bus short-circuit isolator, recording the planar electrical devices protected by the corresponding bus short-circuit isolator, generating a set of protected devices with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value. Then, using pre-constructed quantity detection conditions, the quantity of the protected devices of the short-circuit isolators is detected, obtaining the quantity detection results of the bus short-circuit isolators. This achieves the quantity detection of the protected devices of the bus short-circuit isolators in the fire alarm plan diagram, solving the technical problem of existing technologies that rely on manual annotation and statistics by designers, which is not only time-consuming and labor-intensive but also prone to statistical errors.
[0062] Example 2
[0063] See Figure 4 As shown, the present invention also provides a system for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, characterized in that the system is used in any of the above-described methods for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, the system comprising:
[0064] Bus short-circuit isolator set construction module 100 is used to obtain the set of connected wires and cables for each bus short-circuit isolator, and to obtain the bus short-circuit isolator set constructed from multiple bus short-circuit isolators;
[0065] The protection device set generation module 200 is used to extract a bus short-circuit isolator from the bus short-circuit isolator set, and use a depth-first search algorithm to sequentially access the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. After accessing and recording all branch lines of the bus short-circuit isolator, a protection device set corresponding to the bus short-circuit is generated based on all the accessed planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value.
[0066] The protection device quantity detection module 300 is used to perform quantity detection on the protection device set of the short-circuit isolator based on the pre-built quantity detection conditions, and obtain the quantity detection result of the bus short-circuit isolator; after obtaining the quantity detection result of the bus short-circuit isolator, it continues to extract the next bus short-circuit isolator in the bus short-circuit isolator set for access recording, until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
[0067] It should be noted that the modules in the system of Embodiment 2 correspond to the steps in the method of Embodiment 1. The steps in the method of Embodiment 1 have been described in detail in Embodiment 1, and the module content in the system will not be described in detail in this Embodiment 2.
[0068] Example 3
[0069] See Figure 5 As shown, this embodiment also provides a computer device, including a system memory 1005 and a processor 1001. The system memory 1005 stores a computer program, and the processor 1001 executes the computer program to implement the steps of any of the methods described above.
[0070] It should be noted that the processor 1001 is used to execute the steps in the above method embodiments according to the instructions in the program code. Alternatively, when the processor 1001 executes the computer program, it implements the functions of each module / unit in the above system / device embodiments.
[0071] Specifically, in this embodiment, the computer program can be divided into one or more modules / units. One or more modules / units are stored in the system memory 1005 and executed by the processor 1001 to complete this application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the terminal device.
[0072] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor 1001 and a system memory 1005. Those skilled in the art will understand that this does not constitute a limitation on the terminal device, which may include more or fewer components than shown, or a combination of certain components, or different components. For example, the terminal device may also include an input / output device 1003, a network access device 1002, a bus 1006, etc.
[0073] The processor 1001 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0074] System memory 1005 can be an internal storage unit of the terminal device, such as a hard drive or RAM. System memory 1005 can also be a storage device 1004 of the terminal device, such as an external hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, or FlashCard. Furthermore, system memory 1005 can include both internal storage units and storage device 1004. System memory 1005 is used to store computer programs and other programs and data required by the terminal device. System memory 1005 can also be used to temporarily store data that has been output or will be output.
[0075] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0076] Example 4
[0077] This embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.
[0078] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof, or any other form of computer-readable storage medium in the art.
[0079] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside within an application-specific integrated circuit (ASIC). In embodiments of the invention, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device.
[0080] Example 5
[0081] This embodiment also provides a computer program product containing instructions that, when executed by a cluster of computer devices, cause the cluster of computer devices to perform the method described in Embodiment 1.
[0082] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, characterized in that the method... include: Obtain the set of connected wires and cables for each bus short-circuit isolator, and obtain the set of bus short-circuit isolators constructed from multiple bus short-circuit isolators; Extract a bus short-circuit isolator from the set of bus short-circuit isolators, and use a depth-first search algorithm to sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. After visiting and recording all the branch lines of the bus short-circuit isolator, generate a set of protection devices corresponding to the bus short-circuit isolator based on all the visited planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value. Based on the pre-built quantity detection conditions, the quantity of the protection device set of the short-circuit isolator is detected to obtain the quantity detection result of the bus short-circuit isolator. After obtaining the quantity detection result of the bus short-circuit isolator, the next bus short-circuit isolator is extracted from the bus short-circuit isolator set for access recording until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
2. The method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan according to claim 1, characterized in that, The method also includes: Identify the graphic element information of equipment arranged in the same layer of the automatic fire alarm plan, as well as the graphic element information of wires and cables; among which, the equipment arranged in the plan includes bus short-circuit isolators and plan electrical equipment; Based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a tree topology graph representing the connection relationship between the planar layout equipment is constructed with the planar layout equipment as nodes and the wires and cables between the planar layout equipment as edges. The bus short-circuit isolator is used as the root node and the planar electrical equipment is used as the child node. Obtain the set of connected wires and cables of the planar layout equipment, as well as the set of connected equipment of the wires and cables, from the tree topology diagram.
3. The method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan according to claim 1, characterized in that, Extract a bus short-circuit isolator from the set of bus short-circuit isolators, and then, using a depth-first search algorithm, sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. Specifically: Extract a bus short-circuit isolator from the bus short-circuit isolator set, access a cable from the connected cable set of the bus short-circuit isolator, and record the bus short-circuit isolator as accessed; Extract unvisited planar electrical devices from the set of connected devices of the visited wires and cables. If there is an unvisited wire or cable in the set of connected wires and cables of the planar electrical device, continue to visit the next planar electrical device along the unvisited wire or cable and record the visited planar electrical device until there are no unvisited wires or cables in the visited planar electrical device. If there is no unvisited wire or cable in the connected wire and cable set of the plane electrical device, return to the previous plane electrical device and continue to visit its connected wire and cable set until all plane electrical devices and wires and cables are recorded as visited; add the visited plane electrical devices to the protection device set of the bus short-circuit isolator.
4. The method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan according to claim 1, characterized in that, Based on pre-built quantity detection conditions, the quantity of the protected devices of the short-circuit isolator is detected, and the quantity detection result of the bus short-circuit isolator is obtained, specifically: When the number of planar electrical devices in the protection device set exceeds a preset threshold, the bus short-circuit isolator is marked on the automatic fire alarm plan diagram, and a first quantity detection result is obtained; when the number of planar electrical devices in the protection device set does not exceed the preset threshold, a second quantity detection result is obtained.
5. The method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan according to claim 4, characterized in that, When the number of planar electrical devices in the protection device set exceeds a preset threshold, the bus short-circuit isolator will be marked on the automatic fire alarm plan, specifically as follows: When the number of planar electrical devices in the protection device set exceeds a preset threshold, obtain the coordinate position information of the bus short-circuit isolator in the fire alarm plan diagram; Based on the coordinate location information of the bus short-circuit isolator, the bus short-circuit isolator is marked on the fire alarm plan.
6. The method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan according to claim 4, characterized in that, The first test result is: the number of protected devices of the bus short-circuit isolator is abnormal; the second test result is: the number of protected devices of the bus short-circuit isolator is normal.
7. A system for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, characterized in that, This system is used in the method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan as described in any one of claims 1-6, wherein the system comprises: The bus short-circuit isolator set construction module is used to obtain the set of connected wires and cables for each bus short-circuit isolator, and to obtain the bus short-circuit isolator set constructed from multiple bus short-circuit isolators; The protection device set generation module is used to extract a bus short-circuit isolator from the bus short-circuit isolator set, and use a depth-first search algorithm to sequentially visit the wires and cables connected to the bus short-circuit isolator, as well as the planar electrical devices connected through the wires and cables. After visiting and recording all the branch lines of the bus short-circuit isolator, the module generates a protection device set corresponding to the bus short-circuit isolator based on all the visited planar electrical devices, with the type of planar electrical device as the key and the quantity of each type of planar electrical device as the value. The protection device quantity detection module is used to perform quantity detection on the protection device set of the short-circuit isolator based on pre-built quantity detection conditions, and obtain the quantity detection result of the bus short-circuit isolator; after obtaining the quantity detection result of the bus short-circuit isolator, it continues to extract the next bus short-circuit isolator in the bus short-circuit isolator set for access recording, until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
8. A computer device comprising a system memory and a processor, wherein the system memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6.
10. A computer program product containing instructions, characterized in that, When the instruction is executed by a cluster of computer devices, the cluster of computer devices causes the cluster of computer devices to perform the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Power line carrier communication PLC system and method
CN113872640A
Revit-based automatic fire alarm system diagram drawing method and device
CN119004645A