Window combination display method for distribution automation terminal detection interface
By using structured configuration files and dynamic library loading mechanisms, the problems of flexible configuration, reusability, and scalability of distribution automation terminal interfaces have been solved, enabling efficient and flexible window combination display and improving development and operation and maintenance efficiency.
Patent Information
- Application Number
- CN202511755493.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-02-27
AI Technical Summary
Existing power distribution automation terminal operation and maintenance software interfaces are insufficient in terms of flexible configuration, reusability, scalability, and interaction efficiency, making it difficult to adapt to rapid business iteration and diversified needs, resulting in high development and maintenance costs, low efficiency, and poor user experience.
The window position, layout mode, and interaction behavior are defined using a structured configuration file. Combined with dynamic library loading and message bus communication, it enables flexible window combination and loose coupling. The window can be adapted to business changes by updating the configuration file without modifying the core code.
It improves the configuration efficiency and adaptability of interface combinations, enhances module independence and system scalability, improves development collaboration efficiency and operation and maintenance efficiency, and simplifies interface operation.
Smart Images

Figure CN121579005A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of software testing, and mainly relates to a window combination display method for a power distribution automation terminal detection interface. BACKGROUND
[0002] As the core infrastructure of power system distribution network operation and regulation, the operation and maintenance work of the power distribution automation terminal covers multiple complex business scenarios. The corresponding operation and maintenance software interface needs to integrate various function windows (such as state display windows, operation control windows, data report windows, etc.) to support operation and maintenance personnel to efficiently complete multi-dimensional business operations. With the development of fine and diversified distribution network operation and maintenance business, the combination requirements of interface windows in different business scenarios are increasingly flexible, and some core function windows (such as device basic information windows) need to be reused in multiple business interfaces, which puts forward strict requirements on the configurability, reusability, expandability and interaction efficiency of the operation and maintenance software interface.
[0003] Currently, the interface window display of the power distribution automation terminal operation and maintenance software mainly relies on the traditional fixed development mode, and its core technical means are as follows: window integration mode is fixed, layout adaptation ability is weak, window reuse efficiency is low, and interaction communication mechanism is missing. The above-mentioned prior art methods have exposed many outstanding problems in practical application, which have been difficult to adapt to the development needs of current operation and maintenance business: 1. Insufficient flexibility, high adaptation cost, the position and layout of the window are fixed through the code, when the business scenario changes and the window needs to be recombined, the core code of the software needs to be modified and full testing needs to be performed; 2. High module coupling degree, high maintenance difficulty, the window combination logic is deeply bound with the business code, the developers need to coordinate and debug across modules, the communication cost is high, and the maintenance efficiency is low; 3. Poor reusability, low development efficiency, repeated development of the loading logic of the reused window leads to waste of development resources, and the code versions of the reused window in different business interfaces are prone to differences; 4. Poor interface experience, operation efficiency is affected, the stacking processing of multiple windows in the same position leads to interface confusion, the operation and maintenance personnel need to frequently switch the hidden / display state to obtain the required information, which affects the operation and maintenance efficiency; 5. Insufficient expandability, difficult to support business iteration, when a new business function window is added, the new window cannot be quickly integrated through simple configuration, which is difficult to adapt to the rapid iteration needs of the distribution network operation and maintenance business.
[0004] Therefore, there is an urgent need for an interface combination display method capable of realizing window flexible configuration, low coupling interaction and efficient reuse. SUMMARY
[0005] In order to solve the problems existing in the prior art, the present application provides a window combination display method for a power distribution automation terminal detection interface.
[0006] The technical scheme of the present application is as follows: In one aspect, the present application provides a window combination display method for a power distribution automation terminal detection interface, the method comprising: obtaining a configuration file of a power distribution automation terminal operation and maintenance interface window; reading and traversing the configuration information in the configuration file, judging whether the window position corresponding to the current configuration information exists a window, if not, loading the current configuration information to the corresponding window position; if yes, loading the current configuration information to the window position based on the layout mode; further judging whether to participate in window interaction, if yes, activating the communication interface of the window and continuing to traverse; otherwise, continuing to traverse; iteratively traversing until all configuration information is traversed, obtaining the combination display result of the power distribution automation terminal operation and maintenance interface window.
[0007] Preferably, the configuration file is a structured data file, wherein the configuration file of each window at least includes: window dynamic library name and path, loaded window position, layout mode of windows in the same position, and identification of whether to support window interaction.
[0008] Preferably, the window position includes five positions of directly above, directly below, left side, right side and center of the power distribution automation terminal operation and maintenance interface.
[0009] Preferably, the specific steps of loading the current configuration information to the corresponding window position are: loading the corresponding library file into the memory according to the dynamic library name and path in the configuration information by using the dynamic link library loading function provided by the operating system, and calling the predefined export function to create a window; anchoring the window to the five positions of the power distribution automation terminal operation and maintenance interface.
[0010] Preferably, the current configuration information is loaded to the window position based on the layout mode, and the specific steps are: building a composite container; dynamically creating a corresponding layout manager object based on the layout mode, and the layout manager object is responsible for the rendering display, size allocation and user input event distribution of multiple windows in it.
[0011] Preferably, the layout mode includes up-down tiling, left-right tiling and label switching.
[0012] Preferably, the communication interface is configured to: receive the message broadcasted by any loaded window; forwarding the received message to all loaded windows.
[0013] Preferably, the window is designed to respond only to messages related to its own function, and to discard or ignore irrelevant messages.
[0014] In another aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to the present application when executing the program.
[0015] In another aspect, the present application also provides a computer readable storage medium, having stored thereon a computer program, which, when executed by a processor, implements the method according to the present application.
[0016] The present application has the following beneficial effects: 1. The present application provides a window combination display method for a power distribution automation terminal detection interface, which defines the position, layout mode and interaction behavior of the window through an external structured configuration file, replacing the traditional hard coding mode; when the business requirement changes, the core code of the program does not need to be modified and recompiled, and only the configuration file needs to be updated to quickly generate a new interface combination; the configuration efficiency of the window combination is improved; the adaptation flexibility of the interface to the business scenario is improved; and the rapid response capability of the business scenario is enhanced. 2. The present application provides a window combination display method for a power distribution automation terminal detection interface, which adopts a dynamic library loading mechanism to encapsulate each window function as an independent module; in combination with a message bus-based loose coupling communication, the windows do not directly depend on each other, and when a new business function needs to be added, only a new window dynamic library needs to be developed and declared in the configuration file to integrate it into the existing framework without modifying the main program and other windows, thereby realizing a high cohesion and low coupling architecture; the development collaboration efficiency is improved; and the system maintenance convenience is improved. The module independence and stability are enhanced. 3. The present application provides a window combination display method for a power distribution automation terminal detection interface, which provides three scientific layout modes of up-down tiling, left-right tiling and label switching for multiple windows in the same position, avoids the chaotic stacking of windows, and enables operation and maintenance personnel to more intuitively and efficiently view and operate different information, thereby enhancing the expansibility and adaptability of the software system. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 The specific flowchart of the embodiment of the present application is shown. DETAILED DESCRIPTION
[0018] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described, obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0019] It should be understood that the step numbers used herein are only for the convenience of description, and are not limited to the execution sequence of the steps.
[0020] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application and the appended claims, unless otherwise clear from the context, the singular forms "a", "an" and "the" are intended to include the plural forms.
[0021] The terms "comprise" and "include" indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not exclude one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0022] The term "and / or" means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0023] Embodiment one: Referring to Figure 1 , The present application provides a window combination display method for a power distribution automation terminal detection interface, the method comprising: S1, obtaining a configuration file of a power distribution automation terminal operation and maintenance interface window; The configuration file is a structured data file, wherein the configuration file of each window at least includes: window dynamic library name and path, loaded window position, layout mode of windows in the same position, and identification of whether to support window interaction; S2, reading and traversing the configuration information in the configuration file, judging whether the window position corresponding to the current configuration information exists, if not, loading the current configuration information to the corresponding window position; if yes, loading the current configuration information to the window position based on the layout mode; S21, the window position includes five positions of directly above, directly below, left side, right side and center of the power distribution automation terminal operation and maintenance interface; S22, the specific steps of loading the current configuration information to the corresponding window position are: Through the dynamic link library loading function provided by the operating system, according to the dynamic library name and path in the configuration information, the corresponding library file is loaded into the memory, and the pre-defined export function is called to create a window; The window is anchored to five positions of the power distribution automation terminal operation interface; S23, the current configuration information is loaded to the window position based on the layout mode; If the configuration file indicates that multiple windows need to be placed in the same position (such as "right area"), the program will not simply cover, but will create a container that can accommodate multiple sub-windows according to the "layout mode" specified in the configuration; The composite container is constructed; A corresponding layout manager object is dynamically created based on the layout mode, and the layout manager object is responsible for the rendering and display of multiple windows in its internal, size allocation, and distribution of user input events; S24, the layout mode includes up and down, left and right, and label switching; S3, further judge whether to participate in window interaction, if yes, activate the communication interface of the window and continue to iterate; otherwise, continue to iterate; A central message bus is started, and all windows configured to "support interaction" will be connected to this bus; thereafter, any window can "shout" (send messages) to the bus, and all other windows can also "hear" (receive messages); The communication interface is configured to: Receive any loaded window broadcast message; Forward the received message to all loaded windows; The window is designed to only respond to messages related to its own function, and to discard or ignore irrelevant messages; The communication interface of the window supports accepting messages sent by all windows, and also supports sending messages to all windows, each window only processes the messages it needs, and does not need to accept and process unnecessary messages; S4, iterate the process until all configuration information is iterated, and obtain the combined display result of the power distribution automation terminal operation interface window.
[0024] Embodiment two: The embodiment provides an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to realize a window combination display method for a power distribution automation terminal detection interface according to any one of embodiments 1.
[0025] Embodiment three: The embodiment provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement a window combination display method for a power distribution automation terminal detection interface.
[0026] In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which means that A exists alone, A and B exist together, and B exists alone. Wherein A, B can be singular or plural. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b, c can be single or multiple.
[0027] Those skilled in the art can realize that the units and algorithm steps described in the embodiments disclosed in the present application can be realized by electronic hardware, computer software and combination of electronic hardware and computer software. Whether the functions are realized by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0028] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0029] In several embodiments provided in the present application, any function realized in the form of a software function unit and sold or used as an independent product can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the parts that make contributions to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk and various program code storage media.
[0030] The above merely illustrates the embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which are made by using the content of the present application specification and drawings, are also included in the patent protection scope of the present application.
Claims
1. A window combination display method for a power distribution automation terminal detection interface, characterized in that, The method comprises: obtaining a configuration file of an operation and maintenance interface window of a power distribution automation terminal; reading and traversing configuration information in the configuration file, judging whether a window position corresponding to the current configuration information exists, if not, loading the current configuration information to the corresponding window position; if yes, loading the current configuration information to the window position based on a layout mode; further judging whether to participate in window interaction, if yes, activating a communication interface of the window and continuing to traverse; otherwise, continuing to traverse; iteratively traversing until all configuration information is traversed, obtaining a combined display result of the operation and maintenance interface window of the power distribution automation terminal.
2. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The configuration file is a structured data file, wherein at least the following information is included for each window: window dynamic library name and path, loaded window position, layout mode of windows in the same position, and identification of whether to support window interaction.
3. The window combination display method for the detection interface of the power distribution automation terminal according to claim 2, characterized in that, The window position includes five positions above, below, left, right and center of the operation and maintenance interface of the power distribution automation terminal.
4. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The specific steps of loading the current configuration information to the corresponding window position are as follows: loading the corresponding library file into the memory according to the dynamic library name and path in the configuration information by using a dynamic link library loading function provided by the operating system, and calling a predefined export function to create a window; anchoring the window to the five positions of the operation and maintenance interface of the power distribution automation terminal.
5. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The current configuration information is loaded to the window position based on the layout mode, and the specific steps are as follows: building a composite container; dynamically creating a corresponding layout manager object based on the layout mode, and the layout manager object is responsible for rendering and displaying, size allocation and distribution of user input events of multiple windows in the layout manager object.
6. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The layout mode includes up-down tiling, left-right tiling and label switching.
7. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The communication interface is configured to: receive a message broadcast by any loaded window; forward the received message to all loaded windows.
8. The window combination display method for the detection interface of the power distribution automation terminal according to claim 1, characterized in that, The window is designed to only respond to messages related to its own function, and to discard or ignore irrelevant messages.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the method of any one of claims 1 to 8.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method of any one of claims 1 to 8.