CN113256766B - Method and device for acquiring power graphic picture, storage medium and electronic equipment - Google Patents
Method and device for acquiring power graphic picture, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113256766B CN113256766B CN202110792362.9A CN202110792362A CN113256766B CN 113256766 B CN113256766 B CN 113256766B CN 202110792362 A CN202110792362 A CN 202110792362A CN 113256766 B CN113256766 B CN 113256766B
- Authority
- CN
- China
- Prior art keywords
- page
- point
- path
- access path
- alternative
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/80—Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method and a device for acquiring a power graphic picture, a storage medium and electronic equipment, wherein the method comprises the following steps: responding to a starting page display instruction, and displaying a starting page of the power graphic file on a graphic display interface; when receiving the point-to-point signaling, determining a point-to-point signaling parameter contained in the point-to-point signaling; acquiring pointer movement track information of the point signal parameters; controlling a mouse pointer on the basis of pointer movement track information on a starting page of the power graphic file so as to display each path node page in the power graphic file on a graphic display interface, and performing screenshot operation on a target page when the target page in each path node page is displayed to obtain a power graphic picture of a point signal parameter; the target page contains point-to-point signal test information for the point-to-point signal parameters. By applying the method provided by the invention, the mouse pointer is controlled through the pointer movement track information, and the electric power image picture of the point-to-point signal can be quickly and accurately acquired.
Description
Technical Field
The invention relates to the technical field of new generation information and new energy, in particular to a method and a device for acquiring a power graphic picture, a storage medium and electronic equipment.
Background
With the development of science and technology, intelligent substations are widely applied, and the intelligent substations do not need to be manually attended but monitor measuring point information and picture signals of the substations through a dispatching center. In order to ensure that the correlation between the measuring point information and the picture signal of the transformer substation is accurate, the point signals of the dispatching master station and the transformer substation end need to be checked before a newly-built transformer substation or an expanded transformer substation project is put into operation, and the real-time performance and the data consistency of the signals are verified, so that the transformer substation can be correctly monitored by a dispatching center.
In the process of checking the point signals, the electric power patterns in the electric power pattern file of the SCADA system of the point signals need to be manually acquired to complete the checking of the point signals, however, different electric power pattern interfaces needed by different point signals are different, the number of the point signals needing to be checked is large, and the electric power pattern interfaces are easily acquired wrongly by the conventional electric power image acquisition mode, so that hidden dangers are caused to the safety burying of a power grid.
Disclosure of Invention
The invention aims to provide a method for acquiring a power graphic picture, which can quickly and accurately acquire the power graphic picture.
The invention also provides a device for acquiring the electric power graphic picture, which is used for ensuring the realization and the application of the method in practice.
A method for acquiring a power graphic picture comprises the following steps:
responding to a starting page display instruction, and displaying a starting page of the power graphic file on a preset graphic display interface;
when a point-to-point signaling is received, determining a point-to-point signaling parameter contained in the point-to-point signaling;
acquiring pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphic display interface;
controlling a mouse pointer on the basis of the pointer movement track information on a starting page of the electric power graphic file so as to display each path node page in the electric power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain an electric power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters.
In the above method, optionally, the pointer movement track information is pre-recorded in a preset configuration file.
Optionally, the method includes recording the pointer movement track information in the configuration file, where the recording includes:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining page average loading resources of each alternative page access path; the page average loading resource of each alternative page access path is an average calculation resource required for loading each path node page of the alternative page access path;
determining the alternative page access path with the least page average loading resources as the page access path of the point-to-point signal parameters;
and recording the page access path in the configuration file.
Optionally, the determining the set of alternative page access paths corresponding to the point-to-point signal parameter includes:
determining a path constraint condition of the point-to-point signal parameter;
performing path planning based on the path constraint condition to obtain an alternative page access path set corresponding to the point-to-point signal parameter; and each alternative page access path in the alternative page access path set meets the path constraint condition.
Optionally, the method includes recording the pointer movement track information in the configuration file, where the recording includes:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining the access time consumption of each alternative page access path; the access consumption time of each alternative page access path is the time required by a preset workstation to access each path node page of the alternative page access path;
determining the alternative page access path with the shortest access duration as the page access path of the point-to-point signal parameter;
and recording the page access path in the configuration file.
Optionally, the method for controlling a mouse pointer based on the pointer movement track information includes:
generating a mouse pointer control script based on the pointer movement track information;
and controlling the mouse pointer based on the mouse pointer control script.
An apparatus for acquiring a power pattern picture, comprising:
the display unit is used for responding to the starting page display instruction and displaying a starting page of the power graphic file on a preset graphic display interface;
a receiving unit configured to determine, when a point-to-point signaling notification is received, a point-to-point signal parameter included in the point-to-point signaling notification;
the acquisition unit is used for acquiring the pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphic display interface;
the control unit is used for controlling a mouse pointer on the basis of the pointer movement track information on the starting page of the power graphic file so as to display each path node page in the power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain a power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters.
The above apparatus, the control unit, comprises:
the generating subunit is used for generating a mouse pointer control script based on the pointer movement track information;
and the control subunit is used for controlling the mouse pointer based on the mouse pointer control script.
A storage medium, comprising a storage instruction, wherein when the instruction runs, a device on which the storage medium is located is controlled to execute the method for acquiring the power graphic picture.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method of capturing a power graphics picture as described above.
Compared with the prior art, the invention has the following advantages:
the invention provides a method and a device for acquiring a power graphic picture, a storage medium and electronic equipment, wherein the method comprises the following steps: responding to a starting page display instruction, and displaying a starting page of the power graphic file on a preset graphic display interface; when a point-to-point signaling is received, determining a point-to-point signaling parameter contained in the point-to-point signaling; acquiring pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphic display interface; controlling a mouse pointer on the basis of the pointer movement track information on a starting page of the electric power graphic file so as to display each path node page in the electric power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain an electric power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters. By applying the method for acquiring the power graphic picture, the mouse pointer is controlled through the pointer movement track information, and the power graphic picture of the point signal can be quickly and accurately acquired.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for obtaining a power graphic frame according to the present invention;
FIG. 2 is a flowchart illustrating a process of recording pointer movement trace information in a configuration file according to the present invention;
FIG. 3 is a flowchart illustrating another process of recording pointer movement trace information in a configuration file according to the present invention;
FIG. 4 is a flowchart of a process for determining a set of alternative page access paths corresponding to point signal parameters according to the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for acquiring a power graphic image according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the invention provides a method for acquiring a power graphic picture, which can be applied to electronic equipment, wherein a method flow chart of the method is shown in fig. 1, and the method specifically comprises the following steps:
s101: and responding to the starting page display instruction, and displaying a starting page of the power graphic file on a preset graphic display interface.
In the embodiment of the present invention, the start page display instruction may include a file path of a start page, and the start page of the power graphics file is opened based on the file path, so that the start page of the power graphics file may be displayed on a preset graphics display interface.
The power graphic file may be a graphic file of a power dispatching SCADA system.
S102: when a point-to-point signaling is received, a point-to-point signaling parameter contained by the point-to-point signaling is determined.
In this embodiment of the present invention, the pair of point signals may be: and under the condition that the scheduling master station system receives a point-to-point signal periodically triggered by the intelligent point-to-point device of the transformer substation, the scheduling master station system is used for notifying a message triggered by the point-to-point robot module.
The pair of point signal parameters may include one or more of a pair of point signal identifier, a pair of point signal type, a pair of point signal value, and the like.
S103: acquiring pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; and the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphical display interface.
In the embodiment of the present invention, the pointer movement trace information of the point-to-point signal parameter may be recorded in a configuration file in advance, and the pointer movement trace information of the point-to-point signal parameter may be acquired in the configuration file.
One feasible way to obtain the pointer movement track information of the point signal parameters in the configuration file is as follows: acquiring a point-to-point signal identifier, a point-to-point signal type and a point-to-point signal value which are contained in the point-to-point signal parameter; traversing the configuration file based on the pair of point signal identifications, the pair of point signal types and the pair of point signal values to obtain pointer movement track information of the pair of point signal parameters.
Specifically, the trigger operation mode may be a click of a mouse, a drag of the mouse, or the like.
S104: controlling a mouse pointer on the basis of the pointer movement track information on a starting page of the electric power graphic file so as to display each path node page in the electric power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain an electric power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters.
In the embodiment of the invention, the mouse pointer is controlled based on the pointer movement track information, so that the mouse pointer moves on the currently displayed path node page, and when the mouse pointer moves to the position of the target button of the currently displayed path node page, the operation of the trigger operation mode corresponding to the currently displayed path node page is executed, so that the target button of the path node page responds to the operation, and the next page is displayed through the graphical display interface, so that each path node page in the power graphical file can be accessed.
The point-to-point signal test information may include one or more of a primitive shape, a primitive color, text information, a flicker condition, and the like of a primitive corresponding to the point-to-point signal, and the primitive may be a switch, a disconnecting link, a light word plate, a handcart, and the like.
By applying the method for acquiring the power graphic picture, the mouse pointer is controlled through the pointer movement track information, and the power graphic picture of the point signal can be quickly and accurately acquired.
In the embodiment of the present invention, based on the implementation process, specifically, the pointer movement track information is recorded in a preset configuration file in advance.
As shown in fig. 2, a feasible way of recording the pointer movement track information in the configuration file specifically includes:
s201: determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths.
In the embodiment of the present invention, the path start point and the path end point of each alternative page access path in the alternative page access path set may be a start page, and each alternative page access path includes each target page of the pair of point signal parameters.
S202: and determining the path node page number of each alternative page access path.
In the embodiment of the invention, the number of the path node pages contained in each alternative page access path can be counted, so that the number of the path node pages of each alternative page access path can be determined.
S203: and determining the alternative page access path with the least number of the path node pages as the page access path of the point-to-point signal parameter.
In the embodiment of the present invention, the alternative page access paths may be ordered according to the order from small to large of the number of path node pages of each alternative page access path, and the alternative page access path with the smallest number of path node pages is determined as the page access path to the point signal parameter.
S204: and recording the page access path in the configuration file.
In an embodiment of the present invention, the page access path may be recorded in a configuration file in association with the point-to-point signal parameter.
By applying the method provided by the embodiment of the invention, the probability of misoperation can be reduced by taking the alternative page access path with the least number of pages as the page access path of the point-to-point signal parameters.
In an embodiment of the present invention, based on the foregoing implementation process, specifically, another feasible way of recording the pointer movement track information in the configuration file is as shown in fig. 3, and specifically includes:
s301: determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths.
The implementation and principle of S301 are the same as those of S201, and are not described herein again.
S302: determining the access time consumption of each alternative page access path; and the time consumed for accessing each alternative page access path is the preset time required for the workstation to access each path node page of the alternative page access path.
In the embodiment of the invention, the time length required by the workstation to access each path node page in each alternative page access path can be counted, and the access consumption time length of each alternative page access path can be obtained.
S303: and determining the alternative page access path with the shortest access duration as the page access path of the point-to-point signal parameter.
In the embodiment of the invention, the alternative page access paths can be sequenced according to the sequence of the access consumption duration of each alternative page access path from short to long, and the alternative page access path with the shortest access consumption duration is determined as the page access path of the point signal parameter.
S304: and recording the page access path in the configuration file.
In an embodiment of the present invention, the page access path may be recorded in a configuration file in association with the point-to-point signal parameter.
By applying the method provided by the embodiment of the invention, the alternative page access path with the shortest access time duration is determined as the page access path of the point signal parameter, so that the stability of the performance can be ensured.
In an embodiment of the present invention, based on the implementation process, specifically, another feasible way of recording the pointer movement track information in the configuration file includes:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining page average loading resources of each alternative page access path; the page average loading resource of each alternative page access path is an average calculation resource required for loading each path node page of the alternative page access path;
determining the alternative page access path with the least page average loading resources as the page access path of the point-to-point signal parameters;
and recording the page access path in the configuration file.
In the embodiment of the invention, the computing resources required for loading each path node page can be determined, and the page average loading resource of each alternative page access path is determined based on the computing resources required for each path node page.
The computing resources may include one or more of processor resources, memory resources, cache resources, and the like.
Optionally, the alternative page access path with the least total loading resources may also be determined as the page access path to the point signal parameter.
By applying the method provided by the embodiment of the invention, the alternative page access path with the least page average loading resources is determined as the page access path to the point signal parameters, so that the computing resources can be greatly saved.
In this embodiment of the present invention, based on the foregoing implementation process, specifically, the process of determining the alternative page access path set corresponding to the point-to-point signal parameter specifically includes, as shown in fig. 4:
s401: determining the path constraint condition of the point-to-point signal parameter.
In the embodiment of the present invention, the path constraint condition is: and the access path takes the starting page of the electric power graphic file as a path starting point and a path end point and passes through each target page of the pair of point signal parameters.
S402: performing path planning based on the path constraint condition to obtain an alternative page access path set corresponding to the point-to-point signal parameter; and each alternative page access path in the alternative page access path set meets the path constraint condition.
In the embodiment of the present invention, the set of alternative page access paths includes all alternative page access paths that satisfy the constraint condition.
In an embodiment of the present invention, based on the foregoing implementation process, specifically, the controlling a mouse pointer based on the pointer movement track information includes:
generating a mouse pointer control script based on the pointer movement track information;
and controlling the mouse pointer based on the mouse pointer control script.
In the embodiment of the present invention, a preset script template may be obtained, and the pointer movement track information is filled in the script template, so as to obtain a mouse pointer control script, and further, according to the mouse pointer control script, a mouse pointer may be controlled, so that the mouse pointer moves on a display interface, and when the mouse pointer moves to a specific position in a path node picture currently displayed on the display interface, an operation of triggering an operation mode corresponding to the path node picture is executed.
Corresponding to the method illustrated in fig. 1, an embodiment of the present invention further provides an apparatus for acquiring a power graphics image, which is used to implement the method illustrated in fig. 1 specifically, and the apparatus for acquiring a power graphics image provided in the embodiment of the present invention may be applied to an electronic device, and a schematic structural diagram of the apparatus is illustrated in fig. 5, and specifically includes:
a display unit 501, configured to respond to a start page display instruction, and display a start page of a power graphics file in a preset manner;
a receiving unit 502, configured to determine, when receiving a peer-to-peer signaling, a peer-to-peer signal parameter included in the peer-to-peer signaling;
an obtaining unit 503, configured to obtain pointer movement track information of the pair of point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphic display interface;
a control unit 504, configured to control a mouse pointer based on the pointer movement track information on a start page of the power graph file, so as to display each path node page in the power graph file on the graph display interface, and perform a screenshot operation on a target page when the target page is displayed in each path node page, so as to obtain a power graph picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters.
In an embodiment provided by the present invention, based on the above scheme, optionally, the control unit 504 includes:
the generating subunit is used for generating a mouse pointer control script based on the pointer movement track information;
and the control subunit is used for controlling the mouse pointer based on the mouse pointer control script.
Optionally, in the apparatus, the pointer movement track information is pre-recorded in a preset configuration file.
In an embodiment provided by the present invention, based on the above scheme, optionally, the apparatus further includes a first recording unit;
the first recording unit is configured to determine an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths; determining the number of path node pages of each alternative page access path; determining the alternative page access path with the least number of the path nodes as the page access path of the point-to-point signal parameter; and recording the page access path in the configuration file.
In an embodiment provided by the present invention, based on the above scheme, optionally, the apparatus further includes a second recording unit;
the second recording unit is configured to determine an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths; determining the access time consumption of each alternative page access path; the access consumption time of each alternative page access path is the time required by a preset workstation to access each path node page of the alternative page access path; determining the alternative page access path with the shortest access duration as the page access path of the point-to-point signal parameter; and recording the page access path in the configuration file.
In an embodiment provided by the present invention, based on the above scheme, optionally, the first recording unit includes:
a determining subunit, configured to determine a path constraint condition of the point-to-point signal parameter;
a path planning subunit, configured to perform path planning based on the path constraint condition, and obtain an alternative page access path set corresponding to the point-to-point signal parameter; and each alternative page access path in the alternative page access path set meets the path constraint condition.
The specific principle and the implementation process of each unit and module in the apparatus for acquiring an electric power graphic image disclosed in the embodiment of the present invention are the same as the method for acquiring an electric power graphic image disclosed in the embodiment of the present invention, and reference may be made to corresponding parts in the method for acquiring an electric power graphic image provided in the embodiment of the present invention, which are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the method for acquiring the power graphic picture.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations on the one or more instructions 602:
responding to a starting page display instruction, and displaying a starting page of the power graphic file which is preset;
when a point-to-point signaling is received, determining a point-to-point signaling parameter contained in the point-to-point signaling;
acquiring pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphic display interface;
controlling a mouse pointer on the basis of the pointer movement track information on a starting page of the electric power graphic file so as to display each path node page in the electric power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain an electric power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above method for acquiring a power graphic image provided by the present invention is described in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. A method for acquiring a power graphic picture is characterized by comprising the following steps:
responding to a starting page display instruction, and displaying a starting page of the power graphic file on a preset graphic display interface;
when a point-to-point signaling is received, determining a point-to-point signaling parameter contained in the point-to-point signaling;
acquiring pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphical display interface;
controlling a mouse pointer on the basis of the pointer movement track information on a starting page of the electric power graphic file so as to display each path node page in the electric power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain an electric power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters;
the pointer movement track information is recorded in a preset configuration file in advance;
the process of recording the pointer movement track information in the configuration file includes:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining the computing resources required by loading each path node page, and determining the page average loading resources of each alternative page access path based on the computing resources required by each path node page; the page average loading resource of each alternative page access path is an average calculation resource required for loading each path node page of the alternative page access path;
determining the alternative page access path with the least page average loading resources as the page access path of the point-to-point signal parameters;
and recording the page access path in the configuration file.
2. The method of claim 1, wherein the determining the set of alternative page access paths corresponding to the pair of point signal parameters comprises:
determining a path constraint condition of the point-to-point signal parameter;
performing path planning based on the path constraint condition to obtain an alternative page access path set corresponding to the point-to-point signal parameter; and each alternative page access path in the alternative page access path set meets the path constraint condition.
3. The method according to claim 1, wherein the recording the pointer movement trace information in the configuration file further comprises:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining the access time consumption of each alternative page access path; the access consumption time of each alternative page access path is the time required by a preset workstation to access each path node page of the alternative page access path;
determining the alternative page access path with the shortest access duration as the page access path of the point-to-point signal parameter;
and recording the page access path in the configuration file.
4. The method of claim 1, wherein the controlling a mouse pointer based on the pointer movement trajectory information comprises:
generating a mouse pointer control script based on the pointer movement track information;
and controlling the mouse pointer based on the mouse pointer control script.
5. An apparatus for acquiring a power pattern picture, comprising:
the display unit is used for responding to the starting page display instruction and displaying a starting page of the power graphic file on a preset graphic display interface;
a receiving unit configured to determine, when a point-to-point signaling notification is received, a point-to-point signal parameter included in the point-to-point signaling notification;
the acquisition unit is used for acquiring the pointer movement track information of the point-to-point signal parameters; the pointer movement track information is generated based on a page access path corresponding to the point-to-point signal parameter, and the page access path comprises the access sequence of each path node page in the power graph file and the button attribute information of the target button of each path node page; the button attribute information comprises position information of a target button and a trigger operation mode; the target button of each path node page is used for responding to a mouse pointer to execute the operation of the triggering operation mode and displaying the next page of the path node page through the graphical display interface;
the control unit is used for controlling a mouse pointer on the basis of the pointer movement track information on the starting page of the power graphic file so as to display each path node page in the power graphic file on the graphic display interface, and performing screenshot operation on a target page when the target page is displayed in each path node page to obtain a power graphic picture of the point-to-point signal parameter; the target page contains the point-to-point signal test information of the point-to-point signal parameters;
the pointer movement track information is recorded in a preset configuration file in advance;
the process of recording the pointer movement track information in the configuration file includes:
determining an alternative page access path set corresponding to the point-to-point signal parameter; the alternative page access path set comprises a plurality of alternative page access paths;
determining the computing resources required by loading each path node page, and determining the page average loading resources of each alternative page access path based on the computing resources required by each path node page; the page average loading resource of each alternative page access path is an average calculation resource required for loading each path node page of the alternative page access path;
determining the alternative page access path with the least page average loading resources as the page access path of the point-to-point signal parameters;
and recording the page access path in the configuration file.
6. The apparatus of claim 5, wherein the control unit comprises:
the generating subunit is used for generating a mouse pointer control script based on the pointer movement track information;
and the control subunit is used for controlling the mouse pointer based on the mouse pointer control script.
7. A storage medium, characterized in that the storage medium comprises a storage instruction, wherein when the instruction runs, a device on which the storage medium is located is controlled to execute the method for acquiring the power graphic picture according to any one of claims 1 to 4.
8. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method of acquiring a power graphics screen according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110792362.9A CN113256766B (en) | 2021-07-13 | 2021-07-13 | Method and device for acquiring power graphic picture, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110792362.9A CN113256766B (en) | 2021-07-13 | 2021-07-13 | Method and device for acquiring power graphic picture, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113256766A CN113256766A (en) | 2021-08-13 |
CN113256766B true CN113256766B (en) | 2021-11-16 |
Family
ID=77191215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110792362.9A Active CN113256766B (en) | 2021-07-13 | 2021-07-13 | Method and device for acquiring power graphic picture, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113256766B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114049598B (en) * | 2022-01-13 | 2022-04-19 | 国网浙江省电力有限公司宁波供电公司 | State identification method and device of power primitive, storage medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535236A (en) * | 2019-07-24 | 2019-12-03 | 深圳供电局有限公司 | Intelligent substation bay level simulation self-acceptance system and method |
CN112668516A (en) * | 2020-12-31 | 2021-04-16 | 南京太司德智能电气有限公司 | Automatic point-aligning acceptance check method for alarm window of power dispatching system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103390252B (en) * | 2013-07-30 | 2016-08-10 | 国家电网公司 | A kind of control centre and intelligent substation graphical information exchange method |
CN107515344A (en) * | 2017-10-18 | 2017-12-26 | 南京能云电力科技有限公司 | Test system and method for a kind of whole station information intelligent of digital transformer substation to point |
CN112769238B (en) * | 2020-12-31 | 2023-10-20 | 南京太司德智能电气有限公司 | Automatic point-to-point acceptance checking method for front multichannel interface of power dispatching system |
CN112769239A (en) * | 2020-12-31 | 2021-05-07 | 南京太司德智能电气有限公司 | Automatic point-aligning acceptance robot of power dispatching system |
CN112783587A (en) * | 2020-12-31 | 2021-05-11 | 南京太司德智能电气有限公司 | Path planning method for switching graphic and picture of power dispatching system |
CN112994231B (en) * | 2020-12-31 | 2024-02-02 | 南京太司德智能电气有限公司 | Automatic point-to-point checking and accepting method for graphic images of power dispatching system |
CN113036906B (en) * | 2020-12-31 | 2024-02-02 | 南京太司德智能电气有限公司 | Automatic inspection robot of power dispatching system |
-
2021
- 2021-07-13 CN CN202110792362.9A patent/CN113256766B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535236A (en) * | 2019-07-24 | 2019-12-03 | 深圳供电局有限公司 | Intelligent substation bay level simulation self-acceptance system and method |
CN112668516A (en) * | 2020-12-31 | 2021-04-16 | 南京太司德智能电气有限公司 | Automatic point-aligning acceptance check method for alarm window of power dispatching system |
Non-Patent Citations (1)
Title |
---|
核电站全范围模拟机画面重演技术及应用;石桂连等;《自动化博览》;20170915(第09期);第90-93页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113256766A (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107368405B (en) | Test system, test method, mock platform, interceptor and client | |
CN107506300B (en) | User interface testing method, device, server and storage medium | |
CN106020595B (en) | Message reply method and device | |
CN108762837A (en) | Application program preloads method, apparatus, storage medium and terminal | |
CN105260082B (en) | A kind of test data methods of exhibiting and exploitation terminal | |
CN110012165B (en) | Method and device for presenting session list page and readable medium | |
CN114936062B (en) | Method, device, equipment, system and storage medium for automatic debugging of equipment | |
CN113256766B (en) | Method and device for acquiring power graphic picture, storage medium and electronic equipment | |
CN113868126A (en) | Application debugging method, device and storage medium of equipment | |
CN103746458A (en) | Real-time representing method for power grid operational state | |
CN110502399B (en) | Fault detection method and device | |
CN104182663A (en) | Method and device for identifying simulator operation | |
CN109800124A (en) | CPU usage monitoring method, device, electronic equipment and storage medium | |
CN117648106A (en) | Twin model updating method and device, electronic equipment and storage medium | |
CN113849758A (en) | Webpage index generation method and device, electronic equipment and storage medium | |
CN106714332A (en) | Wireless network access method and apparatus | |
CN117472704A (en) | Machine room management method, equipment and storage medium based on three-dimensional model | |
CN110290216B (en) | Monitoring execution method, instruction issuing method, device, equipment and storage medium | |
CN112596651A (en) | Acceptance method, device, equipment and storage medium for power distribution terminal debugging | |
CN113760672A (en) | Performance test method, equipment and storage medium for multi-cloud platform resources | |
CN112840305B (en) | Font switching method and related product | |
CN114995675B (en) | Touch control jump point fault detection method, electronic equipment and readable storage medium | |
CN110515743B (en) | Write event notification method and device | |
CN110389886A (en) | A kind of additional function test method, device and the storage medium of main body application program | |
CN109782925B (en) | Processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20210813 Assignee: NINGBO YONGYAO POWER INVESTMENT GROUP Co.,Ltd. Assignor: STATE GRID ZHEJIANG ELECTRIC POWER CO., LTD. NINGBO POWER SUPPLY Co. Contract record no.: X2023980040382 Denomination of invention: Method and device for obtaining power graphic images, storage medium and electronic equipment Granted publication date: 20211116 License type: Common License Record date: 20230824 |