A device configuration interface layout method, device, equipment and storage medium

By automatically determining the to-layout coordinates of the model layout interface, the problems of poor model layout effect and high labor costs in the existing technology are solved, and a more beautiful model layout and a more efficient layout process are achieved.

CN114356323BActive Publication Date: 2025-04-29KYLAND TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111507305.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2025-04-29
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

The existing model layout method is difficult to ensure the beautiful layout effect and consumes a long layout time, resulting in high labor costs and poor user experience.

Method used

By obtaining the model layout configuration data sent by the user to the model layout interface, responding to the user's layout trigger instructions, the coordinates of the model to be laid out are automatically determined, and the reasonable automatic layout of the model is achieved.

Benefits of technology

It improves the aesthetics of the model layout, saves time and cost of manual layout, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356323B_ABST
    Figure CN114356323B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an interface layout method, device, equipment and storage medium for device configuration. The interface layout method for device configuration includes: obtaining model layout configuration data sent by a user to a model layout interface; in response to a model layout trigger instruction of the user in the model layout interface, determining the layout coordinates of a first model to be laid out in the model layout interface according to the model layout configuration data; determining the layout coordinates of a second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the layout coordinates of the first model to be laid out; determining the layout coordinates of a third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the layout coordinates of the second model to be laid out. The technical solution of the embodiment of the present invention can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor costs, and enhance user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer application technology, and in particular to a method, apparatus, device and storage medium for device configuration interface layout. Background Art

[0002] With the improvement of automation level, software that realizes model layout based on human-computer interaction has emerged, such as configuration software. In configuration software, users can build a model system that meets functional requirements by selecting the preset configuration model provided by the configuration software.

[0003] However, when users manually lay out the model through configuration software, the complex connection relationship of the model often leads to disordered connections in the final model layout result, and it also takes a long time to layout. It can be seen that it is difficult to ensure the layout effect of the model through the existing model layout method, the aesthetics of the model layout is difficult to meet user needs, and it will also consume high labor costs, resulting in a poor user experience. Summary of the invention

[0004] The embodiments of the present invention provide a device configuration interface layout method, apparatus, device and storage medium, which can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor costs, and enhance user experience.

[0005] In a first aspect, an embodiment of the present invention provides a device configuration interface layout method, comprising:

[0006] Acquire model layout configuration data sent by the user to the model layout interface; wherein the model layout configuration data includes connection relationship data of the model to be laid out and size data of the model to be laid out;

[0007] In response to a model layout trigger instruction from a user in the model layout interface, determining the to-be-layout coordinates of the first to-be-layout model in the model layout interface according to the model layout configuration data;

[0008] Determine the coordinates of a second model to be laid out that is connected to the first model to be laid out according to the model layout configuration data and the coordinates of the first model to be laid out;

[0009] The coordinates to be laid out of the third model to be laid out connected to the second model to be laid out are determined according to the model layout configuration data and the coordinates to be laid out of the second model to be laid out.

[0010] In a second aspect, an embodiment of the present invention further provides an interface layout device for device configuration, comprising:

[0011] A model layout configuration data acquisition module is used to acquire the model layout configuration data sent by the user to the model layout interface; wherein the model layout configuration data includes the connection relationship data of the model to be laid out and the size data of the model to be laid out;

[0012] A first to-be-layout coordinate determination module, configured to respond to a model layout trigger instruction from a user in the model layout interface and determine the to-be-layout coordinates of the first to-be-layout model in the model layout interface according to the model layout configuration data;

[0013] A second to-be-layout coordinate determination module, used to determine the to-be-layout coordinates of the second to-be-layout model connected to the first to-be-layout model according to the model layout configuration data and the to-be-layout coordinates of the first to-be-layout model;

[0014] The third to-be-layout coordinates determination module is used to determine the to-be-layout coordinates of the third to-be-layout model connected to the second to-be-layout model according to the model layout configuration data and the to-be-layout coordinates of the second to-be-layout model.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] A storage device for storing one or more programs;

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the device configuration interface layout method provided by any embodiment of the present invention.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the interface layout method of the device configuration provided by any embodiment of the present invention is implemented.

[0020] The technical solution of this embodiment obtains the model layout configuration data sent by the user to the model layout interface, and then responds to the model layout trigger instruction of the user in the model layout interface, determines the to-be-layout coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data, further determines the to-be-layout coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the first model to be laid out, and determines the to-be-layout coordinates of the third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the second model to be laid out. This solution can automatically determine the coordinates of the constraint model position based on the model layout configuration data and the model layout trigger instruction sent by the user, so that the device configuration can be reasonably and automatically laid out in the model layout interface, solves the problems of poor layout effect and high labor cost in the existing model layout method, can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor cost, and enhance user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of a device configuration interface layout method provided in the first embodiment of the present invention;

[0022] Figure 2 It is a flow chart of a device configuration interface layout method provided in Embodiment 2 of the present invention;

[0023] Figure 3 This is an interface layout effect diagram of a device configuration provided by Embodiment 2 of the present invention;

[0024] Figure 4 It is a schematic diagram of an interface layout device for device configuration provided by Embodiment 3 of the present invention;

[0025] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.

[0027] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0028] Embodiment 1

[0029] Figure 1 This is a flow chart of a device configuration interface layout method provided by the first embodiment of the present invention. This embodiment is applicable to the case where the model to be laid out is reasonably and automatically laid out. The method can be executed by a device configuration interface layout device, which can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method includes the following operations:

[0030] S110. Acquire model layout configuration data sent by the user to the model layout interface.

[0031] Among them, the model layout interface can be an interface of the automatic layout model displayed to the user. The model layout configuration data can be data sent by the user to the model layout interface, which is used to determine the coordinates of the model. The model layout configuration data can include connection relationship data of the model to be laid out and size data of the model to be laid out. The model to be laid out can be a model that needs to be automatically laid out and exists in the model layout interface. For example, the model to be laid out can include hardware models and software models. The connection relationship data can be data that characterizes the connection relationship between models. The size data can include data that measures the size of the model, such as the length data and width data of the model. It can be understood that if the model to be laid out is a multi-dimensional stereo model, the size data can also include length data, width data, height data, etc., and the embodiment of the present invention does not limit the type of size data.

[0032] In an embodiment of the present invention, the model layout interface may be pre-written and generated, and may include an interface for displaying to a user and a control for implementing user interaction. When a user needs to layout a device configuration, the model layout configuration data may be sent to the model layout interface, and the model layout interface as a user interaction interface may receive the model layout configuration data sent by the user.

[0033] Optionally, after receiving the model layout configuration data, the model layout configuration data can be further parsed to obtain connection relationship data of the model to be laid out and size data of the model to be laid out, so as to layout the model to be laid out according to the connection relationship data of the model to be laid out and the size data of the model to be laid out.

[0034] S120 . In response to a model layout trigger instruction from a user in the model layout interface, determine the layout coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data.

[0035] The model layout trigger instruction may be an instruction sent by a user to the model layout interface to start the model layout. The first model to be laid out may be a model to be laid out in the model layout interface, representing a device with a function of managing computing resources. The coordinates to be laid out may be the coordinates of the model to be laid out in the model layout interface.

[0036] In an embodiment of the present invention, after sending model layout configuration data to the model layout interface, the user may further send a model layout trigger instruction to the model layout interface. After receiving the model layout trigger instruction, the model layout interface may respond to the model layout trigger instruction and determine the layout coordinates of the first model to be laid out in the model layout interface that needs to be laid out first according to the model layout configuration data.

[0037] S130 : Determine the coordinates of a second model to be laid out that is connected to the first model to be laid out according to the model layout configuration data and the coordinates of the first model to be laid out.

[0038] The second model to be laid out may be a model to be laid out existing in the model layout interface, representing a device of a common communication channel for transmitting information between various devices.

[0039] In an embodiment of the present invention, a second model to be laid out that is connected to the first model to be laid out can be determined according to the model layout configuration data, and the coordinates to be laid out of the second model to be laid out that is connected to the first model to be laid out can be calculated according to the model layout configuration data and the coordinates to be laid out of the first model to be laid out.

[0040] S140: Determine the coordinates of a third model to be laid out that is connected to the second model to be laid out according to the model layout configuration data and the coordinates of the second model to be laid out.

[0041] The third model to be laid out may be a model to be laid out existing in the model layout interface, representing a device that is remotely controlled and remotely operated through wireless or electrical signals.

[0042] In an embodiment of the present invention, a third model to be laid out that is connected to the second model to be laid out can be determined according to the model layout configuration data, and the coordinates to be laid out of the third model to be laid out that is connected to the second model to be laid out can be calculated according to the model layout configuration data and the coordinates to be laid out of the second model to be laid out.

[0043] The technical solution of this embodiment obtains the model layout configuration data sent by the user to the model layout interface, and then responds to the model layout trigger instruction of the user in the model layout interface, determines the to-be-layout coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data, further determines the to-be-layout coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the first model to be laid out, and determines the to-be-layout coordinates of the third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the second model to be laid out. This solution can automatically determine the coordinates of the constraint model position based on the model layout configuration data and the model layout trigger instruction sent by the user, so that the device configuration can be reasonably and automatically laid out in the model layout interface, solves the problems of poor layout effect and high labor cost in the existing model layout method, can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor cost, and enhance user experience.

[0044] Embodiment 2

[0045] Figure 2 It is a flow chart of a device configuration interface layout method provided by Example 2 of the present invention. This embodiment is concretized based on the above embodiment. In this embodiment, steps before determining the coordinates to be laid out of the first model to be laid out in the model layout interface are given, which can be specifically: determining the first spacing data between each first model to be laid out according to the model layout configuration data; determining the second spacing data between each second model to be laid out, and the preset spacing data between the first model to be laid out and the second model to be laid out according to the model layout configuration data; determining the third spacing data between each third model to be laid out according to the model layout configuration data, and a specific optional implementation plan for determining the coordinates to be laid out of the first model to be laid out is also given, which can be specifically: determining the reference coordinates of the reference model to be laid out; determining the coordinates to be laid out of the symmetrical layout of each first model to be laid out according to the first spacing data and the reference coordinates of the first model to be laid out.

[0046] In this embodiment, a specific optional implementation scheme is also provided for determining the coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the coordinates of the first model to be laid out. The specific process is: determining the connection relationship data of the current first model to be laid out according to the model layout configuration data, and determining the second model to be laid out connected to the current first model to be laid out according to the connection relationship data of the current first model to be laid out; determining the symmetrical layout of the second model to be laid out according to the coordinates of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data and the preset spacing data; The invention also provides a specific optional implementation scheme for determining the coordinates of the third model to be arranged connected to the second model to be arranged according to the model layout configuration data and the coordinates of the second model to be arranged, which is specifically: determining the connection relationship data of the current second model to be arranged according to the model layout configuration data, and determining the third model to be arranged connected to the current second model to be arranged according to the connection relationship data of the current second model to be arranged; determining the coordinates of the symmetrical layout of the third model to be arranged according to the coordinates of the symmetrical layout of the current second model to be arranged connected to the third model to be arranged, the size data of the current second model to be arranged, and the third spacing data. Correspondingly, as Figure 2 As shown, the method includes the following operations:

[0047] S2110. Obtain model layout configuration data sent by the user to the model layout interface.

[0048] In an optional embodiment of the present invention, the first model to be laid out may include a server model, the second model to be laid out may include a bus model, and the third model to be laid out may include a remote device model; the server model is connected to the bus model bus, the remote device model is connected to the bus model bus, communication data is transmitted between the server model and the remote device model via the bus model, and communication data is transmitted between remote device models via the bus model.

[0049] Among them, the server model can be used to characterize the model to be laid out with server functions. The bus model can be used to characterize the model to be laid out with bus communication functions. Exemplarily, the bus model can support communication protocols such as CAN (Controller Area Network) protocol, ETHERCAT (Ethernet Control Automation Technology) protocol, ETHERNET (Ethernet) protocol and MODBUS (a serial communication protocol). The remote device model can be used to characterize the model to be laid out with remote control and remote operation functions. The communication data can be the data transmitted in the bus model between the server model and the remote device model, and between the remote device models.

[0050] In an embodiment of the present invention, when the first model to be laid out is a server model, the second model to be laid out is a bus model, and the third model to be laid out is a remote device model, the server model and the bus model can be connected in the form of a bus, the server model and the remote device model can be connected in the form of a bus through the bus model, the remote device model and the bus model can be connected in the form of a bus, and the remote device models can be connected in the form of a bus through the bus model. The bus model can be used as a communication channel to transmit communication data between the server model and the remote device model, and can also be used as a communication channel to transmit communication data between remote device models.

[0051] Exemplarily, when the model to be laid out is connected in the form of a CAN bus, the bus module can broadcast the communication data sent by the server module in the form of a message to all remote device models in the network through the CAN protocol, and can also broadcast the communication data sent by a remote device model in the form of a message to other remote device models and server modules in the network. When the model to be laid out is connected in the form of an ETHERCAT bus, assuming that the server module is the main station and the remote device model is a substation, the bus module can send the data frame sent by the main station to a substation through the ETHERCAT protocol, and then the substation that receives the data frame sends the data frame to the next substation. When it is determined that the data frame has traversed all substations, the data frame (the data frame at this time includes new data loaded from the remote device model) is sent to the main station through the bus model. When the model to be laid out is connected in the form of an ETHERNET, the bus module can complete the data interaction between the server module and the remote device model through the ETHERNET protocol, and can also complete the data interaction between the remote device models. When the model to be laid out is connected in the form of a MODBUS bus, assuming that the server module is the master node and the remote device model is the slave node, the bus module can send a MODBUS command sent by the master node to all slave nodes through the serial communication protocol, but only the slave node that executes the command will feedback to the server module.

[0052] S2120. Respond to a model layout trigger instruction from the user in the model layout interface.

[0053] S2130: Determine first spacing data between first models to be laid out according to the model layout configuration data.

[0054] The first spacing data may be used to represent the distance required to be spaced between two adjacent first models to be laid out.

[0055] Accordingly, before determining the layout coordinates of the first models to be laid out, it is also necessary to determine the first spacing data between the first models to be laid out according to the connection relationship data of the models to be laid out in the model layout configuration data and the size data of the models to be laid out, so as to prevent the intersection of two adjacent first models to be laid out.

[0056] S2140: Determine second spacing data between the second models to be laid out and preset spacing data between the first model to be laid out and the second model to be laid out according to the model layout configuration data.

[0057] The second spacing data may be used to represent the distance required between two adjacent second models to be laid out. The preset spacing data may be used to represent the distance required between a first model to be laid out and a second model to be laid out.

[0058] In an embodiment of the present invention, second spacing data between each second model to be laid out and preset spacing data between the first model to be laid out and the second model to be laid out can also be determined according to the connection relationship data of the model to be laid out and the size data of the model to be laid out in the model layout configuration data.

[0059] Optionally, the second interval data and the preset interval data may be determined based on the first interval data, or the second interval data and the preset interval data may be determined first, and then the first interval data may be determined based on the second interval data and the preset interval data. The second model to be laid out according to the first interval data and the preset interval data and the first model to be laid out according to the first interval data may prevent the second model to be laid out from intersecting with the first model to be laid out that has no connection relationship, and may also prevent different second models to be laid out that are respectively connected to two first models to be laid out from intersecting and overlapping.

[0060] S2150: Determine third spacing data between third models to be laid out according to the model layout configuration data.

[0061] The third interval data may be used to represent the distance between two adjacent third models to be laid out.

[0062] In the embodiment of the present invention, the third interval data between the third models to be laid out may be determined according to the connection relationship data of the models to be laid out and the size data of the models to be laid out in the model layout configuration data.

[0063] It is understandable that, in order to prevent the third model to be laid out from intersecting with the second model to be laid out, the second interval data may be determined first, and then the third interval data may be determined based on the second interval data, or the third interval data may be determined first, and then the second interval data may be determined based on the third interval data. The embodiment of the present invention does not limit the order of determining the first interval data, the second interval data, and the third interval data, as long as different models to be laid out do not intersect, the lines between the models to be laid out do not intersect, and the lines between the models to be laid out do not intersect with the models to be laid out.

[0064] S2160: Determine the reference coordinates of the reference model to be laid out.

[0065] The reference model to be laid out may be a model to be laid out selected from the models to be laid out, and is used as a reference standard to determine the coordinates of other models to be laid out except itself. The reference coordinates may be the coordinates of any point in the model area belonging to the reference model to be laid out.

[0066] In an embodiment of the present invention, a model to be laid out can be selected from at least one model to be laid out, and the selected model to be laid out can be used as a reference model to be laid out. After determining the reference model to be laid out, a point can be first selected in the model layout interface where the model to be laid out is placed as the coordinate origin, and a coordinate system of the coordinate origin can be established. For example, the center of the model layout interface can be used as the origin, and the horizontal mid-perpendicular line and the vertical mid-perpendicular line of the model layout interface can be used as the horizontal axis and the vertical axis to establish a coordinate system. After the coordinate system is established, the position of the reference model to be laid out in the model layout interface can be further determined in the established coordinate system by random assignment or according to the layout strategy, so as to determine the reference coordinates according to the position of the reference model to be laid out in the model layout interface. For example, any point in the corresponding model area of ​​the reference model to be laid out in the model layout interface can be selected, and the coordinates of the selected point can be used as the reference coordinates. Optionally, the coordinates of any point in the upper left corner, lower right corner, lower left corner, upper right corner or center of gravity of the corresponding model area of ​​the reference model to be laid out in the model layout interface can be selected as the reference coordinates. The embodiment of the present invention does not limit the corresponding position of the reference coordinates in the reference model to be laid out.

[0067] S2170 , determining the coordinates to be laid out for symmetrical layout of the first models to be laid out according to the first spacing data of the first models to be laid out and the reference coordinates.

[0068] In an embodiment of the present invention, there may be multiple first models to be laid out. When there are multiple first models to be laid out, the coordinates to be laid out for symmetrical layout of the first models to be laid out may be determined according to the first spacing data, the reference coordinates, and the order of deploying the first models to be laid out.

[0069] In an optional embodiment of the present invention, determining the coordinates to be laid out for symmetrical layout of each first to-be-layout model according to the first spacing data of the first to-be-layout model and the reference coordinates may include: determining the horizontal coordinates of the coordinates to be laid out for symmetrical layout of each first to-be-layout model according to the reference horizontal coordinates of the reference coordinates of the reference model to be laid out; and determining the vertical coordinates of the coordinates to be laid out for symmetrical layout of each first to-be-layout model according to the first spacing data of the first to-be-layout model, the reference vertical coordinates of the reference coordinates, and the layout order of the first models to be laid out.

[0070] The reference horizontal coordinate may be the horizontal coordinate in the reference coordinate, and the reference vertical coordinate may be the vertical coordinate in the reference coordinate.

[0071] In an embodiment of the present invention, the reference horizontal coordinate of the reference coordinate of the reference model to be laid out can be used as the horizontal coordinate of the coordinate to be laid out of each first model to be laid out in a symmetrical layout, and then the vertical coordinate of the coordinate to be laid out of each first model to be laid out in a symmetrical layout is calculated according to the first interval data of the first model to be laid out, the reference vertical coordinate of the reference coordinate, and the layout order of the first model to be laid out.

[0072] Optionally, determining the coordinates to be laid out for symmetrical layout of each first model to be laid out according to the first interval data of the first model to be laid out and the reference coordinates may include: determining the coordinates to be laid out for symmetrical layout of the first model to be laid out based on the following formula:

[0073]

[0074] Among them, DM x The horizontal coordinate of the first model to be laid out, DM y The ordinate of the coordinates to be laid out of the first model to be laid out, n represents the ordinal number of the first model to be laid out whose coordinates need to be calculated, ΔDM h Represents the first interval data, x d0 Indicates the base horizontal coordinate in the base coordinate, y d0 Indicates the base vertical coordinate in the base coordinate system.

[0075] In the embodiment of the present invention, a first model to be laid out can be selected as a reference model to be laid out, and then any point of the reference model to be laid out in the corresponding model area of ​​the page can be used as a reference coordinate. d0 ,y d0 ), the layout coordinates of the second first model to be laid out that needs to be laid out in the vertical direction can be determined according to the top-down or bottom-up layout strategy. Specifically, the horizontal coordinate of the second first model to be laid out that needs to be laid out is x d0 , the ordinate of the first model to be laid out that needs to be laid out is y d0 +2×ΔDMh , the horizontal coordinate of the first model to be laid out that needs to be laid out is x d0 , the vertical coordinate of the first model to be laid out that needs to be laid out is y d0 +3×ΔDM h , and so on, the coordinates to be laid out for the symmetrical layout of all the first models to be laid out can be obtained. Optionally, when the layout is arranged according to the top-to-bottom layout strategy, the coordinate values ​​in the vertical axis direction can increase downward, and when the layout is arranged according to the bottom-to-top layout strategy, the coordinate values ​​in the vertical axis direction can increase upward. It should be noted that when a first model to be laid out is selected as a reference model to be laid out, the coordinates to be laid out of other first models to be laid out can be coordinates at the same position as the reference coordinates of the reference model to be laid out. For example, the reference coordinates are the coordinates of the upper left corner of the reference model to be laid out, and the coordinates to be laid out of other first models to be laid out are also the coordinates of the upper left corner of the corresponding model to be laid out.

[0076] S2180: Determine connection relationship data of the current first model to be laid out according to the model layout configuration data, and determine a second model to be laid out connected to the current first model to be laid out according to the connection relationship data of the current first model to be laid out.

[0077] In an embodiment of the present invention, the model layout configuration data can be parsed to obtain the connection relationship data of the current first model to be laid out, and then the second model to be laid out connected to the current first model to be laid out is determined according to the connection relationship data of the current first model to be laid out, and the layout coordinates of the symmetrical layout of the current first model to be laid out are obtained.

[0078] S2190: Determine the symmetrical layout coordinates of the second model to be laid out according to the symmetrical layout coordinates of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data, and the preset spacing data.

[0079] In an embodiment of the present invention, the coordinates to be laid out of the symmetrical layout of the second model to be laid out can be calculated according to the layout order of each second model to be laid out based on the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data and the preset spacing data.

[0080] In an optional embodiment of the present invention, determining the coordinates to be laid out of the symmetrical layout of the second model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data and the preset spacing data may include: determining the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the current first coordinates to be laid out according to the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the width of the second model to be laid out connected to the current first coordinates to be laid out and the preset spacing data, or determining the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the current first coordinates to be laid out according to the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the width of the current first model to be laid out and the preset spacing data; determining the vertical coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out according to the vertical coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the second spacing data, the layout order of the second model to be laid out and the number of sides of the current first model to be laid out connected to the second model to be laid out.

[0081] In an embodiment of the present invention, the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out can be first determined, and the width of the second model to be laid out connected to the current first coordinates and the sum of preset spacing data can be determined, and the difference between the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out and the sum can be used as the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the current first coordinates, or the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the sum of the width of the current first model to be laid out and the preset spacing data can be used as the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the current first coordinates. After obtaining the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the current first coordinates, the vertical coordinates of the coordinates to be laid out of the symmetrical layout of the second model to be laid out can be determined according to the difference between the vertical coordinates of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out and the second spacing data, the layout order of the second model to be laid out, and the number of edges of the current first model to be laid out connected to the second model to be laid out.

[0082] Optionally, determining the coordinates to be laid out of the symmetrical layout of the second model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data, and the preset spacing data may include:

[0083] The coordinates to be laid out for the symmetrical layout of the second model to be laid out are determined based on the following formula:

[0084]

[0085] Alternatively, the coordinates to be laid out of the symmetrical layout of the second model to be laid out are determined based on the following formula:

[0086]

[0087] Among them, BM x The horizontal coordinate of the coordinates to be laid out for the symmetrical layout of the second model to be laid out, BM y The ordinate of the coordinates to be laid out of the symmetrical layout of the second model to be laid out, n represents the ordinal number of the second model to be laid out for which the coordinates to be laid out need to be calculated, ΔBM h Indicates the second interval data, DM x The horizontal coordinate of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, DM y represents the ordinate of the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, Δh represents the preset interval data, BM w Indicates the width of the second model to be laid out, DM w represents the width of the first model to be laid out, (n-1) / i represents the quotient of the difference between n and 1 and i, and i represents the number of edges of the current first model to be laid out connected to the second model to be laid out. Optionally, the value of i can be 2.

[0088] In an embodiment of the present invention, the coordinates to be laid out of the symmetrical layout of the second model to be laid out can be calculated according to the layout order of the second model to be laid out, based on the coordinates to be laid out of the symmetrical layout of the first model to be laid out connected to the second model to be laid out, the width of the second model to be laid out (or the width of the first model to be laid out), the second spacing data, the preset spacing data, and the number of edges of the first model to be laid out connected to the second model to be laid out. For example, when the second model to be laid out needs to be connected to two edges of the first model to be laid out, the second model to be laid out can be laid out on the left and right sides of the first model to be laid out, and when the second model to be laid out needs to be connected to three edges of the first model to be laid out, the second model to be laid out can be laid out on three edges of the first model to be laid out.

[0089] Assuming that the number of edges of the first model to be laid out connected to the second model to be laid out is 2, when the layout order of the second model to be laid out is an odd number, the layout coordinates of the symmetrical layout of the second model to be laid out with an odd layout order can be calculated according to the following formula:

[0090]

[0091] When the layout order of the second model to be laid out is an even number, the coordinates to be laid out of the symmetrical layout of the second model to be laid out with an even layout order can be calculated according to the following formula:

[0092]

[0093] S2200 , determining connection relationship data of the current second model to be laid out according to the model layout configuration data, and determining a third model to be laid out connected to the current second model to be laid out according to the connection relationship data of the current second model to be laid out.

[0094] In an embodiment of the present invention, the model layout configuration data can be parsed to obtain the connection relationship data of the current second model to be laid out, and then the third model to be laid out connected to the current second model to be laid out is determined according to the connection relationship data of the current second model to be laid out, and the layout coordinates of the symmetrical layout of the current second model to be laid out are determined.

[0095] S2210: Determine the symmetrical layout coordinates of the third model to be laid out according to the symmetrical layout coordinates of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data.

[0096] In an embodiment of the present invention, the coordinates to be laid out of the symmetrical layout of the third model to be laid out can be calculated according to the coordinates to be laid out of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data in accordance with the layout order of each third model to be laid out.

[0097] In an optional embodiment of the present invention, determining the coordinates to be laid out of the symmetrical layout of the third model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data may include: determining the abscissa of the coordinates to be laid out of the symmetrical layout of the third model to be laid out connected to the current second model to be laid out according to the abscissa of the coordinates to be laid out of the current second model to be laid out, the width of the current second model to be laid out, the layout order of the third model to be laid out, and the third spacing data; or determining the abscissa of the coordinates to be laid out of the symmetrical layout of the third model to be laid out connected to the current second model to be laid out according to the abscissa of the coordinates to be laid out of the current second model to be laid out, the layout order of the third model to be laid out, and the third spacing data; determining the ordinate of the coordinates to be laid out of the symmetrical layout of the third model to be laid out connected to the current second model to be laid out according to the ordinate of the current second model to be laid out.

[0098] In the embodiment of the present invention, the horizontal coordinates of the coordinates to be laid out of the current second model to be laid out can be determined first, and the sum of the horizontal coordinates of the coordinates to be laid out of the current second model to be laid out and the width of the current second model to be laid out can be determined, and then the horizontal coordinates of the coordinates to be laid out of the third model to be laid out that is symmetrically arranged and connected to the current second model to be laid out can be determined according to the horizontal coordinates of the coordinates to be laid out of the current second model to be laid out and the width of the current second model to be laid out, the layout order of the third model to be laid out, and the third interval data; or, the horizontal coordinates of the coordinates to be laid out of the third model to be laid out that is symmetrically arranged and connected to the current second model to be laid out can be determined according to the horizontal coordinates of the coordinates to be laid out of the current second model to be laid out, the layout order of the third model to be laid out, and the third interval data, and then the vertical coordinates of the current second model to be laid out can be used as the vertical coordinates of the coordinates to be laid out of the third model to be laid out that is symmetrically arranged and connected to the current second model to be laid out.

[0099] Optionally, determining the coordinates to be laid out of the symmetrical layout of the third model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data may include:

[0100] The coordinates to be laid out for the symmetrical layout of the third model to be laid out are determined based on the following formula:

[0101]

[0102] Alternatively, the coordinates to be laid out of the symmetrical layout of the third model to be laid out are determined based on the following formula:

[0103]

[0104] Among them, RM x Represents the horizontal coordinate of the layout coordinate of the third model to be laid out, RM y The ordinate of the coordinates to be laid out of the third model to be laid out, n represents the ordinal number of the third model to be laid out that is connected to the same second model to be laid out and needs to calculate the coordinates to be laid out, ΔRM w Indicates the third interval data, BM x The horizontal coordinate of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the third model to be laid out, BM y The ordinate of the coordinates to be laid out of the symmetrical layout of the second model to be laid out connected to the third model to be laid out, BM w Indicates the width of the second model to be laid out.

[0105] In the embodiment of the present invention, the coordinates to be laid out of the third model to be laid out that is symmetrically connected to the same second model to be laid out whose layout order is an odd number may be calculated according to the following formula:

[0106]

[0107] The coordinates of the third model to be laid out that is symmetrically connected to the same second model to be laid out whose layout order is an even number are calculated according to the following formula:

[0108]

[0109] Figure 3 This is an interface layout effect diagram of a device configuration provided by the second embodiment of the present invention. In a specific example, the vertical axis coordinate value in the page for laying out the model to be laid out increases from top to bottom, and the horizontal axis coordinate value increases from left to right. Assuming that two first models to be laid out are laid out symmetrically, the first model to be laid out A is used as the reference model to be laid out, and the coordinates of the upper left corner of the first model to be laid out A are used as the reference coordinates. Among them, the reference coordinates (x d0 ,y d0 ) is (0, 0), ΔDM h =300, ΔBM h is 200, Δh is 100, ΔRM w The length of the first model to be laid out is 100 and the width is 200. The length of the second model to be laid out is 600 and the width is 10. The length of the third model to be laid out is 40 and the width is 100. The electronic device for executing the interface layout method for device configuration can be configured according to the formula DM x =x d0 and d0 +2×ΔDM h The coordinates of the second first model to be laid out B that needs to be laid out are obtained to be (0, 600). After obtaining the coordinates of the first model to be laid out symmetrically, two first models to be laid out with a length of 100 and a width of 200 are laid out in the model layout interface. Among them, the coordinates of the upper left corner of the first model to be laid out A are (0, 0), and the coordinates of the upper left corner of the first model to be laid out B are (0, 600), and the first model to be laid out A and the first model to be laid out B are both connected to the power supply.

[0110] Taking the above specific example as an example, after obtaining the layout coordinates of the first model to be laid out, if the layout order of the second model to be laid out a connected to the first model to be laid out A is 1 (the layout order is an odd number), then according to the formula DM x -BM w -Δh, the horizontal coordinate value of the coordinates to be laid out of the second model a to be laid out is -700 (0-600-100). y +(n-1) / 2×ΔBM h -ΔBM h, we can get the quotient of (1-1) and 2 is 0, and the ordinate value of the coordinates to be laid out of the second model a to be laid out is -200 (0+0-200). If the layout order of the second model b to be laid out that is connected to the first model A to be laid out is 2 (the layout order is an even number), then according to the formula DM x +DM w +Δh, it can be obtained that the horizontal coordinate value of the coordinate to be laid out of the second model b to be laid out is 200 (0+100+100). According to the formula DM y +(n-1) / 2×ΔBM h -ΔBM h , the quotient of (2-1) and 2 is 0, and the ordinate value of the coordinates to be laid out of the second model to be laid out b is -200 (0+0-200). If the layout order of the second model to be laid out c that has a connection relationship with the first model to be laid out A is 3 (the layout order is an odd number), then according to the formula DM x -BM w -Δh, the horizontal coordinate value of the second model c to be laid out is -700 (0-600-100). y +(n-1) / 2×ΔBM h -ΔBM h , it can be obtained that the quotient of (3-1) and 2 is 1, and the ordinate value of the second model to be laid out c is 0 (0+200-200). By analogy, the coordinates to be laid out of all the second models to be laid out connected to the two first models to be laid out can be obtained, and then a horizontal line (a line segment with a length of 600 and a width of 10) is drawn to the right starting from the coordinates to be laid out of the second model to be laid out. Optionally, the end point of the extension line of the line between the first model to be laid out and the second model to be laid out can be the intersection of the diagonal line of the first model to be laid out. It can be understood that the number of second models to be laid out with an odd layout order can also be determined first, and then the edges of the first model to be laid out that need to be connected by lines can be equally divided according to the number of second models to be laid out with an odd layout order, so as to connect the equally divided points of the second model to be laid out and the first model to be laid out by lines. For example, when the number of second models to be laid out with an odd layout order is 3, the edges of the first model to be laid out that need to be connected by lines can be equally divided into three, so that the second model to be laid out can be connected to the three equally divided points respectively. By analogy, we can obtain the connection between the second model to be laid out and the first model to be laid out whose layout order is an even number.

[0111] After obtaining the coordinates to be laid out of the second model to be laid out, the calculation process of the coordinates to be laid out of the third model to be laid out connected with the second model to be laid out a and the second model to be laid out b can be taken as an example to illustrate the calculation of the coordinates to be laid out of the third model to be laid out. Assuming that the third model to be laid out 1 is connected with the second model to be laid out a, the third model to be laid out 2 is connected with the second model to be laid out b, and the third model to be laid out 3 is connected with the second model to be laid out a, according to formula BM x +BM w -1×ΔRM w , the horizontal coordinate value of the third model 1 to be laid out is -150 (-700 + 600 - 50). According to the formula RM y =BM y The vertical coordinate value of the third model to be laid out 1 is -200. When calculating the coordinates of the third model to be laid out 2 connected to the second model to be laid out b, since the third model to be laid out 2 is the first third model to be laid out on the second model to be laid out b that needs to calculate the coordinates to be laid out, n is set to 1, BM x Equal to 200 Substitute into the formula BM x +n×ΔRM w , the abscissa of the third model to be laid out 2 is 250 (200 + 1 × 50), and the ordinate value is the ordinate of the second model to be laid out b -200. Since the third model to be laid out 3 is connected to the second model to be laid out a, it is necessary to calculate the layout order of the third model to be laid out 2, so according to the formula BM x +BM w -2×ΔRM w , the horizontal coordinate of the coordinates to be laid out of the third model 3 to be laid out is -200 (-700+600-100), and the vertical coordinate of the coordinates to be laid out of the third model 3 to be laid out is -200. By analogy, the coordinates to be laid out of all the third models to be laid out connected to the second model to be laid out can be obtained. After obtaining the coordinates to be laid out of all the models to be laid out, the models to be laid out are symmetrically laid out according to the coordinates to be laid out to obtain the following Figure 3 It is understood that, while laying out the model to be laid out, the IP address and communication protocol of the model to be laid out and other related data can also be marked on one side of the corresponding model to be laid out, so as to facilitate fault analysis and function detection of the model to be laid out.

[0112] The technical solution of this embodiment obtains the model layout configuration data sent by the user to the model layout interface, and responds to the model layout trigger instruction of the user in the model layout interface, and then determines the first spacing data between each first model to be laid out according to the model layout configuration data, thereby determining the second spacing data between each second model to be laid out and the preset spacing data between the first model to be laid out and the second model to be laid out according to the model layout configuration data, and then determines the third spacing data between each third model to be laid out according to the model layout configuration data, and further determines the reference coordinates of the reference model to be laid out, and then determines the layout coordinates of the first model to be laid out, the second model to be laid out, and the third model to be laid out according to the reference coordinates, the first spacing data, the second spacing data, the third spacing data, and the preset spacing data. This solution can automatically determine the coordinates of the constraint model position based on the model layout configuration data and the model layout trigger instruction sent by the user, so that the device configuration can be reasonably and automatically laid out in the model layout interface, solves the problems of poor layout effect and high labor cost in the existing model layout method, can improve the effect of model automatic layout, improve the aesthetics of model layout, save labor cost, and enhance user experience.

[0113] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.

[0114] Embodiment 3

[0115] Figure 4 is a schematic diagram of an interface layout device for device configuration provided by Embodiment 3 of the present invention, such as Figure 4 As shown, the device includes: a model layout configuration data acquisition module 310, a first to-be-layout coordinate determination module 320, a second to-be-layout coordinate determination module 330 and a third to-be-layout coordinate determination module 340, wherein:

[0116] The model layout configuration data acquisition module 310 is used to acquire the model layout configuration data sent by the user to the model layout interface; wherein the model layout configuration data includes the connection relationship data of the model to be laid out and the size data of the model to be laid out;

[0117] A first to-be-layout coordinates determining module 320, configured to determine the to-be-layout coordinates of the first to-be-layout model in the model layout interface in response to a model layout triggering instruction from a user in the model layout interface, according to the model layout configuration data;

[0118] A second to-be-layout coordinates determination module 330, configured to determine the to-be-layout coordinates of the second to-be-layout model connected to the first to-be-layout model according to the model layout configuration data and the to-be-layout coordinates of the first to-be-layout model;

[0119] The third to-be-layout coordinates determining module 340 is used to determine the to-be-layout coordinates of the third to-be-layout model connected to the second to-be-layout model according to the model layout configuration data and the to-be-layout coordinates of the second to-be-layout model.

[0120] The technical solution of this embodiment obtains the model layout configuration data sent by the user to the model layout interface, and then responds to the model layout trigger instruction of the user in the model layout interface, determines the to-be-layout coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data, further determines the to-be-layout coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the first model to be laid out, and determines the to-be-layout coordinates of the third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the second model to be laid out. This solution can automatically determine the coordinates of the constraint model position based on the model layout configuration data and the model layout trigger instruction sent by the user, so that the device configuration can be reasonably and automatically laid out in the model layout interface, solves the problems of poor layout effect and high labor cost in the existing model layout method, can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor cost, and enhance user experience.

[0121] Optionally, the first model to be laid out includes a server model, the second model to be laid out includes a bus model, and the third model to be laid out includes a remote device model; the server model is connected to the bus model bus, the remote device model is connected to the bus model bus, communication data is transmitted between the server model and the remote device model through the bus model, and communication data is transmitted between the remote device models through the bus model.

[0122] Optionally, the interface layout device of the equipment configuration also includes a data determination module, which is used to determine the first spacing data between each of the first models to be laid out according to the model layout configuration data; determine the second spacing data between each of the second models to be laid out, and the preset spacing data between the first model to be laid out and the second model to be laid out according to the model layout configuration data; determine the third spacing data between each of the third models to be laid out according to the model layout configuration data.

[0123] Optionally, there are multiple first models to be laid out, and the first layout coordinate determination module 320 is specifically used to: determine the reference coordinates of the reference model to be laid out; and determine the layout coordinates of the symmetrical layout of each of the first models to be laid out according to the first spacing data of the first models to be laid out and the reference coordinates.

[0124] Optionally, the second coordinate determination module 330 is specifically used to: determine the connection relationship data of the current first model to be laid out according to the model layout configuration data, and determine the second model to be laid out connected to the current first model to be laid out according to the connection relationship data of the current first model to be laid out; determine the symmetrical layout coordinates of the second model to be laid out according to the symmetrical layout coordinates of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data and the preset spacing data.

[0125] Optionally, the third coordinate determination module 340 is specifically used to: determine the connection relationship data of the current second model to be laid out according to the model layout configuration data, and determine the third model to be laid out connected to the current second model to be laid out according to the connection relationship data of the current second model to be laid out; determine the symmetrical layout coordinates of the third model to be laid out according to the symmetrical layout coordinates of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data.

[0126] Optionally, the first coordinate determination module 320 is specifically used to: determine the horizontal coordinates of the coordinates to be laid out symmetrically arranged for each of the first models to be laid out according to the reference horizontal coordinates of the reference coordinates of the reference model to be laid out; determine the vertical coordinates of the coordinates to be laid out symmetrically arranged for each of the first models to be laid out according to the first spacing data of the first models to be laid out, the reference vertical coordinates of the reference coordinates, and the layout order of the first models to be laid out.

[0127] Optionally, the second coordinate determination module 330 is specifically used to: determine the horizontal coordinates of the symmetrical layout of the second model to be laid out connected to the current first coordinates to be laid out according to the horizontal coordinates of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the width of the second model to be laid out connected to the current first coordinates to be laid out, and the preset interval data; or, determine the horizontal coordinates of the symmetrical layout of the second model to be laid out connected to the current first coordinates to be laid out according to the horizontal coordinates of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the width of the current first model to be laid out, and the preset interval data; determine the vertical coordinates of the symmetrical layout of the second model to be laid out according to the vertical coordinates of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the second interval data, the layout order of the second model to be laid out, and the number of sides of the current first model to be laid out connected to the second model to be laid out.

[0128] Optionally, the third to-be-layout coordinates determination module 340 is specifically used to: determine the abscissa of the to-be-layout coordinates of the third to-be-layout model connected to the current second to-be-layout model for symmetrical layout according to the abscissa of the to-be-layout coordinates of the current second to-be-layout model, the width of the current second model, the layout order of the third model, and the third spacing data; or, determine the abscissa of the to-be-layout coordinates of the third to-be-layout model connected to the current second to-be-layout model for symmetrical layout according to the abscissa of the to-be-layout coordinates of the current second model, the layout order of the third model, and the third spacing data; determine the ordinate of the to-be-layout coordinates of the third to-be-layout model connected to the current second to-be-layout model for symmetrical layout according to the ordinate of the current second model.

[0129] The above-mentioned device configuration interface layout device can execute the device configuration interface layout method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the device configuration interface layout method provided by any embodiment of the present invention.

[0130] Since the interface layout device of the device configuration introduced above is a device that can execute the interface layout method of the device configuration in the embodiment of the present invention, based on the interface layout method of the device configuration introduced in the embodiment of the present invention, the technical personnel in this field can understand the specific implementation method of the interface layout device of the device configuration of this embodiment and its various variations, so how the interface layout device of the device configuration implements the interface layout method of the device configuration in the embodiment of the present invention is not introduced in detail here. As long as the device adopted by the technical personnel in this field to implement the interface layout method of the device configuration in the embodiment of the present invention belongs to the scope of protection of this application.

[0131] Embodiment 4

[0132] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an electronic device 412 suitable for implementing embodiments of the present invention is shown. Figure 5 The electronic device 412 shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. The electronic device 412 may be, for example, a computer device.

[0133] like Figure 5As shown, the electronic device 412 is in the form of a general purpose computing device. The components of the electronic device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 connecting different system components (including the storage device 428 and the processor 416).

[0134] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0135] The electronic device 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 412, including volatile and non-volatile media, removable and non-removable media.

[0136] The storage device 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The electronic device 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 434 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a read-only optical disk (Compact Disc-Read Only Memory, CD-ROM), a digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 418 via one or more data medium interfaces. The storage device 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0137] A program 436 having a set (at least one) of program modules 426 may be stored, for example, in a storage device 428, such program modules 426 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. Program modules 426 generally perform the functions and / or methods of the embodiments described herein.

[0138] The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboards, pointing devices, cameras, displays 424, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 412, and / or communicate with any device that enables the electronic device 412 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 422. In addition, the electronic device 412 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 420. As shown, the network adapter 420 communicates with other modules of the electronic device 412 through a bus 418. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.

[0139] The processor 416 executes various functional applications and data processing by running the program stored in the storage device 428, for example, the interface layout method of the device configuration provided by the above embodiment of the present invention: obtaining the model layout configuration data sent by the user to the model layout interface; wherein the model layout configuration data includes the connection relationship data of the model to be laid out and the size data of the model to be laid out; in response to the model layout trigger instruction of the user in the model layout interface, determining the to-be-laid coordinates of the first to-be-laid model in the model layout interface according to the model layout configuration data; determining the to-be-laid coordinates of the second to-be-laid model connected to the first to-be-laid model according to the model layout configuration data and the to-be-laid coordinates of the first to-be-laid model; determining the to-be-laid coordinates of the third to-be-laid model connected to the second to-be-laid model according to the model layout configuration data and the to-be-laid coordinates of the second to-be-laid model.

[0140] The technical solution of this embodiment obtains the model layout configuration data sent by the user to the model layout interface, and then responds to the model layout trigger instruction of the user in the model layout interface, determines the to-be-layout coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data, further determines the to-be-layout coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the first model to be laid out, and determines the to-be-layout coordinates of the third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the to-be-layout coordinates of the second model to be laid out. This solution can automatically determine the coordinates of the constraint model position based on the model layout configuration data and the model layout trigger instruction sent by the user, so that the device configuration can be reasonably and automatically laid out in the model layout interface, solves the problems of poor layout effect and high labor cost in the existing model layout method, can improve the effect of automatic model layout, improve the aesthetics of model layout, save labor cost, and enhance user experience.

[0141] Embodiment 5

[0142] Embodiment 5 of the present invention further provides a computer storage medium storing a computer program, wherein the computer program is used to execute the interface layout method of the device configuration described in any of the above embodiments of the present invention when executed by a computer processor: obtaining model layout configuration data sent by a user to the model layout interface; wherein the model layout configuration data includes connection relationship data of the model to be laid out and size data of the model to be laid out; in response to a model layout trigger instruction of the user in the model layout interface, determining the to-be-laid coordinates of the first model to be laid out in the model layout interface according to the model layout configuration data; determining the to-be-laid coordinates of the second model to be laid out connected to the first model to be laid out according to the model layout configuration data and the to-be-laid coordinates of the first model to be laid out; determining the to-be-laid coordinates of the third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the to-be-laid coordinates of the second model to be laid out.

[0143] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: 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 this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0144] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0145] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0146] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0147] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A device configuration interface layout method, characterized in that: include: Acquire model layout configuration data sent by the user to the model layout interface; wherein the model layout configuration data includes connection relationship data of the model to be laid out and size data of the model to be laid out; In response to a model layout trigger instruction of a user in the model layout interface, determining the to-be-layout coordinates of the first to-be-layout model in the model layout interface according to the model layout configuration data; Determining the coordinates to be laid out of a second model to be laid out that is connected to the first model to be laid out according to the model layout configuration data and the coordinates to be laid out of the first model to be laid out; Determining the coordinates to be laid out of a third model to be laid out connected to the second model to be laid out according to the model layout configuration data and the coordinates to be laid out of the second model to be laid out; Before determining the to-be-layout coordinates of the first to-be-layout model in the model layout interface, the method further includes: Determine first spacing data between each of the first models to be laid out according to the model layout configuration data; determine second spacing data between each of the second models to be laid out, and preset spacing data between the first model to be laid out and the second model to be laid out according to the model layout configuration data; determine third spacing data between each of the third models to be laid out according to the model layout configuration data; The number of the first models to be laid out is multiple; the determining the coordinates to be laid out of the first models to be laid out includes: determining the reference coordinates of the reference model to be laid out; determining the coordinates to be laid out of the symmetrical layout of each of the first models to be laid out according to the first spacing data of the first models to be laid out and the reference coordinates; The determining, according to the model layout configuration data and the coordinates to be laid out of the first model to be laid out, the coordinates to be laid out of the second model to be laid out connected to the first model to be laid out, comprises: determining the connection relationship data of the current first model to be laid out according to the model layout configuration data, and determining the second model to be laid out connected to the current first model to be laid out according to the connection relationship data of the current first model to be laid out; determining the coordinates to be laid out of the symmetrical layout of the second model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data, and the preset spacing data; The determining, according to the model layout configuration data and the coordinates to be laid out of the second model to be laid out, the coordinates to be laid out of the third model to be laid out connected to the second model to be laid out, comprises: determining the connection relationship data of the current second model to be laid out according to the model layout configuration data, and determining the third model to be laid out connected to the current second model to be laid out according to the connection relationship data of the current second model to be laid out; and determining the coordinates to be laid out of the symmetrical layout of the third model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data.

2. The method according to claim 1, characterized in that The first model to be laid out includes a server model, the second model to be laid out includes a bus model, and the third model to be laid out includes a remote device model; the server model is connected to the bus model bus, the remote device model is connected to the bus model bus, communication data is transmitted between the server model and the remote device model via the bus model, and communication data is transmitted between the remote device models via the bus model.

3. The method according to claim 1, characterized in that The step of determining the coordinates to be laid out for symmetrical layout of each of the first models to be laid out according to the first spacing data of the first models to be laid out and the reference coordinates includes: Determine the horizontal coordinates of the coordinates to be laid out of the symmetrical layout of each of the first models to be laid out according to the reference horizontal coordinates of the reference coordinates of the reference model to be laid out; The ordinates of the coordinates to be laid out of the symmetrical layout of each of the first models to be laid out are determined according to the first spacing data of the first models to be laid out, the reference ordinates of the reference coordinates, and the layout order of the first models to be laid out.

4. The method according to claim 1, characterized in that The method of determining the coordinates to be laid out of the symmetrical layout of the second model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the size data of the second model to be laid out, the second spacing data and the preset spacing data comprises: Determine the abscissa of the coordinates to be laid out symmetrically connected to the current first coordinates to be laid out according to the abscissa of the coordinates to be laid out symmetrically of the current first model to be laid out connected to the second model to be laid out, the width of the second model to be laid out connected to the current first coordinates to be laid out, and the preset interval data; or, determine the abscissa of the coordinates to be laid out symmetrically connected to the current first coordinates to be laid out according to the abscissa of the coordinates to be laid out symmetrically of the current first model to be laid out connected to the second model to be laid out, the width of the current first model to be laid out, and the preset interval data; The ordinate of the coordinate of the symmetrical layout of the second model to be laid out is determined according to the ordinate of the coordinate of the symmetrical layout of the current first model to be laid out connected to the second model to be laid out, the second spacing data, the layout order of the second model to be laid out, and the number of edges of the current first model to be laid out connected to the second model to be laid out.

5. The method according to claim 1, characterized in that The step of determining the coordinates to be laid out of the symmetrical layout of the third model to be laid out according to the coordinates to be laid out of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data comprises: Determine the abscissa of the coordinates to be laid out of the third model to be laid out that is symmetrically connected to the current second model to be laid out according to the abscissa of the coordinates to be laid out of the current second model to be laid out, the width of the current second model to be laid out, the layout order of the third model to be laid out, and the third spacing data; or, determine the abscissa of the coordinates to be laid out of the third model to be laid out that is symmetrically connected to the current second model to be laid out according to the abscissa of the coordinates to be laid out of the current second model to be laid out, the layout order of the third model to be laid out, and the third spacing data; The ordinate of the coordinate to be laid out of the third model to be laid out that is symmetrically connected to the current second model to be laid out is determined according to the ordinate of the current second model to be laid out.

6. An interface layout device for device configuration, characterized in that: include: A model layout configuration data acquisition module is used to acquire model layout configuration data sent by a user to the model layout interface; wherein the model layout configuration data includes connection relationship data of the model to be laid out and size data of the model to be laid out; A first to-be-layout coordinates determination module, configured to determine the to-be-layout coordinates of the first to-be-layout model in the model layout interface in response to a model layout trigger instruction of the user in the model layout interface, according to the model layout configuration data; A second to-be-layout coordinates determination module, configured to determine, based on the model layout configuration data and the to-be-layout coordinates of the first to-be-layout model, the to-be-layout coordinates of the second to-be-layout model connected to the first to-be-layout model; A third to-be-layout coordinates determination module, configured to determine, based on the model layout configuration data and the to-be-layout coordinates of the second to-be-layout model, the to-be-layout coordinates of a third to-be-layout model connected to the second to-be-layout model; The interface layout device of the device configuration also includes a data determination module, which is used to determine the first spacing data between each of the first models to be laid out according to the model layout configuration data; determine the second spacing data between each of the second models to be laid out according to the model layout configuration data, and the preset spacing data between the first model to be laid out and the second model to be laid out; determine the third spacing data between each of the third models to be laid out according to the model layout configuration data; The number of the first models to be laid out is multiple, and the first coordinate determination module to be laid out is specifically used to: determine the reference coordinates of the reference model to be laid out; determine the coordinates to be laid out of the symmetrical layout of each of the first models to be laid out according to the first interval data of the first models to be laid out and the reference coordinates; The second to-be-layout coordinate determination module is specifically used to: determine the connection relationship data of the current first to-be-layout model according to the model layout configuration data, and determine the second to-be-layout model connected to the current first to-be-layout model according to the connection relationship data of the current first to-be-layout model; determine the to-be-layout coordinates of the symmetrical layout of the second to-be-layout model according to the to-be-layout coordinates of the symmetrical layout of the current first to-be-layout model connected to the second to-be-layout model, the size data of the second to-be-layout model, the second spacing data and the preset spacing data; The third coordinate determination module for layout is specifically used to: determine the connection relationship data of the current second model to be laid out according to the model layout configuration data, and determine the third model to be laid out connected to the current second model to be laid out according to the connection relationship data of the current second model to be laid out; determine the layout coordinates of the symmetrical layout of the third model to be laid out according to the layout coordinates of the symmetrical layout of the current second model to be laid out connected to the third model to be laid out, the size data of the current second model to be laid out, and the third spacing data.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the device configuration interface layout method as described in any one of claims 1-5.

8. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the interface layout method of the device configuration as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Node layout method and device, storage medium and electronic device

    CN110515690A

  • Node topological graph layout method and device, computer storage medium and electronic equipment

    CN113704943A