Third-party component integrated display method and system of electric power regulation and control system

By adopting dynamic loading technology and an open integration framework in the power control system, the problems of insufficient compatibility, long start-up time and flexibility in the power control method are solved, and more efficient, flexible and compatible component display effects are achieved .

CN119512672APending Publication Date: 2025-02-25NARI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411490629.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing power system regulation methods have compatibility problems, long startup time, poor overall performance, and lack of flexibility.

Method used

It provides a method for displaying third-party components in the power control system, including user logging in and reading configuration, obtaining CIM/G files and loading third-party components, initializing third-party components and rendering for display. This method adopts dynamic loading technology, allowing components to load and parse on demand, improving system compatibility and scalability.

Benefits of technology

Through dynamic loading technology and an open integrated framework, the display efficiency and compatibility of power control system components are improved, the personalized needs of different manufacturers are met, and the use of system resources is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512672A_ABST
    Figure CN119512672A_ABST
Patent Text Reader

Abstract

The invention discloses a third-party component integrated display method and system of an electric power regulation and control system, and relates to the technical field of electric power systems and automation. Obtaining a CIM / G file and loading a third-party component; and initializing the third-party component, and rendering and displaying the third-party component. According to the third-party component integrated display method of the electric power regulation and control system provided by the invention, a set of open integrated framework is provided, and third-party manufacturers are allowed to independently develop components according to preset specifications. Therefore, the richness of components of the electric power regulation and control system is greatly improved, and the individual requirements of different manufacturers and applications are met; according to the method, the dynamic loading technology is adopted, the component information stored in the CIM / G file can be dynamically loaded and analyzed, and the third-party component is initialized and rendered according to the analysis result, so that the display efficiency of the component is improved, and better effects are achieved in the aspects of richness and display efficiency of the component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems and automation technology, and in particular to a third-party component integrated display method and system for a power control system. Background Art

[0002] With the rapid development of power system automation technology, the power control system, as an important part of the power system, undertakes the task of remote monitoring, control and management of the power system. In order to meet the increasingly complex and diversified needs of the power system, the power control system needs to integrate multiple components from different third-party manufacturers to achieve richer and more personalized functional display.

[0003] However, there are many problems with the traditional way of integrating components in power control systems. First, due to the uneven development standards and technical levels of different third-party manufacturers, compatibility issues between components are prominent, making it difficult to achieve seamless docking. Second, traditional integration methods often use static loading, that is, loading all components at once when the system starts, which not only increases the startup time of the system, but also takes up a lot of system resources, affecting the overall performance of the system. In addition, traditional integration methods lack flexibility and cannot dynamically expand new components, making it difficult to meet the rapidly changing needs of the power system.

[0004] In order to solve the above problems, there is an urgent need for an efficient, flexible and secure WEB graphics and component integrated display method and system to improve the compatibility and scalability of the power control system, accelerate the page display speed, and meet the needs of personalized display of the power system. Summary of the invention

[0005] In view of the above-mentioned problems, the present invention is proposed.

[0006] Therefore, the technical problem solved by the present invention is that the existing power system control method has compatibility problems, long start-up time, poor overall performance, and lack of flexibility.

[0007] To solve the above technical problems, the present invention provides the following technical solutions: a method for displaying integrated third-party components of an electric power control system, including user login and configuration reading;

[0008] Get CIM / G files and load third-party components;

[0009] Initialize third-party components and render them for display.

[0010] As a preferred solution of the third-party component integrated display method of the power control system described in the present invention, wherein: the user logs in and reads the configuration includes, during the operation of the system, the user starts a WEB graphic browser in the B / S browser and enters the login page;

[0011] The user needs to enter login information;

[0012] The browser calls the authentication service on the server to verify the user's identity and determine whether the user is legitimate and has authority;

[0013] If the user is not logged in or the login information is invalid, return to the login page.

[0014] As a preferred solution of the third-party component integrated display method of the power control system described in the present invention, wherein: the obtaining of CIM / G files and loading of third-party components includes, after logging in, the WEB graphic browser calling the configuration reading service of the server to obtain CIM / G file information;

[0015] According to the configuration information, the system selects two component loading methods, including unified loading and dynamic loading.

[0016] As a preferred solution of the third-party component integrated display method of the power control system described in the present invention, wherein: the obtaining of CIM / G files and loading of third-party components includes a WEB graphic browser calling a graphic acquisition service to obtain a standardized CIM / G graphic file from a server;

[0017] The graphics acquisition service pre-parses the CIM / G file and returns a formatted data string to the browser;

[0018] Perform graphic analysis.

[0019] As a preferred solution of the third-party component integrated display method of the power control system described in the present invention, wherein: the initialization of the third-party component and rendering for display includes, during the parsing process, when the browser detects a third-party component that needs to be loaded, first checking whether the corresponding JavaScript file has been loaded;

[0020] If the file has been loaded, the component initialization interface is called directly, the parsed result is passed to the third-party component;

[0021] If the file is not loaded, the browser dynamically loads the JavaScript file according to the content in the configuration file and adds the third-party component to the array of components to be rendered;

[0022] After the JavaScript file is loaded, the browser traverses the array of third-party components to be rendered, initializes the third-party components one by one, and passes the parsing results to the component initialization interface.

[0023] As a preferred solution of the third-party component integrated display method of the power control system described in the present invention, wherein: the initialization of the third-party component and rendering for display includes, after loading and initialization, the browser creates a document object model node and serves as a container for the component;

[0024] After the third-party component is initialized, it renders the displayed content to the corresponding DOM node;

[0025] The WEB graphic browser passes the component parsing result to the component initialization interface.

[0026] As a preferred solution of the third-party component integrated display method of the electric power control system described in the present invention, the initialization of the third-party component and rendering for display includes data transmission between the third-party components through a message mechanism.

[0027] Another object of the present invention is to provide a third-party component integrated display system for an electric power control system, which can solve the problem of low display efficiency of components contained in current electric power control methods through dynamic loading technology.

[0028] As a preferred solution of the third-party component integrated display system of the power control system described in the present invention, it includes: a user login and configuration reading module, a graphic file acquisition and component loading module, and a component initialization and display module; the user login and configuration reading module is used to confirm the user identity, call the configuration reading service, obtain and parse the system configuration file, determine the third-party components that need to be loaded and their loading methods; the graphic file acquisition and component loading module is used to call the graphic acquisition service, extract the graphic and component information, and load the component; the component initialization and display module is used to initialize the component and render it on the page.

[0029] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a step of a third-party component integration display method for an electric power control system.

[0030] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for integrating and displaying third-party components of an electric power control system.

[0031] Beneficial effects of the present invention: The third-party component integrated display method of the power control system provided by the present invention provides an open integrated framework, and the present invention allows third-party manufacturers to independently develop components according to preset specifications. This greatly increases the richness of power control system components and meets the personalized needs of different manufacturers and applications; the present invention adopts dynamic loading technology, which can dynamically load and parse component information stored in CIM / G files, initialize and render third-party components according to the parsing results, thereby improving the display efficiency of components. The present invention achieves better results in terms of component richness and display efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0033] Figure 1 This is an overall flow chart of a method for integrating and displaying third-party components of a power control system provided in the first embodiment of the present invention.

[0034] Figure 2 A schematic diagram of the structure of a method for integrating and displaying third-party components of a power control system provided in a second embodiment of the present invention.

[0035] Figure 3 A flowchart of a method for integrating and displaying third-party components of a power control system provided in a second embodiment of the present invention.

[0036] Figure 4 This is an overall flow chart of a third-party component integration and display system for an electric power control system provided by the third embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0038] Example 1, reference Figure 1 , is an embodiment of the present invention, and provides a third-party component integrated display method for a power control system, comprising:

[0039] User logs in and reads the configuration;

[0040] Get CIM / G files and load third-party components;

[0041] Initialize third-party components and render them for display.

[0042] Furthermore, obtaining the first file and loading the third-party component includes that during the operation of the system, the user first starts the WEB graphic browser in the B / S browser and enters the login page. The user needs to enter the login information (user name and password). The browser calls the authentication service of the server to verify the user's identity and determine whether the user is legal and his or her authority. If the user is not logged in or the login information is illegal, it returns to the login page. After successful login, the WEB graphic browser calls the configuration reading service of the server to obtain the configuration file information. Based on the configuration information, the system can choose two component loading methods: unified loading: directly load the JavaScript files of all third-party components in the configuration file at one time and wait for use. Dynamic loading: dynamically determine whether the JavaScript file of a specific component needs to be loaded based on the specific information in the CIM / G file.

[0043] Furthermore, initializing third-party components and rendering for display includes the WEB graphics browser calling the graphics acquisition service to obtain standardized CIM / G graphics files from the server. The graphics acquisition service will pre-parse the CIM / G file and return a formatted data string to the browser.

[0044] Graphic parsing: The browser parses the component information (such as topology components, chart components, third-party integration components, etc.) contained in the CIM / G data string returned by the graphic acquisition service.

[0045] During the parsing process, when the browser detects a third-party integration component that needs to be loaded, it will first check whether the corresponding JavaScript file has been loaded.

[0046] If the file has been loaded, the component's initialization interface is called directly, the result is parsed and passed into the component.

[0047] If the file is not loaded, the WEB graphics browser will dynamically load the JavaScript file according to the instructions in the configuration file and add the component to the array of components to be rendered.

[0048] After the JavaScript file is loaded, the WEB graphics browser will traverse the array of third-party components to be rendered, initialize the components one by one, and pass the parsing results to the component initialization interface.

[0049] After loading and initialization, the WEB graphics browser creates a Document Object Model (DOM) node and uses it as a container for components.

[0050] After the third-party component is initialized, it renders the displayed content to the corresponding DOM node.

[0051] At this point, the WEB graphics browser will pass the component parsing result to the component initialization interface to ensure that the component can be displayed correctly.

[0052] Example 2, reference Figure 2-Figure 3 , is an embodiment of the present invention, and provides a third-party component integrated display method for a power control system, comprising:

[0053] S1: User logs in and reads the configuration.

[0054] Furthermore, the power control system WEB browser is an application platform based on the B / S framework, which has basic services such as identity authentication service, graphic acquisition service and configuration reading, etc. It can dynamically draw and display the third-party components of the power control system and their data information according to the CIM / G file.

[0055] Specifically, an embodiment of the present invention provides a third-party component integrated display system based on a power control system, such as Figure 2 As shown, it includes: a WEB graphic browser and a WEB graphic server.

[0056] In a specific implementation of an embodiment of the invention, the WEB graphics server provides basic services such as identity authentication service, graphics acquisition service and configuration reading, wherein the identity authentication service is used to verify user permissions; the graphics acquisition service is used to obtain graphics CIM / G files; and the configuration reading service is used to obtain configuration information.

[0057] In a specific implementation of the embodiment of the invention, the WEB graphic browser has the functions of logging in, configuration parsing, graphic file parsing, dynamic component loading, and component rendering.

[0058] S2: Get the first file and load the third-party component.

[0059] Furthermore, in a specific embodiment of the invention, a third-party component integrated display method based on a power control system is provided, such as Figure 3 As shown, the specific process is as follows:

[0060] Start the WEB graphic browser on the B / S browser, enter the login page, and enter the login information and password of the login personnel;

[0061] Access identity verification service: Based on the login information and password entered by the WEB graphic browser, call the identity verification service of the WEB graphic server to determine whether the current user is legitimate;

[0062] Access the configuration reading service: call the configuration reading service of the WEB graphics server to obtain the information of the third-party components in the configuration information.

[0063] Configuration parsing: Parse the configured third-party component information. For directly loaded third-party components, directly introduce their configured JavaScript files. For dynamically loaded third-party components, wait for graphic parsing.

[0064] Access the graphics acquisition service: According to the file name to be opened in the WEB graphics browser, call the graphics acquisition service of the WEB graphics server. The graphics acquisition service pre-parses the standardized CIM / G file and returns a formatted data string to the WEB graphics browser.

[0065] Graphics parsing: According to the graphics data returned by the graphics acquisition service of the WEB graphics server, parse the component information in the page. If the component is a third-party component, you need to check whether the corresponding JavaScript is loaded. If the JavaScript file is not loaded, load the corresponding JavaScript file.

[0066] S3: Initialize third-party components and render them for display.

[0067] Furthermore, an empty div node is created according to the information in the CIM / G file, and the third-party component object is initialized, and the parsed component information is passed into the interface of the third-party component object.

[0068] It should be noted that, in a specific implementation of the embodiment of the present invention, the CIM / G graphic file is a graphic file generated based on the power system graphic description specification (CIM-based Graphic Exchange Format, referred to as CIM / G).

[0069] Example 3, an embodiment of the present invention, provides a method for displaying the integration of third-party components of an electric power control system. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0070] First of all, this experiment aims to verify the innovation and advantages of the integrated display method of third-party components in the power control system based on the B / S architecture. In order to ensure the scientificity and rationality of the experiment, six different third-party components were selected in this experiment to simulate their integration and display process in the power control system. The system is based on the graphical display of CIM / G files, interacts with the server through a WEB graphical browser, and the experiment evaluates the entire process of each component from login to final display.

[0071] Experimental steps:

[0072] Component loading: Based on the information in the configuration file, the system starts loading JavaScript files to complete the integration of components. The experiment compares the loading time of JavaScript files in two modes: direct loading and dynamic loading. The experiment records the time for component loading, called "component loading time", which is used to evaluate the loading performance of different components.

[0073] Component rendering and resource usage: After all data and configurations are acquired, the system renders the components to the user interface. The rendering time of each component is recorded in the experiment, and the memory usage and CPU usage are compared to reflect the resource consumption of different components in the system.

[0074] Table 1 Experimental data table

[0075]

[0076] By analyzing the table data, it can be clearly seen that the content of the present invention has obvious innovations and advantages in many aspects.

[0077] Component loading time: The difference in component loading time also fully illustrates the advantage of dynamic loading. From the experimental data, we can see that the loading time of Component E is 310ms, while Component C takes 400ms. The difference mainly lies in the size of the configuration file and the complexity of the component. Dynamic loading technology reduces resource waste by loading files on demand, thereby significantly optimizing system performance.

[0078] Rendering time: In the rendering time comparison, we can see the difference from 500ms to 600ms. This shows that the system can flexibly adjust resource allocation when processing components of different complexity. Compared with the traditional static loading display method, the rendering optimization mechanism in the present invention can still maintain a relatively low response time when processing high-complexity graphics, ensuring the smoothness of graphics display.

[0079] Resource usage: In terms of memory usage, the memory usage of each component in the experiment was maintained at around 120MB to 130MB, indicating that the system can control memory usage without affecting performance by optimizing resource management. In addition, the CPU usage rate was maintained at 25% to 30%, indicating that the system load was well balanced and could maintain a low system load when processing multiple components in parallel.

[0080] Compared with the traditional power control system, the content of the present invention provides a more flexible and efficient way to integrate third-party components. Dynamic loading technology and on-demand rendering mechanism greatly shorten the response time and effectively reduce system resource usage. In addition, through reasonable user authority management and configuration analysis optimization, the present invention achieves rapid response under different user needs and improves the scalability and performance of the system.

[0081] Example 4, reference Figure 4 , which is an embodiment of the present invention, provides a third-party component integrated display system for an electric power control system, including a user login and configuration reading module, a graphic file acquisition and component loading module, and a component initialization and display module.

[0082] The user login and configuration reading module is used to confirm the user's identity, call the configuration reading service, obtain and parse the system's configuration file, determine the third-party components that need to be loaded and how to load them. The graphic file acquisition and component loading module is used to call the graphic acquisition service, extract graphic and component information, and load components. The component initialization and display module is used to initialize components and render them on the page.

[0083] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0084] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A component integrated display method, characterized in that: include: User logs in and reads the configuration; Get CIM / G files and load third-party components; Initialize third-party components and render them for display.

2. The component integration display method according to claim 1, characterized in that: The user logs in and reads the configuration, including during the operation of the system, the user starts a WEB graphic browser in the B / S browser and enters the login page; The user needs to enter login information; The browser calls the authentication service on the server to verify the user's identity and determine whether the user is legitimate and has authority; If the user is not logged in or the login information is invalid, return to the login page.

3. The component integration display method according to claim 2, characterized in that: The obtaining of CIM / G files and loading of third-party components includes, after logging in, the WEB graphic browser calling the configuration reading service of the server to obtain CIM / G file information; According to the configuration information, the system selects two component loading methods, including unified loading and dynamic loading.

4. The component integration display method according to claim 3, characterized in that: The obtaining of the CIM / G file and loading of the third-party component includes the WEB graphic browser calling a graphic acquisition service to obtain a standardized CIM / G graphic file from the server; The graphics acquisition service pre-parses the CIM / G file and returns a formatted data string to the browser; Perform graphic analysis.

5. The component integration display method according to claim 4, characterized in that: Initializing the third-party component and rendering it for display includes, during the parsing process, when the browser detects a third-party component that needs to be loaded, first checking whether the corresponding JavaScript file has been loaded; If the file has been loaded, the component initialization interface is called directly, the parsed result is passed to the third-party component; If the file is not loaded, the browser dynamically loads the JavaScript file according to the content in the configuration file and adds the third-party component to the array of components to be rendered; After the JavaScript file is loaded, the browser traverses the array of third-party components to be rendered, initializes the third-party components one by one, and passes the parsing results to the component initialization interface.

6. The component integration display method according to claim 5, characterized in that: Initializing the third-party component and rendering it for display includes, after loading and initialization, the browser creates a document object model node as a container for the component; After the third-party component is initialized, it renders the displayed content to the corresponding DOM node; The WEB graphic browser passes the component parsing result to the component initialization interface.

7. The component integration display method according to claim 6, characterized in that: Initializing the third-party components and rendering them for display includes transferring data between the third-party components through a message mechanism.

8. A system using the component integration display method according to any one of claims 1 to 7, characterized in that: It includes user login and configuration reading module, graphic file acquisition and component loading module, component initialization and display module; The user login and configuration reading module is used to confirm the user identity, call the configuration reading service, obtain and parse the system configuration file, and determine the third-party components that need to be loaded and the loading method; The graphic file acquisition and component loading module is used to call the graphic acquisition service, extract the graphic and component information, and load the component; The component initialization and display module is used to initialize the component and render it on the page.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the component integration display method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of component integration display according to any one of claims 1 to 7 are implemented.