Disclosure of Invention
The invention mainly aims to solve the problems that the prior arrangement scheme of the input-output module of the fire-fighting system needs to be rearranged during each adjustment, thereby causing low efficiency and easy omission of arrangement.
The first aspect of the invention provides a method for arranging input and output modules of a fire protection system, which comprises the following steps: acquiring a three-dimensional design model based on an area to be arranged provided by water supply and drainage and heating and ventilation professions, and generating an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table based on the three-dimensional design model, wherein the equipment data table comprises at least one fire-fighting linkage equipment; determining the types and the quantity of the input and output modules required by each fire-fighting linkage device based on the device attribute of each fire-fighting linkage device in the device data table; and arranging the input and output modules of the fire-fighting linkage equipment based on the building information and the types and the quantity of the input and output modules corresponding to the fire-fighting linkage equipment.
Optionally, in a first implementation manner of the first aspect of the present invention, the generating, based on the three-dimensional design model, an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table includes: identifying component information of fire-fighting linkage equipment in the three-dimensional design model, and identifying the fire-fighting linkage equipment corresponding to the component information by using a preset equipment identification model; acquiring equipment attributes of the fire-fighting linkage equipment, and storing the equipment attributes in a data table to obtain an equipment data table of the area to be arranged; and extracting structural members in a preset radius range from the corresponding positions of the structural member information in the three-dimensional design model to obtain the building information of the corresponding fire-fighting linkage equipment.
Optionally, in a second implementation manner of the first aspect of the present invention, the device attribute includes at least a device name and a control manner; the determining the type and the number of the input/output modules required by each fire-fighting linkage device based on the device attribute of each fire-fighting linkage device in the device data table comprises the following steps: based on the equipment names and control modes of the fire-fighting linkage equipment in the equipment data table, the types and the numbers of the input and output modules required by the fire-fighting linkage equipment are calculated by utilizing the design specifications and the control requirements of the input and output modules.
Optionally, in a third implementation manner of the first aspect of the present invention, based on the device name and the control manner of each fire-fighting linkage device in the device data table, calculating the type and the number of the input/output modules required by each fire-fighting linkage device by using the design specification and the control requirement of each input/output module includes: matching calculation is carried out based on the equipment name and the control mode and the control requirements of each input and output module to obtain the matching degree of each fire-fighting linkage equipment and each input and output module, and the target input and output module of each fire-fighting linkage equipment is determined based on the matching degree to obtain the type of each fire-fighting linkage equipment; and calculating the number of the required target input/output modules based on the design specifications of the target input/output modules and the building information of the corresponding fire-fighting linkage equipment.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after determining the type and the number of input/output modules required by each fire-fighting linkage device based on the device attribute of each fire-fighting linkage device in the device data table, the method further includes: obtaining the module ID and the module name of each target input/output module, and creating a module list of all target input/output modules; and associating the equipment data table with the module list based on the equipment ID of the fire-fighting linkage equipment corresponding to each target input/output module.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the arranging the input/output modules of each fire-fighting linkage device based on the building information and the type and the number of the input/output modules corresponding to each fire-fighting linkage device includes: determining the installation requirement of the input/output module based on the type of the input/output module corresponding to each fire-fighting linkage device; determining a target installation mode based on the installation requirement and the building information of the corresponding fire-fighting linkage equipment; searching installation positions on the positions of the fire-fighting linkage equipment, and selecting positions conforming to the installation mode from the searched installation positions to obtain a position set; solving N solutions from the position set by using a preset target optimization algorithm, wherein the size of N is equal to the number of input and output modules; and arranging the input and output modules based on the N solutions for the corresponding fire-fighting linkage equipment.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the arranging the input/output modules of each fire-fighting linkage device based on the building information and the type and the number of the input/output modules corresponding to each fire-fighting linkage device, the method further includes: the timing polling identifies whether fire linkages in the area to be deployed are changing; if yes, traversing whether the association relationship between the equipment data table and the module list is established or not based on the equipment ID of the changed fire-fighting linkage equipment; if not, the input/output module of the fire-fighting linkage equipment with the rising and changing movement is rearranged.
The second aspect of the present invention provides a fire protection system input-output module arrangement device, comprising:
the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a three-dimensional design model based on a region to be arranged provided by water supply and drainage and heating and ventilation professions, and generating a device data table of the region to be arranged and building information of each fire-fighting linkage device in the device data table based on the three-dimensional design model, wherein the device data table comprises at least one fire-fighting linkage device;
The determining module is used for determining the types and the quantity of the input and output modules required by each fire-fighting linkage device based on the device attribute of each fire-fighting linkage device in the device data table;
the arrangement module is used for arranging the input and output modules of the fire-fighting linkage equipment based on the building information and the types and the numbers of the input and output modules corresponding to the fire-fighting linkage equipment.
Optionally, in a first implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to:
identifying component information of fire-fighting linkage equipment in the three-dimensional design model, and identifying the fire-fighting linkage equipment corresponding to the component information by using a preset equipment identification model;
acquiring equipment attributes of the fire-fighting linkage equipment, and storing the equipment attributes in a data table to obtain an equipment data table of the area to be arranged;
and extracting structural members in a preset radius range from the corresponding positions of the structural member information in the three-dimensional design model to obtain the building information of the corresponding fire-fighting linkage equipment.
Optionally, in a second implementation manner of the second aspect of the present invention, the device attribute includes at least a device name and a control manner; the determining module is specifically configured to:
Based on the equipment names and control modes of the fire-fighting linkage equipment in the equipment data table, the types and the numbers of the input and output modules required by the fire-fighting linkage equipment are calculated by utilizing the design specifications and the control requirements of the input and output modules.
Optionally, in a third implementation manner of the second aspect of the present invention, the determining module includes:
the matching unit is used for carrying out matching calculation on the basis of the equipment name and the control mode and the control requirements of the input and output modules to obtain the matching degree of the firefighting linkage equipment and the input and output modules, and determining the target input and output modules of the firefighting linkage equipment on the basis of the matching degree to obtain the type of the firefighting linkage equipment;
and the calculating unit is used for calculating the number of the required target input/output modules based on the design specifications of the target input/output modules and the building information of the corresponding fire-fighting linkage equipment.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the fire protection system input-output module arrangement device further includes: the association module is specifically used for:
obtaining the module ID and the module name of each target input/output module, and creating a module list of all target input/output modules;
And associating the equipment data table with the module list based on the equipment ID of the fire-fighting linkage equipment corresponding to each target input/output module.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the arrangement module includes:
the determining unit is used for determining the installation requirement of the input and output module based on the type of the input and output module corresponding to each fire-fighting linkage device; determining a target installation mode based on the installation requirement and the building information of the corresponding fire-fighting linkage equipment;
the searching unit is used for searching installation positions on the positions of the fire-fighting linkage equipment and selecting positions conforming to the installation mode from the searched installation positions to obtain a position set;
and the solving unit is used for solving N solutions from the position set by utilizing a preset target optimization algorithm, wherein the size of N is equal to the number of the input and output modules.
The arrangement unit is used for arranging the input and output modules on the basis of the N solutions for the corresponding fire-fighting linkage equipment.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the system input/output prevention module arrangement device further includes: the updating module is specifically used for:
The timing polling identifies whether fire linkages in the area to be deployed are changing;
if yes, traversing whether the association relationship between the equipment data table and the module list is established or not based on the equipment ID of the changed fire-fighting linkage equipment;
and if not, rearranging the input and output modules of the fire-fighting linkage equipment with the rising and changing states, and updating the equipment data table and the module list.
A third aspect of the present invention provides a fire protection system input output module arrangement apparatus comprising a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the fire protection system input output module arrangement device to perform the steps of the fire protection system input output module arrangement method as described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the steps of a fire protection system input output module arrangement method as described above.
According to the technical scheme provided by the invention, a three-dimensional design model based on an area to be arranged provided by water supply and drainage and heating and ventilation professions is obtained, and an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table are generated based on the three-dimensional design model, wherein the equipment data table comprises at least one fire-fighting linkage equipment; determining the types and the quantity of the input and output modules required by each fire-fighting linkage device based on the device attribute of each fire-fighting linkage device in the device data table; and arranging the input and output modules of the fire-fighting linkage equipment based on the building information and the types and the quantity of the input and output modules corresponding to the fire-fighting linkage equipment.
According to the method, all the fire-fighting linkage equipment is extracted based on a three-dimensional design model of an area to be arranged, an equipment data table is generated, then the types and the number of required input/output modules are calculated based on equipment attributes of the fire-fighting linkage equipment recorded in the equipment data table and combined with building information of the fire-fighting linkage equipment, so that automatic arrangement of the input/output modules of the fire-fighting linkage equipment is realized.
Detailed Description
Aiming at the problems of the existing arrangement mode of the input and output modules of the fire-fighting linkage equipment, the application provides a fire-fighting system input and output module arrangement method, device, equipment and storage medium, fire-fighting linkage equipment in an area to be arranged is recorded into a data table, then corresponding types of input and output modules are calculated based on the control mode of the fire-fighting linkage equipment, corresponding building information is sequentially acquired based on the fire-fighting linkage equipment in the data table, the arranged quantity is calculated according to the building information and the corresponding types of input and output modules, and accordingly the arrangement of the input and output modules of the fire-fighting linkage equipment is achieved. The arrangement method does not need to search equipment one by one in the design drawing, avoids the problem of omission, and utilizes a target optimization algorithm to determine the arrangement position points of the input and output modules of each fire-fighting linkage equipment, thereby ensuring the arrangement quality. Furthermore, the data table and the input and output modules are associated to obtain an associated table, and when the subsequent fire-fighting linkage equipment sends changes, the arrangement is detected and updated directly through the association between the data table and the input and output modules, so that the problem that the design information is not smooth in communication is solved, the modification of the fire-fighting linkage equipment is avoided, the condition that the input and output modules are not updated is guaranteed, and the accuracy of the design information transmission is guaranteed.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, the following describes a specific flow of an embodiment of the present invention, and please refer to fig. 1 for a schematic diagram of a first embodiment of a method for arranging input/output modules of a fire protection system according to an embodiment of the present invention, where the method specifically includes the following steps:
101. the method comprises the steps of obtaining a three-dimensional design model based on an area to be arranged provided by water supply and drainage and heating and ventilation professions, and generating an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table based on the three-dimensional design model.
In this embodiment, the device data table includes at least one fire-fighting linkage device. The area to be arranged refers to a floor or an area where fire-fighting linkage equipment is required to be arranged, such as a garage floor, a target area is firstly determined, then a plane design diagram of the target area is obtained, a three-dimensional model of the target area is built by utilizing three-dimensional modeling software based on the plane design diagram, then water supply, drainage and heating pipelines are arranged in the three-dimensional model, so that a corresponding three-dimensional design model is obtained, building information of components of the fire-fighting linkage equipment and positions of the components are extracted on the three-dimensional design model, actual fire-fighting linkage equipment is determined based on the components, finally equipment attributes of each fire-fighting linkage equipment are found out from a database, and the equipment attributes are recorded into a data table to obtain an equipment data table of the area to be arranged.
102. And determining the types and the quantity of the input/output modules required by each fire-fighting linkage device based on the equipment attribute of each fire-fighting linkage device in the equipment data table.
Specifically, the equipment attribute of each fire-fighting linkage equipment is extracted by traversing each fire-fighting linkage equipment in the equipment data table, and then the type and the number of the input/output modules required by each fire-fighting linkage equipment are calculated based on the equipment attribute, the arrangement specification and the control requirement of the input/output modules.
For example, the control method in the equipment attribute is paired with the control requirement of each input/output module, the input/output module of each fire-fighting linkage equipment is determined based on the paired result, and the required quantity is calculated based on the arrangement specification of the input/output modules and the control method of the fire-fighting linkage equipment.
Further, if the input/output modules are associated with the fire-fighting linkage equipment in terms of names, the corresponding input/output modules can be matched through the names of the fire-fighting linkage equipment, and then the corresponding number is calculated based on the control mode, the control requirement and the arrangement specification.
103. Based on the building information and the types and the number of the input/output modules corresponding to the fire-fighting linkage devices, the input/output modules of the fire-fighting linkage devices are arranged.
In this embodiment, the building information includes the outline of the room where the fire-fighting linkage equipment is located, the walls, columns, doors and the like nearby, the type of the installation mode is determined based on the type of the input/output module corresponding to each fire-fighting linkage equipment, the corresponding installation position type is determined based on the installation position type, the corresponding structural member such as the walls, the columns, the doors and the like is determined from the building information, then the structural member which accords with the installation mode of the input/output module in the building information is searched, the input/output module is arranged on the structural member based on the design specification of the input/output module, and the arranged position is calculated specifically.
According to the scheme, all the fire-fighting linkage equipment is extracted based on the three-dimensional design model of the area to be arranged, an equipment data table is generated, then the types and the quantity of required input and output modules are calculated based on equipment attributes of the fire-fighting linkage equipment recorded in the equipment data table and combined with building information of the fire-fighting linkage equipment, so that automatic arrangement of the input and output modules of the fire-fighting linkage equipment is realized.
Referring to fig. 2, a second embodiment of a method for arranging input/output modules of a fire protection system according to an embodiment of the present invention is shown, and the method specifically includes the following steps:
201. and acquiring a three-dimensional design model based on the area to be arranged provided by the water supply and drainage and heating and ventilation profession.
The three-dimensional design model contains components of the fire-fighting linkage equipment and all building information of the position where the fire-fighting linkage equipment is located, such as the outline of a room where the fire-fighting linkage equipment is located, and building information of nearby walls, columns, doors and the like.
202. And identifying component information of the fire-fighting linkage equipment in the three-dimensional design model, and identifying the fire-fighting linkage equipment corresponding to the component information by using a preset equipment identification model.
And identifying a component, such as an identification component, of the fire-fighting linkage equipment on the model in the three-dimensional design model through the equipment identification model, and inquiring equipment corresponding to each component in the preset model based on the identification component to obtain a list of the fire-fighting linkage equipment, wherein the equipment identification model is a model of a corresponding relation between component information and the fire-fighting linkage equipment.
203. And acquiring equipment attributes of the fire-fighting linkage equipment, and storing the equipment attributes in a data table to obtain an equipment data table of the area to be arranged.
In the step, the equipment attribute comprises data such as an equipment ID, a name, a control mode and the like of the fire-fighting linkage equipment, specifically, an equipment data table of the fire-fighting linkage equipment is automatically created in a database through a database system, corresponding attribute information is queried based on the names of the fire-fighting linkage equipment, namely, the equipment ID, the name, the control mode and the like, and the data such as the equipment ID, the name, the control mode and the like are stored in the equipment data table.
204. And extracting structural members in a preset radius range from the corresponding positions of the information of each structural member in the three-dimensional design model to obtain the building information of the corresponding fire-fighting linkage equipment.
In the step, information of structural members in the three-dimensional design model is identified through an identification algorithm, specifically, the position of the fire-fighting linkage equipment in the model (namely, the position of an identification component corresponding to the fire-fighting linkage equipment in the model) is firstly determined, then the structural members, such as walls, columns and doors, in the radius range are searched based on the effective control distance of the input-output module as the radius, and the structural members are used as building information of the fire-fighting linkage equipment.
In practical application, components of the fire-fighting linkage equipment in the model are extracted, corresponding fire-fighting linkage equipment is determined based on the components, data such as the ID, the name and the control mode of the equipment are acquired, and the data are stored in a preset data table to obtain a fire-fighting linkage equipment data table.
205. Based on the equipment names and control modes of the fire-fighting linkage equipment in the equipment data table, the types and the numbers of the input-output modules required by the fire-fighting linkage equipment are calculated by utilizing the design specifications and the control requirements of the input-output modules.
Specifically, matching calculation is performed based on the equipment name and the control mode and the control requirements of each input and output module to obtain the matching degree of each fire-fighting linkage equipment and each input and output module, and the target input and output module of each fire-fighting linkage equipment is determined based on the matching degree to obtain the type of each fire-fighting linkage equipment; and calculating the number of the required target input/output modules based on the design specifications of the target input/output modules and the building information of the corresponding fire-fighting linkage equipment.
In practical application, a similarity calculation algorithm is utilized to calculate the similarity between the equipment name of the fire-fighting linkage equipment and the names of the input and output modules, an input and output module with larger similarity is selected as a candidate target, then the matching degree between the control mode of the fire-fighting linkage equipment and the control requirement of the candidate target is calculated, and then one of the candidate targets with the largest matching degree is selected as a target input and output module, wherein the matching degree refers to the same or similar control principle or communication protocol between the two.
206. And constructing a module list by each target input/output module, and associating the equipment data list and the module list.
Specifically, module IDs and module names of all the target input/output modules are obtained, and a module list of all the target input/output modules is created; and associating the equipment data table with the module list based on the equipment ID of the fire-fighting linkage equipment corresponding to each target input/output module.
In practical application, based on the equipment name and control mode of the fire-fighting linkage equipment obtained in the model, calculating the type and the number of the input/output modules corresponding to each fire-fighting linkage equipment according to the design specification and an input/output module calculation method under the control requirement; automatically creating a module list of the input and output modules in the database, storing the module IDs, types and numbers of the input and output modules and the equipment IDs of the corresponding fire-fighting linkage equipment, taking the equipment IDs of the corresponding fire-fighting linkage equipment as the module list external key of the input and output modules, pointing to the equipment data table main key (equipment ID) of the fire-fighting linkage equipment, and associating the equipment data table of the fire-fighting linkage equipment with the module table of the input and output modules in the database so as to obtain the constraint relation between each fire-fighting linkage equipment and the corresponding input and output modules.
207. Based on the building information and the types and the number of the input/output modules corresponding to the fire-fighting linkage devices, the input/output modules of the fire-fighting linkage devices are arranged.
In the step, the installation requirement of the input and output module is determined based on the type of the input and output module corresponding to each fire-fighting linkage device;
determining a target installation mode based on the installation requirement and the building information of the corresponding fire-fighting linkage equipment;
searching installation positions on the positions of the fire-fighting linkage equipment, and selecting positions conforming to the installation mode from the searched installation positions to obtain a position set;
and solving N solutions from the position set by using a preset target optimization algorithm, wherein the size of N is equal to the number of the input/output modules.
And arranging the input and output modules based on the N solutions for the corresponding fire-fighting linkage equipment.
In this embodiment, first, the installation requirements of the input/output modules corresponding to each fire-fighting linkage device, such as specifications of wall-mounted installation or ceiling-mounted installation, installation distance and the like, are determined, the wall, the column or the door in the building information is screened through an installation mode, so that the installation positions meeting the installation requirements of the input/output modules are selected, then, the control performance between each installation position and the fire-fighting linkage device is solved by using a target optimization algorithm, and the installation positions are ordered based on the solved results, so that N are selected as final installation positions.
The solving of the control performance can be specifically that the communication success rate between the input and output modules at each installation position and the corresponding fire-fighting linkage equipment is simulated in a simulation mode, so that the control performance, namely the control success rate, is obtained, and the solving is obtained.
208. By setting timing polling, the rearrangement and automatic update of the input and output modules after the fire-fighting linkage equipment is changed are realized.
Specifically, whether fire-fighting linkage equipment in the area to be arranged is changed or not is identified through timing polling;
if yes, traversing whether the association relationship between the equipment data table and the module list is established or not based on the equipment ID of the changed fire-fighting linkage equipment;
and if not, rearranging the input and output modules of the fire-fighting linkage equipment with the rising and changing states, and updating the equipment data table and the module list.
The method comprises the steps of checking whether each piece of data has the association between a main key (ID) of a fire-fighting linkage equipment data table and an external key (corresponding to the fire-fighting linkage equipment ID) of an input/output module data table through a timing polling database, and if a certain piece of data association is not established, indicating that one fire-fighting linkage equipment is added or cancelled. And taking the trigger condition as a trigger condition, supplementing corresponding input and output modules for the added fire-fighting linkage equipment, and deleting the corresponding input and output modules for the cancelled fire-fighting linkage equipment.
In practical application, after the input and output modules are arranged, after the fire-fighting linkage equipment in the area to be arranged is detected to change, the change information of the fire-fighting linkage equipment is automatically updated into the equipment data table, so that the association between the equipment data table and the module list is invalid, specifically, the constraint relation between the input and output modules and the fire-fighting linkage equipment can be detected based on the arrangement specification of the input and output modules, and when the constraint relation changes, the constraint relation is updated into the equipment data table in real time.
By implementing the method, the scheme at least realizes the following beneficial effects:
1. the subsequent arrangement traversal is realized by generating the equipment data table, so that the workload of manually arranging the input and output modules by a fire protection system designer is reduced; the designer does not need to search for fire-fighting linkage equipment in the design drawing one by one, and each fire-fighting linkage equipment is not provided with an input-output module manually.
2. Through setting up the association between equipment data table and the module list, the easy fire control controlled equipment that appears in the design process and the mismatching problem of input/output module have been solved, including the new fire control linkage equipment that adds does not have the input/output module correspondence, cancel the fire control linkage equipment and not delete the condition such as corresponding input/output module and input/output module type and quantity incorrect.
3. And arranging an input and output module, and quantitatively evaluating and fully considering when the arrangement points are selected through a target optimization algorithm, so that the selected position points are ensured to meet design specifications and installation requirements, and the design quality is ensured.
4. The timing polling and automatic updating of the input and output modules can automatically trigger the updating of the input and output modules when the fire-fighting linkage equipment changes, so that the problem that the exchange of design information is not smooth is solved, the modification of the fire-fighting linkage equipment is avoided, the condition that the input and output modules are not updated is avoided, and the accuracy of the design information transmission is ensured.
The method for arranging the input/output modules of the fire protection system in the embodiment of the present invention is described above, and the device for arranging the input/output modules of the fire protection system in the embodiment of the present invention is described in detail from the perspective of a modularized functional entity, referring to fig. 3, a schematic structural diagram of the device for arranging the input/output modules of the fire protection system provided in the embodiment of the present invention includes:
an obtaining module 310, configured to obtain a three-dimensional design model based on an area to be arranged provided by a water supply and drainage and heating and ventilation specialty, and generate an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table based on the three-dimensional design model, where the equipment data table includes at least one fire-fighting linkage equipment;
A determining module 320, configured to determine a type and a number of input/output modules required by each fire-fighting linkage device based on a device attribute of each fire-fighting linkage device in the device data table;
and an arrangement module 330, configured to arrange the input/output modules of each fire-fighting linkage device based on the building information and the type and number of the input/output modules corresponding to each fire-fighting linkage device.
According to the embodiment, all the fire-fighting linkage equipment is extracted based on the three-dimensional design model of the area to be arranged, an equipment data table is generated, then the types and the numbers of required input and output modules are calculated based on the equipment attributes of the fire-fighting linkage equipment recorded in the equipment data table and combined with the building information of the fire-fighting linkage equipment, so that the automatic arrangement of the input and output modules of the fire-fighting linkage equipment is realized, and the input and output modules of the fire-fighting linkage equipment are arranged based on the equipment data table without re-identification and searching, so that missing arrangement is avoided, and meanwhile, the arrangement efficiency is improved to a certain extent.
Referring to fig. 4, another structural schematic diagram of a fire protection system input/output module arrangement device provided in an embodiment of the present invention includes:
An obtaining module 310, configured to obtain a three-dimensional design model based on an area to be arranged provided by a water supply and drainage and heating and ventilation specialty, and generate an equipment data table of the area to be arranged and building information of each fire-fighting linkage equipment in the equipment data table based on the three-dimensional design model, where the equipment data table includes at least one fire-fighting linkage equipment;
a determining module 320, configured to determine a type and a number of input/output modules required by each fire-fighting linkage device based on a device attribute of each fire-fighting linkage device in the device data table;
and an arrangement module 330, configured to arrange the input/output modules of each fire-fighting linkage device based on the building information and the type and number of the input/output modules corresponding to each fire-fighting linkage device.
In this embodiment, the obtaining module 310 is specifically configured to:
identifying component information of fire-fighting linkage equipment in the three-dimensional design model, and identifying the fire-fighting linkage equipment corresponding to the component information by using a preset equipment identification model;
acquiring equipment attributes of the fire-fighting linkage equipment, and storing the equipment attributes in a data table to obtain an equipment data table of the area to be arranged;
And extracting structural members in a preset radius range from the corresponding positions of the structural member information in the three-dimensional design model to obtain the building information of the corresponding fire-fighting linkage equipment.
In this embodiment, the device attribute includes at least a device name and a control manner; the determining module 320 is specifically configured to:
based on the equipment names and control modes of the fire-fighting linkage equipment in the equipment data table, the types and the numbers of the input and output modules required by the fire-fighting linkage equipment are calculated by utilizing the design specifications and the control requirements of the input and output modules.
In this embodiment, the determining module 320 includes:
the matching unit 321 is configured to perform matching calculation with control requirements of each input/output module based on the device name and the control manner, obtain a matching degree of each fire-fighting linkage device and each input/output module, and determine a target input/output module of each fire-fighting linkage device based on the matching degree, so as to obtain a type of each fire-fighting linkage device;
and the calculating unit 322 is used for calculating the number of the required target input/output modules based on the design specification of the target input/output modules and the building information of the corresponding fire-fighting linkage equipment.
In this embodiment, the fire protection system input/output module arrangement device further includes: the association module 340 is specifically configured to:
obtaining the module ID and the module name of each target input/output module, and creating a module list of all target input/output modules;
and associating the equipment data table with the module list based on the equipment ID of the fire-fighting linkage equipment corresponding to each target input/output module.
In this embodiment, the arrangement module 330 includes:
a determining unit 331, configured to determine an installation requirement of the input/output module based on a type of the input/output module corresponding to each fire fighting linkage device; determining a target installation mode based on the installation requirement and the building information of the corresponding fire-fighting linkage equipment;
a searching unit 332, configured to search for installation positions at the positions of the fire-fighting linkage devices, and select a position according with the installation mode from the searched installation positions, so as to obtain a position set;
the solving unit 333 is configured to solve N solutions from the location set by using a preset target optimization algorithm, where N is equal to the number of input/output modules.
The arrangement unit 334 is configured to arrange the input/output modules based on the N solutions for the corresponding fire fighting linkage devices.
In this embodiment, the system input/output module arrangement device further includes: the updating module 350 is specifically configured to:
the timing polling identifies whether fire linkages in the area to be deployed are changing;
if yes, traversing whether the association relationship between the equipment data table and the module list is established or not based on the equipment ID of the changed fire-fighting linkage equipment;
and if not, rearranging the input and output modules of the fire-fighting linkage equipment with the rising and changing states, and updating the equipment data table and the module list.
According to the scheme, the fire-fighting linkage equipment in the area to be arranged is recorded in the data table, then the corresponding type of input/output modules are calculated based on the control mode of the fire-fighting linkage equipment, corresponding building information is sequentially acquired based on the fire-fighting linkage equipment in the data table, the arranged quantity is calculated according to the building information and the corresponding type of input/output modules, and accordingly the arrangement of the input/output modules of the fire-fighting linkage equipment is achieved. The arrangement method does not need to search equipment one by one in the design drawing, avoids the problem of omission, and utilizes a target optimization algorithm to determine the arrangement position points of the input and output modules of each fire-fighting linkage equipment, thereby ensuring the arrangement quality.
Fig. 3 and 4 above describe the configuration device of the input/output module of the fire protection system in the embodiment of the present invention in detail from the point of view of modularized functional entities, and the configuration device of the input/output module of the fire protection system in the embodiment of the present invention is described in detail from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a fire protection system input/output module arrangement device according to an embodiment of the present invention, where the fire protection system input/output module arrangement device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the fire protection system input output module arrangement 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the fire protection system input output module arrangement 500 to implement the methods provided by the implementations described above.
The fire protection system input-output module arrangement device 500 may also include one or more power sources 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating devices 531, such as Windows Server, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the configuration of the fire protection system input output module arrangement shown in fig. 5 is not limiting of the fire protection system input output module arrangement provided by the present invention, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and the computer readable storage medium may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, when the instructions run on a computer, the computer is caused to perform the steps of the method for arranging the input and output modules of the fire protection system provided in the foregoing embodiments.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus or device, unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.