Distributed graphic version management system and method suitable for network

文档序号:1889347 发布日期:2021-11-26 浏览:14次 中文

阅读说明:本技术 适用于网络的分布式图形版本管理系统及方法 (Distributed graphic version management system and method suitable for network ) 是由 吕培森 王旭阳 沙莎 岳伟瑞 马德超 鲍雄伟 李蒙 杨永涛 严振 周养浩 许花 于 2021-08-09 设计创作,主要内容包括:本发明公开了一种适用于网络的分布式图形版本管理方法,图形浏览和图形编辑;所述图形浏览具体为:当用户需要调阅指定图形时,若图形客户端和图形文件服务器均存在该图形文件,则图形浏览模块从图形客户端和图形文件服务器分别获取该图形的文件,打开二者版本较新的那个文件进行展示;若该图形文件仅存在于图形客户端或者图形文件服务器则直接打开该图形文件进行展示;所述图形编辑具体为:当用户需要编辑指定图形时,若图形客户端和图形文件服务器均存在该图形文件,则图形编辑模块对存在于图形客户端和图形文件服务器的图形文件版本进行比较,根据用户选择打开相应的图形文件进行编辑,相较于现有技术,本发明更加安全高效。(The invention discloses a distributed graph version management method suitable for a network, which comprises the steps of graph browsing and graph editing; the graphic browsing specifically comprises: when a user needs to retrieve a specified graph, if the graph client and the graph file server both have the graph file, the graph browsing module respectively acquires the file of the graph from the graph client and the graph file server, and opens the file with the newer version of the two for displaying; if the graphic file only exists in the graphic client or the graphic file server, directly opening the graphic file for displaying; the graph editing specifically comprises the following steps: when a user needs to edit a specified graph, if the graph file exists in both the graph client and the graph file server, the graph editing module compares the versions of the graph file existing in the graph client and the graph file server, and opens the corresponding graph file for editing according to the selection of the user.)

1. A distributed graphics version management system adapted for use with a network, comprising:

the graph client is used for browsing and editing the graph;

the image file server is used for sharing and storing image files;

and the image file server performs distributed deployment.

2. The distributed graph version management method applicable to the network according to claim 1, wherein the graph client comprises:

the figure browsing module is used for browsing figures;

and the graph editing module is used for editing the graph.

3. A distributed graphics version management method for a network, comprising:

browsing and editing graphs;

the graphic browsing specifically comprises: when a user needs to retrieve a specified graph, if the graph client and the graph file server both have the graph file, the graph browsing module respectively acquires the file of the graph from the graph client and the graph file server, and opens the file with the newer version of the two for displaying;

if the graphic file only exists in the graphic client or the graphic file server, directly opening the graphic file for displaying;

the graph editing specifically comprises the following steps: when a user needs to edit a specified graph, if the graph client and the graph file server both have the graph file, the graph editing module compares the versions of the graph files existing in the graph client and the graph file server, opens the corresponding graph file for editing according to the selection of the user, and adds a modification identifier into the file name of the graph file after the graph client locally stores the file editing each time.

4. The distributed graph version management method applicable to the network according to claim 3, wherein the comparison of the versions of the graph files on the graph client and the graph file server is specifically as follows: if the modification time of the graphic file on the graphic file server is inconsistent with the modification time of the corresponding graphic file on the graphic client and the graphic file on the graphic client has no modification identifier, the graphic file version on the graphic file server is considered to be new; if the modification time of the graphic file on the graphic client is consistent with that of the corresponding graphic file on the graphic file server, but the graphic file on the graphic client has a modification identifier, the version of the graphic file on the graphic client is considered to be new, and if the modification time and the file name of the graphic file on the graphic client are the same as those of the corresponding graphic file on the graphic file server, the versions of the graphic file on the graphic client and the corresponding graphic file on the graphic file server are considered to be consistent.

5. The method for managing distributed graphic versions applicable to a network according to claim 3, wherein opening a corresponding graphic file for editing according to a user selection specifically includes: the specific steps of opening the corresponding graphic file for editing according to the user selection are as follows: if the graph to be edited only exists in the graph client, the graph file is directly opened, and if the graph only exists in the graph file server, the graph file is downloaded to the graph client and then the graph file is opened;

if the graph to be edited exists in both the graph client and the graph file server, prompting a user to select to open the graph file on the graph client or the graph file server, and if the versions of the graph files of the graph client and the graph file server are consistent, opening the graph file of the graph client for editing.

6. The distributed graphic version management method for network according to claim 5, wherein: after the edition of the graphic file is finished, the user can select to only store the graphic file in the graphic client or both the graphic file client and the graphic file server, and if the version of the original graphic file in the graphic file server is newer, the user is prompted to select whether to update.

7. The distributed graphic version management method for network according to claim 5, wherein: and when the graphic client downloads the graphic file from the graphic file server to the graphic client or the graphic client saves the graphic file, setting the modification time of the graphic file of the graphic client as the modification time of the corresponding graphic file on the graphic file server.

Technical Field

The invention belongs to the technical field of power grid dispatching automation, and particularly relates to a distributed graphic version management system and method suitable for a network.

Background

The automatic power grid dispatching system undertakes very important work such as power grid maintenance, power grid monitoring, dispatching operation and the like. The graph version management technology provides a management method and a visualization tool for unified maintenance and display of the power grid graph model for a dispatching automation system, effectively constructs, manages and displays graph files of different systems and different scenes, and a user realizes the tracing and analysis of the model version and section data change by looking up the graph files of different versions.

Currently, the mainstream file version management technology mainly includes an exclusive mode, a third party control mode, and the like. The exclusive mode adopts a file sharing mode, all files are stored on a common server, and different users access or operate the shared files under the corresponding permission constraint. However, when one user operates a certain file, the file is locked, other users only have read permission for the file temporarily, and the server performs unlocking processing after the user operation is finished, so that subsequent users can continue to operate the file conveniently. The third-party control mode adopts third-party control tools such as GIT, SVN and the like, the tools can track all files on the server, support multiple users to simultaneously operate the same file, and automatically and manually solve the conflict generated by simultaneously modifying the file by using a corresponding algorithm.

In the exclusive mode, the operation of the user on the file does not conflict, and the file can be modified by only one user at a time, but the mode has the biggest defect that a plurality of users cannot modify the file at the same time, so that the efficiency of file operation management is greatly reduced. The third-party control mode can overcome the defect that the exclusive mode cannot be operated concurrently, and improves the efficiency of file management, but the mode requires a user to independently install a client and a server of the third party, increases the complexity of project deployment, is not good in compatibility with the existing project in the field of power grid dispatching, and has potential safety hazards.

Disclosure of Invention

In order to solve the problems in the prior art, the invention provides a distributed graphic version management system and a distributed graphic version management method suitable for a network, which can safely and efficiently manage graphic files of a power dispatching system.

The technical problem to be solved by the invention is realized by the following technical scheme:

a distributed graphics version management system adapted for use with a network, comprising:

the graph client is used for browsing and editing the graph;

the image file server is used for sharing and storing image files;

and the image file server performs distributed deployment.

With reference to the first aspect, further, the graphics client includes:

the figure browsing module is used for browsing figures;

and the graph editing module is used for editing the graph.

In a second aspect, a distributed graphics version management method applicable to a network is provided, including:

browsing and editing graphs;

the graphic browsing specifically comprises: when a user needs to retrieve a specified graph, if the graph client and the graph file server both have the graph file, the graph browsing module respectively acquires the file of the graph from the graph client and the graph file server, and opens the file with the newer version of the two for displaying;

if the graphic file only exists in the graphic client or the graphic file server, directly opening the graphic file for displaying;

the graph editing specifically comprises the following steps: when a user needs to edit a specified graph, if the graph client and the graph file server both have the graph file, the graph editing module compares the versions of the graph files existing in the graph client and the graph file server, opens the corresponding graph file for editing according to the selection of the user, and adds a modification identifier into the file name of the graph file after the graph client locally stores the file editing each time.

With reference to the second aspect, further, if the modification time of the graphic file on the graphic file server is inconsistent with the modification time of the corresponding graphic file on the graphic client and the graphic file on the graphic client has no modification identifier, the version of the graphic file on the graphic file server is considered to be new; if the modification time of the graphic file on the graphic client is consistent with that of the corresponding graphic file on the graphic file server, but the graphic file on the graphic client has a modification identifier, the version of the graphic file on the graphic client is considered to be new, and if the modification time and the file name of the graphic file on the graphic client are the same as those of the corresponding graphic file on the graphic file server, the versions of the graphic file on the graphic client and the corresponding graphic file on the graphic file server are considered to be consistent.

With reference to the second aspect, further, the opening of the corresponding graphic file for editing according to the user selection specifically includes: the specific steps of opening the corresponding graphic file for editing according to the user selection are as follows: if the graph to be edited only exists in the graph client, the graph file is directly opened, and if the graph only exists in the graph file server, the graph file is downloaded to the graph client and then the graph file is opened;

if the graph to be edited exists in both the graph client and the graph file server, prompting a user to select to open the graph file on the graph client or the graph file server, and if the versions of the graph files of the graph client and the graph file server are consistent, opening the graph file of the graph client for editing.

With reference to the second aspect, after the editing of the graphic file is finished, the user may select to only save the graphic file in the graphic client, or both the graphic file client and the graphic file server, and prompt the user to select whether to update the original graphic file on the graphic file server if the version of the original graphic file is newer.

With reference to the second aspect, further, when the graphics client downloads the graphics file from the graphics file server to the graphics client or the graphics client saves the graphics file, the modification time of the graphics file of the graphics client is set as the modification time of the corresponding graphics file on the graphics file server. And subsequently, even if the local file is modified, the modification time of the local file is forced not to be updated, and the local file name is modified and a local modification mark is printed. The method has the advantages of weakening the time concept, avoiding various unstable factors caused by time synchronization between the server and the workstation or machine time adjustment, and avoiding various complex conditions caused by processing of internationalized multi-time zones, daylight saving time and the like.

The invention has the beneficial effects that: according to the requirements of a power grid on the maintenance of the graph model versions and the graph model integration principle, the method realizes the management of the multiple versions of the graph, is suitable for the integrated concurrent maintenance of simultaneously constructing the graph model versions by multiple services, adopts lightweight file management service to carry out unified management and maintenance on the multiple versions of the graph, has the characteristics of high reliability, high real-time performance, simple deployment and the like, reduces the difficulty and cost of the maintenance of the graph by power grid automation personnel, and ensures the storage safety of the multiple versions of the graph.

Drawings

FIG. 1 is a graphical browsing flow chart of the present invention;

FIG. 2 is a flow chart of graphical editing according to the present invention;

FIG. 3 is an exemplary view of the browser software according to the present invention;

FIG. 4 is an exemplary diagram of an editor software implementation of the present invention;

FIG. 5 is a diagram of an exemplary editor software save of the present invention.

Detailed Description

To further describe the technical features and effects of the present invention, the present invention will be further described with reference to the accompanying drawings and detailed description.

The invention provides a distributed graph version management method suitable for a network, and FIG. 1 is a graph browsing tool drawing process, when a user browses a graph file, a browsing tool firstly obtains modification time, file name and file content of the file at local and network sides respectively, and carries out version comparison, and if the network is new or only the network according to the version comparison result, the browsing tool reads and displays the file content at the network side; if the local file is new, only local and consistent in version, the browser tool reads the content of the local file and displays the content; if the versions cannot be compared, the browsing tool reads the contents of the network files and displays the contents of the network files based on the network side graphic files.

FIG. 2 is a flow chart of a graphic editing tool for modifying a graphic, which comprises two parts of open drawing modification and saving. The opening flow is similar to that of a browsing tool, and after the versions of the graphic editing tool are compared, a user can select to open a local or network side graphic file according to a comparison result. When the user graph is modified, the graph file needs to be stored, the storage is divided into local storage (a graph client) and network storage (a graph file server), the local storage firstly stores the modified graph only in the local, the original file time is not modified, only a local modification identifier is added in a file name, the local graph file is generated, meanwhile, the version comparison is carried out on the local graph file and the network side, and the comparison result is displayed in an editing tool. The network saving process is similar to local saving, and file generation and version comparison are also performed, but the network saving generates the graphic file at the local side and the network side simultaneously.

Fig. 3 is an example of a browsing tool opening a graphic file, and when the browsing tool displays the graphic file after the opening is completed, the browsing tool displays the version comparison result of the graphic file at the lower left of the browsing tool.

Fig. 4 and 5 are examples of the editing tool opening and saving a graphic file, and similar to the browsing tool, the upper left of the editing tool after opening the drawing displays the comparison result of the version, and after the graphic modification is completed, the user can select local or network saving to store the file. After the graph modification is finished, the user selects a storage mode, and the graph file is only stored locally or updated locally and simultaneously through the network. In the saving process, the graphic editing tool can re-compare the version states of the current files on the local side and the network side (preventing the files on the network side from changing during drawing), and after the saving is finished, new version comparison information is displayed.

By using the distributed graphic file management method, the electric network automatic dispatcher can accurately master the current state of each graphic file, avoid the disordered pictures when multiple users operate the same graphic file at the same time, effectively reduce the electric network accidents caused by graphic abnormality, simplify the graphic maintenance difficulty of the electric network dispatcher, and greatly improve the drawing accuracy and efficiency.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据集的确定方法、装置、计算机设备以及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!