Method for detecting the number of isolator protection devices in a looped automatic fire alarm plan
By constructing the association between bus short-circuit isolators and planar electrical devices and a search queue, combined with quantity judgment rules, the problem of time-consuming, labor-intensive, and error-prone manual labeling and statistics in existing technologies is solved, and efficient and accurate device quantity detection is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, manually labeling and counting the number of devices protected by bus short-circuit isolators by designers is time-consuming, labor-intensive, and prone to statistical errors.
By establishing the association between bus short-circuit isolators and planar electrical devices, a search queue is constructed and a search traversal operation is performed to record the number of planar electrical devices. The isolator groups are then filtered using pre-built quantity judgment rules to generate device quantity detection results.
It enables efficient and accurate detection of the number of devices protected by bus short-circuit isolators, reducing the workload of manual labeling and statistical errors.
Smart Images

Figure CN120671395B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of device quantity detection, and particularly relates to a method for detecting the quantity of devices protected by isolators in a ring-shaped automatic fire alarm plan. BACKGROUND
[0002] In the process of making an automatic fire alarm plan, a bus short-circuit isolator should be set on a system bus, and the total number of fire-fighting devices, such as fire detectors, manual fire alarm buttons and modules, protected by each bus short-circuit isolator should not exceed 32.
[0003] Currently, the quantity of fire-fighting devices protected by a bus short-circuit isolator is detected by using the following technical means: one is to use the color of a plan connection layer to determine whether two devices are connected and whether the connection belongs to a signal bus. First, a first bus short-circuit isolator and a second bus short-circuit isolator are found along a ring-shaped loop, and then the number of fire-fighting devices on a main loop and the number of fire-fighting devices on a branch loop are counted in sequence, and the number of devices on the main loop and the number of devices on the branch loop are added to obtain the number of two bus short-circuit isolators and are marked on the plan. The disadvantage of this scheme is that it is time-consuming and laborious, and increases the work burden of designers. At the same time, sometimes the project cycle is not allowed, and it is easy to make mistakes due to time pressure.
[0004] The other is that a designer leaves enough device redundancy when connecting a bus short-circuit isolator to a fire-fighting device in a protection loop. For example, a designer usually connects no more than 20 fire-fighting devices to a single bus short-circuit isolator when connecting a loop, so that even if the number of devices is increased in the later plan modification and adjustment, the total number of devices will not exceed 32.
[0005] Therefore, the present application aims to provide a method for detecting the quantity of devices protected by isolators in a ring-shaped automatic fire alarm plan to solve the above-mentioned related problems. SUMMARY
[0006] The technical problem to be solved by the present application is that the prior art through the design personnel artificial marking statistics, not only time-consuming and laborious, but also prone to statistical errors; the purpose is to provide a kind of ring fire automatic alarm planar graph isolator protection equipment quantity detection method, by constructing the association between bus short-circuit isolator and planar electrical equipment, and constructing a search queue including a plurality of bus short-circuit isolators, so as to facilitate subsequent search traversal operation;By taking out bus short-circuit isolator from search queue in turn for access record, and recording the number of planar electrical equipment accessed on the corresponding bus short-circuit isolator branch in the access process, a plurality of isolator groups containing planar electrical equipment quantity are generated;Then, the pre-constructed quantity judgment rule is used to screen the number of isolator groups, and the invalid isolator groups are removed;Finally, the isolator protection equipment quantity detection result is generated based on the screened isolator group, so as to realize the quantity detection of bus short-circuit isolator protection equipment in fire automatic alarm planar graph, solve the technical problem that the prior art through the design personnel artificial marking statistics, not only time-consuming and laborious, but also prone to statistical errors.
[0007] The present application is realized by the following technical solutions:
[0008] A kind of ring fire automatic alarm planar graph isolator protection equipment quantity detection method, method includes:
[0009] The set of connected wire cables of each bus short-circuit isolator is obtained, and a search queue including a plurality of bus short-circuit isolators is constructed;
[0010] A bus short-circuit isolator is taken out from search queue, and one wire cable in the set of connected wire cables of the bus short-circuit isolator is accessed along the set of connected wire cables, and the planar electrical equipment connected to the wire cable is accessed, and the number of planar electrical equipment accessed is recorded, until another bus short-circuit isolator is accessed, the isolator group and the corresponding planar electrical equipment quantity are obtained;When search queue is empty queue, a plurality of isolator groups and the corresponding planar electrical equipment quantity of each isolator group are obtained;
[0011] Based on the pre-constructed quantity judgment rule combined with the corresponding planar electrical equipment quantity of each isolator group, a plurality of isolator groups are judged;According to the judgment result, a plurality of isolator groups are screened, and a plurality of screened isolator groups are obtained;
[0012] The isolator protection equipment quantity detection result is generated using the screened plurality of isolator groups and the corresponding planar electrical equipment quantity.
[0013] Further, the method further includes:
[0014] Identify the graphic element information of the layout device and the graphic element information of the wire and cable in the same layer of the fire alarm plan; wherein the layout device comprises a bus short-circuit isolator and a plane electrical device;
[0015] Identify the graphic element information of the layout device and the graphic element information of the wire and cable in the fire alarm plan;
[0016] Based on the graphic element information of the layout device and the graphic element information of the wire and cable, a star ring topology graph representing the connection relationship between the layout devices is constructed, taking the layout devices as nodes and the wire and cable between the layout devices as edges.
[0017] Wherein, the star ring topology graph representing the connection relationship between the layout devices is constructed, specifically: taking one fire terminal box as a center node, and taking the plane electrical devices connected with the center node as sub-nodes, a star topology graph is constructed; then in each sub-node of the star topology graph, a ring topology structure of the sub-node and the remaining plane electrical devices connected with the sub-node is constructed.
[0018] From the star ring topology graph, the connected wire and cable set of the bus short-circuit isolator and the connected device set of the wire and cable are obtained.
[0019] Further, before obtaining the connected wire and cable set of each bus short-circuit isolator and constructing the search queue including a plurality of bus short-circuit isolators, the method further comprises:
[0020] Detect whether the number of connected wire and cable in the connected wire and cable set of each fire terminal box is not less than a preset wire and cable number threshold;
[0021] When the number of connected wire and cable in the connected wire and cable set of the fire terminal box is not less than the preset wire and cable number threshold, the bus short-circuit isolator connected with the fire terminal box is extracted and added to the search queue;
[0022] When the number of connected wire and cable in the connected wire and cable set of the fire terminal box is less than the preset wire and cable number threshold, the bus short-circuit isolator connected with the fire terminal box is not extracted and added to the search queue.
[0023] Further, one bus short-circuit isolator is taken out from the search queue, and one wire and cable in the connected wire and cable set of the bus short-circuit isolator is accessed, as well as the plane electrical device connected with the wire and cable, and the number of accessed plane electrical devices is recorded, until another bus short-circuit isolator is accessed, the isolator group and the corresponding number of plane electrical devices are obtained, specifically:
[0024] taking out a bus short-circuit isolator at the head of the queue from the search queue, and accessing a connected flat arrangement device along one wire cable of the connected wire cable set of the bus short-circuit isolator;
[0025] If the flat arrangement device is a flat electrical device, the number of flat electrical devices corresponding to the bus short-circuit isolator is increased, and the next flat arrangement device is continuously accessed until the bus short-circuit isolator is accessed, so as to obtain an isolator group and the corresponding number of flat electrical devices; if the flat electrical device is a bus short-circuit isolator, an isolator group is obtained.
[0026] Further, if the flat arrangement device is a flat electrical device, the number of flat electrical devices corresponding to the bus short-circuit isolator is increased, and the next flat arrangement device is continuously accessed until the bus short-circuit isolator is accessed, so as to obtain an isolator group and the corresponding number of flat electrical devices, specifically:
[0027] If the flat arrangement device is a flat electrical device, the number of flat electrical devices corresponding to the bus short-circuit isolator is increased, and one wire cable of the connected wire cable set of the flat electrical device is accessed;
[0028] It is judged whether the wire cable is valid, if it is an invalid wire cable, the branch of the wire cable is not accessed; if it is a valid wire cable, the flat arrangement device connected by the wire cable is obtained; it is judged whether the flat arrangement device has been accessed, if it has been accessed, it is not accessed again; if it has not been accessed, the flat arrangement device is continuously judged until the bus short-circuit isolator is accessed, so as to obtain an isolator group and the corresponding number of flat electrical devices.
[0029] Further, based on the pre-constructed number judgment rule and the number of flat electrical devices corresponding to each isolator group, the multiple isolator groups are judged, specifically:
[0030] It is judged whether the number of flat electrical devices corresponding to each isolator group is 0, and the judgment result of each isolator group is obtained.
[0031] The application also provides a number detection system of isolator protection devices of a ring-shaped automatic fire alarm plan, characterized in that the system is used in the number detection method of the isolator protection devices of the ring-shaped automatic fire alarm plan, and the system comprises:
[0032] A search queue construction module is used to obtain the connected wire cable set of each bus short-circuit isolator, and construct a search queue comprising multiple bus short-circuit isolators;
[0033] The isolator group generation module is used for taking out a bus short-circuit isolator from the search queue, accessing a wire cable in the set of wire cables connected to the bus short-circuit isolator and a flat electrical equipment connected to the wire cable, and recording the number of flat electrical equipments accessed until another bus short-circuit isolator is accessed, to obtain an isolator group and the number of flat electrical equipments corresponding to the isolator group; when the search queue is an empty queue, a plurality of isolator groups and the number of flat electrical equipments corresponding to each isolator group are obtained;
[0034] The isolator group screening module is used for judging the plurality of isolator groups based on the pre-constructed number judgment rule and the number of flat electrical equipments corresponding to each isolator group; and screening the plurality of isolator groups according to the judgment result to obtain a plurality of screened isolator groups.
[0035] The detection result generation module is used for generating an isolator protection equipment number detection result by using the plurality of screened isolator groups and the number of flat electrical equipments corresponding to the isolator groups.
[0036] The application further 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 the method according to any one of the above embodiments when executing the computer program.
[0037] The application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method according to any one of the above embodiments when executed by a processor.
[0038] The application further provides a computer program product comprising instructions, which, when executed by a computer device cluster, cause the computer device cluster to perform the method according to any one of the above embodiments.
[0039] Compared with the prior art, the application has the following advantages and beneficial effects:
[0040] In the application, the association between the bus short-circuit isolator and the flat electrical equipment is constructed, and the search queue comprising a plurality of bus short-circuit isolators is constructed, so as to facilitate subsequent search traversal operation; the bus short-circuit isolator is taken out from the search queue in sequence for access recording, and the number of flat electrical equipments accessed on the branch of the corresponding bus short-circuit isolator is recorded in the access process, to generate a plurality of isolator groups comprising the number of flat electrical equipments; the number of the isolator groups is screened by using the pre-constructed number judgment rule, and the invalid isolator groups are removed; finally, the isolator protection equipment number detection result is generated based on the screened isolator groups, so as to realize the number detection of the bus short-circuit isolator protection equipment in the fire automatic alarm plan, and solve the technical problem that the number detection is time-consuming and laborious and prone to errors by manual marking and statistics of designers in the prior art. Attached Figure Description
[0041] 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:
[0042] Figure 1 This is a schematic diagram of the method for detecting the number of isolator protection devices in a ring-shaped automatic fire alarm plan in this embodiment;
[0043] Figure 2 This is a schematic diagram of the system modules of the isolator protection device quantity detection system in a ring-shaped automatic fire alarm plan view according to this embodiment;
[0044] Figure 3 This is a schematic diagram of the structure of a computer device in this embodiment. Detailed Implementation
[0045] 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.
[0046] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit 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.
[0047] 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.
[0048] Example 1
[0049] The embodiment is used for detecting the number of bus short-circuit isolator protection devices in a looped fire alarm plan, so as to complete the number detection of the bus short-circuit isolator protection devices, first, a corresponding fire alarm plan needs to be constructed in CAD software, the construction process is as follows: combining professional specifications and building, structure, water supply and drainage, heating and ventilation, electrical professional data, arranging related plan electrical equipment and bus short-circuit isolators, after the plan electrical equipment and bus short-circuit isolators are arranged, according to the professional requirements, all plan electrical equipment is connected in turn by using wires and cables, and the bus short-circuit isolator is set and connected, forming a fire alarm plan; then the graphic element information of the plan arrangement equipment and the graphic element information of the wires and cables in the same layer of the fire alarm plan are identified; wherein, the plan arrangement equipment includes the bus short-circuit isolator and the plan electrical equipment; the graphic element information of the plan arrangement equipment and the graphic element information of the wires and cables in the fire alarm plan are identified; based on the graphic element information of the plan arrangement equipment and the graphic element information of the wires and cables, the plan arrangement equipment is taken as a node, and the wires and cables between the plan arrangement equipment are taken as edges, a star-shaped ring topology graph representing the connection relationship between the plan arrangement equipment is constructed; wherein, the star-shaped ring topology graph representing the connection relationship between the plan arrangement equipment is constructed, specifically: taking a fire terminal box as a center node, and taking the plan electrical equipment connected with the center node as a sub-node, a star topology graph is constructed; then in each sub-node of the star topology graph, a ring topology structure of the sub-node and the remaining plan electrical equipment connected with the sub-node is constructed; the connected wire and cable set of the bus short-circuit isolator and the connected device set of the wire and cable are obtained from the star-shaped ring topology graph.
[0050] Referring to Figure 1 , Figure 1 A method flowchart of a bus short-circuit isolator protection device number detection method of a looped fire alarm plan is shown, wherein the method comprises:
[0051] S1: obtaining the connected wire and cable set of each bus short-circuit isolator, and constructing a search queue including a plurality of bus short-circuit isolators;
[0052] It should be noted that in the present embodiment, before step S1, it is first necessary to judge the connected electric wire cable set of the fire terminal box, specifically: detecting whether the number of connected electric wire cables in the connected electric wire cable set of each fire terminal box is not less than a preset electric wire cable number threshold; wherein the preset electric wire cable number threshold is two, indicating that at least two electric wire cables are connected with the fire terminal box; when the number of connected electric wire cables in the connected electric wire cable set of the fire terminal box is not less than the preset electric wire cable number threshold, the bus short-circuit isolator connected with the fire terminal box is extracted and added to the search queue; when the number of connected electric wire cables in the connected electric wire cable set of the fire terminal box is less than the preset electric wire cable number threshold, the bus short-circuit isolator connected with the fire terminal box is not extracted and added to the search queue, that is, the fire terminal box does not exist an effective loop, then directly prompts "no effective loop is found";
[0053] At the same time, it should also be noted that in the present embodiment, the plurality of bus short-circuit isolators in the search queue are arranged in order according to the order of joining the queue, and in other embodiments, other arrangement methods can also be used, which are not limited here.
[0054] S2: taking out one bus short-circuit isolator from the search queue, and accessing one electric wire cable in the connected electric wire cable set of the bus short-circuit isolator and the plane electrical equipment connected with the electric wire cable, and recording the number of accessed plane electrical equipment, until another bus short-circuit isolator is accessed, obtaining an isolator group and the corresponding number of plane electrical equipment; when the search queue is empty, a plurality of isolator groups and the number of plane electrical equipment corresponding to each isolator group are obtained;
[0055] Specifically, in the present embodiment, the bus short-circuit isolator located at the head of the queue is taken out from the search queue, and the connected plane arrangement equipment is accessed along one electric wire cable in the connected electric wire cable set of the bus short-circuit isolator; if the plane arrangement equipment is a plane electrical equipment, the number of plane electrical equipment corresponding to the bus short-circuit isolator is increased, and one electric wire cable in the connected electric wire cable set of the plane electrical equipment is accessed; it is judged whether the electric wire cable is valid, if it is an invalid electric wire cable, the branch of the electric wire cable is not accessed; if it is a valid electric wire cable, the plane arrangement equipment connected with the electric wire cable is obtained; it is judged whether the plane arrangement equipment has been accessed, if it has been accessed, it is not accessed again; if it has not been accessed, the plane arrangement equipment is continuously judged, until the bus short-circuit isolator is accessed, that is, an isolator group and the corresponding number of plane electrical equipment are obtained; if the plane electrical equipment is a bus short-circuit isolator, an isolator group is obtained.
[0056] It should be noted that in this embodiment, the bus short-circuit isolator at the head of the search queue is taken out, the one-way detection process is continued for the bus short-circuit isolator, one unvisited wire and cable in the connected wire and cable set of the bus short-circuit isolator is obtained, and the flat arrangement device connected by the wire and cable is accessed. The flat arrangement device is subjected to device type judgment: (1) if the flat arrangement device is a flat electrical device, it is indicated that the bus short-circuit isolator is connected to the flat electrical device, the number of flat electrical devices of the bus short-circuit isolator is correspondingly increased by 1, and the flat electrical device is recorded as having been visited. One unvisited wire and cable in the connected wire and cable set of the flat electrical device is obtained, and it is judged whether the wire and cable is valid, that is, whether there is another flat arrangement device connected (whether it is a circuit breaker) in the connected device set of the wire and cable. If yes, the wire and cable is a valid wire and cable, otherwise, the wire and cable is an invalid wire and cable. Then, the flat arrangement device connected by the wire and cable is accessed, and it is judged whether the flat arrangement device has been visited. If it has been visited, it is not accessed again. If it has not been visited, the flat arrangement device is subjected to device type judgment, and the cycle of access is performed downward until the bus short-circuit isolator is accessed, that is, two bus short-circuit isolators form an isolator group, and the number of flat electrical devices accessed in the middle is taken as the number of flat electrical devices of the isolator group. (2) If the flat arrangement device is a bus short-circuit isolator, two bus short-circuit isolators form an isolator group, and the number of flat electrical devices of the isolator group is 0 at this time.
[0057] S3: judging a plurality of isolator groups based on the pre-constructed number judgment rule and the number of flat electrical devices corresponding to each isolator group; screening the plurality of isolator groups according to the judgment result to obtain a plurality of screened isolator groups;
[0058] It should be noted that in this embodiment, the judgment of the plurality of isolator groups based on the pre-constructed number judgment rule and the number of flat electrical devices corresponding to each isolator group is specifically: judging whether the number of flat electrical devices corresponding to each isolator group is 0 to obtain the judgment result of each isolator group; that is, screening the isolator group without flat electrical devices between two bus short-circuit isolators, and there is no effective loop between the isolator groups.
[0059] S4: generating an isolator protection device number detection result by using the plurality of screened isolator groups and the corresponding number of flat electrical devices.
[0060] Specifically, in the embodiment, the association relationship between the bus short-circuit isolator and the flat electrical equipment is constructed, and a search queue including a plurality of bus short-circuit isolators is constructed, so as to facilitate subsequent search traversal operation; the bus short-circuit isolators are taken out from the search queue in turn for access record, and the number of flat electrical equipments accessed on the corresponding bus short-circuit isolator branch is recorded in the access process, to generate a plurality of isolator groups containing the number of flat electrical equipments; the number of the isolator groups is screened by using the pre-constructed number judgment rule, and the invalid isolator groups are removed; finally, the isolator protection device number detection result is generated based on the screened isolator groups, so as to realize the number detection of the bus short-circuit isolator protection device in the fire automatic alarm plan, and solve the technical problems that the existing technology is manually marked and counted by designers, which is not only time-consuming and laborious, but also easy to cause counting error.
[0061] Embodiment 2
[0062] Referring to Figure 2 The present application also provides an isolator protection device number detection system for a ring-shaped fire automatic alarm plan, which is characterized in that the system is used in the isolator protection device number detection method for the ring-shaped fire automatic alarm plan, and the system comprises:
[0063] A search queue construction module 100 is configured to obtain a set of connected electric wires and cables of each bus short-circuit isolator, and construct a search queue including a plurality of bus short-circuit isolators.
[0064] An isolator group generation module 200 is configured to take out one bus short-circuit isolator from the search queue, access one electric wire and cable in the set of connected electric wires and cables of the bus short-circuit isolator, and the flat electrical equipment connected by the electric wire and cable, and record the number of accessed flat electrical equipments, until another bus short-circuit isolator is accessed, to obtain an isolator group and the corresponding number of flat electrical equipments; when the search queue is an empty queue, a plurality of isolator groups and the corresponding number of flat electrical equipments of each isolator group are obtained.
[0065] An isolator group screening module 300 is configured to judge the plurality of isolator groups based on the pre-constructed number judgment rule and the corresponding number of flat electrical equipments of each isolator group; and screen the plurality of isolator groups according to the judgment result, to obtain a plurality of screened isolator groups.
[0066] A detection result generation module 400 is configured to generate an isolator protection device number detection result by using the plurality of screened isolator groups and the corresponding number of flat electrical equipments.
[0067] It should be noted that the modules in the system of embodiment 2 correspond to the steps in the method of embodiment 1, and the steps in the method of embodiment 1 have been described in detail in embodiment 1, and the content of the modules in the system will not be described in detail in this embodiment 2.
[0068] Embodiment 3
[0069] Referring to Figure 3 As shown in the figure, the embodiment also provides a computer device, which includes a system memory 1005 and a processor 1001, the system memory 1005 stores a computer program, and the processor 1001 implements the steps of the method of any one of the above embodiments when executing the computer program.
[0070] It should be noted that the processor 1001 is configured to execute the steps in the method embodiments described above according to the instructions in the program code. Alternatively, the processor 1001 implements the functions of each module / unit in each system / device embodiment described above when executing the computer program.
[0071] Specifically, in this embodiment, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the system memory 1005 and executed by the processor 1001 to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the terminal device.
[0072] The terminal device can be a desktop computer, a notebook computer, a palm computer, and a cloud server, etc. The terminal device can include, but is not limited to, the processor 1001 and the system memory 1005. Those skilled in the art can understand that it does not constitute a limitation on the terminal device, and can include more or fewer components than the illustration, or combine certain components, or different components, for example, the terminal device can 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), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0074] The system memory 1005 can be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The system memory 1005 can also be a storage device 1004 of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, 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 will be output.
[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, system and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0076] Embodiment 4
[0077] The embodiment provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the method of any one of the above embodiments.
[0078] The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, system or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a 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.
[0079] An example storage medium is coupled to the processor such that the processor can read information from, and can write information to, the storage medium. Of course, the storage medium can be a part of the processor. Consistent with the teachings provided herein, a processor (or multiple processors) can be used to implement a controller, or portions of a controller. The processor and the storage medium can be located in a single ASIC chip.
[0080] Embodiment 5
[0081] This embodiment also provides a computer program product containing instructions which, when executed by a cluster of computer devices, cause the cluster of computer devices to perform the method as described in embodiment 1.
[0082] The above detailed description merely describes specific implementations, teaching and applications of the present application. The teachings of the present application should not be limited, however, to those implementations, because these are provided only as practical examples of various present applications. Numerous modifications and alternatives are enabled by the content of the present disclosure and are thus within the scope of the present application.
Claims
1. A method for detecting the number of isolator protection devices in a circular fire alarm plan, characterized in that, The methods include: Obtain the set of connected wires and cables for each bus short-circuit isolator, and construct a search queue that includes multiple bus short-circuit isolators; Take a bus short-circuit isolator from the search queue, and visit one of the connected wires and cables of the bus short-circuit isolator and the planar electrical devices connected to that wire and cable, and record the number of planar electrical devices visited, until another bus short-circuit isolator is visited, and obtain the isolator group and the corresponding number of planar electrical devices; when the search queue is empty, obtain multiple isolator groups and the number of planar electrical devices corresponding to each isolator group; Based on the pre-built quantity judgment rules and the number of planar electrical devices corresponding to each isolator group, multiple isolator groups are judged; based on the judgment results, multiple isolator groups are filtered to obtain multiple filtered isolator groups; The number of isolator protection devices is detected by using the selected multiple isolator groups and the corresponding number of planar electrical devices.
2. The method for detecting the number of isolator protection devices in a ring-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; Identify the graphic elements of the equipment and electrical cables in the fire alarm system plan. Based on the graphic information of the planar layout equipment and the graphic information of the wires and cables, a star-shaped ring 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. Specifically, constructing a star-shaped ring topology diagram representing the connection relationship between planar equipment involves: taking a fire terminal box as the central node and the planar electrical equipment connected to the central node as child nodes to construct a star-shaped topology diagram; then, in each child node of the star-shaped topology diagram, constructing a ring topology structure of the child node and the remaining planar electrical equipment connected to the child node. Obtain the set of connected wires and cables of the bus short-circuit isolator and the set of connected devices of the wires and cables from the star-ring topology diagram.
3. The method for detecting the number of isolator protection devices in a ring-shaped automatic fire alarm plan according to claim 1, characterized in that, Before obtaining the set of connected wires and cables for each bus short-circuit isolator and constructing a search queue that includes multiple bus short-circuit isolators, the method further includes: Check whether the number of connected wires and cables in the connected wire and cable set of each fire terminal box is not less than the preset threshold for the number of wires and cables; If the number of connected wires and cables in the set of connected wires and cables of the fire terminal box is not less than the preset threshold for the number of wires and cables, then the bus short-circuit isolator connected to the fire terminal box is extracted and added to the search queue. If the number of connected wires and cables in the set of connected wires and cables of the fire terminal box is less than the preset threshold for the number of wires and cables, the bus short-circuit isolator connected to the fire terminal box will not be extracted and added to the search queue.
4. The method for detecting the number of isolator protection devices in a circular fire alarm plan according to claim 1, characterized in that, Take a bus short-circuit isolator from the search queue, and visit one of the connected wires and cables of the bus short-circuit isolator and the planar electrical devices connected to that wire and cable, recording the number of planar electrical devices visited, until another bus short-circuit isolator is visited, obtaining the isolator group and the corresponding number of planar electrical devices, specifically: Take the bus short-circuit isolator at the head of the search queue and access the connected planar device by one of the connected wires along the bus short-circuit isolator's connected wires. If the planar layout device is a planar electrical device, the number of planar electrical devices with the corresponding bus short-circuit isolator is increased, and the next planar layout device is accessed until a bus short-circuit isolator is accessed, thus obtaining an isolator group and the corresponding number of planar electrical devices; if the planar electrical device is a bus short-circuit isolator, an isolator group is obtained.
5. The method for detecting the number of isolator protection devices in a circular fire alarm plan according to claim 1, characterized in that, If the layout device is a planar electrical device, then increase the number of planar electrical devices corresponding to the bus short-circuit isolator, and continue to access the next layout device until a bus short-circuit isolator is accessed, thus obtaining an isolator group and the corresponding number of planar electrical devices, specifically: If the planar layout device is a planar electrical device, then increase the number of planar electrical devices with the corresponding bus short-circuit isolator, and access one of the wires and cables in the connected wire and cable set of the planar electrical device; Determine if the wire or cable is valid; if it is invalid, do not access that branch of the wire or cable. If it is a valid wire or cable, then obtain the planar layout equipment connected to the wire or cable; Determine whether the device in the layout has been accessed. If it has been accessed, do not access it again. If it has not been accessed, continue to determine the device in the layout until the bus short-circuit isolator is accessed, thus obtaining an isolator group and the corresponding number of planar electrical devices.
6. The method for detecting the number of isolator protection devices in a circular fire alarm plan according to claim 1, characterized in that, Based on pre-built quantity judgment rules and the number of planar electrical devices corresponding to each isolator group, multiple isolator groups are judged, specifically as follows: Determine whether the number of planar electrical devices corresponding to each isolator group is 0, and obtain the determination result for each isolator group.
7. A system for detecting the number of isolator protection devices in a circular fire alarm plan, characterized in that, This system is used in the method for detecting the number of isolator protection devices in a ring-shaped automatic fire alarm plan as described in any one of claims 1-6, wherein the system comprises: The search queue building module is used to obtain the set of connected wires and cables for each bus short-circuit isolator, and to build a search queue that includes multiple bus short-circuit isolators; The isolator group generation module is used to retrieve a bus short-circuit isolator from the search queue, and access one of the connected wires and cables of the bus short-circuit isolator and the planar electrical devices connected to that wire and cable, and record the number of planar electrical devices accessed, until another bus short-circuit isolator is accessed, thus obtaining the isolator group and the corresponding number of planar electrical devices; when the search queue is empty, multiple isolator groups and the number of planar electrical devices corresponding to each isolator group are obtained; The isolator group filtering module is used to judge multiple isolator groups based on pre-built quantity judgment rules and the number of planar electrical devices corresponding to each isolator group; and to filter multiple isolator groups according to the judgment results to obtain multiple filtered isolator groups; The test result generation module is used to generate test results for the number of isolator protection devices by using multiple isolator groups after screening and the corresponding number of planar electrical devices.
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 instructions are 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
System and method for using signal waveform analysis for detecting a change in a wired network
CN110325929A
Self-aligned light angle sensor using thin metal silicide anodes
CN113494894A