Cable connection diagram generation method and device, computer device and storage medium

By introducing logical cables and equipment standard components, the logical model of cables and equipment is automatically constructed, solving the problem of low efficiency and accuracy in cable connection diagram generation in existing technologies, and realizing efficient and accurate cable connection diagram generation.

CN116011380BActive Publication Date: 2025-11-18CHINA NUCLEAR POWER TECH RES INST CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310101050.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-19
Publication Date
2025-11-18
Estimated Expiration
2043-01-19

AI Technical Summary

Technical Problem

The efficiency and accuracy of drawing cable connection diagrams in existing technologies are low, which cannot meet the requirements of nuclear power reactor design.

Method used

By introducing standard components for logic cables and logic devices, and based on the logic cable library and logic device library, the logical models of cables and devices are automatically constructed, and cable connection diagrams are generated according to the connection relationships.

Benefits of technology

It improves the efficiency and accuracy of cable connection diagram generation, meeting the requirements of nuclear power reactor design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116011380B_ABST
    Figure CN116011380B_ABST
Patent Text Reader

Abstract

The application relates to a cable connection diagram generation method and device, computer equipment and a storage medium. The method comprises the following steps: in response to a cable connection diagram drawing request, obtaining cable data and device data according to the cable connection diagram drawing request; based on a logical cable standard part in a logical cable library, constructing a logical cable target part of a target cable according to the cable data; based on a logical device standard part in a logical device library, constructing a logical device target part of a target device according to the device data; and generating a cable connection diagram according to the logical cable target part, the logical device target part and the connection relationship between the target cable and the target device. The application introduces logical cable standard parts and logical device standard parts, and takes the logical cable standard parts and the logical device standard parts as the benchmark, and combines the cable data, the device data and the connection relationship between the cable and the device, so that the cable connection diagram can be automatically generated, and the efficiency and accuracy of generating the cable connection diagram are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, computer device, and storage medium for generating cable connection diagrams. Background Technology

[0002] With the development of nuclear power plant applications, cable connection diagrams are widely used in nuclear power plant design.

[0003] Currently, cable connection diagrams are drawn manually on a drawing platform. Specifically, the logical elements of electrical equipment and cables are manually created, and their attribute information is manually edited. Then, the cable connection diagram is manually created within the drawing platform. Clearly, this method of drawing cable connection diagrams is both inefficient and inaccurate.

[0004] Therefore, improving the efficiency and accuracy of cable connection diagram generation is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] Therefore, it is necessary to provide an efficient and accurate method, apparatus, computer equipment, and storage medium for generating cable connection diagrams to address the aforementioned technical problems.

[0006] In a first aspect, this application provides a method for generating cable connection diagrams, the method comprising:

[0007] In response to a cable connection diagram drawing request, obtain cable data and equipment data based on the request.

[0008] Based on the logic cable standard components in the logic cable library, construct the logic cable target component for the target cable according to the cable data;

[0009] Based on the logical device standard parts in the logical device library, construct the logical device target parts for the target device according to the device data;

[0010] Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0011] In one embodiment, based on logic cable standard components in the logic cable library, and according to cable data, a logic cable target component for the target cable is constructed, including:

[0012] Extract logical cable standard parts from the logical cable library that match the identification information of the target cable in the cable data;

[0013] Based on the attribute information of the target cable in the cable data, the extracted logical cable standard component is instantiated to obtain the logical cable target component of the target cable.

[0014] In one embodiment, based on the attribute information of the target cable in the cable data, the extracted logical cable standard component is instantiated to obtain the logical cable target component of the target cable, including:

[0015] Based on the attribute information of the target cable in the cable data, the attribute information of the extracted logical cable standard component is updated to obtain the logical cable target component of the target cable.

[0016] In one embodiment, the attribute information of the extracted logical cable standard component is updated based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable, including:

[0017] The attribute information of the target cable in the cable data is compared with the attribute information of the extracted logical cable standard parts, and the data to be updated is determined based on the comparison results.

[0018] Display the data to be updated and ask if the data is correct;

[0019] If so, the attribute information of the extracted logic cable standard component is updated according to the data to be updated to obtain the logic cable target component of the target cable.

[0020] In one embodiment, based on logical device standard parts in the logical device library, and according to device data, a logical device target part for the target device is constructed, including:

[0021] Extract logical device standard parts from the logical device library that match the identification information of the target device in the device data;

[0022] Based on the attribute information of the target device in the device data, the extracted logical device standard parts are instantiated to obtain the logical device target parts of the target device.

[0023] In one embodiment, based on the attribute information of the target device in the device data, the extracted logical device standard component is instantiated to obtain the logical device target component of the target device, including:

[0024] Based on the attribute information of the target device in the equipment data, the attribute information of the extracted logical device standard parts is updated to obtain the logical device target parts of the target device.

[0025] Secondly, this application also provides a cable connection diagram generation apparatus. The apparatus includes:

[0026] The acquisition module is used to respond to a cable connection diagram drawing request and acquire cable data and equipment data according to the request.

[0027] The first construction module is used to construct the logical cable target component of the target cable based on the logical cable standard components in the logical cable library and the cable data.

[0028] The second construction module is used to construct the target logical device component of the target device based on the logical device standard components in the logical device library and the device data.

[0029] The generation module is used to generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0030] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0031] In response to a cable connection diagram drawing request, obtain cable data and equipment data based on the request.

[0032] Based on the logic cable standard components in the logic cable library, construct the logic cable target component for the target cable according to the cable data;

[0033] Based on the logical device standard parts in the logical device library, construct the logical device target parts for the target device according to the device data;

[0034] Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0035] Fourthly, this application also provides a computer-readable storage medium. This computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0036] In response to a cable connection diagram drawing request, obtain cable data and equipment data based on the request.

[0037] Based on the logic cable standard components in the logic cable library, construct the logic cable target component for the target cable according to the cable data;

[0038] Based on the logical device standard parts in the logical device library, construct the logical device target parts for the target device according to the device data;

[0039] Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0040] Fifthly, this application also provides a computer program product. This computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0041] In response to a cable connection diagram drawing request, obtain cable data and equipment data based on the request.

[0042] Based on the logic cable standard components in the logic cable library, construct the logic cable target component for the target cable according to the cable data;

[0043] Based on the logical device standard parts in the logical device library, construct the logical device target parts for the target device according to the device data;

[0044] Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0045] The aforementioned cable connection diagram generation method, apparatus, computer equipment, and storage medium, in response to a cable connection diagram drawing request, acquire cable data and equipment data according to the request; construct a logical cable target component for the target cable based on logical cable standard components in a logical cable library and the cable data; construct a logical device target component for the target device based on logical device standard components in a logical device library and the device data; and then generate a cable connection diagram based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device. Compared to related technologies that manually create cable connection diagrams, this application introduces logical cable standard components and logical device standard components, and uses these components as a basis, combined with actual cable data, equipment data, and the connection relationship between the cable and the device, to automatically generate cable connection diagrams, thus improving the efficiency and accuracy of cable connection diagram generation. Attached Figure Description

[0046] Figure 1 This is an application environment diagram of a cable connection diagram generation method provided in this embodiment;

[0047] Figure 2 This is a flowchart illustrating the first cable connection diagram generation method provided in this embodiment;

[0048] Figure 3 This is a flowchart illustrating the first method for constructing a logic cable target component provided in this embodiment;

[0049] Figure 4 This is a flowchart illustrating the second method for constructing a logic cable target component provided in this embodiment;

[0050] Figure 5 This is a flowchart illustrating a method for constructing a target logical device according to this embodiment;

[0051] Figure 6This is a flowchart illustrating the second cable connection diagram generation method provided in this embodiment;

[0052] Figure 7 This is a structural block diagram of a cable connection diagram generation device provided in this embodiment;

[0053] Figure 8 This is an internal structural diagram of the computer device provided in this embodiment. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0055] The cable connection diagram generation method provided in this application can be applied to various situations regarding the generation of cable connection diagrams. This embodiment illustrates the method using a server as an example. It is understood that this method can also be applied to a terminal, or to a system including both a terminal and a server, and implemented through interaction between the terminal and the server. For example, when this method is applied to a system including both a terminal and a server, and implemented through interaction between the terminal and the server, it can be applied to situations such as… Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Terminal 102 sends a cable connection diagram drawing request to server 104. After receiving the request, server 104 determines whether cable connection diagram drawing is required. If so, it acquires cable data and device data. Based on logical cable standard components in the logical cable library, it constructs a logical cable target component for the target cable based on the cable data; based on logical device standard components in the logical device library, it constructs a logical device target component for the target device based on the device data. Then, based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device, a cable connection diagram can be generated. Furthermore, server 104 can send the generated cable connection diagram to terminal 102 for user viewing. The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, portable wearable devices, and graphics platforms. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. The server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0056] In one embodiment, such as Figure 2 As shown, a method for generating cable connection diagrams is provided, which includes the following steps:

[0057] S201. In response to the cable connection diagram drawing request, obtain cable data and equipment data according to the cable connection diagram drawing request.

[0058] Optionally, in this embodiment, cable data refers to data describing cable attribute information such as model, function, voltage level, specification level, and arrangement position. Correspondingly, equipment data describes equipment attribute information such as model, function, voltage level, specification level, and arrangement position. Specifically, voltage level information indicates the voltage range that the product (here referring to cables and equipment) can withstand; specification level information indicates the specification level corresponding to the product's laying requirements; and arrangement position indicates the number of columns and groups corresponding to the position where the product is arranged.

[0059] A cable connection diagram is a diagram that represents the connection relationships between cables and equipment. A cable connection diagram drawing request is a request to draw the connection relationships between cables and equipment. A cable connection diagram drawing request can include cable data and equipment data, or it can include the address where the cable data and equipment data are stored, or it can include a cable list and an equipment list, etc. The cable list records cable attribute information, and the equipment list records equipment attribute information.

[0060] In one optional implementation, upon receiving an operation corresponding to a user-triggered cable connection diagram drawing request, the cable connection diagram drawing request is parsed, and the cable data and equipment data carried in the request are directly obtained. In another optional implementation, upon receiving an operation corresponding to a user-triggered cable connection diagram drawing request, the cable connection diagram drawing request is parsed, the addresses for storing the cable data and equipment data carried in the request are obtained, and the cable data and equipment data are obtained based on these addresses. Alternatively, upon receiving an operation corresponding to a user-triggered cable connection diagram drawing request, the cable connection diagram drawing request is parsed, a cable list and an equipment list are obtained, and the cable data and equipment data are obtained by reading the cable list and equipment list.

[0061] S202. Based on the logic cable standard components in the logic cable library, construct the logic cable target component of the target cable according to the cable data.

[0062] In this embodiment, the so-called logical cable is a virtualization of a cable in a real-world scenario within a virtual space (or digital space), i.e., a digital model of the cable in the real-world scenario. A logical cable standard component refers to a cable model that standardizes cable attribute information. Specifically, for any cable with a given attribute, the structure, material, size, and precision of that attribute can be standardized to obtain a logical cable standard component. A logical cable library is a database that stores the logical cable standard components corresponding to each cable attribute. A target cable refers to the cable in the cable data used to connect the device to be connected. A logical cable target component is a virtual cable target component obtained by instantiating the logical cable standard component corresponding to the target cable; optionally, there can be one or more target cables. When there are multiple target cables, the correspondence between the target cables and the logical cable standard components can be one-to-one or many-to-one.

[0063] In this embodiment, firstly, the data corresponding to the target cable is searched from the cable data. Then, the logic cable standard component corresponding to the target cable is extracted from the logic cable library. Based on the data corresponding to the target cable, the logic cable standard component corresponding to the target cable is instantiated to obtain the logic cable target component of the target cable.

[0064] S203. Based on the logical device standard parts in the logical device library, construct the logical device target parts of the target device according to the device data.

[0065] Optionally, a logical device refers to the virtualization of a device in a real-world scenario within a virtual space (or digital space), essentially a digital model of the device in the real-world scenario. A logical device standard component refers to a virtual model that standardizes device attribute information. Specifically, for any device with a given attribute, its structure, material, size, and precision can be standardized to obtain a logical device standard component. A logical device library is a database that stores the logical device standard components corresponding to various device attributes. A logical device target component is a virtual device target component obtained by instantiating the logical device standard component corresponding to a target device. Optionally, there can be one or more target devices. When there are multiple target devices, the correspondence between target devices and logical device standard components can be one-to-one or many-to-one.

[0066] In this embodiment, firstly, the data corresponding to the target device is searched from the device data. Then, the logical device standard component corresponding to the target device is extracted from the logical device library. Based on the data corresponding to the target device, the logical device standard component corresponding to the target device is instantiated to obtain the logical cable target component of the target device.

[0067] S204. Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0068] In this embodiment, after determining the target logical cable and target logical device, administrator privileges are invoked to project them onto the drawing area. The connection control is then invoked, and the connection relationships between the target cable and target device are considered to connect the target logical cable and target device, thereby obtaining the cable connection diagram. It should be noted that in this embodiment, the connection relationships between the target cable and target device can be predetermined based on historical experience.

[0069] The aforementioned cable connection diagram generation method, in response to a cable connection diagram drawing request, acquires cable data and equipment data based on the request; constructs a logical cable target component for the target cable based on the logical cable standard components in the logical cable library and the cable data; constructs a logical device target component for the target device based on the logical device standard components in the logical device library and the device data; and generates a cable connection diagram based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device. Compared to related technologies that manually create cable connection diagrams, this application, by introducing logical cable standard components and logical device standard components, and using these as a basis, combined with actual cable data, equipment data, and the connection relationship between the cable and the device, can automatically generate cable connection diagrams, improving the efficiency and accuracy of cable connection diagram generation.

[0070] Based on the above embodiments, in order to facilitate understanding of the logical cable target component constructed in S202, this embodiment provides a method for constructing the logical cable target component, such as... Figure 3 As shown, the method includes the following steps:

[0071] S301. Extract from the logic cable library a logic cable standard that matches the identification information of the target cable in the cable data.

[0072] Optionally, the identification information of the target cable can be used to identify the product name or model of the target cable. The identification information of the target cable can be at least one of numbers, symbols, characters, and strings.

[0073] In this embodiment, the correspondence between the cable identification information and the various logic cable standard components in the logic cable library can be preset. After obtaining the identification information of the target cable, the logic cable standard component corresponding to the identification information of the target cable can be determined from the logic cable library. Furthermore, the determined logic cable standard component can be copied to the drawing area.

[0074] S302. Based on the attribute information of the target cable in the cable data, instantiate the extracted logical cable standard component to obtain the logical cable target component of the target cable.

[0075] Instantiation refers to the process of converting an abstract conceptual class into a concrete physical entity of that class. In this embodiment, instantiation specifically refers to the process of instantiating a logic cable standard component into a logic cable target component.

[0076] Optionally, based on the pre-defined cable instantiation logic, the extracted logical cable standard component can be instantiated according to the attribute information of the target cable to obtain the logical cable target component of the target cable.

[0077] Specifically, the attribute information of the extracted logical cable standard component can be updated based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable. That is, the attribute information corresponding to the logical cable standard component can be edited based on the attribute information of the target cable in the cable data; specifically, values ​​can be assigned to the attribute information of the logical cable standard component to obtain the logical cable target component of the target cable.

[0078] Taking the instantiation of logic cable standard component 1 corresponding to cable model 1 as an example, the attribute information corresponding to logic cable standard component 1 can be assigned values ​​according to the attribute information corresponding to cable model 1, such as size and specifications, so as to obtain the logic cable target component corresponding to cable model 1.

[0079] In this embodiment, based on the identification information of the target cable, the system can automatically extract the corresponding logic cable standard component from the logic cable library. Then, it can quickly and accurately instantiate the logic cable standard component based on the attribute information of the target cable to obtain the logic cable target component required by the user. Clearly, this embodiment can quickly and accurately obtain the logic cable target component required by the user.

[0080] To ensure that the constructed logical cable target component matches the user's actual needs, this embodiment provides an optional method for updating the attribute information of the extracted logical cable standard component to obtain the logical cable target component of the target cable, based on the above embodiments. For example... Figure 4 As shown, the specific steps include the following:

[0081] S401. Compare the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard parts, and determine the data to be updated based on the comparison results.

[0082] In this embodiment, after obtaining the attribute information of the target cable and the attribute information of the corresponding logic cable standard component, the attribute information of the target cable and the attribute information of the logic cable standard component can be compared. Data that is inconsistent between the attribute information of the target cable and the attribute information of the logic cable standard component is determined as data to be updated.

[0083] S402. Display the data to be updated and ask if the data to be updated is correct.

[0084] Optionally, after determining the data to be updated, the user is shown the data to be updated, along with a prompt message asking the user to confirm whether the updated data is correct. The prompt message may include corresponding controls or pop-up messages such as "yes" and "no".

[0085] S403. If so, then update the attribute information of the extracted logic cable standard parts according to the data to be updated, and obtain the logic cable target parts of the target cable.

[0086] Optionally, if a user-triggered confirmation message confirming the correctness of the data to be updated is received, then operations such as adding, changing, or deleting the attribute information of the logic cable standard component are performed based on the data to be updated, thereby obtaining the logic cable target component of the target cable.

[0087] In this embodiment, by displaying the data to be updated to the user and querying whether the data to be updated is correct, and only updating the attribute information of the logic cable standard component after receiving a message from the user confirming that the updated data is correct, the accuracy of adding, changing, and deleting the attribute information of the logic cable standard component can be guaranteed, thereby improving the accuracy of obtaining the target logic cable component.

[0088] Based on the above embodiments, in order to facilitate understanding of the logical device target component for constructing the target device in S203, this embodiment provides a method for constructing the logical device target component, such as... Figure 5 As shown, the method includes the following steps:

[0089] S501. Extract from the logic device library a logic device standard part that matches the identification information of the target device in the device data.

[0090] Optionally, the identification information of the target device can be used to identify the project name or model of the target device. The identification information of the target device can be at least one of numbers, symbols, characters, and strings.

[0091] In this embodiment, the correspondence between the identification information of the target device and the various logic device standard parts in the logic device library can be preset. After obtaining the identification information of the target device, the logic device standard part corresponding to the identification information of the target device can be determined from the logic cable library. Furthermore, the determined logic device standard part can be copied to the drawing area.

[0092] S502. Based on the attribute information of the target device in the device data, instantiate the extracted logical device standard parts to obtain the logical device target parts of the target device.

[0093] Optionally, in this embodiment, instantiation specifically refers to the process of instantiating a logic device standard component into a logic device target component.

[0094] Optionally, the attribute information of the extracted logical device standard parts can be updated based on the attribute information of the target device in the device data to obtain the logical device target parts of the target device.

[0095] Specifically, the attribute information of the extracted logical device standard parts can be updated based on the attribute information of the target device in the equipment data to obtain the logical device target parts of the target device. That is, the attribute information corresponding to the logical device standard parts can be edited based on the attribute information of the target device in the equipment data. Specifically, the attribute information of the logical device standard parts can be assigned values ​​to obtain the logical cable target parts of the target device.

[0096] In this embodiment, based on the identification information of the target device, a standard logical device component corresponding to the identification information of the target device can be automatically extracted from the logical device library. Then, the standard logical device component can be quickly and accurately instantiated based on the attribute information of the target device to obtain the target logical device component required by the user. Clearly, this embodiment can quickly and accurately obtain the target logical device component required by the user.

[0097] Optionally, to ensure that the constructed logical device target component matches the user's actual needs, this embodiment provides an optional method for updating the attribute information of the logical device standard component to obtain the logical device target component of the target device, based on the above embodiments. This method may include the following sub-steps:

[0098] Sub-step 1: Compare the attribute information of the target device in the device data with the attribute information of the extracted logical device standard parts, and determine the data to be updated based on the comparison results.

[0099] In this embodiment, after obtaining the attribute information of the target device and the attribute information of the corresponding logical device standard component, the attribute information of the target device and the attribute information of the logical device standard component can be compared. Data that is inconsistent between the attribute information of the target device and the attribute information of the logical device standard component is determined as data to be updated.

[0100] Sub-step two: Display the data to be updated and ask if the data to be updated is correct.

[0101] Optionally, after identifying the data to be updated, the user is shown the data to be updated, along with a prompt message asking the user to confirm whether the updated data is correct. The prompt message can be a control or pop-up message that includes "yes" or "no".

[0102] Sub-step 3: If yes, then update the attribute information of the extracted logical device standard parts according to the data to be updated, and obtain the logical device target parts of the target device.

[0103] Optionally, after the user confirms that the updated data is correct, if a message confirming the correctness of the updated data is received, then operations such as adding, changing, or deleting the attribute information of the logical device standard part are performed according to the data to be updated to obtain the logical device target part of the target device.

[0104] In this embodiment, by displaying the data to be updated to the user and querying whether the data to be updated is correct, and only updating the attribute information of the logical device standard component after receiving a message from the user confirming that the updated data is correct, the accuracy of adding, changing, and deleting the attribute information of the logical device standard component can be guaranteed, thereby improving the accuracy of obtaining the logical device target component.

[0105] Based on the above embodiments, this embodiment provides an optional implementation of the cable connection diagram generation method, such as... Figure 6 The method includes the following steps:

[0106] S601. In response to the cable connection diagram drawing request, obtain cable data and equipment data according to the cable connection diagram drawing request.

[0107] S602. Extract from the logic cable library the logic cable standard that matches the identification information of the target cable in the cable data.

[0108] S603. Compare the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard parts, and determine the data to be updated based on the comparison results.

[0109] S604. Display the data to be updated and ask if the data to be updated is correct.

[0110] S605. When the data to be updated is confirmed to be correct, the attribute information of the extracted logic cable standard component is updated according to the data to be updated to obtain the logic cable target component of the target cable.

[0111] S606. Extract from the logic device library a logic device standard part that matches the identification information of the target device in the device data.

[0112] S607. Based on the attribute information of the target device in the equipment data, update the attribute information of the extracted logical device standard parts to obtain the logical device target parts of the target device.

[0113] S608. Generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0114] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0115] Based on the same inventive concept, this application also provides a cable connection diagram generation apparatus for implementing the cable connection diagram generation method described above. The solution provided by this apparatus is similar to the implementation scheme and beneficial effects described in the above method. Therefore, the specific limitations of one or more embodiments of the cable connection diagram generation apparatus provided below can be found in the limitations of the cable connection diagram generation method described above, and will not be repeated here.

[0116] In one embodiment, such as Figure 7 As shown, a cable connection diagram generation device 1 is provided, comprising:

[0117] The acquisition module 701 is used to acquire cable data and equipment data in response to the cable connection diagram drawing request.

[0118] The first construction module 702 is used to construct the logical cable target component of the target cable based on the logical cable standard components in the logical cable library and according to the cable data.

[0119] The second construction module 703 is used to construct the target logical device component of the target device based on the logical device standard components in the logical device library and according to the device data.

[0120] The generation module 704 is used to generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

[0121] In one embodiment, the first building module 702 includes:

[0122] The first extraction unit is used to extract logical cable standard parts from the logical cable library that match the identification information of the target cable in the cable data;

[0123] The first instantiation unit is used to instantiate the extracted logical cable standard component based on the attribute information of the target cable in the cable data, so as to obtain the logical cable target component of the target cable.

[0124] In one embodiment, the first instantiation unit includes:

[0125] The update subunit is used to update the attribute information of the extracted logical cable standard parts based on the attribute information of the target cable in the cable data, so as to obtain the logical cable target parts of the target cable.

[0126] In one embodiment, the updated subunit is specifically used for:

[0127] The attribute information of the target cable in the cable data is compared with the attribute information of the extracted logical cable standard parts, and the data to be updated is determined based on the comparison results.

[0128] Display the data to be updated and ask if the data is correct;

[0129] If so, the attribute information of the extracted logic cable standard component is updated according to the data to be updated to obtain the logic cable target component of the target cable.

[0130] In one embodiment, the second building module 703 includes:

[0131] The second extraction unit is used to extract logical device standard parts from the logical device library that match the identification information of the target device in the device data.

[0132] The second instantiation unit is used to instantiate the extracted logical device standard parts according to the attribute information of the target device in the device data, so as to obtain the logical device target parts of the target device.

[0133] In one embodiment, the second instantiation unit is specifically used for:

[0134] Based on the attribute information of the target device in the equipment data, the attribute information of the extracted logical device standard parts is updated to obtain the logical device target parts of the target device.

[0135] Each module in the aforementioned cable connection diagram generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0136] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores log monitoring and installation data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for generating cable connection diagrams, etc.

[0137] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0138] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program, performs the following steps: in response to a cable connection diagram drawing request, acquiring cable data and device data according to the cable connection diagram drawing request; constructing a logical cable target component for a target cable based on logical cable standard components in a logical cable library and the cable data; constructing a logical device target component for a target device based on logical device standard components in a logical device library and the device data; and generating a cable connection diagram based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device.

[0139] In one embodiment, based on logical cable standard parts in the logical cable library, a logical cable target part for the target cable is constructed according to cable data, including: extracting logical cable standard parts from the logical cable library that match the identification information of the target cable in the cable data; and instantiating the extracted logical cable standard parts according to the attribute information of the target cable in the cable data to obtain the logical cable target part for the target cable.

[0140] In one embodiment, the extracted logical cable standard component is instantiated based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable. This includes: updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable.

[0141] In one embodiment, updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable includes: comparing the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard component, and determining the data to be updated based on the comparison result; displaying the data to be updated and querying whether the data to be updated is correct; if so, updating the attribute information of the extracted logical cable standard component based on the data to be updated to obtain the logical cable target component of the target cable.

[0142] In one embodiment, based on logical device standard parts in the logical device library, a logical device target part for the target device is constructed according to the device data, including: extracting logical device standard parts from the logical device library that match the identification information of the target device in the device data; and instantiating the extracted logical device standard parts according to the attribute information of the target device in the device data to obtain the logical device target part for the target device.

[0143] In one embodiment, the extracted logical device standard component is instantiated based on the attribute information of the target device in the device data to obtain the logical device target component of the target device. This includes: updating the attribute information of the extracted logical device standard component based on the attribute information of the target device in the device data to obtain the logical device target component of the target device.

[0144] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: in response to a cable connection diagram drawing request, acquiring cable data and device data according to the cable connection diagram drawing request; constructing a logical cable target component for a target cable based on logical cable standard components in a logical cable library and the cable data; constructing a logical device target component for a target device based on logical device standard components in a logical device library and the device data; and generating a cable connection diagram based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device.

[0145] In one embodiment, based on logical cable standard parts in the logical cable library, a logical cable target part for the target cable is constructed according to cable data, including: extracting logical cable standard parts from the logical cable library that match the identification information of the target cable in the cable data; and instantiating the extracted logical cable standard parts according to the attribute information of the target cable in the cable data to obtain the logical cable target part for the target cable.

[0146] In one embodiment, the extracted logical cable standard component is instantiated based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable. This includes: updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable.

[0147] In one embodiment, updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable includes: comparing the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard component, and determining the data to be updated based on the comparison result; displaying the data to be updated and querying whether the data to be updated is correct; if so, updating the attribute information of the extracted logical cable standard component based on the data to be updated to obtain the logical cable target component of the target cable.

[0148] In one embodiment, based on logical device standard parts in the logical device library, a logical device target part for the target device is constructed according to the device data, including: extracting logical device standard parts from the logical device library that match the identification information of the target device in the device data; and instantiating the extracted logical device standard parts according to the attribute information of the target device in the device data to obtain the logical device target part for the target device.

[0149] In one embodiment, the extracted logical device standard component is instantiated based on the attribute information of the target device in the device data to obtain the logical device target component of the target device. This includes: updating the attribute information of the extracted logical device standard component based on the attribute information of the target device in the device data to obtain the logical device target component of the target device.

[0150] This application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps: in response to a cable connection diagram drawing request, acquires cable data and device data according to the cable connection diagram drawing request; constructs a logical cable target component for a target cable based on logical cable standard components in a logical cable library and the cable data; constructs a logical device target component for a target device based on logical device standard components in a logical device library and the device data; and generates a cable connection diagram based on the logical cable target component, the logical device target component, and the connection relationship between the target cable and the target device.

[0151] In one embodiment, based on logical cable standard parts in the logical cable library, a logical cable target part for the target cable is constructed according to cable data, including: extracting logical cable standard parts from the logical cable library that match the identification information of the target cable in the cable data; and instantiating the extracted logical cable standard parts according to the attribute information of the target cable in the cable data to obtain the logical cable target part for the target cable.

[0152] In one embodiment, the extracted logical cable standard component is instantiated based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable. This includes: updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable.

[0153] In one embodiment, updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable includes: comparing the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard component, and determining the data to be updated based on the comparison result; displaying the data to be updated and querying whether the data to be updated is correct; if so, updating the attribute information of the extracted logical cable standard component based on the data to be updated to obtain the logical cable target component of the target cable.

[0154] In one embodiment, based on logical device standard parts in the logical device library, a logical device target part for the target device is constructed according to the device data, including: extracting logical device standard parts from the logical device library that match the identification information of the target device in the device data; and instantiating the extracted logical device standard parts according to the attribute information of the target device in the device data to obtain the logical device target part for the target device.

[0155] In one embodiment, the extracted logical device standard component is instantiated based on the attribute information of the target device in the device data to obtain the logical device target component of the target device. This includes: updating the attribute information of the extracted logical device standard component based on the attribute information of the target device in the device data to obtain the logical device target component of the target device.

[0156] It should be noted that all data involved in this application (including but not limited to data used for analysis, stored data, and displayed data) are data authorized by the user or fully authorized by all parties.

[0157] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0158] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0159] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for generating cable connection diagrams, characterized in that, Applied to servers, including: In response to a cable connection diagram drawing request, cable data and equipment data are obtained according to the cable connection diagram drawing request; Based on the pre-defined correspondence between the cable identification information and the various logical cable standard parts in the logical cable library, and the identification information of the target cable in the cable data, the logical cable standard part that matches the identification information of the target cable is determined; based on the attribute information of the target cable in the cable data, the attribute information of the extracted logical cable standard part is updated to obtain the logical cable target part of the target cable. Based on the pre-defined correspondence between the identification information of the device and the various logical device standard parts in the logical device library, and the identification information of the target device in the device data, a logical device standard part that matches the identification information of the target device is determined; based on the attribute information of the target device in the device data, the attribute information of the extracted logical device standard part is updated to obtain the logical device target part of the target device; A cable connection diagram is generated based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

2. The method according to claim 1, characterized in that, The step of updating the attribute information of the extracted logical cable standard component based on the attribute information of the target cable in the cable data to obtain the logical cable target component of the target cable includes: The attribute information of the target cable in the cable data is compared with the attribute information of the extracted logical cable standard component, and the data to be updated is determined based on the comparison result. Display the data to be updated and query whether the data to be updated is correct; If so, the attribute information of the extracted logic cable standard component is updated according to the data to be updated to obtain the logic cable target component of the target cable.

3. The method according to claim 1, characterized in that, The step of updating the attribute information of the extracted logical device standard component based on the attribute information of the target device in the device data to obtain the logical device target component of the target device includes: The attribute information of the target device in the device data is compared with the attribute information of the extracted logical device standard parts, and the data to be updated is determined based on the comparison results. Display the data to be updated and query whether the data to be updated is correct; If so, the attribute information of the extracted logical device standard component is updated according to the data to be updated to obtain the logical device target component of the target device.

4. The method according to claim 1, characterized in that, Based on the cable connection diagram drawing request, obtain cable data and equipment data, including: Parse the cable connection diagram drawing request to obtain the addresses of the stored cable data and equipment data carried in the request, and retrieve the cable data and equipment data based on these addresses; or, Parse the cable connection diagram drawing request, obtain the cable list and equipment list, read the cable list and equipment list, and obtain the cable data and equipment data.

5. The method according to claim 1, characterized in that, Based on the cable connection diagram drawing request, obtain cable data and equipment data, including: The cable connection diagram drawing request is parsed to directly obtain the cable data and equipment data carried in the request.

6. A cable connection diagram generation device, characterized in that, Configured on a server, the device includes: The acquisition module is used to acquire cable data and equipment data in response to a cable connection diagram drawing request. The first construction module is used to determine the logical cable standard that matches the identification information of the target cable based on the pre-defined correspondence between the identification information of the cable and the various logical cable standard parts in the logical cable library, as well as the identification information of the target cable in the cable data; and to update the attribute information of the extracted logical cable standard parts according to the attribute information of the target cable in the cable data, so as to obtain the logical cable target part of the target cable. The second construction module is used to determine the logical device standard that matches the identification information of the target device based on the correspondence between the identification information of the pre-set device and the various logical device standard parts in the logical device library, as well as the identification information of the target device in the device data; and to update the attribute information of the extracted logical device standard parts based on the attribute information of the target device in the device data, so as to obtain the logical device target part of the target device. The generation module is used to generate a cable connection diagram based on the logic cable target component, the logic device target component, and the connection relationship between the target cable and the target device.

7. The apparatus according to claim 6, characterized in that, The first construction module is specifically used to: compare the attribute information of the target cable in the cable data with the attribute information of the extracted logical cable standard component, and determine the data to be updated based on the comparison result; display the data to be updated, and query whether the data to be updated is correct; If so, the attribute information of the extracted logic cable standard component is updated according to the data to be updated to obtain the logic cable target component of the target cable.

8. The apparatus according to claim 6, characterized in that, The second construction module is specifically used to: compare the attribute information of the target device in the device data with the attribute information of the extracted logical device standard component, and determine the data to be updated based on the comparison result; display the data to be updated and query whether the data to be updated is correct; if so, update the attribute information of the extracted logical device standard component based on the data to be updated to obtain the logical device target component of the target device.

9. The apparatus according to claim 6, characterized in that, The acquisition module is specifically used to: respond to a cable connection diagram drawing request, parse the cable connection diagram drawing request, obtain the address of the stored cable data and equipment data carried in the cable connection diagram drawing request, and obtain the cable data and the equipment data according to the address of the cable data and equipment data; Alternatively, the cable connection diagram drawing request can be parsed to obtain a cable list and an equipment list, and the cable data and equipment data can be obtained by reading the cable list and equipment list.

10. The apparatus according to claim 6, characterized in that, The acquisition module is specifically used to: respond to the cable connection diagram drawing request, parse the cable connection diagram drawing request, and directly acquire the cable data and equipment data carried in the cable connection diagram drawing request.

Citation Information

Patent Citations

  • Communication system construction file visual generation method

    CN106021696A