Machine room graphical automatic generation method and device and related product

Through the computer room graphical automatic generation method, the rack is automatically deployed and coordinates are determined using rack resource data, which solves the problem of complex computer room layout management in the existing technology, realizes fast and simple computer room layout generation, and improves management efficiency.

CN119323617APending Publication Date: 2025-01-17CHINA TELECOM GLOBAL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411470372.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

In the prior art, the management of computer room layout mainly relies on manual drawing, which leads to complex and cumbersome every time the computer room resources are added or adjusted, and the workload is large, and there is a lack of a quick and simple way to generate computer room layout.

Method used

Provide a graphical automatic generation method of machine room. By obtaining rack resource data, filtering racks with coordinate information and row and column information, and deploying racks on the drawing page based on this information, determining the maximum and minimum coordinates of racks, to Automatically generate the computer room layout.

Benefits of technology

It realizes rapid and simple automated generation of computer room layout, reduces the complexity and workload of manual operations, and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119323617A_ABST
    Figure CN119323617A_ABST
Patent Text Reader

Abstract

The invention provides a machine room graphical automatic generation method and device and a related product, and relates to the technical field of computers and Internet. The machine room graphical automatic generation method comprises the following steps: displaying a drawing page; acquiring rack resource data in the target machine room, wherein the rack resource comprises a plurality of racks; determining a first rack with coordinate information and a second rack with row and column information in the plurality of racks; deploying the first rack in the drawing page according to the coordinate information; deploying the second rack in the drawing page according to the row and column information; determining the maximum abscissa, the minimum abscissa, the maximum ordinate and the minimum ordinate in the first rack and the second rack; and drawing the contour of the target machine room in the drawing page according to the maximum abscissa, the minimum abscissa, the maximum ordinate and the minimum ordinate in the first rack and the second rack. According to the embodiment of the invention, the machine room layout in the target machine room can be automatically generated according to the rack resource data of the target machine room.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer and Internet technology, and in particular to a method, device, electronic device, computer-readable storage medium and computer program product for automatically generating computer room graphics. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] Currently, the floor plans of computer rooms are mostly managed by manual drawing. This method requires manual modification every time a new computer room is added or the resources in the computer room are adjusted, which is complicated and labor-intensive.

[0004] Therefore, the technical problem to be solved by this application is how to quickly and simply generate a computer room layout. Summary of the invention

[0005] The purpose of the present disclosure is to provide a method, device, electronic device, computer-readable storage medium and computer program product for automatically generating a computer room graphical layout, which can automatically and conveniently generate a computer room layout for a target computer room.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] An embodiment of the present disclosure provides a method for automatically generating computer room graphics, including: displaying a drawing page; acquiring rack resource data in a target computer room, wherein the rack resources include multiple racks; determining a first rack having coordinate information and a second rack having row and column information among the multiple racks; deploying the first rack in the drawing page according to the coordinate information; deploying the second rack in the drawing page according to the row and column information; determining a maximum horizontal coordinate, a minimum horizontal coordinate, a maximum vertical coordinate, and a minimum vertical coordinate in the first rack and the second rack; if the fourth value is greater than the second vertical coordinate, re-determining the second vertical coordinate of the seventh target rack according to the row and column number of the seventh target rack.

[0008] In some embodiments, the method also includes: if there is a third rack among the multiple racks that has neither coordinate information nor row and column information, obtaining the length and width of the target computer room; determining the average length and average width of the rack according to the rack resource information; determining the number of rows and columns corresponding to the third rack according to the length and width of the target computer room and the average length and average width of the rack; and deploying the third rack according to the number of rows and columns corresponding to the third rack.

[0009] In some embodiments, the third rack includes a first target rack; wherein the method further comprises: in response to a drag operation on the first target rack, moving the first target rack in the drawing page; in response to a release operation on the first target rack, recalculating a coordinate position of the first target rack; and displaying the first target rack at the recalculated coordinate position.

[0010] In some embodiments, recalculating the coordinate position of the first target rack includes: determining an idle rack position closest to the first target rack in the drawing page; determining a coordinate value of the idle rack position as the coordinate position of the first target rack; wherein displaying the first target rack at the recalculated coordinate position includes: displaying the first target rack at the coordinate value corresponding to the idle rack position.

[0011] In some embodiments, the drawing page includes a first row of racks, the first row of racks includes a second target rack and a third target rack, and the second target rack in the first row of racks is the previous rack of the third target rack; the idle rack position closest to the first target rack is a first idle rack position, and the first idle rack position is located between the second target rack and the third target rack; before determining the idle rack position closest to the first target rack in the drawing page, the method further includes: obtaining the horizontal coordinate of the second target rack as the first horizontal coordinate; obtaining the horizontal coordinate of the third target rack as the second horizontal coordinate; summing the first horizontal coordinate, a preset gap width, and half of the rack length to obtain a first value; summing the first value, the preset gap length, and half of the rack length to obtain a second value; if the second value is less than or equal to the second horizontal coordinate, taking the first value as the horizontal coordinate of the first idle rack position and taking the vertical coordinate of the second target rack as the vertical coordinate of the first idle rack position.

[0012] In some embodiments, the drawing page includes a second row of racks, the second row of racks includes a fourth target rack and a fifth target rack, and the fourth target rack in the second row of racks is the previous rack of the fifth target rack; wherein the method further includes: obtaining the horizontal coordinate of the fourth target rack as the fourth horizontal coordinate; obtaining the horizontal coordinate of the fifth target rack as the fifth horizontal coordinate; summing the fourth horizontal coordinate, a preset gap width, and half of the rack length to obtain a third value; if the third value is less than or equal to the fifth horizontal coordinate, not processing the fifth horizontal coordinate; if the third value is greater than the fifth horizontal coordinate, re-determining the fifth horizontal coordinate of the fifth target rack according to the row and column numbers of the fifth target rack.

[0013] In some embodiments, the drawing page includes a first column of racks, the first column of racks includes a sixth target rack and a seventh target rack, and the sixth target rack in the first column of racks is the previous rack of the seventh target rack; wherein the method further includes: obtaining the ordinate of the sixth target rack as the first ordinate; obtaining the ordinate of the seventh target rack as the second ordinate; summing the first ordinate, a preset gap length, and half of the rack width to obtain a fourth value; if the fourth value is less than or equal to the second ordinate, not processing the second ordinate; if the fourth value is greater than the second ordinate, re-determining the second ordinate of the seventh target rack according to the row and column numbers of the seventh target rack.

[0014] The embodiment of the present disclosure provides a device for automatically generating computer room graphics, including: a drawing page display module, a rack resource acquisition module, a first rack determination module, a first rack deployment module, a second rack deployment module, a maximum coordinate determination module and a contour determination module.

[0015] Among them, the drawing page display module is used to display the drawing page; the rack resource acquisition module can be used to obtain rack resource data in the target computer room, and the rack resources include multiple racks; the first rack determination module can be used to determine a first rack with coordinate information and a second rack with row and column information among the multiple racks; the first rack deployment module can be used to deploy the first rack in the drawing page according to the coordinate information; the second rack deployment module can be used to deploy the second rack in the drawing page according to the row and column information; the maximum coordinate determination module can be used to determine the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack; the outline determination module can be used to automatically generate the computer room layout in the target computer room according to the rack resource data of the target computer room.

[0016] An embodiment of the present disclosure proposes an electronic device, which includes: a memory and a processor; the memory is used to store computer program instructions; the processor calls the computer program instructions stored in the memory to implement any of the above-mentioned methods for automatically generating computer room graphics.

[0017] The embodiment of the present disclosure provides a computer-readable storage medium having computer program instructions stored thereon to implement the method for automatically generating computer room graphics as described in any one of the above items.

[0018] The embodiment of the present disclosure provides a computer program product or a computer program, which includes computer program instructions stored in a computer-readable storage medium. The computer program instructions are read from the computer-readable storage medium, and a processor executes the computer program instructions to implement the above-mentioned computer room graphical automatic generation method.

[0019] The computer room graphical automatic generation method, device, electronic device, computer-readable storage medium and computer program product provided by the embodiments of the present disclosure can select the first rack with coordinate information and the second rack with row and column information in the target computer room according to the rack resource data in the target computer room, and then deploy the first rack and the second rack on the drawing page based on the coordinate information and the row and column information, and finally determine the outline of the target computer room based on the maximum and minimum coordinates of the first rack and the second rack. Through the above method, the computer room layout can be automatically and conveniently generated for the target computer room.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0022] Figure 1 A scenario diagram of a computer room graphical automatic generation method or a computer room graphical automatic generation device that can be applied to an embodiment of the present disclosure is shown.

[0023] Figure 2 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0024] Figure 3 A flowchart of a method for automatically generating computer room graphics is shown according to an exemplary embodiment.

[0025] Figure 4 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0026] Figure 5 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0027] Figure 6 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0028] Figure 7 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0029] Figure 8 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0030] Fig. 9 The present invention is a block diagram of a device for automatically generating computer room graphics according to an exemplary embodiment.

[0031] Fig.10 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0033] Those skilled in the art will appreciate that the embodiments of the present disclosure may be a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0034] The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0035] In the embodiments of the present disclosure, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0036] The accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0037] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0038] In the description of the present disclosure, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a kind of association relationship describing the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different; the terms "comprising", "including" and "having" are used to express the meaning of open inclusion and mean that in addition to the listed elements / components / etc., there may be other elements / components / etc.

[0039] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0040] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.

[0041] First, some terms involved in the embodiments of the present disclosure are explained below to facilitate understanding by those skilled in the art.

[0042] AntvG6 (graph visualization and graph analysis engine): is a simple, easy-to-use and complete graph visualization engine. It provides a series of elegantly designed and easy-to-use graph visualization solutions based on high customization capabilities.

[0043] The foregoing introduces some terms and concepts involved in the embodiments of the present disclosure. The following introduces the technical features involved in the embodiments of the present disclosure.

[0044] In the related art, users usually need to rent a third party's computer room to place the racks. For example, a third party's computer room can be rented overseas to place the racks.

[0045] In the above situation, users can usually only manage racks through tables. However, when managing the computer room through tables, it is impossible to accurately grasp the location of the racks in the computer room, and it is impossible to make better decisions based on the rack location.

[0046] The technical solution provided in the present application can accurately and quickly generate a rack layout for a target computer room based on the rack resource data provided by the computer room, and display the racks in the target computer room in a graphical form, so that users can effectively and intuitively see the real situation in the target computer room.

[0047] The exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0048] Figure 1 A scenario diagram of a computer room graphical automatic generation method or a computer room graphical automatic generation device that can be applied to an embodiment of the present disclosure is shown.

[0049] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present disclosure.

[0050] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0051] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, virtual reality devices, smart homes, etc.

[0052] The server 105 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received request data, and feed back the processing results to the terminal device.

[0053] The server can be an independent physical server or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as basic cloud computing services such as big data and artificial intelligence platforms, etc. The present disclosure does not impose any restrictions on this.

[0054] The server 105 may, for example, display a drawing page; the server 105 may, for example, obtain rack resource data in a target computer room, wherein the rack resources include a plurality of racks; the server 105 may, for example, determine a first rack having coordinate information and a second rack having row and column information among the plurality of racks; the server 105 may, for example, deploy the first rack in the drawing page according to the coordinate information; the server 105 may, for example, deploy the second rack in the drawing page according to the row and column information; the server 105 may, for example, determine the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack; the server 105 may, for example, automatically generate a computer room layout in the target computer room according to the rack resource data of the target computer room.

[0055] It should be understood that Figure 1 The number of terminal devices, networks and servers in the figure is only for illustration. The server 105 may be a physical server or may be composed of multiple servers. According to actual needs, it may have any number of terminal devices, networks and servers.

[0056] Figure 2 The method provided in the embodiment of the present disclosure can be executed by any electronic device with computing and processing capabilities. For example, the method can be executed by the above-mentioned Figure 1 The server or terminal device in the embodiment may be executed, or the server and the terminal device may be executed together. In the following embodiments, the server is used as the execution subject for example, but the present disclosure is not limited to this.

[0057] Reference Figure 2 The method for automatically generating computer room graphics provided by the embodiment of the present disclosure may include the following steps.

[0058] Step S202, displaying the drawing page.

[0059] In some embodiments, the drawing page may be displayed on an electronic device, which may be any device capable of displaying, such as a computer, a mobile phone, or a laptop computer.

[0060] In some embodiments, various shapes such as lines and circle centers can be drawn on the drawing page to represent different meanings through different shapes. For example, a dot can represent a rack, and a line can represent the outline of a computer room, etc. This application does not limit this.

[0061] In some embodiments, the drawing page may be a drawing page of AntvG6, which is a graph visualization engine.

[0062] Step S204, obtaining rack resource data in the target computer room, where the rack resources include multiple racks.

[0063] In some embodiments, the rack resource data of the target computer room may include rack identifiers of all racks in the target computer room, and the rack identifiers may be used to uniquely identify the racks in the target computer room.

[0064] In some embodiments, in the rack resources of the target computer room, some racks may correspond to coordinate information, some racks may have row and column information, and some racks may have neither coordinate information nor row and column information, and this application does not impose any limitation on this.

[0065] In some embodiments, the coordinate information of the rack may refer to the coordinates of the rack in the machine room, or may refer to the relative coordinates between the racks.

[0066] In some embodiments, the row and column information of the rack may refer to the row and column where the rack is located in the target computer room.

[0067] In some embodiments, the coordinate information of the rack in the machine room may be mapped to the coordinate system corresponding to the drawing page, and this application does not impose any limitation on this.

[0068] In some embodiments, the rack resource data may further include the length and width of each rack in the target computer room and the spacing distance between two racks (such as a preset gap width or a preset gap length, etc.).

[0069] Step S206: determining a first rack having coordinate information and a second rack having row and column information among the multiple racks.

[0070] In some embodiments, a rack having coordinate information may be selected from multiple racks as the first rack.

[0071] In some embodiments, a rack having row and column information may be selected from multiple racks as the second rack.

[0072] In some embodiments, among the multiple racks in the target computer room, coordinate information may exist for all racks, or only for some racks, which is not limited in the present application.

[0073] In some embodiments, among the multiple racks in the target computer room, all racks may have row and column information, or only some racks may have row and column information, and this application does not impose any limitation on this.

[0074] In some embodiments, some racks may have both coordinate information and row and column information, and this application does not impose any limitation on this.

[0075] Step S208: deploy the first rack in the drawing page according to the coordinate information.

[0076] In some embodiments, the coordinate information of the first rack may be mapped into the drawing page to deploy the first rack in the drawing page.

[0077] In some embodiments, the first rack may have both coordinate information and row and column information.

[0078] The first rack is deployed through the coordinate information, which can accurately reflect the relative positions of the racks and the relative distances between the racks.

[0079] Step S210: deploy the second rack in the drawing page according to the row and column information.

[0080] In some embodiments, after the first rack is deployed, the second rack can be deployed according to the row and column information.

[0081] It can be understood that, since the first rack carries row and column information, the second rack can be deployed further based on the row and column of the first rack.

[0082] Step S212, determining the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack.

[0083] Step S214: Draw the outline of the target computer room on the drawing page according to the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack.

[0084] In some embodiments, the first rack and the second rack may constitute all racks in the target computer room.

[0085] In some embodiments, the maximum or minimum coordinates of the first computer room and the second computer room can be considered to be located at the edge of the target computer room, and the outline of the target computer room can be drawn according to the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate of the first rack. For example, the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate can be directly connected to serve as the outline of the target computer room; for another example, the center of a circle, a square, a rectangle, etc. can be drawn with the quadrilateral containing the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum horizontal coordinate as the minimum inscribed quadrilateral to serve as the outline of the target computer room.

[0086] In summary, the present application does not limit the method for outlining the target computer room, and any method for outlining that can include the maximum coordinates of the first rack and the second rack is within the protection scope of the present application.

[0087] In the above embodiment, the first rack with coordinate information and the second rack with row and column information in the target computer room can be screened according to the rack resource data in the target computer room, and then the first rack and the second rack are deployed on the drawing page based on the coordinate information and the row and column information, and finally the outline of the target computer room is determined based on the maximum and minimum coordinates of the first rack and the second rack. Through the above method, the computer room layout can be automatically and conveniently generated for the target computer room.

[0088] Among them, firstly, the racks are deployed according to the coordinate information, so that the relative positions and relative distances between the racks finally presented can reflect the real situation in the target computer room as much as possible.

[0089] Figure 3 A flowchart of a method for automatically generating computer room graphics is shown according to an exemplary embodiment.

[0090] refer to Figure 3 The above-mentioned method for automatically generating computer room graphics may include the following steps.

[0091] Step S302: If there is a third rack among the multiple racks that has neither coordinate information nor row and column information, the length and width of the target computer room are obtained.

[0092] In some embodiments, in the rack resources of the target computer room, some of the multiple racks in the target computer room may have coordinate information, some may have row and column information, and some may have neither coordinate information nor row and column information.

[0093] In some embodiments, after the first rack and the second rack are deployed in the drawing page, the length and width of the third rack may be obtained. It is understandable that the lengths (or widths) of the racks in the target computer room may be equal or unequal.

[0094] Step S304: determining the average length and average width of the rack according to the rack resource information.

[0095] In some embodiments, the average length (or average width) of multiple racks in the target computer room may be determined according to the length (or width) of each rack in the target computer room.

[0096] Step S306: Determine the number of rows and columns corresponding to the third rack according to the length and width of the target computer room and the average length and width of the racks.

[0097] In some embodiments, the total number of rows in the target computer room may be determined based on the length (or width) of the target computer room and the average length of the racks.

[0098] In some embodiments, the total number of columns in the target computer room may be determined based on the width (or length) of the target computer room and the average width of the racks.

[0099] In some embodiments, the number of rows and columns occupied by the deployed first rack and the second rack in the drawing page may be calculated.

[0100] In some embodiments, the number of rows occupied by the first rack and the second rack may be subtracted from the total number of rows in the target computer room to obtain the number of rows corresponding to the third rack.

[0101] In some embodiments, the number of columns occupied by the first rack and the second rack may be subtracted from the total number of columns in the target computer room to obtain the number of columns corresponding to the third rack.

[0102] Step S308: deploy the third rack according to the number of rows and columns corresponding to the third rack.

[0103] In some embodiments, the third rack may be deployed in the drawing page according to the number of rows and columns corresponding to the third rack. For example, the third rack may be deployed under the first rack and the second rack according to the number of rows and columns corresponding to the third rack.

[0104] It is understandable that the third rack deployed below the first rack and the second rack can be used to occupy the rack position in the drawing page, so as to facilitate the positioning of the rack position when the rack in the drawing page is subsequently adjusted.

[0105] It should be noted that, since there may be an idle rack position between the first rack and the second rack, when the third rack is deployed according to the number of rows and columns corresponding to the third rack, the redundant third rack may not be deployed. In this case, the redundant third rack can be deployed in other additional positions and adjusted to the correct position when needed.

[0106] Through the above method, not only the first rack and the second rack can be accurately drawn in the drawing page, but also the third rack can be used to occupy the rack position in the target computer room, so as to adjust the rack in the drawing page later.

[0107] Figure 4 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0108] In some embodiments, the third rack may include the first target rack. Below, the present application will take the first target rack as an example to explain and illustrate the automatic generation method of the target computer room in detail.

[0109] refer to Figure 4 The above-mentioned computer room graphical automatic generation method may include the following steps.

[0110] Step S402: In response to a drag operation on the first target rack, the first target rack is moved in the drawing page.

[0111] In some embodiments, the user may drag the first target rack in the third rack as needed in the drawing page.

[0112] In some embodiments, the electronic device may move the first target rack in the drawing page according to the dragging track in response to the dragging operation of the first target rack.

[0113] Step S404: in response to the release operation on the first target rack, recalculate the coordinate position of the first target rack.

[0114] In some embodiments, the user may release the first target rack after moving the first target rack to the designated position.

[0115] In some embodiments, the electronic device may recalculate the coordinate position of the first target rack in response to the release operation of the first target rack.

[0116] The recalculated coordinate position of the first target rack may be at the release position of the first target rack, or at the idle rack position closest to the first target rack, which is not limited in the present application.

[0117] Step S406: display the first target rack at the recalculated coordinate position.

[0118] In some embodiments, the first target rack may be displayed at the recalculated coordinate position.

[0119] Through the above method, the position of the third rack can be adjusted as needed in the visual drawing page so that the target computer room drawn in the drawing page can conform to the actual situation of the target computer room as much as possible.

[0120] In some embodiments, the positions of the first rack, the second rack, and the third rack can also be adjusted according to actual needs. The adjusted positions of the first rack, the second rack, or the third rack can be at the release position of the first rack, the second rack, or the third rack, or can be the idle rack position closest to the release position, and the present application does not limit this. If the adjusted positions of the first rack, the second rack, and the third rack are at the release positions of the first rack, the second rack, and the third rack, then the embodiments of the present application can adjust the rack positions at will according to actual needs.

[0121] In some embodiments, the above-mentioned “recalculating the coordinate position of the first target rack” may include: determining an idle rack position closest to the first target rack in the drawing page; and determining a coordinate value of the idle rack position as the coordinate position of the first target rack.

[0122] In some embodiments, displaying the first target rack at the recalculated coordinate position may include: displaying the first target rack at the coordinate value corresponding to the idle rack position.

[0123] Figure 5 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0124] In some embodiments, the drawing page may include a first row of racks, wherein the first row of racks may refer to racks in any row of the drawing page.

[0125] In some embodiments, the first row of racks may include a second target rack and a third target rack, and the second target rack is the previous rack of the third target rack in the first row of racks. The idle rack position closest to the first target rack is the first idle rack position, and the first idle rack position is located between the second target rack and the third target rack.

[0126] refer to Figure 5 Before determining the idle rack position closest to the first target rack in the drawing page, the above-mentioned computer room graphical automatic generation method may include the following steps.

[0127] Step S502: Acquire the horizontal coordinate of the second target rack as the first horizontal coordinate.

[0128] Step S504: Acquire the horizontal coordinate of the third target rack as the second horizontal coordinate.

[0129] Step S506: sum the first horizontal coordinate, the preset gap width, and half the rack length to obtain a first value.

[0130] The preset gap length may be a preset gap length between racks (for example, in rack resource data) (such as a preset lateral length between racks).

[0131] Step S508: sum the first value, the preset gap length, and half of the rack length to obtain a second value.

[0132] Step S510: If the second value is less than or equal to the second horizontal coordinate, the first value is used as the horizontal coordinate of the first idle rack position and the vertical coordinate of the second target rack is used as the vertical coordinate of the first idle rack position.

[0133] In some embodiments, if the second value is less than or equal to the second horizontal coordinate, it means that the distance between the second rack and the third target rack can be placed one rack further away, then the horizontal coordinate of the first idle rack position between the second target rack and the third target rack can be made equal to the first value, and the vertical coordinate of the second target rack or the third target rack is made the vertical coordinate of the first idle rack position.

[0134] By analogy, the coordinates of two, three or more idle rack positions between two racks can also be determined.

[0135] Through the above method, the horizontal and vertical coordinates corresponding to the idle rack position between two racks can be accurately calculated.

[0136] Figure 6 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0137] In some embodiments, the drawing page may include a second row of racks, and the second row of racks may be racks in any row of the drawing page.

[0138] In some embodiments, the second row of racks may include a fourth target rack and a fifth target rack, and the fourth target rack is a previous rack of the fifth target rack in the second row of racks.

[0139] refer to Figure 6 The above-mentioned computer room graphical automatic generation method may include the following steps.

[0140] Step S602: Acquire the horizontal coordinate of the fourth target rack as the fourth horizontal coordinate.

[0141] Step S604: Acquire the horizontal coordinate of the fifth target rack as the fifth horizontal coordinate.

[0142] Step S606: sum the fourth horizontal coordinate, the preset gap width, and half the rack length to obtain a third value.

[0143] Step S608: If the third value is less than or equal to the fifth horizontal coordinate, the fifth horizontal coordinate is not processed.

[0144] In some embodiments, if the third value is less than or equal to the fifth horizontal coordinate, and the fifth horizontal coordinate is less than the second value, it means that the distance between the fourth target rack and the fifth target rack is greater than or equal to the preset gap width, and there can be no more vacant rack positions between the fourth target rack and the fifth target rack.

[0145] Step S610: if the third value is greater than the fifth horizontal coordinate, re-determine the fifth horizontal coordinate of the fifth target rack according to the row and column numbers of the fifth target rack.

[0146] In some embodiments, if the third value is greater than the fifth horizontal coordinate, it means that the distance between the fourth target rack and the fifth target rack is less than the preset gap width, and the horizontal coordinate of the fifth target rack needs to be re-determined.

[0147] In some embodiments, the third value may be directly used as the abscissa of the fifth target rack.

[0148] By using the above method, the positions of the first rack and the second rack in the drawing page can be adjusted to avoid the racks being too close or too far apart due to errors in coordinate information or row and column information.

[0149] Figure 7 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0150] In some embodiments, a first column of racks may be included in the drawing page, wherein the first column of racks may be any column of racks in the drawing page, and the present application does not limit this.

[0151] In some embodiments, the first column of racks may include a sixth target rack and a seventh target rack, and the sixth target rack is a previous rack of the seventh target rack in the first column of racks.

[0152] refer to Figure 7 The above-mentioned computer room graphical automatic generation method may include the following steps.

[0153] Step S702: Acquire the vertical coordinate of the sixth target rack as the first vertical coordinate.

[0154] Step S704: Acquire the ordinate of the seventh target rack as the second ordinate.

[0155] Step S706: sum the first ordinate, the preset gap length, and half the rack width to obtain a fourth value.

[0156] Step S708: If the fourth value is less than or equal to the second ordinate, the second ordinate is not processed.

[0157] Step S710: if the fourth value is greater than the second ordinate, re-determine the second ordinate of the seventh target rack according to the row and column numbers of the seventh target rack.

[0158] By using the above method, the positions of the first rack and the second rack in the drawing page can be adjusted to avoid the racks being too close or too far apart due to errors in coordinate information or row and column information.

[0159] Figure 8 The present invention is a flowchart of a method for automatically generating computer room graphics according to an exemplary embodiment.

[0160] refer to Figure 8 The above-mentioned computer room graphical automatic generation method may include the following steps.

[0161] Step S801, start.

[0162] Step S802, parsing computer room resource data.

[0163] Enter the computer room floor plan drawing page, and the system will automatically obtain all rack resource data under the computer room. The system will prioritize sorting all resource data according to coordinate values. If the coordinate values ​​are all empty, they will be sorted according to row and column numbers. After sorting, the number of rows and columns will be calculated based on the row and column numbers. If there is rack data with empty row and column numbers, the number of rows and columns of the remaining racks can be calculated based on the length and width attributes in the computer room and the average length and width attributes of all racks in the computer room, and the total number of rows and columns in the entire computer room can be calculated based on the existing row and column number data.

[0164] Step S803, calculating the rack position.

[0165] According to the total number of rows and columns calculated in step S802, all racks in the computer room are grouped according to the number of rows. For example, if the number of racks is 50 and the number of rows is 5, then racks 1 to 10 are the first group, 11 to 20 are the second group, and so on. After the grouping is completed, the position coordinate data of the rack is generated according to the grouping result.

[0166] The coordinate generation rules are as follows.

[0167] (1) The first rack of the first group has coordinate data, so the coordinate values ​​are not regenerated.

[0168] (2) If other racks in the first group have coordinate values, check whether the coordinate value is reasonable with the previous rack (judgment that the previous rack X coordinate + length / 2 + current rack length / 2 <= current rack X coordinate). If it is unreasonable, re-assign new coordinate values. If there are no coordinates, directly calculate and assign coordinates (for example, the previous rack X coordinate + length / 2 + current rack length / 2 = current rack X coordinate).

[0169] (3) If the first rack of the second group has coordinates, check whether the coordinate value is reasonable with the first rack of the previous group (judgment that the Y coordinate of the first rack of the previous group + width / 2 + current rack width / 2 <= current rack Y coordinate). If it is unreasonable, reassign new coordinate values. If there are no coordinates, directly calculate and assign coordinates (for example, the Y coordinate of the first rack of the previous group + width / 2 + current rack width / 2 = current rack Y coordinate).

[0170] (4) The first rack of each group is calculated according to (3), and the other racks of each group are calculated according to (2).

[0171] Step S804, generating a computer room floor plan.

[0172] According to the coordinate results calculated in step S803, the maximum and minimum values ​​of the X and Y coordinates are taken out, and the specified values ​​are added to each to generate the coordinate values ​​of the four points of the computer room outline. Then, the contour line data of the computer room is generated based on these four coordinates. The generated rack position data and contour data are stored in the specified data format of AntvG6 to complete the automatic generation of the plan view.

[0173] Step S805, determining whether to perform fine-tuning.

[0174] If fine-tuning is required, step S806 is executed to fine-tune the computer room floor plan.

[0175] According to step S804, the computer room plan is generated. If the rack position is inconsistent with the on-site position, a single rack can be dragged on the drawing interface to change its position. After the position is changed, the coordinate information of the rack position will be updated.

[0176] If fine-tuning is not required, execute step S807 and end.

[0177] The above method can have the following beneficial effects.

[0178] 1. Data analysis and grouping calculation method for computer room: Regardless of whether there are coordinates or row and column numbers in the rack data, they can be grouped according to the specified rules, and the length and width of the computer room outline can be calculated based on the grouping results.

[0179] 2. Rack coordinate calculation method: All computer room floor plans can use a unified algorithm to generate rack layouts, and all rack data can automatically generate rack position coordinates regardless of whether all the rack data has no coordinates and row and column numbers or some of the data has coordinates and row and column numbers.

[0180] It should be particularly pointed out that the various steps in the various embodiments of the above-mentioned computer room graphical automatic generation method can be mutually crossed, replaced, added, and deleted. Therefore, these reasonable permutations and combinations of the computer room graphical automatic generation method should also belong to the protection scope of this disclosure, and the protection scope of this disclosure should not be limited to the embodiments.

[0181] Based on the same inventive concept, the embodiment of the present disclosure also provides a computer room graphical automatic generation device, as described in the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0182] Fig. 9 FIG. 1 is a block diagram of a device for automatically generating a graphical image of a computer room according to an exemplary embodiment. Fig. 9 The computer room graphical automatic generation device 900 provided in the embodiment of the present disclosure may include: a drawing page display module 901, a rack resource acquisition module 902, a first rack determination module 903, a first rack deployment module 904, a second rack deployment module 905, an extreme value coordinate determination module 906, and an outline determination module 909.

[0183] Among them, the drawing page display module 901 can be used to display the drawing page; the rack resource acquisition module 902 can be used to acquire rack resource data in the target computer room, and the rack resources include multiple racks; the first rack determination module 903 can be used to determine a first rack with coordinate information and a second rack with row and column information among the multiple racks; the first rack deployment module 904 can be used to deploy the first rack in the drawing page according to the coordinate information; the second rack deployment module 905 can be used to deploy the second rack in the drawing page according to the row and column information; the maximum coordinate determination module 906 can be used to determine the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack; the outline determination module 909 can be used to automatically generate the computer room layout in the target computer room according to the rack resource data of the target computer room.

[0184] It should be noted that the drawing page display module 901, the rack resource acquisition module 902, the first rack determination module 903, the first rack deployment module 904, the second rack deployment module 905, the maximum coordinate determination module 906, and the contour determination module 907 correspond to S202 to S214 in the method embodiment, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above method embodiment. It should be noted that the above modules as part of the device can be executed in a computer system such as a set of computer executable instructions.

[0185] In some embodiments, the apparatus for automatically generating computer room graphics may further include: a third rack determination module, a rack attribute determination module, a row and column determination module, and a third rack deployment module.

[0186] Among them, the third rack determination module can be used to obtain the length and width of the target computer room if there is a third rack among the multiple racks that has neither coordinate information nor row and column information; the rack attribute determination module can be used to determine the average length and average width of the rack according to the rack resource information; the row and column determination module can be used to determine the number of rows and columns corresponding to the third rack according to the length and width of the target computer room and the average length and average width of the rack; the third rack deployment module can be used to deploy the third rack according to the number of rows and columns corresponding to the third rack.

[0187] In some embodiments, the third rack includes a first target rack; wherein the device for automatically generating graphics of a computer room may further include: a rack moving module, a coordinate calculation module, and a first target rack display module.

[0188] Among them, the rack moving module can be used to move the first target rack in the drawing page in response to a drag operation on the first target rack; the coordinate calculation module can be used to recalculate the coordinate position of the first target rack in response to a release operation on the first target rack; the first target rack display module can be used to display the first target rack at the recalculated coordinate position.

[0189] In some embodiments, the coordinate calculation module may include: an idle rack position determination unit and a coordinate position determination unit.

[0190] The idle rack position determination unit may be used to determine the idle rack position closest to the first target rack in the drawing page; and the coordinate position determination unit may be used to determine the coordinate value of the idle rack position as the coordinate position of the first target rack.

[0191] The first target rack display module may include: a first target rack display unit.

[0192] The first target rack display unit may be used to display the first target rack at the coordinate value corresponding to the idle rack position.

[0193] In some embodiments, the drawing page includes a first row of racks, the first row of racks includes a second target rack and a third target rack, and the second target rack in the first row of racks is the previous rack of the third target rack; wherein the idle rack position closest to the first target rack is a first idle rack position, and the first idle rack position is located between the second target rack and the third target rack; wherein the computer room graphical automatic generation device may also include: a first horizontal coordinate acquisition module, a second horizontal coordinate acquisition module, a first value determination module, a second value determination module, and an idle position coordinate determination module.

[0194] Among them, the first horizontal coordinate acquisition module can be used to obtain the horizontal coordinate of the second target rack as the first horizontal coordinate before determining the idle rack position closest to the first target rack in the drawing page; the second horizontal coordinate acquisition module can be used to obtain the horizontal coordinate of the third target rack as the second horizontal coordinate; the first value determination module can be used to sum the first horizontal coordinate, the preset gap width, and half of the rack length to obtain a first value; the second value determination module can be used to sum the first value, the preset gap length, and half of the rack length to obtain a second value; the idle position coordinate determination module can be used to use the first value as the horizontal coordinate of the first idle rack position and the vertical coordinate of the second target rack as the vertical coordinate of the first idle rack position if the second value is less than or equal to the second horizontal coordinate.

[0195] In some embodiments, the drawing page includes a second row of racks, the second row of racks includes a fourth target rack and a fifth target rack, and the fourth target rack in the second row of racks is the previous rack of the fifth target rack; wherein the computer room graphical automatic generation device may also include: a fourth horizontal coordinate determination module, a fifth horizontal coordinate determination module, a third value determination module, a first judgment module, and a second judgment module.

[0196] Among them, the fourth horizontal coordinate determination module can be used to obtain the horizontal coordinate of the fourth target rack as the fourth horizontal coordinate; the fifth horizontal coordinate determination module can be used to obtain the horizontal coordinate of the fifth target rack as the fifth horizontal coordinate; the third value determination module can be used to sum the fourth horizontal coordinate, the preset gap width and half of the rack length to obtain a third value; the first judgment module can be used to not process the fifth horizontal coordinate if the third value is less than or equal to the fifth horizontal coordinate; the second judgment module can be used to re-determine the fifth horizontal coordinate of the fifth target rack according to the row and column numbers of the fifth target rack if the third value is greater than the fifth horizontal coordinate.

[0197] In some embodiments, the drawing page includes a first column of racks, the first column of racks includes a sixth target rack and a seventh target rack, and the sixth target rack in the first column of racks is the previous rack of the seventh target rack; wherein the computer room graphical automatic generation device may further include: a first ordinate determination module, a second ordinate determination module, a fourth value determination module, a third judgment module, and a fourth judgment module.

[0198] Among them, the first ordinate determination module can be used to obtain the ordinate of the sixth target rack as the first ordinate; the second ordinate determination module can be used to obtain the ordinate of the seventh target rack as the second ordinate; the fourth value determination module can be used to sum the first ordinate, the preset gap length and half of the rack width to obtain a fourth value; the third judgment module can be used to not process the second ordinate if the fourth value is less than or equal to the second ordinate; the fourth judgment module can be used to re-determine the second ordinate of the seventh target rack according to the row and column numbers of the seventh target rack if the fourth value is greater than the second ordinate.

[0199] Since the functions of the device 900 have been described in detail in the corresponding method embodiments, the present disclosure will not elaborate on them here.

[0200] The modules and / or units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The modules and / or units described may also be arranged in a processor. The names of these modules and / or units do not, in certain cases, constitute limitations on the modules and / or units themselves.

[0201] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a part of a module or program segment, and a part of the above-mentioned module or program segment contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer program instructions.

[0202] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0203] Fig.10 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Fig.10 The electronic device 1000 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0204] like Fig.10 As shown, the electronic device 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0205] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0206] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains computer program instructions for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present disclosure are executed.

[0207] It should be noted that the computer-readable storage medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable computer program instructions. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The computer program instructions contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0208] As another aspect, the present disclosure also provides a computer-readable storage medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by a device, the device can implement functions including: displaying a drawing page; obtaining rack resource data in the target computer room, wherein the rack resources include multiple racks; determining a first rack having coordinate information and a second rack having row and column information among multiple racks; deploying the first rack in the drawing page according to the coordinate information; deploying the second rack in the drawing page according to the row and column information; determining the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack;

[0209] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer program instructions, the computer program instructions being stored in a computer-readable storage medium. The computer program instructions are read from the computer-readable storage medium, and a processor executes the computer program instructions to implement the methods provided in various optional implementations of the above embodiments.

[0210] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of computer program instructions for enabling an electronic device (which can be a server or a terminal device, etc.) to execute the method according to the embodiment of the present disclosure.

[0211] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A method for automatically generating computer room graphics, characterized in that: include: Display the drawing page; Acquire rack resource data in a target computer room, wherein the rack resources include a plurality of racks; Determine a first rack having coordinate information and a second rack having row and column information among the plurality of racks; deploying the first rack in the drawing page according to the coordinate information; deploying the second rack in the drawing page according to the row and column information; Determine a maximum abscissa, a minimum abscissa, a maximum ordinate, and a minimum ordinate in the first rack and the second rack; The outline of the target computer room is drawn in the drawing page according to the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack.

2. The method according to claim 1, characterized in that: The method further comprises: If there is a third rack among the multiple racks that has neither coordinate information nor row and column information, obtaining the length and width of the target computer room; Determine the average length and average width of the rack according to the rack resource information; Determine the number of rows and columns corresponding to the third rack according to the length and width of the target computer room and the average length and width of the rack; The third rack is deployed according to the number of rows and columns corresponding to the third rack.

3. The method according to claim 2, characterized in that: The third rack includes the first target rack; wherein the method further includes: In response to a drag operation on the first target rack, moving the first target rack in the drawing page; In response to a release operation on the first target rack, recalculating a coordinate position of the first target rack; The first target rack is displayed at the recalculated coordinate position.

4. The method according to claim 3, characterized in that: Recalculating the coordinate position of the first target rack includes: Determining, in the drawing page, a free rack position closest to the first target rack; Determine the coordinate value of the idle rack position as the coordinate position of the first target rack; The method of displaying the first target rack at the recalculated coordinate position includes: The first target rack is displayed at the coordinate value corresponding to the idle rack position.

5. The method according to claim 4, characterized in that: The drawing page includes a first row of racks, the first row of racks includes a second target rack and a third target rack, and in the first row of racks, the second target rack is a previous rack of the third target rack; The idle rack position closest to the first target rack is a first idle rack position, and the first idle rack position is located between the second target rack and the third target rack; before determining the idle rack position closest to the first target rack in the drawing page, the method further includes: Acquire the horizontal coordinate of the second target rack as the first horizontal coordinate; Acquire the horizontal coordinate of the third target rack as the second horizontal coordinate; The first horizontal coordinate, the preset gap width, and half of the frame length are summed to obtain a first value; Summing the first value, the preset gap length, and half of the rack length to obtain a second value; If the second value is less than or equal to the second horizontal coordinate, the first value is used as the horizontal coordinate of the first idle rack position and the vertical coordinate of the second target rack is used as the vertical coordinate of the first idle rack position.

6. The method according to claim 1, characterized in that: The drawing page includes a second row of racks, the second row of racks includes a fourth target rack and a fifth target rack, and in the second row of racks, the fourth target rack is a rack before the fifth target rack; The method further comprises: Acquire the horizontal coordinate of the fourth target rack as a fourth horizontal coordinate; Acquire the horizontal coordinate of the fifth target rack as the fifth horizontal coordinate; Summing the fourth horizontal coordinate, the preset gap width and half of the rack length to obtain a third value; If the third value is less than or equal to the fifth horizontal coordinate, the fifth horizontal coordinate is not processed; If the third value is greater than the fifth horizontal coordinate, the fifth horizontal coordinate of the fifth target rack is re-determined according to the row and column numbers of the fifth target rack.

7. The method according to claim 1, characterized in that: The drawing page includes a first column of racks, the first column of racks includes a sixth target rack and a seventh target rack, and the sixth target rack in the first column of racks is a previous rack of the seventh target rack; The method further comprises: Acquire the ordinate of the sixth target rack as the first ordinate; Acquire the ordinate of the seventh target rack as the second ordinate; Summing the first ordinate, the preset gap length and half of the rack width to obtain a fourth value; If the fourth value is less than or equal to the second ordinate, the second ordinate is not processed; If the fourth value is greater than the second ordinate, the second ordinate of the seventh target rack is re-determined according to the row and column numbers of the seventh target rack.

8. A device for automatically generating graphics of a computer room, characterized in that: include: A drawing page display module, used to display the drawing page; A rack resource acquisition module, used to acquire rack resource data in a target computer room, wherein the rack resources include a plurality of racks; A first rack determining module, used to determine a first rack having coordinate information and a second rack having row and column information among the plurality of racks; A first rack deployment module, configured to deploy the first rack in the drawing page according to the coordinate information; A second rack deployment module, configured to deploy the second rack in the drawing page according to the row and column information; An extreme value coordinate determination module, used to determine the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack; The outline determination module is used to draw the outline of the target computer room in the drawing page according to the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate in the first rack and the second rack.

9. An electronic device, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor is used to execute the method for automatically generating computer room graphics according to any one of claims 1 to 7 based on computer program instructions stored in the memory.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method for automatically generating computer room graphics as described in any one of claims 1 to 7 is implemented.

11. A computer program product, comprising computer program instructions, wherein the computer program instructions are stored in a computer-readable storage medium, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.