Power grid dispatching control system graph editing and displaying method
1. A graph editing method for a power grid dispatching control system is characterized by comprising the following steps:
accessing an HTML5 graphical editing software interface on a WEB browser, and dynamically generating the graphical editing software interface according to a pre-configured graphical editing parameter file;
accessing a primitive editor in a graphic editing software interface to construct an equipment primitive assembly;
dragging the equipment primitive assembly into a graph editing area, and performing editing operation on the equipment primitive assembly to obtain a power grid dispatching control system picture;
and (4) associating and binding the equipment primitive assembly in the power grid dispatching control system picture with the power grid dispatching control system model to form a power grid dispatching control system graphic file.
2. The grid dispatching control system graphics editing method according to claim 1, wherein the method for performing editing operation on the equipment primitive assembly comprises:
selecting the shapes of equipment primitive components at the current level and the current state according to the description information of the power equipment in the power grid dispatching control system;
and after dragging the selected equipment primitive assembly into the target position, adjusting the size of the equipment primitive assembly.
3. The method for editing the power grid dispatching control system graph according to claim 1, wherein if no associated power grid dispatching control system model exists, a new power grid dispatching control system model is created again, and the device primitive components in the power grid dispatching control system picture are associated and bound with the newly created power grid dispatching control system model.
4. The power grid dispatching control system graphic editing method of claim 1, wherein the pre-configured graphic editing parameter files comprise a menu bar configuration file, a toolbar configuration file, a component configuration file library, a right-click menu configuration file, an application number configuration file, a primitive type configuration file, and a graphic type configuration file.
5. The power grid dispatching control system graphics editing method of claim 1, wherein the equipment primitive components comprise a transformer primitive component, a generator primitive component and a breaker primitive component; the device primitive components at different levels and different states have different shapes.
6. The method for editing the graphics of the power grid dispatching control system as claimed in claim 1, wherein the device primitive assembly is constructed by using a canvas technology of HTML5 according to the standard electrical file attributes of the device primitive assembly.
7. The power grid dispatching control system graphic editing method according to claim 1, wherein when the attributes of the equipment primitive assembly are changed, the equipment primitive assembly is deleted from the power grid dispatching control system picture and redrawn; the attributes of the device primitive components include a position and a size of the device primitive component.
8. The method for editing the power grid dispatching control system graphics according to claim 1, wherein the device primitive assembly and the power grid dispatching control system graphics file are saved in a G-format specification.
9. A power grid dispatching control system graph display method is characterized in that a power grid dispatching control system graph is edited and obtained by adopting the power grid dispatching control system graph editing method of any one of claims 1 to 8; the browsing method comprises the following steps:
accessing an HTML5 graphical browsing software interface on a WEB browser, and dynamically generating a graphical browsing interface according to a pre-configured graphical browsing parameter file;
acquiring and analyzing a power grid dispatching control system graphic file to acquire description information of equipment graphic element assemblies and non-equipment graphic elements; the non-equipment graphics primitives comprise connecting lines and dynamic data;
drawing the equipment primitive assembly according to the description information of the equipment primitive assembly;
connecting the equipment primitive components by adopting connecting wires to form a power grid dispatching control system picture;
and outputting and displaying the power grid dispatching control system picture through the graphical browsing interface.
10. The power grid dispatching control system graphic display method according to claim 9, wherein when the telemetry, telecommand and/or status data of the associated equipment primitives in the power grid dispatching control system picture is changed, the power grid dispatching control system picture is redrawn according to the updated equipment primitives.
Background
At present, the scale of an electric power system is continuously enlarged, the requirement on operation and maintenance monitoring and guaranteeing technology is higher and higher, meanwhile, the technological level is also rapidly developed, especially the development of the internet technology, and the improvement of the electric network automation level by using the WEB technology is more and more important. The method uses Flash to maintain the image, plays a certain role in maintaining the image at the WEB end, but along with the technical development, Flash is gradually unsupported in a mainstream browser, and is not suitable for popularization in the field of scheduling systems. The SVG technology is used for maintaining the graphics and pictures, and is currently used as a browsing end, and the label language of SVG is not suitable for being used at an editor end. And the WEB browser only maintains the template graph by using the technology and then displays the template graph by using SVG conversion, and a maintenance mode of integrating maintenance and browsing is not adopted.
Disclosure of Invention
The purpose of the invention is as follows: in order to overcome the defects in the prior art, the invention provides a power grid dispatching control system graph editing and displaying method which can improve the efficiency of editing and displaying the power grid dispatching control system graph.
The technical scheme is as follows:
in a first aspect, the present invention provides a method for editing a graph of a power grid dispatching control system, including:
accessing an HTML5 graphical editing software interface on a WEB browser, and dynamically generating the graphical editing software interface according to a pre-configured graphical editing parameter file;
accessing a primitive editor in a graphic editing software interface to construct an equipment primitive assembly;
dragging the equipment primitive assembly into a graph editing area, and performing editing operation on the equipment primitive assembly to obtain a power grid dispatching control system picture;
and (4) associating and binding the equipment primitive assembly in the power grid dispatching control system picture with the power grid dispatching control system model to form a power grid dispatching control system graphic file.
With reference to the first aspect, further, the method for performing an editing operation on a device primitive assembly includes:
selecting the shapes of equipment primitive components at the current level and the current state according to the description information of the power equipment in the power grid dispatching control system;
and after dragging the selected equipment primitive assembly into the target position, adjusting the size of the equipment primitive assembly.
With reference to the first aspect, further, if there is no associated power grid dispatching control system model, a new power grid dispatching control system model is created again, and the device primitive components in the power grid dispatching control system picture are associated and bound with the newly created power grid dispatching control system model.
With reference to the first aspect, preferably, the preconfigured graphics editing parameter files include a menu bar configuration file, a toolbar configuration file, a component configuration file library, a right-click menu configuration file, an application number configuration file, a primitive type configuration file, and a graphics type configuration file.
With reference to the first aspect, preferably, the device primitive assemblies include a transformer primitive assembly, a generator primitive assembly, and a breaker primitive assembly; the device primitive components at different levels and different states have different shapes.
With reference to the first aspect, preferably, the device primitive assembly is constructed by using canvas technology of HTML5 according to the standard electrical file attributes of the device primitive assembly.
With reference to the first aspect, further, when the attribute of the device primitive assembly changes, the device primitive assembly is deleted from the grid dispatching control system picture and redrawn; the attributes of the device primitive components include a position and a size of the device primitive component.
With reference to the first aspect, preferably, the device primitive assembly and the power grid dispatching control system graphics file are stored in a G format specification.
In a second aspect, the invention provides a method for displaying a power grid dispatching control system graph, wherein the power grid dispatching control system graph is edited and obtained by adopting any one of the power grid dispatching control system graph editing methods in the first aspect; the browsing method comprises the following steps:
accessing an HTML5 graphical browsing software interface on a WEB browser, and dynamically generating a graphical browsing interface according to a pre-configured graphical browsing parameter file;
acquiring and analyzing a power grid dispatching control system graphic file to acquire description information of equipment graphic element assemblies and non-equipment graphic elements; the non-equipment graphics primitives comprise connecting lines and dynamic data;
drawing the equipment primitive assembly according to the description information of the equipment primitive assembly;
connecting the equipment primitive components by adopting connecting wires to form a power grid dispatching control system picture;
and outputting and displaying the power grid dispatching control system picture through the graphical browsing interface.
With reference to the second aspect, further, when the telemetry, remote signaling and/or status data of the associated device primitive in the power grid dispatching control system picture is changed, the power grid dispatching control system picture is redrawn according to the updated device primitive.
Has the advantages that: compared with the prior art, the invention accesses the HTML5 graphic editing software interface through the WEB browser, not only draws a display picture by using the HTML5 technology in the power grid dispatching control system, but also judges the connection relation and the equipment primitive set in the plant station diagram by using the edited display picture, thereby reducing the drawing period of the front-end primitive picture and improving the drawing efficiency.
Drawings
FIG. 1 is a schematic diagram of a graphical software editing and displaying structure of a power grid dispatching control system according to the present invention;
FIG. 2 is a schematic diagram of a graphic editing process of a graphic editor of the power grid dispatching control system according to the present invention;
fig. 3 is a schematic diagram of a graphic display flow of a graphic editor of the power grid dispatching control system according to the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
The first embodiment is as follows:
further, with reference to fig. 1, the preset graphic editing parameter files in the WEB browser page include configuration files such as a menu bar configuration file, a toolbar configuration file, a component configuration file library, a right-click menu configuration file, an application number configuration file, a primitive type configuration file, and a graphic type configuration file. And the user selects a control area for triggering and pre-configuring the link in the generated browsing interface, and then calls configuration files such as a menu bar, a toolbar, a component library, a right-click menu, an application number, a primitive type, a graphic type and the like to perform page initialization generation.
As shown in fig. 2, a method for editing a graph of a power grid dispatching control system according to an embodiment of the present invention includes the following steps:
step A: starting a power grid dispatching control system, accessing an HTML5 graphic editing software interface through a WEB browser, dynamically generating a graphic editing software interface according to a pre-configured graphic editing parameter file, and initializing various system configuration parameters while starting the power grid dispatching control system; when a user calls an execution script by triggering HTML5 through a WEB browser, reading and executing a parameter file, calling configuration files such as a menu bar, a toolbar, a component library, a right-click menu, an application number, a primitive type, a graphic type and the like, drawing, and dynamically generating a visual graphic editing software interface on the WEB browser; the graphical editing software interface is dynamically generated, is not a static HTML file, and meets the requirements of graphical pictures of a power system for graphically displaying a plant station diagram, a tidal current diagram and the like.
The pre-configured graphic editing parameter files comprise a menu bar configuration file, a tool bar configuration file, a component configuration file library, a right-click menu configuration file, an application number configuration file, a primitive type configuration file and a graphic type configuration file.
And B: a user accesses a primitive editor in a graphical editing software interface to construct an equipment primitive assembly, and specifically, a mouse can be used for dragging basic primitives such as points, lines, circles, rectangles, diamonds and the like in a basic assembly library to draw the equipment primitive assembly required by the user; in the embodiment of the invention, the equipment primitive assembly is stored according to the G format specification.
Wherein, equipment primitive subassembly includes: transformer primitives, generator primitives, breaker primitives and the like; the device primitive components may be constructed using canvas technology of HTML5 based on the standard electrical file attributes of the device primitive components.
And C: dragging the equipment primitive assembly into a graph editing area, and performing editing operation on the equipment primitive assembly to obtain a power grid dispatching control system picture;
in the embodiment of the invention, a plurality of equipment primitive assemblies such as transformer primitives, generator primitives and breaker primitives have different levels and different states, so that the equipment primitive assemblies in different shapes can be drawn according to the attribute difference of different levels and different states and are used for representing the electrical meanings of opening and closing of the equipment.
When the equipment primitive assembly is dragged into the graph editing area, an equipment primitive assembly window pops up, and the method for editing the equipment primitive assembly comprises the following steps:
selecting the shapes of equipment primitive components at the current level and the current state according to the description information of the power equipment in the power grid dispatching control system; and after dragging the selected equipment primitive assembly into the target position, adjusting the size of the equipment primitive assembly.
Step D: and (3) associating and binding the equipment primitive assembly in the power grid dispatching control system picture with a power grid dispatching control system model to form a power grid dispatching control system graphic file:
if no associated power grid dispatching control system model exists, a newly-built power grid dispatching control system model record is created in a database attribute window of a graphic editing software interface, and the newly-edited power grid dispatching control system model is stored in a database and is associated with the existing equipment in the power grid dispatching control system; if the model already exists, the power grid dispatching control system opens a retriever window, drags the information attribute of the model to a graph editing area, and performs graph-model association of the power grid dispatching control system; the power grid dispatching control system picture is stored according to the power grid dispatching control system graphic specification to generate a power grid topological relation model; the power grid topological relation is generated according to the connection relation of the graphic equipment, and graphic analysis is conveniently carried out in the later-stage display.
When the attribute of the equipment primitive assembly is changed, deleting the equipment primitive assembly from the picture of the power grid dispatching control system and redrawing the equipment primitive assembly; the attributes of the device primitive components include a position and a size of the device primitive component.
The graphic file of the power grid dispatching control system can also be stored by adopting a G format specification, so that the graphic picture can be analyzed, identified and quickly judged when being browsed at the later stage.
Example two:
a further description is given, with reference to fig. 1 and fig. 3, of a method for displaying graphs of a power grid dispatching control system according to an embodiment of the present invention, where a graph editing parameter file preconfigured in a WEB browser page includes a menu bar configuration file, a toolbar configuration file, a component configuration file library, a right-click menu configuration file, an application number configuration file, a primitive type configuration file, and a graph type configuration file. And the user selects a control area for triggering and pre-configuring the link in the generated browsing interface, and then calls configuration files such as a menu bar, a toolbar, a browsing area, a status bar and the like to browse and display. The power grid dispatching control system graph is edited and obtained by adopting the power grid dispatching control system graph editing method shown in the first embodiment; the browsing method comprises the following steps:
starting a power grid dispatching control system, accessing an HTML5 graphical browsing software interface through a WEB browser, and dynamically generating a graphical browsing interface according to a selected pre-configured graphical browsing parameter file after reading and executing the parameter file when a user triggers an HTML5 to call an execution script through the WEB browser;
a user can obtain the description information of the equipment primitive assembly and the description information of the non-equipment primitive by obtaining the graphic file of the power grid dispatching control system for analysis; the non-device primitives may include connection lines, dynamic data, and the like. Drawing the equipment primitive components according to the description information of the equipment primitive components, reducing the period of drawing front-end primitive pictures and improving the drawing efficiency, and connecting non-equipment primitives such as connecting wires and the like to each equipment primitive component to form a power grid dispatching control system picture;
and finally, outputting and displaying the power grid dispatching control system picture through the graphical browsing interface.
It should be noted that: and when the telemetering, remote signaling and/or state data of the associated equipment primitive assembly in the picture of the power grid dispatching control system are changed, redrawing the picture of the power grid dispatching control system according to the updated equipment primitive assembly.
The equipment primitive assembly and the power grid dispatching control system graph can be stored in a standard G format specification of the power grid dispatching control system, and later analysis and identification of a graph picture are facilitated, and a special connection relation in a plant station graph is judged quickly.
According to the invention, a WEB browser in the power grid dispatching control system is associated with an HTML5 parameter file, and an HTML5 execution script is called on the WEB browser, so that an HTML5 drawing display picture is realized at the front end of the power grid dispatching control system, and further HTML5 primitive editing software is used for editing equipment primitives and a graphic editor in the power grid dispatching control system to edit a graphic picture; and judging in real time by using the displayed plant station diagram to obtain a primitive set needing to be redrawn, so that the period of drawing a front-end primitive picture is shortened, and the drawing efficiency is improved. Finally, the network graphics based on HTML5 are adopted in the power grid dispatching control system, so that the picture display efficiency of the web browser can be improved, and the collaborative development of the power grid and the information technology is promoted.
The present invention has been described above by way of illustration in the drawings, and it will be understood by those skilled in the art that the present disclosure is not limited to the embodiments described above, and various changes, modifications and substitutions may be made without departing from the scope of the present invention.