Disclosure of Invention
The embodiment of the invention solves the problem of low efficiency of adjusting the station room in the graph adjustment of the power grid thematic map.
One of the purposes of the invention is to provide a brand-new station house adjusting method, which comprises the following steps: determining a station room to be adjusted in the graph; analyzing the directly connected neighbor branch of the station house in the graph, and determining the power supply and receiving relation with the neighbor branch; selecting and recording the power receiving neighbor branch; moving the station house and calculating the offset of station house movement; the same offset is applied to the recorded powered neighbor branches and wires.
One of the objects of the present invention is to provide a new station house adjusting device, which comprises:
a user input-output unit: the mobile terminal is used for receiving input of a user, such as selecting a station house, a mobile station house and the like, and outputting a mobile result to the user;
station room selection unit: the system comprises a control unit, a display unit, a position adjusting unit and a display unit, wherein the control unit is used for receiving a station room selection instruction of a user input/output unit and finishing the selection of a station room of which the position is to be adjusted;
a topology analysis unit: neighbor branches for analyzing station houses directly connected;
a power supply and reception relationship analysis unit: and the topology analysis unit is used for receiving the results of the topology analysis unit and analyzing the power supply neighbor branch and the power receiving neighbor branch which should move synchronously according to the relationship between each neighbor branch and the power supply.
Recording powered neighbor branch units: receiving the result of the power supply and reception relation analysis unit and recording the power supply neighbor branch;
station house mobile unit: receiving a station house moving instruction of a user input and output unit, and completing the movement of the station house; and after the station house is moved, calculating the station house offset, applying the station house offset to the recorded power receiving neighbor branch and the recorded connecting line, and completing the synchronous movement of the power receiving neighbor branch.
The invention solves the problem of low efficiency of adjusting the station house of the thematic map of the power system. The beneficial effects are as follows:
the efficiency of station room position adjustment is improved, and the power receiving neighbor branch can be adjusted along with the station room position adjustment, so that most of the station room adjustment scenes are met.
Detailed Description
The technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying 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 of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a flowchart of a station room adjusting method according to an embodiment of the present invention, which includes:
step S10: selecting a station house to be adjusted;
step S20: analyzing the directly connected neighbor branches of the station house and the power supply receiving relation;
step S30: selecting and recording the power receiving neighbor branch;
step S40: moving the station house and calculating the offset of station house movement;
step S50: the same offset is applied to the recorded powered neighbor branches and wires.
Preferably, step S20 includes: and traversing the neighbor nodes of the station house in a wide range, and traversing the branch by taking each neighbor node as a root node to obtain a neighbor branch set.
Preferably, step S30 includes: analyzing the neighbor branch set obtained in step S20, and screening out the neighbor branches to be moved from the neighbor branch set, wherein the screening rule is as follows: the branch does not contain a power supply, the branch does not form a loop with another branch, and the branch is not a power supply backbone path in the figure. And after the branch screening is finished, recording all nodes, connection positions and connection information of the branches. Obviously, the rules of branch filtering here can be defined separately to adapt to different scenarios.
Preferably, step S40 includes: when the station house movement starts, the initial coordinates (x 0, y 0) are recorded, when the station house movement ends, the stop coordinates (x 1, y 1) are recorded, and the movement offset (dx, dy) is calculated. Wherein dx = x1-x 0; dy = y1-y 0.
Preferably, step S50 includes: the nodes and links of all branches are taken from the result set of step S30, and the saved positions are taken one by one, and the original position of each node is assumed to be (Xn, Yn), and the new position is assumed to be (Xm, Ym). Then:
Xm=Xn+dx;
Ym=Ym+dy;
fig. 2 shows a schematic diagram of a station room adjusting device for an electric power thematic map, which comprises:
user input-output unit 10: the mobile terminal is used for receiving input of a user, such as selecting a station house, a mobile station house and the like, and outputting a mobile result to the user;
station room selecting unit 20: the system comprises a control unit, a display unit, a position adjusting unit and a display unit, wherein the control unit is used for receiving a station room selection instruction of a user input/output unit and finishing the selection of a station room of which the position is to be adjusted;
the topology analyzing unit 30: neighbor branches for analyzing station houses directly connected;
power supply and reception relationship analysis unit 40: and the topology analysis unit is used for receiving the results of the topology analysis unit and analyzing the power supply neighbor branch and the power receiving neighbor branch which should move synchronously according to the relationship between each neighbor branch and the power supply.
Record powered neighbor branch unit 50: receiving the result of the power supply and reception relation analysis unit and recording the power supply neighbor branch;
station house moving unit 60: receiving a station house moving instruction of a user input and output unit, and completing the movement of the station house; and after the station house is moved, calculating the station house offset, applying the station house offset to the recorded power receiving neighbor branch and the recorded connecting line, and completing the synchronous movement of the power receiving neighbor branch.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or they may be separately fabricated into various integrated circuit modules, or multiple modules or steps thereof may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.