CN115526015B - Command interaction-based power grid diagram generation method, device, medium and equipment - Google Patents

Command interaction-based power grid diagram generation method, device, medium and equipment Download PDF

Info

Publication number
CN115526015B
CN115526015B CN202211366193.3A CN202211366193A CN115526015B CN 115526015 B CN115526015 B CN 115526015B CN 202211366193 A CN202211366193 A CN 202211366193A CN 115526015 B CN115526015 B CN 115526015B
Authority
CN
China
Prior art keywords
information
primitive
command
operation content
symbol
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
Application number
CN202211366193.3A
Other languages
Chinese (zh)
Other versions
CN115526015A (en
Inventor
赵大溥
柳涛
贺彦
蒋国勇
温秉义
邱佳
陈方槟
刘炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Thp Technology Co ltd
Original Assignee
Beijing Thp Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Thp Technology Co ltd filed Critical Beijing Thp Technology Co ltd
Priority to CN202211366193.3A priority Critical patent/CN115526015B/en
Publication of CN115526015A publication Critical patent/CN115526015A/en
Application granted granted Critical
Publication of CN115526015B publication Critical patent/CN115526015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks

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)
  • Software Systems (AREA)
  • Geometry (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a power grid diagram generation method, a device, a computer readable storage medium and equipment based on command interaction, wherein the method comprises the following steps: receiving a graph generation instruction to generate one or more primitives in a power grid graph; receiving a screening instruction input based on a command line, and screening out primitives from the power grid diagram displayed in a display interface; generating dynamic label information for each screened primitive based on a preset dynamic label generation rule; receiving an operation instruction input based on a command line to operate the power grid diagram, wherein the operation instruction comprises a second operation object symbol and a second operation content symbol; analyzing the second operation object symbol and the second operation content symbol to obtain second object information containing the dynamic label information and second operation content information used for determining operation content; operating the graphics primitives to be operated based on the operation content; and the operation efficiency in the process of generating the power grid diagram is improved by obtaining the power grid diagram.

Description

Command interaction-based power grid diagram generation method, device, medium and equipment
Technical Field
The invention relates to the field of power grid diagram generation, in particular to a power grid diagram generation method, a device, a medium and equipment based on command interaction.
Background
The graphical configuration software based on the vector graphics is a core module of a modern power monitoring system, a typical application scenario is a power SCADA system, and a power grid diagram can be drawn by using the graphical configuration software, wherein the power grid diagram includes but is not limited to a substation single line diagram, a system tidal current diagram and the like. The core of the existing graphical configuration software is a vector graphics editing tool, which generally has a visual graphical operation interface, and a user selects some primitives from a template library through a mouse to be added to the interface, drags the primitives through the mouse, and establishes a connection relationship between the primitives on the interface. The software has the advantages of simplicity and easy use, but has some disadvantages, so that the use of the software often has some problems, such as: the problem of direct performance. When a user wants to edit primitive attribute (such as position, name, and the like) information, the user needs to find and select a primitive on an interface, open an attribute panel of the user, switch among a plurality of paging tabs of the attribute panel, find a related attribute, and edit the attribute. The process is complicated, and the operations related to the general grid diagram are very many, which results in low overall operation efficiency, and especially when a plurality of primitives are required to be edited simultaneously, the operations need to be performed one by one, which is extremely low in efficiency.
Disclosure of Invention
Based on the current situation, in order to overcome the problem of low operation efficiency of the existing graphical configuration software, the invention provides a power grid diagram generation method, a device, a medium and equipment based on command interaction, and the operation efficiency can be improved.
The invention provides a power grid diagram generation method based on command interaction, which comprises the following steps:
s100: receiving a graph generation instruction, and generating one or more primitives in a power grid graph on a display interface based on the graph generation instruction and a preset primitive template library, wherein the primitive template library stores a plurality of primitives, and each primitive indicates one or more power devices;
s200: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a first operation object character and a first operation content character, and adopting a command line analysis rule to analyze the first operation object character and the first operation content character to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining a primitive type to be screened by the screening operation; screening the graphic elements which accord with the graphic element types from the power grid diagram displayed on the display interface based on the first object information and the first operation content information;
s300: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display boundary as a dynamic label corresponding to the screened primitive;
s400: receiving an operation instruction input based on a command line to operate the power grid diagram, wherein the operation instruction comprises a second operation object character and a second operation content character; analyzing the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information to be used for determining a primitive to be operated; the second operation content information is used for determining operation content;
s500: operating the graphic element to be operated based on the operation content;
s600: and obtaining the power grid diagram.
Preferably, the dynamic label is a number and/or a letter.
Preferably, in step S200, a click operation for a preset first operation button is received, and the first operation content indicator is generated.
Preferably, the primitive type is determined from one or more of a primitive name of the primitive, a line level to which the primitive belongs, and coordinates of the primitive.
Preferably, after step S500, step S501 is further included: receiving a clearing and screening instruction, analyzing and executing the clearing and screening instruction, wherein the dynamic label information is invalid, and the dynamic label on the display interface is cleared;
the clearing and screening instruction is directly input by a user in a command line mode or generated by clicking operation aiming at a preset second operation button.
Preferably, the operation content includes one or more of an addition operation, a removal filtering operation, a moving operation, a rotating operation, a deleting operation, a connecting operation and an attribute editing operation.
Preferably, the instruction input based on the command line includes an operation object character and an operation content character;
the command line parsing rule is as follows: analyzing and obtaining object information from the operation object symbol, analyzing and obtaining operation content information from the operation content symbol, wherein the graphic element determined by the object information is an operation object corresponding to the operation content information;
the operation content character comprises one or more sub-operation content characters, and the sub-operation content characters are analyzed to obtain one or more pieces of operation content sub-information included in the operation content information; the sub-operation content symbol is one or more of an operation type symbol, a parameter type symbol and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value correspondingly;
when the dynamic label exists on the display interface, the operation object character comprises the dynamic label information so as to be used for determining the operation object.
Preferably, the operation object character includes the dynamic label information of the primitive, and/or id information of the primitive in the power grid diagram, and/or primitive name of the primitive, and/or coordinate information; the character length of the dynamic label information is less than or equal to the character length of the id information and the primitive name;
the operation object symbol is directly input by a user, or the user clicks the graphic element in the display interface to automatically generate the operation object symbol.
Preferably, when one or more of the dynamic tag information, the id information, the primitive name, and the coordinate information are connected according to a preset string symbol to form the operation object symbol, the operation object symbol is analyzed to obtain the object information corresponding to the primitives connected according to a preset string rule.
Preferably, the sub-operation content symbol comprises the operation type symbol and/or the parameter type symbol;
before the operation content symbol is analyzed, the operation type symbol is converted into an operation type complete symbol according to a preset instruction mapping table, and/or the parameter type symbol is converted into a parameter type complete symbol according to the instruction mapping table; the character length of the operation type character is shorter than that of the operation type complete character, and the character length of the parameter type character is shorter than that of the operation type complete character;
and the operation content information is obtained by analyzing the operation type complete character and/or the parameter type complete character by adopting the command line analysis rule.
Preferably, the command line parsing rule includes: and analyzing and obtaining another part of the sub-operation content characters according to part of the sub-operation content characters in the operation content characters, or analyzing and obtaining the operation content sub-information corresponding to another part of the sub-operation content characters.
Preferably, the graphics generation instruction is the instruction input based on a command line.
Preferably, the operation type identifier included in the graphics generation instruction is a new addition identifier;
the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing;
the parameters included in the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameters.
Preferably, when the position of the primitive determined by the operation object character cannot be determined according to the graphics generation instruction, the primitive is automatically connected with a newly added primitive.
Preferably, the instruction input based on the command line is parsed and executed in real time, and the execution result is fed back to the display interface.
The invention also provides a command interaction-based power grid diagram generation device, which comprises:
the primitive template library module is used for storing a primitive template library, the primitive template library comprises a plurality of primitives, and each primitive indicates one or more power devices;
the command line input module is used for inputting instructions in a command line mode; wherein the instruction comprises an operation content character or comprises an operation object character and an operation content character;
the command line analysis module is used for analyzing the command by adopting a command line analysis rule; the operation object character is analyzed to obtain object information, and the operation content character is analyzed to obtain operation content information; the graphic element determined by the object information is an operation object corresponding to the operation content information;
the dynamic label generation module is used for generating dynamic label information for the graphic primitive based on a preset dynamic label generation rule;
the power grid graph processing module is used for operating the primitives to generate a power grid graph;
the power grid diagram processing module generates one or more graphic elements in the power grid diagram on a display interface based on a graphic generation instruction and the graphic element template library;
the command line input module receives a screening instruction, and the command line analysis module analyzes the screening instruction by adopting the command line analysis rule to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining the type of the primitive to be screened by the screening operation; the power grid diagram processing module screens the graphic elements which accord with the graphic element types from the power grid diagram displayed on the display interface based on the first object information and the first operation content information;
the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed as a dynamic label corresponding to the screened primitive on the display boundary;
the command line input module receives an operation instruction, wherein the operation instruction comprises a second operation object symbol and a second operation content symbol; the command line analysis module analyzes the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information to be used for determining a primitive to be operated; the second operation content information is used for determining operation content;
and the power grid diagram processing module operates the primitives to be operated based on the operation content to obtain the power grid diagram.
Preferably, the dynamic label is a number and/or a letter;
the operation content comprises one or more of adding operation, removing and screening operation, moving operation, rotating operation, deleting operation, connecting operation and attribute editing operation.
Preferably, the operation content symbol corresponding to the filtering instruction is generated by clicking a preset first operation button.
Preferably, the command line input module receives a clearing and screening instruction, the command line analysis module analyzes the clearing and screening instruction by using the command line analysis rule, and the grid diagram processing module operates based on the analyzed clearing and screening instruction, so that the dynamic tag information is invalid, and the dynamic tag on the display interface is removed;
the clearing and screening instruction is directly input by a user or generated by clicking operation aiming at a preset second operation button.
Preferably, the operation content identifier includes one or more sub-operation content identifiers, and the sub-operation content identifiers are parsed to obtain one or more pieces of operation content sub-information included in the operation content information;
the sub-operation content character is one or more of an operation type character, a parameter type character and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value.
Preferably, the operation object character includes the dynamic label information of the primitive, and/or id information of the primitive in the power grid diagram, and/or primitive name of the primitive, and/or coordinate information; the character length of the dynamic label information is less than or equal to the character length of the id information and the primitive name;
when the display interface has the dynamic label, the operation object character comprises the dynamic label information so as to be used for determining the operation object;
the operation object symbol is directly input by a user, or the user clicks the graphic element in the display interface to automatically generate the operation object symbol.
Preferably, the graphics generation instruction is input through the command line input module;
the operation type symbol included in the graph generation instruction is a new symbol;
the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing;
the parameters included by the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameters.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, is capable of implementing the command-based interactive grid graph generation method as described above.
The invention also provides an electronic device comprising a storage medium storing a computer program which, when executed by a processor, is capable of implementing the command-based interactive grid graph generating method as described above, or the electronic device comprises a command-based interactive grid graph generating apparatus as described above.
According to the command interaction-based power grid graph generation method and device, the computer-readable storage medium and the electronic device, the primitive is screened out on the display interface through the screening instruction input based on the command line, the dynamic label information is generated for the primitive based on the preset dynamic label generation rule, the dynamic label information is displayed as the dynamic label on the display interface, when the primitive in the power grid graph is operated and processed through the operation instruction input through the command line, the primitive to be operated can be specified through the dynamic label information, the operation efficiency is improved, and especially when the same operation processing is carried out on a large number of primitives at the same time, the operation efficiency is obviously improved.
Other advantages of the present invention will be described in the detailed description, and those skilled in the art will understand the technical features and technical solutions presented in the description.
Drawings
Fig. 1 is a flowchart of a command-based interactive power grid diagram generation method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an example provided to illustrate step S100 of the command-based interactive grid map generation method according to the present invention.
Fig. 3 is a schematic diagram of a step S300 of the command-based interactive grid map generation method according to the present invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth in order to avoid obscuring the nature of the present invention, and well-known methods, procedures, and components have not been described in detail.
Furthermore, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
The embodiment of the invention provides a command interaction-based power grid diagram generation method which comprises steps S100 to S600.
Step S100 is: receiving a graph generation instruction, and generating one or more primitives in a power grid graph on a display interface based on the graph generation instruction and a preset primitive template library, wherein the primitive template library stores a plurality of primitives, and each primitive indicates one or more power devices;
step S200 is: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a first operation object character and a first operation content character, and adopting a command line analysis rule to analyze the first operation object character and the first operation content character to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining the type of the primitive to be screened by the screening operation; screening the primitive meeting the primitive type from the power grid diagram displayed on the display interface based on the first object information and the first operation content information;
step S300 is: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display boundary as a dynamic label corresponding to the screened primitive;
step S400 is: receiving an operation instruction input based on a command line to operate the power grid diagram, wherein the operation instruction comprises a second operation object character and a second operation content character; analyzing the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information to be used for determining a primitive to be operated; the second operation content information is used for determining operation content;
step S500 is: operating the graphic element to be operated based on the operation content;
step S600 is: and obtaining the power grid diagram.
Referring to fig. 1, an embodiment of the present invention provides a command-interactive-based grid map generating method for generating a grid map. Grid diagrams include, but are not limited to, substation single line diagrams, system tidal-current diagrams, and the like. The grid graph typically includes a large number of primitives, each of which represents one or more power devices.
Command-based interactive grid map generation method the method comprises steps S100 to S600 as shown in fig. 1.
As an embodiment, in step S100, a graphics generation instruction is received, and one or more primitives in a power grid diagram are generated on a display interface based on the graphics generation instruction and a preset primitive template library, where the primitive template library stores a plurality of primitives, and each primitive indicates one or more power devices.
It can be understood that a primitive template library is preset, and a plurality of primitives are arranged in the primitive template library, and each primitive indicates one or more electric devices. And a user can directly call the primitives from the primitive template library in the process of drawing the power grid diagram. The primitive sources in the primitive template library are not limited, and can be self-contained by a system executing the command-interactive power grid diagram generation method, or can be self-defined by a user, or the user can self-define on the basis of the self-contained system.
It can be understood that the primitive generation manner is not limited, and a new primitive may be generated in the display interface by executing a graphics generation instruction input by a command line, or a new primitive may be generated in the display interface by a user clicking and dragging a primitive in a primitive template library. That is, the generating manner of the graphics generating instruction may not be limited, and the graphics generating instruction may be generated by being triggered by a click and drag operation in the process of clicking and dragging the primitive to the display interface by the user, or may be input by a command line. As shown in fig. 2, as an illustration, when step S100 is executed, the primitive panel at the left end of the display interface displays the primitives in the primitive template library, and the 5 primitives shown in fig. 2 are the primitives corresponding to the generator, the line, the transformer, the bus and the load in sequence from top to bottom (part of the primitives are not shown). And a command input box is correspondingly arranged below the display interface and used for inputting instructions in a command line mode. The area where the canvas on the display interface is located is used for displaying the power grid diagram, and the graphic elements in the power grid diagram can be generated by directly dragging the graphic elements from the graphic element template library onto the canvas or generated after executing instructions in the command input box. Selecting a certain primitive in the power grid diagram, opening an attribute panel of the primitive, wherein the attribute panel is displayed at the right end of a display interface, the attribute panel can be provided with one or more sub-pages for editing and displaying primitive attributes, and the attributes include but are not limited to id information of the primitive, a primitive name and primitive coordinates (including X coordinates and Y coordinates, also called the position of the primitive), and can further include the color, line width and line type (such as solid lines or dotted lines). It is understood that the graphics-generating instruction may be triggered to be generated when a primitive in the primitive panel is clicked and dragged into the canvas area, or may be a command input in the command input box. If add trans can be input in the command input box, a transformer can be added to the current grid diagram after the command is executed.
As an embodiment, in step S200, a filtering instruction input based on a command line is received, where the filtering instruction includes a first operation object character and a first operation content character, and the first operation object character and the first operation content character are parsed by using a command line parsing rule to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining a primitive type to be screened by the screening operation; and screening the primitive meeting the primitive type from the power grid diagram displayed on the display interface based on the first object information and the first operation content information.
As an embodiment, the generation of the grid map may be controlled by means of a command line in the present invention. Analyzing the instruction input by the command line by adopting a command line analysis rule based on the fact that the instruction input by the command line comprises an operation object character and an operation content character, wherein the command line analysis rule is as follows: analyzing and obtaining object information from the operation object symbol, analyzing and obtaining operation content information from the operation content symbol, wherein the graphic element determined by the object information is an operation object corresponding to the operation content information. That is, the object information is obtained by analyzing the operation object symbol, the operation content information is obtained by analyzing the operation content symbol, the operation object symbol or object information is used for determining the operation object, the operation instruction or operation content information is used for determining the operation content, and the operation content is the operation processing performed on the operation object.
It is understood that the individual special instruction (e.g. context clear) only contains the operation content symbol, and the operation content symbol can directly determine the operation object without the user determining the operation object through the instruction.
It can be understood that, in step S200, when there are already a plurality of primitives on the display interface, all primitives in the display interface are screened out through the screening instruction input by the command line, or a part of primitives are screened out according to a certain rule.
As an embodiment, the primitive type is determined from one or more of a primitive name of the primitive, a line level to which the primitive belongs, and coordinates of the primitive.
As an embodiment, the instruction is entered in a command input box: context type = trans (the input may be simplified to a context trans); wherein trans is a primitive name corresponding to the transformer, that is, type = trans is a first operation object, context is a first operation content, and a specific operation content of the context is a screening operation. Analyzing a context type = trans instruction to obtain first object information and first operation content information; the first operation content information is screening operation, the first object information is used for determining that the type of the primitive to be screened by the screening operation is a transformer, the primitive corresponding to the transformer is screened from the primitives displayed on the display interface based on the transformer determined by the first object information and the screening operation determined by the first operation content information, and if 2 primitives corresponding to the transformer are shared in total in fig. 2, the two primitives are screened.
It is understood that the specific filtering content can be determined according to the user requirement. If the instruction is entered in the command input box: and (4) context all, wherein the first operation object symbol corresponding to the instruction is all (all primitives), the first operation content symbol is context, and all primitives in the display interface are screened out after the instruction is analyzed and executed. As another example, the instruction is entered in the command input box: and (3) a context layer = layer1, and after the instruction is analyzed and executed, the graphic elements belonging to the first line layer of the power grid diagram in the display interface are screened out. If the command is input in the command input box: and (5) context range =100, and after the instruction is analyzed and executed, all the primitives with the coordinates within the range of 100 in the display interface are screened out.
As an embodiment, the filtering instruction input by the command line may be directly input by the user, or may be partially directly input by the user, and is automatically generated after being partially triggered, for example, a plurality of first operation buttons are preset, and when a click operation for the preset first operation button is received, the first operation content symbol is automatically generated. The method specifically comprises the following steps: the first operation buttons displayed on the display interface are used for representing filtering, moving, deleting and the like, and for example, after the first operation button is clicked, a first operation content character of context is automatically generated in the command input box.
As an embodiment, in step S300, dynamic label information is generated for each screened primitive based on a preset dynamic label generation rule, and the dynamic label information is displayed on the display boundary as a dynamic label corresponding to the screened primitive.
And the preset dynamic label generating rule is used for generating unique dynamic label information for the screened primitives, so that the specific primitives can be confirmed through the dynamic label information. I.e. the dynamic label information/dynamic labels of different primitives are different.
Referring to fig. 3, taking the filtering instruction as a context trans as an example, two primitives in the display interface are selected, and the preset dynamic tag generation rule generates dynamic tag information 1 and 2, where the dynamic tag of the first transformer primitive on the display interface is (1) (or directly displays 1 or [ 1 ], etc.), and the dynamic tag of the second transformer primitive is (2) (or directly displays 2 or [ 2 ], etc.). When the primitive with the dynamic label needs to be operated subsequently, the dynamic label information can be directly referred to specify the primitive.
As a specific example, a dynamic tag generated according to the dynamic tag generation rule is not limited to a number (1, 2, 3, 4 \8230;), but may also be a letter (A, B, C, D \8230;), or a combination of letters and numbers. The dynamic labels of the two primitives as in fig. 3 may be a and B, respectively. It can be understood that the content of the dynamic tag is not limited, as long as each screened primitive can be labeled to form a unique dynamic tag, which facilitates subsequent specification of the primitive by directly referring to the dynamic tag information.
As an embodiment, the screened primitives and dynamic labels thereof in the display interface are displayed normally, and the non-selected primitives are displayed in a fading manner, so that a user can observe the screening and dynamic label generation results conveniently.
It can be understood that in steps S200, S300, a context mechanism and a dynamic annotation mechanism are adopted: in S200, a context mechanism is used to define a context range (a range of the reducible object), and in the context range, a piece of dynamic tag information is given to the object located in the context range and is displayed in the display interface. The object may then be directly referenced with the dynamic tag information.
As an embodiment, in step S400, an operation instruction input based on a command line is received to operate the power grid diagram, where the operation instruction includes a second operation object character and a second operation content character; analyzing the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information and is used for determining a primitive to be operated; the second operation content information is used for determining operation content.
It can be understood that when a primitive with a dynamic tag in a display interface needs to be operated, the primitive can be directly specified by inputting the dynamic tag information thereof through an instruction, and then a user does not need to perform selection operation and the like on the display interface, thereby greatly improving the operation efficiency. If the operation instruction is input in the command input box: move $1 pos = (100, 80), where $1 is the second operation object character and move, pos = (100, 80) is the second operation content character. "$1" and the second object information obtained after the analysis are used for designating the primitive with the dynamic label "1" as the primitive to be operated, and move, pos = (100, 80) and the second operation content information obtained after the analysis are used for determining that the operation content moves to the position with the coordinates of (100, 80).
When the display interface has a dynamic label and an operation needs to be performed on the primitive with the dynamic label, the operation object character contains dynamic label information for determining the operation object. It is understood that the operation object symbol is not limited to only the dynamic tag information, and there may be other information for determining the operation object, such as id information of a primitive in the grid graph, a primitive name, coordinate information, and the like. Each primitive in the grid map may be provided with id information (since the number of power devices in the grid map is large, the id information is generally long, for example 12345), and the id information may be set from its attribute panel, and a specific primitive may be determined by using the id information. If the operand includes id =12345, it may be determined that the operand determined after the operand is parsed is the primitive with id 12345. Each primitive in the preset primitive template library has a preset primitive name, and when the operation object symbol includes the primitive name, the operation object is determined, for example, the operation object symbol includes trans (transformer), and the operation object is a transformer primitive. The primitive name may also open the property panel for editing. If range =100 is included in the operand, the operand is a primitive whose coordinates (X, Y) are within 100.
As an embodiment, the character length of the dynamic label information is smaller than or equal to the character length of the id information and the primitive name. Thus, the input operation can be simplified, and the operation efficiency can be improved. The character length refers to a number of words that contain independent words. For example, the character length of the dynamic label 1 is 1, the character length of the id information 12345 is 5, and the character length of the primitive name trans is 5.
As an embodiment, the operation object symbol is directly input by a user, or the user clicks the graphic element in the display interface to automatically generate the operation object symbol. For example, when a transformer primitive is already present on the display interface, in a state where an instruction is input, when the transformer primitive is clicked on the display interface, the operation object symbol trans is automatically generated in the command input box.
As an embodiment, in step S500, the primitive to be operated is operated based on the operation content determined in step S400.
The example explanation is continued with an operation instruction move $1 pos = (100, 80) being input in the command input box. And moving the primitive with the dynamic label of 1 determined by the second object information, if the primitive with the dynamic label of 1 is a transformer, after the operation instruction is executed, moving the transformer primitive to the coordinates (100, 80). When the primitives corresponding to the two transformers in fig. 3 need to be moved to the position of the coordinate y =80 at the same time, the operation instruction is directly input in the command input box: move $1, $2 y =80 can realize the operation to two transformers, greatly improve the operating efficiency to the primitive.
The operation content includes one or more of an addition operation, a removal filtering operation, a moving operation, a rotating operation, a deleting operation, a connecting operation and an attribute editing operation.
As an embodiment, in step S600, the grid map is obtained. It is understood that the grid map obtained in step S600 is the grid map required by the end user, and may be stored and read in a certain format for easy presentation in a system (e.g., a monitoring system) or for re-editing.
It is understood that after the steps S100 to S500 are performed, S100 to S500 may be repeatedly performed, or S200 to S500 may be repeatedly performed before the grid map finally required by the user is obtained. As long as the primitive exists on the display interface, the existing primitive may be operated through steps S200 to S500, where the operation includes, but is not limited to, one or more of an adding operation, a filtering operation, a clearing filtering operation, a moving operation, a rotating operation, a deleting operation, and a connecting operation. After the step S500 is finished, the step S100 may be executed again to continue adding the primitive and the like on the display interface.
It can be understood that the command interactive grid map generating method provided by the present invention may be executed by one or more systems, for example, one system executes step S100 to obtain a complete or incomplete grid map, and another system executes steps S100 to S600 to obtain a grid map required by a user.
As an embodiment, after step S500, the method further includes step S501: receiving a clearing and screening instruction, analyzing and executing the clearing and screening instruction, wherein the dynamic label information is invalid, and the dynamic label on the display interface is cleared; the clearing and screening instruction is directly input by a user in a command line mode or generated by clicking operation aiming at a preset second operation button.
It can be understood that when the dynamic label information generated by the primitive is no longer needed to be used in the subsequent operation, the dynamic label can be selected to be removed, which is convenient for the user to generate the dynamic label information for another primitive and also prevents the inconvenience in use caused by too much dynamic label number in the display interface. If a clear filter instruction is entered in the command input box: context clear, the system executing the method of the present invention defaults to clear the primitives to be operated determined by the object information in the screening instruction to all the primitives currently having dynamic tag information. Thus, the instruction may include only the operand, and no operand. After the instruction is executed, all dynamic label information is invalidated, and the dynamic labels on the display interface are cleared. Alternatively, the user may not process the dynamic label information and the dynamic label, and when the user generates the dynamic label information for a new primitive, the dynamic label generation rule ensures that the dynamic label information is not repeated.
As an embodiment, the clear filtering instruction is directly input by the user in a command line manner, or is generated by a click operation on a preset second operation button. If a second operation button is clicked, an instruction is automatically generated: context clear.
As an embodiment, the operation content in the operation content symbol may be one or more items, and correspondingly, the operation content symbol includes one or more sub-operation content symbols, and the sub-operation content symbols obtain one or more pieces of operation content sub-information included in the operation content information after parsing; the sub-operation content character is one or more of an operation type character, a parameter type character and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value.
For example:
instruction 1: move id =12345 pos = (200,300);
instruction 2: set $2, $3 x=200 color = red;
instruction 3: add trans pos =200,500 × 3 offset =50,0;
id =12345 in instruction 1 is an operation object character, and move, pos = (200, 300) is an operation content character, where "move", "pos = (200, 300)" are all sub-operation content characters; "move" is an operation type symbol, "pos" is a parameter type symbol (position in attribute), "(200, 300)" is a parameter. After the analysis, the operation content sub-information is obtained, wherein the operation type is movement processing, the parameter type is position, the parameter value is X =200, and y =300. After instruction 1 parses and executes, the primitive with id 12345 moves to the coordinates (200, 300).
In the instruction 2, "$2, $3" is an operation object symbol, and set, color = red are operation content symbols, where "set", "color = red" are sub-operation content symbols; "set" is an operation type character, "color" is a parameter type character (color in an attribute), and "red" is a parameter. After analysis, the operation content sub-information is obtained, wherein the operation type is attribute editing (coloring), the parameter type is color, and the parameter value is red (red). And after the instruction 2 is analyzed and executed, the colors of the primitives with the dynamic labels of 2 and 3 are set to be red.
"trans" in instruction 3 is an operation object symbol, add, pos =200,500 × 3 offset =50,0 is an operation content symbol, where "add", "pos =200,500", "× 3", "offset =50,0" is a sub-operation content symbol; "add" is the operation type symbol, "pos" is the parameter type symbol, "200, 500" is the parameter; "+" is parameter type symbol, "3" is parameter (batch operator); "offset" is a parameter type indicator and "50,0" is a parameter (batch shift parameter). "x" and "offset" occur simultaneously, indicating that the parameter type is batch processing. "x3" is a repetition operator, indicating that 3 transformers (trans) are to be added (add); the repeated iteration parameter is offset =50,0, indicating that for each new transformer the X-coordinate is increased by 50. After instruction 3 is parsed and executed, 3 transformers are added, the first transformer being set at coordinates (200, 500), and the X coordinate of each added transformer is increased by 50.
It will be appreciated that when a primitive is moved, the connection line (representing the connection between two electrical devices) between the primitive and other primitives automatically adjusts, such as the connection line is lengthened or shortened, but the connection relationship remains unchanged. The connection relation between the primitives can also be adjusted through the primitives, for example, the link 101 is analyzed and executed, 1, the second end of the primitive with id information or dynamic label information of 101 is connected with the first end of the primitive with id information or dynamic label information of 102.
As an embodiment, when one or more of the dynamic tag information, the id information, the primitive name, and the coordinate information are connected according to a preset string symbol to form the operation object, the operation object is analyzed to obtain the object information corresponding to a plurality of primitives connected according to a preset string rule. For example, add jl > sw > cb > sw > jl, "jl > sw > cb > sw > jl" is input into the command input box as an operation object symbol, and ">" is a preset group string symbol and indicates that two primitives before and after the operation object symbol are connected to form a combination, and "jl > sw > cb > sw > jl" indicates that a connecting line-disconnecting link-connecting link form a combination, and the connecting line-disconnecting link form a whole to be added into the power grid diagram. Therefore, the primitive can be added rapidly, and the generation efficiency of the power grid diagram is improved.
As an embodiment, the sub-operation content symbol includes an operation type symbol and/or a parameter type symbol, for example, when the sub-operation content symbol includes the operation type symbol and the parameter type symbol, before parsing the operation content symbol, the operation type symbol is converted into an operation type complete symbol according to a preset instruction mapping table, and the parameter type symbol is converted into a parameter type complete symbol according to the instruction mapping table; the operation type character length is shorter than the character length of the operation type complete character, and the parameter type character length is shorter than the character length of the operation type complete character; and the operation content information is obtained by analyzing the operation type complete character and the parameter type complete character by adopting the command line analysis rule.
It is understood that, in order to simplify the input operation of the user, the operation type, the parameter type, and the like may be input in a simplified manner without conflict. For example, the select instruction can be simplified to s with a shorter character length, and the color can be simplified to cl with a shorter character length, so that the operation difficulty is reduced, and the operation efficiency is improved. For example, the select instruction is simplified to s, the instruction including "s" is converted into an operation type complete character "select" through the instruction mapping table before parsing, and the command line parsing rule parses the "select". As another example, red may also be denoted by hong, which may assist people who are not English.
As an embodiment, the command line parsing rule includes: and analyzing and obtaining another part of the sub-operation content symbols according to part of the sub-operation content symbols in the operation content symbols, or analyzing and obtaining the operation content sub-information corresponding to another part of the sub-operation content symbols. If the sub-operation content symbol in the command contains "red", the corresponding sub-operation content symbol inevitably comprises "color", and at this time, the user does not need to input the sub-operation content symbol of "color", and the system for realizing the method of the present invention can automatically infer that the sub-information of the operation content comprises "color" according to the sub-information of the operation content of "red".
As one example, the graphics-generating instructions are input by way of a command line.
As an embodiment, the operation type identifier included in the graphics generation instruction is a new addition identifier; the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing; the parameters included in the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameter values.
It is understood that the attributes include one or more of id information, primitive name and primitive coordinates (positions), color, line width, line type, etc. of the primitive. Therefore, the attributes of the primitives can be set through the graphics generation instruction. The attribute parameters correspondingly comprise id codes, specific primitive names, position parameters, specific colors, line width values, specific line types and the like.
For example, the graphics-generating instruction is add trans pos =200,500 × 3 offset =50,0; in the instruction, the parameter types comprise position and batch processing, and the parameters comprise position parameters, batch operators and batch displacement parameters. For another example, the graphics generation command is add $2, $3 color = red; in the instruction, the parameter type is attribute (color), and the parameter is attribute parameter (specific color: red).
As an embodiment, when the graphics generating instruction does not include the position parameter, that is, when the graphics generating instruction cannot determine the position of the primitive determined by the operation object symbol, the primitive corresponding to the operation object symbol is automatically connected to a newly added primitive.
As an embodiment, when the command line input is detected, the command line is analyzed in real time by using the command line analysis rule, and the real-time execution is performed, and the execution result is fed back to the display interface. For example, move $1 pos = (200, 300), which means moving the primitive whose dynamic label information is 1 to the coordinates (200, 300). When input to 200, the primitive is already shown at X =200, and then input 300, the primitive moves in the Y direction to 300.
The command interaction-based power grid graph generation method screens out the primitives on the display interface through the screening command input based on the command line, generates dynamic label information for the primitives based on the preset dynamic label generation rule, displays the dynamic label information as the dynamic label on the display interface, and specifies the primitives to be operated through the dynamic label information when the primitives in the power grid graph are operated and processed through the operation command input through the command line subsequently, so that the operation efficiency can be improved, and especially when the same operation processing is performed on a large number of primitives simultaneously, the operation efficiency is obviously improved.
The invention also provides a command interaction-based power grid diagram generation device, which comprises a primitive template library module, a command line input module, a command line analysis module, a dynamic label generation module and a power grid diagram processing module, wherein the primitive template library module is used for storing a primitive template library, the primitive template library comprises a plurality of primitives, and each primitive indicates one or more power devices. The command line input module is used for inputting instructions in a command line mode; wherein the instruction comprises an operation content character or comprises an operation object character and an operation content character. The command line analysis module is used for analyzing the command by adopting a command line analysis rule; the operation object character is analyzed to obtain object information, and the operation content character is analyzed to obtain operation content information; and the graphic element determined by the object information is an operation object corresponding to the operation content information. And the dynamic label generation module is used for generating dynamic label information for the primitive based on a preset dynamic label generation rule. And the power grid graph processing module is used for operating the primitives to generate a power grid graph.
The power grid diagram processing module generates one or more primitives in the power grid diagram on a display interface based on a diagram generation instruction and the primitive template library.
The command line input module receives a screening instruction, and the command line analysis module analyzes the screening instruction by adopting the command line analysis rule to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining a primitive type to be screened by the screening operation; and the power grid graph processing module screens the primitives which accord with the primitive types from the power grid graph displayed on the display interface based on the first object information and the first operation content information.
And the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed as a dynamic label corresponding to the screened primitive on the display boundary.
The command line input module receives an operation instruction, wherein the operation instruction comprises a second operation object symbol and a second operation content symbol; the command line analysis module analyzes the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information and is used for determining a primitive to be operated; the second operation content information is used for determining operation content.
And the power grid diagram processing module operates the primitives to be operated based on the operation content to obtain the power grid diagram.
As an example, the dynamic label is a number and/or a letter;
the operation content comprises one or more of an adding operation, a clearing and screening operation, a moving operation, a rotating operation, a deleting operation, a connecting operation and an attribute editing operation.
As an embodiment, the operation content symbol corresponding to the filtering instruction is generated by clicking a preset first operation button.
As an embodiment, the command line input module receives a clearing and screening instruction, the command line parsing module parses the clearing and screening instruction by using the command line parsing rule, and the grid diagram processing module operates based on the parsed clearing and screening instruction, so that the dynamic tag information is invalid, and the dynamic tag on the display interface is removed.
As an embodiment, the clear filtering instruction is directly input by the user or generated by a click operation on a preset second operation button.
As an embodiment, the operation content identifier includes one or more sub-operation content identifiers, and the sub-operation content identifiers are parsed to obtain one or more pieces of operation content sub-information included in the operation content information; the sub-operation content character is one or more of an operation type character, a parameter type character and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value.
As an embodiment, the operation object symbol includes the dynamic label information of the primitive, and/or id information of the primitive in the power grid diagram, and/or primitive names of the primitives in the primitive template library, and/or primitive names of the primitives, and/or coordinate information; the character length of the dynamic label information is less than or equal to the character length of the id information and the primitive name;
when the display interface has the dynamic label, the operation object character contains the dynamic label information to be used for determining the operation object.
In an embodiment, the operation object symbol is directly input by a user, or the user clicks the primitive in the display interface to automatically generate the operation object symbol.
In one embodiment, the graphics-generating instruction is input via the command-line input module. The operation type symbol included in the graph generation instruction is a new symbol; the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing; the parameters included in the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameters.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the above-mentioned command-based interactive power grid diagram generation method.
An embodiment of the present invention further provides an electronic device, which includes a storage medium storing a computer program, and the computer program, when executed by a processor, can implement the above-mentioned command-interaction-based power grid diagram generation method, or the electronic device includes the above-mentioned command-interaction-based power grid diagram generation apparatus.
Furthermore, the present invention also provides a computer readable storage medium, such as a chip, an optical disc, etc., on which an execution program is stored, the execution program implementing the method according to any one of the above when executed.
It should be noted that the computer-readable storage medium according to the embodiments of the present disclosure is not limited to the above-mentioned embodiments, and may be, for example, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict. The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures, for example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The numbering of the steps herein is for convenience of description and reference only and is not intended to limit the order of execution, the specific order of execution being determined by the technology itself, and one skilled in the art can determine various permissible and reasonable orders based on the technology itself.
It should be noted that step numbers (letter or number numbers) are used to refer to some specific method steps in the present invention only for the purpose of convenience and brevity of description, and the order of the method steps is not limited by letters or numbers in any way. It will be clear to a person skilled in the art that the order of the steps of the method concerned, which is to be determined by the technique itself, should not be unduly limited by the presence of step numbers, and that a person skilled in the art can determine various permissible and reasonable orders of steps in accordance with the technique itself.
It will be appreciated by those skilled in the art that the above-described preferred embodiments may be freely combined, superimposed, without conflict.
It will be understood that the embodiments described above are illustrative only and not restrictive, and that various obvious and equivalent modifications and substitutions for details described herein may be made by those skilled in the art without departing from the basic principles of the invention.

Claims (24)

1. A command-based interactive power grid map generation method is characterized by comprising the following steps:
s100: receiving a graph generation instruction, and generating one or more primitives in a power grid graph on a display interface based on the graph generation instruction and a preset primitive template library, wherein the primitive template library stores a plurality of primitives, and each primitive indicates one or more power devices;
s200: receiving a screening instruction input based on a command line, wherein the screening instruction comprises a first operation object character and a first operation content character, and adopting a command line analysis rule to analyze the first operation object character and the first operation content character to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining the type of the primitive to be screened by the screening operation; screening the graphic elements which accord with the graphic element types from the power grid diagram displayed on the display interface based on the first object information and the first operation content information;
s300: generating dynamic label information for each screened primitive based on a preset dynamic label generation rule, wherein the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
s400: receiving an operation instruction input based on a command line to operate the power grid diagram, wherein the operation instruction comprises a second operation object character and a second operation content character; analyzing the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information to be used for determining a primitive to be operated; the second operation content information is used for determining operation content;
s500: operating the graphic element to be operated based on the operation content;
s600: and obtaining the power grid diagram.
2. The command-based interactive grid graph generation method according to claim 1, wherein the dynamic labels are numbers and/or letters.
3. The command-based interactive grid map generating method according to claim 1, wherein in step S200, a click operation for a preset first operation button is received, and the first operation content indicator is generated.
4. The command-interactive-based power grid graph generating method according to claim 1, wherein the primitive type is determined according to one or more of a primitive name of the primitive, a line layer to which the primitive belongs, and coordinates of the primitive.
5. The command-based interactive grid map generating method according to claim 1, further comprising, after step S500, step S501: receiving a clearing and screening instruction, analyzing and executing the clearing and screening instruction, wherein the dynamic label information is invalid, and the dynamic label on the display interface is cleared;
the clearing and screening instruction is directly input by a user in a command line mode or generated by clicking operation aiming at a preset second operation button.
6. The command-based interactive grid graph generating method according to claim 1, wherein the operation content comprises one or more of an addition operation, a removal filtering operation, a moving operation, a rotating operation, a deleting operation, a connecting operation and an attribute editing operation.
7. The command-based interactive power grid diagram generation method of claim 1, wherein the command-line-input-based instruction comprises an operation object character and an operation content character;
the command line analysis rule is as follows: analyzing and obtaining object information from the operation object symbol, analyzing and obtaining operation content information from the operation content symbol, wherein the graphic element determined by the object information is an operation object corresponding to the operation content information;
the operation content character comprises one or more sub-operation content characters, and the sub-operation content characters are analyzed to obtain one or more pieces of operation content sub-information included in the operation content information; the sub-operation content symbol is one or more of an operation type symbol, a parameter type symbol and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value correspondingly;
when the display interface has the dynamic label, the operation object character comprises the dynamic label information so as to be used for determining the operation object.
8. The command-interactive-based power grid graph generation method according to claim 7, wherein the operation object symbol comprises the dynamic label information of the primitive, and/or id information of the primitive in the power grid graph, and/or primitive name and/or coordinate information of the primitive; the character length of the dynamic label information is less than or equal to the character length of the id information and the primitive name;
the operation object symbol is directly input by a user or automatically generated by clicking the graphic element in the display interface by the user.
9. The command-interaction-based power grid map generating method according to claim 8, wherein when one or more of the dynamic tag information, the id information, the primitive name, and the coordinate information are connected according to a preset string symbol to form the operation object, the operation object is analyzed to obtain the object information corresponding to a plurality of primitives connected according to a preset string rule.
10. The command-based interactive grid diagram generation method according to claim 9, wherein the sub-operation content character comprises the operation type character and/or the parameter type character;
before the operation content symbol is analyzed, the operation type symbol is converted into an operation type complete symbol according to a preset instruction mapping table, and/or the parameter type symbol is converted into a parameter type complete symbol according to the instruction mapping table; the operation type character length is shorter than the character length of the operation type complete character, and the parameter type character length is shorter than the character length of the operation type complete character;
the operation content information is obtained by analyzing the operation type complete character and/or the parameter type complete character by adopting the command line analysis rule.
11. The command-interactive-based grid graph generating method according to claim 7, wherein the command line parsing rule comprises: and analyzing and obtaining another part of the sub-operation content characters according to part of the sub-operation content characters in the operation content characters, or analyzing and obtaining the operation content sub-information corresponding to another part of the sub-operation content characters.
12. A command-based interactive grid graph generating method according to any one of claims 7-11, wherein said graph generating command is a command line input-based command.
13. The command-based interactive grid graph generating method according to claim 12, wherein the graph generating instruction comprises the operation type indicator being a new indicator;
the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing;
the parameters included in the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameters.
14. The command-based interactive power grid map generating method of claim 12, wherein when the primitive position determined by the operand cannot be determined according to the map generating command, the primitive is automatically connected to a newly added primitive.
15. The command-based interactive power grid diagram generation method according to claim 7, wherein the command input based on the command line is parsed and executed in real time, and the execution result is fed back to the display interface.
16. An interactive command-based grid map generation apparatus, comprising:
the primitive template library module is used for storing a primitive template library, the primitive template library comprises a plurality of primitives, and each primitive indicates one or more power devices;
the command line input module is used for inputting instructions in a command line mode; wherein the instruction comprises an operation content symbol or comprises an operation object symbol and an operation content symbol;
the command line analysis module is used for analyzing the command by adopting a command line analysis rule; the operation object character is analyzed to obtain object information, and the operation content character is analyzed to obtain operation content information; the graphic element determined by the object information is an operation object corresponding to the operation content information;
the dynamic label generation module is used for generating dynamic label information for the graphic primitive based on a preset dynamic label generation rule;
the power grid graph processing module is used for operating the primitives to generate a power grid graph;
the power grid diagram processing module generates one or more primitives in the power grid diagram on a display interface based on a graphic generation instruction and the primitive template library;
the command line input module receives a screening instruction, and the command line analysis module analyzes the screening instruction by adopting the command line analysis rule to obtain first object information and first operation content information; the first operation content information determines that a screening operation is performed on the first object information, and the first object information is used for determining a primitive type to be screened by the screening operation; the power grid diagram processing module screens the primitives which accord with the primitive types from the power grid diagram displayed on the display interface based on the first object information and the first operation content information;
the dynamic label generating module generates dynamic label information for each screened primitive, and the dynamic label information is displayed on the display interface as a dynamic label corresponding to the screened primitive;
the command line input module receives an operation instruction, wherein the operation instruction comprises a second operation object symbol and a second operation content symbol; the command line analysis module analyzes the second operation object symbol and the second operation content symbol by adopting the command line analysis rule to obtain second object information and second operation content information; the second operation object character comprises the dynamic label information to be used for determining a primitive to be operated; the second operation content information is used for determining operation content;
and the power grid diagram processing module operates the primitives to be operated based on the operation content to obtain the power grid diagram.
17. The command-based interactive grid diagram generating device according to claim 16, wherein the dynamic labels are numbers and/or letters;
the operation content comprises one or more of adding operation, removing and screening operation, moving operation, rotating operation, deleting operation, connecting operation and attribute editing operation.
18. The command-based interactive grid map generating device according to claim 16, wherein the operation content symbol corresponding to the filtering instruction is generated by clicking a preset first operation button.
19. The command-interactive-based grid diagram generating device according to claim 16, wherein the command line input module receives a clear-filtering command, the command line parsing module parses the clear-filtering command using the command line parsing rule, and the grid diagram processing module operates based on the parsed clear-filtering command, so that the dynamic tag information is disabled and the dynamic tag on the display interface is removed;
the clearing and screening instruction is directly input by a user or generated by clicking operation aiming at a preset second operation button.
20. The interactive command-based grid map generating apparatus according to claim 16, wherein the operation content identifier comprises one or more sub-operation content identifiers, and the sub-operation content identifiers are parsed to obtain one or more pieces of operation content sub-information included in the operation content information;
the sub-operation content symbol is one or more of an operation type symbol, a parameter type symbol and a parameter, and the operation content sub-information is one or more of an operation type, a parameter type and a parameter value.
21. The command-interactive-based power grid map generating apparatus according to claim 16, wherein the operation object symbols comprise the dynamic label information of the primitive, and/or id information of the primitive in the power grid map, and/or primitive name of the primitive, and/or coordinate information; the character length of the dynamic label information is less than or equal to the character length of the id information and the primitive name;
when the display interface has the dynamic label, the operation object character comprises the dynamic label information so as to be used for determining the operation object;
the operation object symbol is directly input by a user, or the user clicks the graphic element in the display interface to automatically generate the operation object symbol.
22. The command-based interactive grid graph generating device according to claim 20, wherein the graph generating command is input through the command line input module;
the operation type symbol included in the graph generation instruction is a new symbol;
the parameter type symbol included by the graph generation instruction is one or more of attribute and batch processing;
the parameters included in the graph generation instruction are one or more of attribute parameters, batch operators and batch displacement parameters.
23. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, is able to carry out a method for command-based interactive grid graph generation according to any one of claims 1 to 15.
24. An electronic apparatus comprising a storage medium storing a computer program, characterized in that: the computer program is capable of implementing a command-interactive-based grid graph generating method according to any one of claims 1 to 15 when executed by a processor, or the electronic device comprises a command-interactive-based grid graph generating apparatus according to any one of claims 16 to 22.
CN202211366193.3A 2022-11-03 2022-11-03 Command interaction-based power grid diagram generation method, device, medium and equipment Active CN115526015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211366193.3A CN115526015B (en) 2022-11-03 2022-11-03 Command interaction-based power grid diagram generation method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211366193.3A CN115526015B (en) 2022-11-03 2022-11-03 Command interaction-based power grid diagram generation method, device, medium and equipment

Publications (2)

Publication Number Publication Date
CN115526015A CN115526015A (en) 2022-12-27
CN115526015B true CN115526015B (en) 2023-02-03

Family

ID=84703544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211366193.3A Active CN115526015B (en) 2022-11-03 2022-11-03 Command interaction-based power grid diagram generation method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN115526015B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116050036B (en) * 2023-01-09 2023-06-13 北京国科恒通科技股份有限公司 Power grid diagram construction method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412744A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for showing summarized information of power station primitives
CN103412981A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for displaying comprehensive information of transformer substation graphics primitives
CN104615733A (en) * 2015-02-10 2015-05-13 国家电网公司 Image data generation method and device
CN105138793A (en) * 2015-09-11 2015-12-09 国网山东庆云县供电公司 Rapid distribution line drawing method
US20160003920A1 (en) * 2013-02-06 2016-01-07 Schneider Electric Usa. Inc. Generating one-line electrical network diagrams
CN110321542A (en) * 2019-06-28 2019-10-11 中国水电顾问集团贵阳勘测设计研究院岩土工程有限公司 A method of CAD order batch, which is edited, using excel draws prospecting graph
WO2022166562A1 (en) * 2021-02-08 2022-08-11 陈龙雨 Modeling analysis method for device management network, and network model updating method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160003920A1 (en) * 2013-02-06 2016-01-07 Schneider Electric Usa. Inc. Generating one-line electrical network diagrams
CN103412744A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for showing summarized information of power station primitives
CN103412981A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for displaying comprehensive information of transformer substation graphics primitives
CN104615733A (en) * 2015-02-10 2015-05-13 国家电网公司 Image data generation method and device
CN105138793A (en) * 2015-09-11 2015-12-09 国网山东庆云县供电公司 Rapid distribution line drawing method
CN110321542A (en) * 2019-06-28 2019-10-11 中国水电顾问集团贵阳勘测设计研究院岩土工程有限公司 A method of CAD order batch, which is edited, using excel draws prospecting graph
WO2022166562A1 (en) * 2021-02-08 2022-08-11 陈龙雨 Modeling analysis method for device management network, and network model updating method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
交互式图形系统IGS功能及实现;卢承川 等;《河海大学学报(自然科学版)》;19900131;第18卷(第1期);第83-88页 *
可视化配电网工程图管理系统的设计实现;李丽 等;《武汉工业学院学报》;20050630;第24卷(第2期);第8-11页 *

Also Published As

Publication number Publication date
CN115526015A (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CA2795367C (en) Spin control user interface for selecting options
US5555357A (en) Computer system and method for generating and manipulating charts and diagrams
US9182948B1 (en) Method and system for navigating hierarchical levels using graphical previews
EP0194442B1 (en) Method for manipulation of graphic sub-objects in an interactive draw graphic system
JP3441309B2 (en) How to display functional objects in graphical programming
JPH0355848B2 (en)
JPS61229168A (en) Generation of graph using computer
CN115526015B (en) Command interaction-based power grid diagram generation method, device, medium and equipment
JPH0443465A (en) Graphic editing device
CN113468261B (en) Method and system for constructing entity relationship of Internet of things based on graphic editing engine
JPH0816824A (en) Three-dimensional computer aided design device/method
CN113885766B (en) Method and device for displaying organization structure diagram, storage medium and terminal equipment
Eckstein et al. Interactive data inspection and program development for computer vision
CN116050036B (en) Power grid diagram construction method, device and equipment
JP3015230B2 (en) Display area designation device
JPS6330976A (en) Macrocommand editing system
JP3615230B2 (en) CAD system
CN115407907A (en) Tool path diagram interaction method and device based on 3D display
CN116702912A (en) Quantum circuit editing method, device, equipment and medium
JPH07200226A (en) Visualizing device for operation string
JPS63285675A (en) Graphic processing system
JPH09153101A (en) Data analyzing method based upon displayed graph
CN117331544A (en) Graphic modeling method and system for interactive general simulation platform of power system
JPH025177A (en) Document logical structure editor
CN115543520A (en) Method and device for drawing service panoramic image, storage medium and computer 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