Isolator protection device number detection method for tree-shaped automatic fire alarm plane graph
By establishing the association relationship between bus short-circuit isolators and planar electrical equipment, and using the depth-first search algorithm and quantity detection conditions, the problem of manual labeling and statistics in the existing technology being time-consuming, labor-intensive and error-prone is solved, and efficient and accurate equipment quantity detection is achieved.
Patent Information
- Application Number
- CN202510793647.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-06-13
AI Technical Summary
In the prior art, manually marking and counting the number of bus short-circuit isolator protection devices in the automatic fire alarm plan by designers is time-consuming and labor-intensive and prone to statistical errors.
By constructing a set of connected wires and cables of the bus short-circuit isolator and a set of connected devices of the wires and cables, a depth-first search algorithm is used to traverse the branch lines of each bus short-circuit isolator, a set of protection devices with planar electrical equipment as the key is generated, and quantity detection is performed using pre-built quantity detection conditions.
It achieves efficient and accurate detection of the number of bus short-circuit isolators protecting devices, avoiding the time consumption and errors of manual marking.
Smart Images

Figure CN120671541A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment quantity detection, in particular to a method for detecting the quantity of isolator protection equipment in a tree-shaped automatic fire alarm plane diagram. Background Art
[0002] During the preparation of the automatic fire alarm 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, modules and other fire-fighting equipment protected by each bus short-circuit isolator should not exceed 32 points.
[0003] At present, the number of fire protection equipment protected by the bus short circuit isolator is usually detected by the following technical means: One approach involves designers using the color of the plane connection layer to determine whether two devices are connected and whether the connection belongs to a signal bus. Designers first locate the first and second bus short-circuit isolators along the loop. They then count the number of firefighting devices on the main circuit and the number of firefighting devices on the branch circuits. The sum of the main and branch circuits yields the total number of short-circuit isolators on both buses, which is then marked on the drawing. This approach is time-consuming and labor-intensive, increasing the designer's workload. Furthermore, sometimes project deadlines are limited, and time constraints can lead to marking errors.
[0004] Another approach is for designers to ensure sufficient redundancy when connecting bus short-circuit isolators to firefighting equipment in the protection loop. For example, when connecting the loop, designers typically limit the number of firefighting equipment connected to a single bus short-circuit isolator to no more than 20 points. Therefore, even if additional equipment is added during later floor plan modifications, the total number of devices will likely not exceed the 32-point requirement. The disadvantages of this approach are: it uses more bus short-circuit isolators, resulting in a certain degree of economic loss; and if some floor plan equipment is extensively adjusted, the number of protected firefighting equipment may exceed the 32-point requirement.
[0005] 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 to solve the above-mentioned related problems. Summary of the Invention
[0006] The technical problem to be solved by the present invention is that the existing technology relies on manual marking and statistics by designers, which is not only time-consuming and labor-intensive, but also prone to statistical errors. At the same time, the present invention aims to provide a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, by constructing a set of connected wires and cables of a bus short-circuit isolator and a set of connected devices of the wires and cables to establish an association relationship between the bus short-circuit isolator and the planar electrical equipment, so as to facilitate subsequent search and traversal operations; by using a depth-first search algorithm to traverse all branch lines of each bus short-circuit isolator in turn, recording the planar electrical equipment protected by the corresponding bus short-circuit isolator, and generating a protection device set with the type of planar electrical equipment as the key and the number of each type of planar electrical equipment as the value; then, using pre-constructed quantity detection conditions, the protection device set of the short-circuit isolator is detected in quantity to obtain a bus short-circuit isolator quantity detection result, thereby realizing the detection of the number of bus short-circuit isolator protection devices in the automatic fire alarm plan, solving the technical problem that the existing technology relies on manual marking and statistics by designers, which is not only time-consuming and labor-intensive, but also prone to statistical errors.
[0007] The present invention is achieved through the following technical solutions: A method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, the method comprising: Obtaining a set of connected wires and cables of each bus short-circuit isolator, and obtaining a set of bus short-circuit isolators constructed by a plurality of bus short-circuit isolators; A bus short circuit isolator is extracted from the bus short circuit isolator set, and the wires and cables connected to the bus short circuit isolator are sequentially accessed, as well as the planar electrical devices connected through the wires and cables, starting from the bus short circuit isolator through a depth-first search algorithm; after all branch lines of the bus short circuit isolator are accessed and recorded, a protection device set corresponding to the bus short circuit isolator is generated based on all the visited planar electrical devices, with the type of planar electrical device as a key and the number of each type of planar electrical device as a value; Based on the pre-established quantity detection conditions, the quantity detection is performed on the protection device set 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, the next bus short-circuit isolator is continuously extracted from the bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set are visited.
[0008] Furthermore, the method further comprises: Identify the graphic element information of the planar layout equipment on the same layer of the automatic fire alarm plan, as well as the graphic element information of the wires and cables; wherein the planar layout equipment includes bus short circuit isolators and planar electrical equipment; Based on the graphic element information of the plane layout equipment and the graphic element information of the wires and cables, a tree topology diagram representing the connection relationship between the plane layout equipment is constructed with the plane layout equipment as nodes and the wires and cables between the plane layout equipment as edges, wherein the bus short circuit isolator is used as the root node and the plane electrical equipment is used as the child node; Obtain the connected wire and cable sets of the floor plan devices and the connected device sets of the wires and cables from the tree topology diagram.
[0009] Furthermore, a bus short circuit isolator is extracted from the bus short circuit isolator set, and the wires and cables connected to it, as well as the planar electrical equipment connected through the wires and cables, are sequentially accessed from the bus short circuit isolator using a depth-first search algorithm, specifically: Extract a bus short-circuit isolator from the bus short-circuit isolator set, access a wire and cable in the wire and cable set connected to the bus short-circuit isolator, and record the bus short-circuit isolator as having been accessed; Extracting unvisited planar electrical devices from the connected device set of the visited wires and cables; if there is an unvisited wire and cable in the connected wire and cable set of the planar electrical device, continue to access the next planar electrical device along the unvisited wire and cable and record the visited planar electrical devices until there are no unvisited wires and cables in the visited planar electrical device; If there is no unvisited wire or cable in the connected wire and cable set of the planar electrical device, return to the previous planar electrical device and continue to access its connected wire and 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.
[0010] Furthermore, based on the pre-established quantity detection condition, the quantity detection of the protection device set of the short-circuit isolator is performed to obtain the quantity detection result of the bus short-circuit isolator, which is specifically: When the number of planar electrical equipment in the protection device set is greater than the preset number threshold, the bus short-circuit isolator is marked in the automatic fire alarm plan and a first quantity detection result is obtained; when the number of planar electrical equipment in the protection device set is not greater than the preset number threshold, a second quantity detection result is obtained.
[0011] Furthermore, when the number of planar electrical devices in the protection device set is greater than a preset number threshold, the bus short-circuit isolator is marked in the automatic fire alarm plan, specifically: When the number of planar electrical devices in the protection device set is greater than a preset number threshold, obtaining coordinate position information of the bus short-circuit isolator in the automatic fire alarm plan; Based on the coordinate position information of the bus short-circuit isolator, the bus short-circuit isolator is marked in the automatic fire alarm plan.
[0012] Furthermore, the first detection result is specifically that the number of protection devices of the bus short-circuit isolator is abnormal; and the second detection result is specifically that the number of protection devices of the bus short-circuit isolator is normal.
[0013] The present invention also provides a system for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan. The system is used in any of the above-mentioned methods for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan. The system comprises: A bus short-circuit isolator set construction module is used to obtain a set of connected wires and cables of each bus short-circuit isolator, and to obtain a bus short-circuit isolator set constructed by a plurality of 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, using a depth-first search algorithm, 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; after accessing and recording all branch lines of the bus short circuit isolator, based on all the planar electrical devices accessed, generate a protection device set corresponding to the bus short circuit isolator, using the type of planar electrical device as a key and the number of each type of planar electrical device as a 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-established quantity detection conditions 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 from the bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set are accessed.
[0014] The present invention also provides a computer device, comprising a system memory and a processor, wherein the system memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0015] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.
[0016] The present invention also provides a computer program product comprising instructions, which, when executed by a computer device cluster, enables the computer device cluster to perform any of the above methods.
[0017] Compared with the prior art, the present invention has the following advantages and beneficial effects: In the present invention, a collection of connected wires and cables of a bus short-circuit isolator and a collection of connected devices of the wires and cables are constructed to establish an association relationship between the bus short-circuit isolator and the planar electrical equipment, so as to facilitate subsequent search and traversal operations; all branch lines of each bus short-circuit isolator are traversed in sequence by using a depth-first search algorithm, the planar electrical equipment protected by the corresponding bus short-circuit isolator is recorded, and a protection device collection is generated with the type of planar electrical equipment as a key and the number of each type of planar electrical equipment as a value; and then, using a pre-constructed quantity detection condition, a quantity detection is performed on the protection device collection of the short-circuit isolator to obtain a quantity detection result of the bus short-circuit isolator, thereby realizing the quantity detection of the bus short-circuit isolator protection devices in the automatic fire alarm plan, solving the technical problem that the existing technology relies on manual marking and statistics by designers, which is not only time-consuming and labor-intensive, but also prone to statistical errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the examples. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be considered as limiting the scope. A person of ordinary skill in the art can also derive other relevant drawings based on these drawings without inventive effort. In the drawings: Figure 1 This is a flow chart of a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan in this embodiment; Figure 2 This is a schematic diagram of a protection device set generated in a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan in this embodiment; Figure 3 This is a schematic diagram of the marking of bus short-circuit isolators in a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan in this embodiment; Figure 4 This is a schematic diagram of the system modules of a system for detecting the number of isolators protecting devices in a tree-shaped automatic fire alarm plan in this embodiment; Figure 5 This is a structural diagram of a computer device in this embodiment. DETAILED DESCRIPTION
[0019] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.
[0021] The terms used in the descriptions of various examples in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.
[0022] Example 1 This embodiment is used to detect the number of bus short-circuit isolators in a tree-shaped fire alarm plan. Therefore, to complete the detection of the number of bus short-circuit isolators, it is first necessary to construct the corresponding fire alarm plan in CAD software. The construction process is as follows: combining professional specifications with professional materials on architecture, structure, water supply and drainage, HVAC, and electrical engineering to arrange the relevant planar electrical equipment and bus short-circuit isolators. After the planar electrical equipment and bus short-circuit isolators are arranged, all planar electrical equipment are connected in sequence using wires and cables according to professional requirements. At the same time, the bus short-circuit isolators are installed and connected to form the fire alarm plan. Then, the graphic element information of the planar layout equipment and the graphic element information of the wires and cables in the same layer of the automatic fire alarm plan are identified; wherein the planar layout equipment includes bus short-circuit isolators and planar electrical equipment; based on the graphic element information of the planar layout equipment and the graphic element information of the wires and cables, a tree topology diagram 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 used as the root node and the planar electrical equipment is used as the child node; the connected wire and cable set of each bus short-circuit isolator and the connected device set of the wires and cables are obtained from the tree topology diagram.
[0023] See also Figure 1 , shows a method for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, wherein the method includes: S1: Obtain a set of connected wires and cables of each bus short-circuit isolator, and obtain a set of bus short-circuit isolators constructed by multiple bus short-circuit isolators; S2: 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 it, as well as the planar electrical devices connected through the wires and cables, starting from the bus short circuit isolator; after accessing and recording all branch lines of the bus short circuit isolator, based on all the visited planar electrical devices, generate a protection device set corresponding to the bus short circuit isolator, using the type of planar electrical device as the key and the number of each type of planar electrical device as the value; It should be noted that, in this embodiment, an accessed set is constructed to record and store the accessed bus short-circuit isolators, planar electrical equipment, and wires and cables.
[0024] Specifically, in this embodiment, first, a bus short circuit isolator is extracted from the bus short circuit isolator set, and a wire cable in the wire cable set connected to the bus short circuit isolator is accessed, and the bus short circuit isolator is recorded as having been accessed; Extracting unvisited planar electrical devices from the connected device set of the visited wires and cables; if there is an unvisited wire and cable in the connected wire and cable set of the planar electrical device, continue to access the next planar electrical device along the unvisited wire and cable and record the visited planar electrical devices until there are no unvisited wires and cables in the visited planar electrical device; If there is no unvisited wire or cable in the connected wire and cable set of the planar electrical device, return to the previous planar electrical device and continue to access its connected wire and 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.
[0025] Exemplarily, first, a bus short-circuit isolator A1 is extracted from the bus short-circuit isolator set, and a wire cable a1 in the connected wire and cable set of the bus short-circuit isolator A1 is accessed, and the bus short-circuit isolator A1 is stored in the visited set and recorded as visited; then, an unvisited planar electrical device B1 is extracted from the connected device set of the accessed wire cable a1 (obtained by comparing the connected device set of the wire cable a1 with the visited set), and the wire cable a1 and the planar electrical device B1 are stored in the visited set and recorded as visited; an unvisited wire cable b1 is found in the connected wire and cable set of the planar electrical device B1 (obtained by comparing the connected wire and cable set of the planar electrical device B1 with the visited set), and an unvisited planar electrical device B2 is found in the connected device set of the wire cable b1, and the wire cable b1 and the planar electrical device B2 are stored in the visited set and recorded as visited; Determine whether there are any unvisited wires and cables in the connected wire and cable set of the planar electrical device B2. If there is still an unvisited wire and cable in the connected wire and cable set of the planar electrical device B2, continue to access the next planar electrical device along the unvisited wire and cable and record the accessed planar electrical device until there are no unvisited wires and cables in the accessed planar electrical device; if there is no unvisited wire and cable in the connected wire and cable set of the planar electrical device B2, the planar electrical device B1 continues to access its connected wire and cable set until all planar electrical devices and wires and cables are recorded as having been accessed, and add the accessed planar electrical devices to the protection device set of the bus short-circuit isolator. The generated protection device set is shown in FIG. Figure 2 shown.
[0026] S3: Based on the pre-established quantity detection conditions, perform quantity detection on the protection device set 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 bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set are accessed.
[0027] 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 comply with construction specifications according to actual needs, and will not be elaborated here.
[0028] 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 is specifically: the number of protection devices of the bus short circuit isolator is abnormal; and the second detection result is specifically: the number of protection devices of the bus short circuit isolator is normal; At the same time, after obtaining the first quantity detection result, see Figure 3 As shown, the coordinate position information of the bus short circuit isolator in the automatic fire alarm plan is obtained, and then the bus short circuit isolator is marked on the automatic fire alarm plan using a coil according to the coordinate position information; After obtaining the number detection result of the bus short circuit isolator, continue to extract the next bus short circuit isolator in the bus short circuit isolator set and record the access until all bus short circuit isolators in the bus short circuit isolator set are visited; when all bus short circuit isolators are accessed and recorded, the user adjusts the number of protective devices on the branch line of the bus short circuit isolator with the first number detection result, deletes the marking coil after adjustment and re-records the access to the bus short circuit isolator; if all bus short circuit isolators are the second number detection result, the user is prompted that "all loops are not exceeded".
[0029] Specifically, in this embodiment, by constructing a set of connected wires and cables of the bus short-circuit isolator and a set of connected devices of the wires and cables, an association relationship between the bus short-circuit isolator and the planar electrical equipment is established to facilitate subsequent search and traversal operations; by using a depth-first search algorithm to traverse all branch lines of each bus short-circuit isolator in turn, the planar electrical equipment protected by the corresponding bus short-circuit isolator is recorded, and a protection device set is generated with the type of planar electrical equipment as the key and the number of each type of planar electrical equipment as the value; then, using the pre-constructed quantity detection condition, the protection device set of the short-circuit isolator is subjected to quantity detection to obtain the quantity detection result of the bus short-circuit isolator, thereby realizing the quantity detection of the bus short-circuit isolator protection equipment in the automatic fire alarm plan, solving the technical problem that the existing technology relies on manual marking and statistics by designers, which is not only time-consuming and labor-intensive, but also prone to statistical errors.
[0030] Example 2 See also 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 one of the above-mentioned methods for detecting the number of isolator protection devices in a tree-shaped automatic fire alarm plan, and the system comprises: The bus short circuit isolator set construction module 100 is used to obtain the connected wire and cable set of each bus short circuit isolator, and obtain the bus short circuit isolator set constructed by multiple bus short circuit isolators; The protection device set generation module 200 is configured to extract a bus short circuit isolator from the bus short circuit isolator set and, using a depth-first search algorithm, sequentially access the wires and cables connected to the bus short circuit isolator, as well as the planar electrical devices connected via 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 isolator is generated based on all the planar electrical devices accessed, using the type of planar electrical device as a key and the number of each type of planar electrical device as a value. The protection device quantity detection module 300 is used to perform a quantity detection on the protection device set of the short-circuit isolator based on a pre-established quantity detection condition to obtain a 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 from the bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set have been accessed.
[0031] It should be noted that the modules in the system of Example 2 correspond to the steps in the method of Example 1. The steps in the method of Example 1 have been described in detail in Example 1. The contents of the modules in the system will not be described in detail in this Example 2.
[0032] Example 3 See also Figure 5 As shown, this embodiment further provides a computer device, including a system memory 1005 and a processor 1001, wherein the system memory 1005 stores a computer program, and the processor 1001 implements the steps of any of the above methods when executing the computer program.
[0033] It should be noted that the processor 1001 is configured to execute the steps of the above method embodiments according to the instructions in the program code. Alternatively, the processor 1001 implements the functions of the modules / units in the above system / device embodiments when executing the computer program.
[0034] Specifically, in this embodiment, the computer program may be divided into one or more modules / units, one or more modules / units being stored in the system memory 1005 and executed by the processor 1001 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0035] The terminal device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. The terminal device may include, but is not limited to, a processor 1001 and a system memory 1005. Those skilled in the art will appreciate that this does not limit the terminal device and 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, and the like.
[0036] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0037] The system memory 1005 can be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The system memory 1005 can also be the storage device 1004 of the terminal device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the terminal device. Furthermore, the system memory 1005 can also include both the internal storage unit of the terminal device and the storage device 1004. The system memory 1005 is used to store computer programs and other programs and data required by the terminal device. The system memory 1005 can also be used to temporarily store data that has been output or is about to be output.
[0038] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0039] Example 4 This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any one of the above methods are implemented.
[0040] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, system or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with 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), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art.
[0041] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In an embodiment of the present invention, a 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.
[0042] Example 5 This embodiment further provides a computer program product comprising instructions. When the instructions are executed by a computer device cluster, the computer device cluster executes the method described in Embodiment 1.
[0043] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method 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 in the scope of protection of the present invention.
Claims
1. A method for detecting the number of isolators protecting devices in a tree-shaped automatic fire alarm plan, characterized in that: include: Obtaining a set of connected wires and cables of each bus short-circuit isolator, and obtaining a set of bus short-circuit isolators constructed by a plurality of bus short-circuit isolators; A bus short circuit isolator is extracted from the bus short circuit isolator set, and the wires and cables connected to the bus short circuit isolator are sequentially accessed, as well as the planar electrical devices connected through the wires and cables, starting from the bus short circuit isolator through a depth-first search algorithm; after all branch lines of the bus short circuit isolator are accessed and recorded, a protection device set corresponding to the bus short circuit isolator is generated based on all the visited planar electrical devices, with the type of planar electrical device as a key and the number of each type of planar electrical device as a value; Based on the pre-established quantity detection conditions, the quantity detection is performed on the protection device set 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, the next bus short-circuit isolator is continuously extracted from the bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set are visited.
2. The method for detecting the number of isolators and protective 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 the planar layout equipment on the same layer of the automatic fire alarm plan, as well as the graphic element information of the wires and cables; wherein the planar layout equipment includes bus short circuit isolators and planar electrical equipment; Based on the graphic element information of the plane layout equipment and the graphic element information of the wires and cables, a tree topology diagram representing the connection relationship between the plane layout equipment is constructed with the plane layout equipment as nodes and the wires and cables between the plane layout equipment as edges, wherein the bus short circuit isolator is used as the root node and the plane electrical equipment is used as the child node; Obtain the connected wire and cable sets of the floor plan devices and the connected device sets of the wires and cables from the tree topology diagram.
3. The method for detecting the number of isolators and protective devices in a tree-shaped automatic fire alarm plan according to claim 1, characterized in that: A bus short circuit isolator is extracted from the bus short circuit isolator set, and the wires and cables connected to it, as well as the planar electrical equipment connected through the wires and cables, are sequentially accessed from the bus short circuit isolator using a depth-first search algorithm, specifically: Extract a bus short-circuit isolator from the bus short-circuit isolator set, access a wire and cable in the wire and cable set connected to the bus short-circuit isolator, and record the bus short-circuit isolator as having been accessed; Extracting unvisited planar electrical devices from the connected device set of the visited wires and cables; if there is an unvisited wire and cable in the connected wire and cable set of the planar electrical device, continue to access the next planar electrical device along the unvisited wire and cable and record the visited planar electrical devices until there are no unvisited wires and cables in the visited planar electrical device; If there is no unvisited wire or cable in the connected wire and cable set of the planar electrical device, return to the previous planar electrical device and continue to access its connected wire and 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.
4. The method for detecting the number of isolators and protective devices in a tree-shaped automatic fire alarm plan according to claim 1, characterized in that: Based on the pre-established quantity detection conditions, the quantity detection of the protection device set of the short-circuit isolator is performed to obtain the quantity detection result of the bus short-circuit isolator, which is specifically: When the number of planar electrical equipment in the protection device set is greater than the preset number threshold, the bus short-circuit isolator is marked in the automatic fire alarm plan and a first quantity detection result is obtained; when the number of planar electrical equipment in the protection device set is not greater than the preset number threshold, a second quantity detection result is obtained.
5. The method for detecting the number of isolators and protective devices in a tree-shaped automatic fire alarm plan according to claim 4, characterized in that: When the number of electrical devices in the protection device set exceeds the preset threshold, the bus short-circuit isolator is marked in the fire alarm plan, specifically: When the number of planar electrical devices in the protection device set is greater than a preset number threshold, obtaining coordinate position information of the bus short-circuit isolator in the automatic fire alarm plan; Based on the coordinate position information of the bus short-circuit isolator, the bus short-circuit isolator is marked in the automatic fire alarm plan.
6. The method for detecting the number of isolators and protective devices in a tree-shaped automatic fire alarm plan according to claim 4, characterized in that: The first detection result is specifically: the number of protection devices of the bus short-circuit isolator is abnormal; the second detection result is specifically: the number of protection devices of the bus short-circuit isolator is normal.
7. A system for detecting the number of isolators and protective devices in a tree-shaped automatic fire alarm plan, characterized in that: The system is used in a 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 to 6, and the system comprises: A bus short-circuit isolator set construction module is used to obtain a set of connected wires and cables of each bus short-circuit isolator, and to obtain a bus short-circuit isolator set constructed by a plurality of 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, using a depth-first search algorithm, 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; after accessing and recording all branch lines of the bus short circuit isolator, based on all the planar electrical devices accessed, generate a protection device set corresponding to the bus short circuit isolator, using the type of planar electrical device as a key and the number of each type of planar electrical device as a 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-established quantity detection conditions 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 from the bus short-circuit isolator set for access record until all bus short-circuit isolators in the bus short-circuit isolator set are accessed.
8. A computer device comprising a system memory and a processor, wherein the system memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising instructions, characterized in that When the instructions are executed by a computer device cluster, the computer device cluster is caused to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Power line carrier communication PLC system and method
CN113872640A
Bus short circuit isolation circuit and fire alarm system
CN116780480A
Revit-based automatic fire alarm system diagram drawing method and device
CN119004645A
A bus short-circuit isolation circuit and a fire alarm system
CN218850397U
isolator
JP2007323131A