CN114296723A - Configuration graph processing method and device, electronic equipment and storage medium - Google Patents

Configuration graph processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114296723A
CN114296723A CN202111549839.7A CN202111549839A CN114296723A CN 114296723 A CN114296723 A CN 114296723A CN 202111549839 A CN202111549839 A CN 202111549839A CN 114296723 A CN114296723 A CN 114296723A
Authority
CN
China
Prior art keywords
dictionary information
configuration graph
time
type
attribute
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.)
Pending
Application number
CN202111549839.7A
Other languages
Chinese (zh)
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.)
Guoneng Wangxin Technology Beijing Co ltd
Original Assignee
Guoneng Wangxin Technology Beijing 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 Guoneng Wangxin Technology Beijing Co ltd filed Critical Guoneng Wangxin Technology Beijing Co ltd
Priority to CN202111549839.7A priority Critical patent/CN114296723A/en
Publication of CN114296723A publication Critical patent/CN114296723A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

According to the processing method, the processing device, the electronic equipment and the storage medium for the configuration graph, the first object dictionary information of the latest configuration graph and the second object dictionary information of the old version of configuration graph are obtained; setting the time of the operation time in the second object dictionary information which is the latest as the reference time; determining a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time; determining the operation type of each target object, and performing difference visualization marking on each target object based on the operation type of each target object and the difference visualization rule.

Description

Configuration graph processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of monitoring system technologies, and in particular, to a method and an apparatus for processing a configuration graph, an electronic device, and a storage medium.
Background
Industrial automation is a general term for a process that can be controlled or operated to a predetermined target by means of a mechanical device or without human intervention during production. In various industries such as coal, electric power, petroleum, chemical industry, automobile manufacturing and the like, the improvement of the production efficiency can not be achieved without the improvement of the automation level of the control technology. The continuous development of the cloud, large, object and moving technology leads various fields to carry out informatization technology change, and gradually combines an artificial intelligence theory, a learning algorithm, an advanced technology and a basic monitoring technology, so that the equipment can simulate certain characteristics and functions of human intelligence. Whether early basic control or current intelligent control, a monitoring picture is an important part which cannot be lost in a monitoring system.
The monitoring picture is realized through industrial control configuration software, can display real-time states of various production equipment and real-time values of the sensors on the bottom layer in real time, and is visually presented to a user through different colors, sounds, dynamic characteristics and the like, and the monitoring picture is compiled by configuration graphs. The Configuration refers to a process of completing a specific task in a project by using tools and methods provided in application software, and a Configuration graph is formed by a user through secondary development of Configuration software according to a production process, so that the Configuration graph is the basis of a monitoring system.
Before the monitoring system is subjected to online test operation, the monitoring system needs to complete field debugging, and implementing personnel often change configuration information of the configuration graph in the debugging process, so that even if the same implementing personnel completes the whole debugging process, the phenomenon that the versions of the configuration graph files stored in a field engineer station and a personal notebook computer are inconsistent cannot be avoided in the debugging process. Especially when the debugging content is more, an individual is difficult to distinguish which configuration graph version is the latest change according to the memory, and the simple covering action is possible to bring the labor achievement to the east.
In order to improve the efficiency of the graphic configuration, a project is usually configured with a plurality of graphic configuration personnel, the plurality of configuration personnel can operate the same configuration file at the same time, two files with different versions are derived from one version of the graphic file at the same time, and the two files are different and chosen or chosen, so that great confusion is brought to engineering personnel.
Disclosure of Invention
The present application provides a method and an apparatus for processing a configuration graph, an electronic device, and a storage medium.
The application provides a processing method of a configuration graph, which comprises the following steps:
acquiring first object dictionary information of the latest configuration graph and second object dictionary information of the old version of the configuration graph;
setting the operation time closest to the current time in the second object dictionary information as reference time;
determining a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time;
determining the operation type of each target object, and performing difference visualization marking on each target object based on the operation type of each target object and the difference visualization rule.
In some embodiments, the determining the target object in the latest configuration graph based on the operation time in the first object dictionary information and the reference time includes:
comparing the early-late relationship of the modification time in the first object dictionary information with the reference time;
and determining an object corresponding to the modification time later than the reference time as a target object in the latest configuration graph.
In some embodiments, the operation type comprises a modification type, the method further comprising:
acquiring attribute dictionary information of the target object corresponding to the modification type;
determining a target property in the object based on the modification time in the property dictionary information and the reference time;
and visually marking the target attribute in the object.
In some embodiments, the operation types include: modifying type, deleting type and adding type, wherein the difference visualization rule comprises the following steps: the modification type corresponds to a first color mark, the deletion type corresponds to a second color mark, and the addition type corresponds to a third color mark, wherein the first color mark, the second color mark and the third color mark are different.
In some embodiments, the method further comprises:
acquiring operation information aiming at the configuration graph;
determining an object ID, an operation type and an operation time corresponding to the operation type of the object of the configuration graph and/or the relationship information between the object and the object when the operation information is the operation type of the object of the configuration graph and/or the relationship information between the objects;
and storing the identification and the operation time corresponding to the operation type and/or the relationship information between the objects in the object dictionary information of the configuration graph.
In some embodiments, the method further comprises:
determining an attribute ID and modification time corresponding to the attribute of the object of the configuration graph under the condition that the attribute of the object of the configuration graph is changed by the operation information;
and storing the attribute ID and the modification time corresponding to the attribute of the object of the configuration graph in attribute dictionary information of the object of the configuration graph.
In some embodiments, the object dictionary information comprises: the object ID, the operation type and the operation time corresponding to the operation type, wherein the attribute dictionary information comprises: attribute name, modification time.
The embodiment of the present application provides a processing apparatus for a configuration graph, including:
the first acquisition module is used for acquiring first object dictionary information of the latest configuration graph and second object dictionary information of the old version of the configuration graph;
the first determining module is used for setting the operation time which is closest to the current time in the second object dictionary information as reference time;
a second determining module, configured to determine a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time;
and the visualization display module is used for determining the operation type of each target object and performing difference visualization marking on each target object based on the operation type and the difference visualization rule of each target object.
An embodiment of the present invention provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, executes the processing method of the configuration graph.
The present invention provides a storage medium storing a computer program, which can be executed by one or more processors, and can be used to implement any one of the above-mentioned configuration graph processing methods.
According to the processing method and device for the configuration graphics, the electronic device and the storage medium, the first object dictionary information of the latest configuration graphics and the second object dictionary information of the old version configuration graphics are obtained, the operation time closest to the current time in the second object dictionary information is used as the reference time, the target object is determined based on the reference time, and the difference visualization marking is performed through the operation type of the target object, so that the difference between the two configuration graphics can be displayed quickly and intuitively.
Drawings
The present application will be described in more detail below on the basis of embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic implementation flow diagram of a method for processing a configuration graph according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a processing apparatus for processing a configuration graph according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
In the drawings, like parts are designated with like reference numerals, and the drawings are not drawn to scale.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
The following description will be added if a similar description of "first \ second \ third" appears in the application file, and in the following description, the terms "first \ second \ third" merely distinguish similar objects and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may be interchanged under certain circumstances in a specific order or sequence, so that the embodiments of the application described herein can be implemented in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Based on the problems in the related art, the embodiments of the present application provide a method for processing a configuration graph, where the method is applied to an electronic device, and the electronic device may be a mobile terminal, a computer, or the like. The functions implemented by the processing method for the configuration graph provided by the embodiment of the application can be implemented by calling a program code by a processor of the electronic device, wherein the program code can be stored in a computer storage medium.
An embodiment of the present application provides a method for processing a configuration graph, and fig. 1 is a schematic flow chart illustrating an implementation of the method for processing a configuration graph provided in the embodiment of the present application, as shown in fig. 1, including:
in step S1, the first object dictionary information of the latest configuration graph and the second object dictionary information of the old version of configuration graph are obtained.
The configuration image includes a plurality of objects, such as basic shapes, texts, pictures, diagrams, controls, and other basic objects, and various device primitive components. The relationship between the objects is complicated, for example, different combination relationships exist between different objects, and different layer relationships to which different objects belong.
In the embodiment of the application, the configuration graph consists of two parts, namely, a basic file with file extensions of svg and db and a basic file with a file extension of svg. Db records dictionary file information of the configuration graph, and the dictionary file information comprises object dictionary information and attribute dictionary information.
In the embodiment of the present application, the first object dictionary information of the latest configuration graph and the second object dictionary information of the old version of configuration graph can be obtained by reading the latest configuration graph and the old version of configuration graph.
In this embodiment, the old version of the configuration image may be the latest version or any version, and in this embodiment, the old version of the configuration image may be selected by the user.
In step S2, the operation time closest to the current time in the second object dictionary information is set as a reference time.
Step S3, determining a target object in the latest configuration graph based on the operation time in the first object dictionary information and the reference time;
in the embodiment of the application, the early-late relation between the modification time in the first object dictionary information and the reference time can be compared; and determining an object corresponding to the modification time later than the reference time as a target object in the latest configuration graph.
And step S4, determining the operation type of each target object, and performing difference visualization marking on each target object based on the operation type of each target object and the difference visualization rule.
In the embodiment of the application, the operation type can be determined through the object dictionary information corresponding to each target object. The operation types include: modifying type, deleting type and adding type, wherein the difference visualization rule comprises the following steps: the modification type corresponds to a first color mark, the deletion type corresponds to a second color mark, and the addition type corresponds to a third color mark, wherein the first color mark, the second color mark and the third color mark are different.
In the embodiment of the application, the difference visualization mark can be performed on the display interface, and the visualization interface can be divided into five regions, namely a toolbar region, an old version graphical object attribute window region, an old version graphical window region, a new version graphical object attribute window region and a new version graphical window region. And marking the compared result by using a wire frame with different colors, wherein the same content of the object can be marked. The objects with differences are marked red, the newly added content is marked blue, and the deleted content is marked yellow. The difference of the graph is directly presented to the user through a wire frame with different colors. The method comprises the steps of selecting an object in a graph, displaying basic attributes, dynamic property types, parameter values, expressions and associated instantiation points configured in the object in detail in a graph object attribute window, identifying different parts by red fonts, and displaying differentiated contents visually and clearly.
According to the processing method of the configuration graph, the first object dictionary information of the latest configuration graph and the second object dictionary information of the old version configuration graph are obtained, the time of the latest operation time in the second object dictionary information is set as the reference time, the target object is determined based on the reference time, and the difference visualization marking is carried out through the operation type of the target object, so that the difference between the two configuration graphs can be displayed quickly and intuitively.
In some embodiments, in the case where the operation type is the modification type, after step S4 or simultaneously with step S4, the method further includes:
step S5, acquiring the property dictionary information of the target object corresponding to the modification type.
In the embodiment of the present application, the attribute dictionary information includes: attribute name, modification time.
Step S6, determining a target property in the object based on the modification time in the property dictionary information and the reference time.
And step S7, visually marking the target attribute in the object.
According to the processing method of the configuration graph, when the operation is modified, attributes can be compared, which attributes are changed can be determined, and visual marking is carried out.
In some embodiments, prior to step S1, the method further comprises:
step S11, acquiring operation information aiming at the configuration graph;
step S12, when the operation information is the operation type of the object of the configuration graph and/or the relationship information between the objects, determining an object ID, an operation type, and an operation time corresponding to the operation type of the object of the configuration graph and/or the relationship information between the objects;
step S13, storing the object ID, the operation type and the operation time corresponding to the operation type and/or the relationship information between the objects in the object dictionary information of the configuration graph.
In the embodiment of the application, in the operation process of tracking the operation information and configuring the graph, the operation type and the operation time of the operation information are determined at any time, and the object ID, the operation type and the operation time are used, so that the follow-up comparison is convenient.
In some embodiments, after step S11, the method further comprises:
step S14, when the operation information is to change the attribute of the object of the configuration graph, determining an attribute ID and modification time corresponding to the attribute of the object of the configuration graph;
step S15, storing the attribute ID and modification time corresponding to the attribute of the object of the configuration graph in the attribute dictionary information of the object of the configuration graph.
In some embodiments, the object dictionary information comprises: the object ID, the operation type and the operation time corresponding to the operation type, wherein the attribute dictionary information comprises: attribute name, modification time.
In the embodiment of the application, the object dictionary information includes an object ID, an object type, a layer to which the object belongs, a combination to which the object belongs, and an operation time. Table 1 is a schematic table of object dictionary information provided in the embodiment of the present application, as shown in table 1, where a naming rule of an object ID is a fixed prefix "Svgjs" + object type + number; the Layer naming rule is a fixed prefix 'Layer' + number; the naming rule of the combination is a fixed prefix 'Group' + number; the operation types include three types: modification (M), addition (a), deletion (D), respectively. The time is the latest modification time of the object.
TABLE 1 graphical object dictionary information
Object ID Object type Layer to which it belongs All the components Type of operation Time
Svgjstext1 text Layer1 Group1 M 2020-10-10 20:20:19
Svgjstext2 text Layer1 Group1 M 2020-09-11 06:11:30
Svgjstext3 text Layer1 Group2 M 2020-10-12 11:10:03
Svgjsline4 line Layer1 Group2 A 2020-08-13 22:19:07
Svgjsline5 line Layer1 Group2 A 2020-10-14 08:22:00
Svgjsline6 line Layer2 Group3 D 2020-10-15 10:03:00
Svgjsline7 line Layer2 Group3 D 2020-10-16 20:11:55
Svgjsline8 line Layer2 Group3 D 2020-08-13 22:19:07
In the embodiment of the application, the object attributes comprise inherent basic attributes and custom attributes of the SVG, and the custom attributes comprise custom basic attributes and dynamic property attributes. Firstly, the attribute name of the dynamic characteristic commonly used by the graphic object needs to be defined to ensure that the dynamic characteristic attribute in the object can be rapidly identified, table 2 is a definition table of a dynamic characteristic type in the embodiment of the application, as shown in table 2,
table 2 graphic object dynamic property type definition
Type of dynamic property Description of the invention
move Move
rotate Rotate
flash Flash-off
text Text
value Numerical value
visible Display device
color Color change
fill Filling in
tip Prompting
Table 3 is a schematic diagram of attribute dictionary information provided in the embodiment of the present application, and as shown in table 3, the attribute dictionary information includes attribute names, objects to which the attribute names belong, and modification time. The attribute name naming rule is that the inherent basic attribute name of the SVG graph is kept unchanged, and text objects are taken as examples and comprise coordinates, filling colors, font sizes, texts and character directions. The custom attribute needs to be reinforced with a fixed prefix "com-". The self-defined basic attribute is defined according to the actual conditions of different objects, and the naming rule is a fixed prefix 'com-' + English description. And the naming rule of the self-defining dynamic property attribute is a fixed prefix 'com-' + dynamic property type, and whether the naming rule of the dynamic property is effective is the fixed prefix 'com-has-' + dynamic property type. The object to which the method belongs is the object ID in the graphic object dictionary. The modification time is the latest modification time of the attribute.
TABLE 3 textual graphical object Property dictionary information
Figure BDA0003417136240000081
Figure BDA0003417136240000091
Based on the foregoing embodiments, the present application further provides a method for processing a configuration graph, where the method involves three aspects, a first aspect is graph file design, a second aspect is marking graph content in a configuration process, where the marking content includes an operation type mark, an operation object mark, a relationship mark between different objects, and a dynamic characteristic mark, and a third aspect is comparison logic and display of difference content of the configuration graph.
For graphic file design
Each configuration graph is divided into two parts, namely, a basic file with the file extension name of svg and db and a basic file with the file extension name of svg. Db records the information of the configuration graphic dictionary file, and the dictionary file information includes object dictionary information and attribute dictionary information.
For the configuration graphic content tag, including:
1. the operation type flag:
the operation types of the objects are divided into three types, namely adding, modifying and deleting. It may be marked with letters.
2. Graphical object marking:
and marking the serial number of each object according to the configuration sequence of different objects in the configuration graph, wherein the serial number is only increased but not decreased, and the uniqueness is realized. In the configuration process, if a certain object is deleted, the serial numbers of the deleted objects are deleted together, are not reused and are not filled. The object mark name adopts a mode of adding an object type name and a sequence number as a unique identifier.
3. A relationship label:
the relationship between different objects includes two types, one is a layer relationship, and the other is a combination relationship. The drawing layers are numbered in order from the lowest layer to the highest layer. The numbers of the combined objects are similar to those of the graphic objects, numbering is carried out according to the principle of configuration sequence, and the numbers are deleted after combination is cancelled and are not used or filled. And the layer identifier plus the layer serial number and the combined identifier plus the combined serial number are used as unique identifiers of the relation marks.
4. Dynamic property marking
The dynamic characteristics can simulate the real condition of the equipment state in real time by dynamic effects of color change, flicker, rotation, movement and the like, all the dynamic characteristics need to be classified according to types before the dynamic characteristic configuration information is marked, and the dynamic characteristics can be divided into obvious values, hidden values, color change, positions, mouse actions, prompts and the like and are marked according to different types. The system needs to define a unique identification for each property type.
Contrast of differential content for configuration graphics
The configuration graph contrast content comprises graph object contrast and graph object attribute contrast. And the graphic object comparison comprises graphic layer information, combination information, modification time and the like of the graphic. And the comparison of the attributes of the graphic objects comprises the comparison of the object size information, the position information, the dynamic characteristics, the instantiation and the like. The comparison steps are as follows:
the first step is as follows: and acquiring a reference time. Db file records operation time, which is used as judgment basis. And acquiring the latest time in the old version based on the configuration graph of the new version, and taking the latest time as the judgment reference time.
The second step is that: and searching for a modified object. And searching all objects which are later than the reference time in the new version configuration graph db file according to the graph object dictionary, wherein the objects are modification objects and are objects needing further comparison.
The third step: and judging the operation type. All the modification operations include three types, namely adding, modifying and deleting, and the comparison object is judged to belong to the type.
The third step: and judging whether the new adding and deleting types belong to. And if the types are the addition type and the deletion type, directly going to the sixth step to carry out differential display.
The fourth step: it is determined whether it is of the modification type. If the object is modified, the difference of the attributes of the object needs to be compared further.
The fifth step: the modified property is looked up. And looking up all attributes of which the time is later than the reference time in the new version configuration graph db file according to the graph object attribute dictionary, wherein the attributes are modified attributes.
And a sixth step: and displaying the difference visually. And carrying out visual difference marking and displaying in the graphic file according to a difference visualization principle.
Based on the foregoing embodiments, the present application provides a processing apparatus for configuration graphics, where each module included in the apparatus and each unit included in each module may be implemented by a processor in a computer device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the processor may be a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 2 is a schematic structural diagram of a processing apparatus for a configuration graph provided in an embodiment of the present application, and as shown in fig. 2, a processing apparatus 200 for a configuration graph includes:
a first obtaining module 201, configured to obtain first object dictionary information of a latest configuration graph and second object dictionary information of an old version of configuration graph;
a first determining module 202, configured to set, as a reference time, an operation time that is closest to a current time in the second object dictionary information;
a second determining module 203, configured to determine a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time;
and the visualization display module 204 is configured to determine an operation type of each target object, and perform difference visualization marking on each target object based on the operation type of each target object and a difference visualization rule.
In some embodiments, the second determining module comprises:
a comparison unit configured to compare an early-late relationship between the modification time in the first object dictionary information and the reference time;
and the first determining unit is used for determining an object corresponding to the modification time later than the reference time as a target object in the latest configuration graph.
In some embodiments, the operation types include a modification type, and the processing device 200 for configuring graphics further includes:
the second acquisition module is used for acquiring the attribute dictionary information of the target object corresponding to the modification type;
a third determination module for determining a target property in the object based on the modification time in the property dictionary information and the reference time;
and the visual marking module is used for visually marking the target attribute in the object.
In some embodiments, the operation types include: modifying type, deleting type and adding type, wherein the difference visualization rule comprises the following steps: the modification type corresponds to a first color mark, the deletion type corresponds to a second color mark, and the addition type corresponds to a third color mark, wherein the first color mark, the second color mark and the third color mark are different.
In some embodiments, the processing device 200 for configuring graphics further includes:
the third acquisition module is used for acquiring operation information aiming at the configuration graph;
a fourth determining module, configured to determine, when the operation information is information about changing an operation type of an object of the configuration graph and/or a relationship between objects, an object ID, an operation type, and an operation time that correspond to the operation type of the object of the configuration graph and/or the relationship between the object and the object;
and the first storage module is used for storing the object ID, the operation type and the operation time corresponding to the operation type and/or the relationship information between the objects in the object dictionary information of the configuration graph.
In some embodiments, the processing device 200 for configuring graphics further includes:
a fifth determining module, configured to determine, when the operation information is to change an attribute of the object of the configuration graph, an attribute ID and modification time corresponding to the attribute of the object of the configuration graph;
and the second storage module is used for storing the attribute ID and the modification time corresponding to the attribute of the object of the configuration graph in the attribute dictionary information of the object of the configuration graph.
In some embodiments, the object dictionary information comprises: the object ID, the operation type and the operation time corresponding to the operation type, wherein the attribute dictionary information comprises: attribute name, modification time.
It should be noted that, in the embodiment of the present application, if the processing method of the configuration graph is implemented in the form of a software functional module and is sold or used as a standalone product, the processing method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present invention provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps in the method for processing a configuration graph provided in the foregoing embodiment.
The embodiment of the application provides an electronic device; fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 3, the electronic device 300 includes: a processor 301, at least one communication bus 302, a user interface 303, at least one external communication interface 304, a memory 305. Wherein the communication bus 302 is configured to enable connective communication between these components. The user interface 303 may comprise a display screen, and the external communication interface 304 may comprise a standard wired interface and a wireless interface, among others. The processor 301 is configured to execute a program of a processing method of a configuration graph stored in the memory to implement the steps in the processing method of the configuration graph provided in the above embodiments.
Here, it should be noted that: the above description of the storage medium and the electronic device embodiments is similar to the description of the method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, object, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a controller to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing configuration graphics, the method comprising:
acquiring first object dictionary information of the latest configuration graph and second object dictionary information of the old version of the configuration graph;
setting the operation time closest to the current time in the second object dictionary information as reference time;
determining a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time;
determining the operation type of each target object, and performing difference visualization marking on each target object based on the operation type of each target object and the difference visualization rule.
2. The method of claim 1, wherein determining the target object in the latest configuration graph based on the operation time in the first object dictionary information and the reference time comprises:
comparing the early-late relationship of the modification time in the first object dictionary information with the reference time;
and determining an object corresponding to the modification time later than the reference time as a target object in the latest configuration graph.
3. The method of claim 1, wherein the operation type comprises a modification type, the method further comprising:
acquiring attribute dictionary information of the target object corresponding to the modification type;
determining a target property in the object based on the modification time in the property dictionary information and the reference time;
and visually marking the target attribute in the object.
4. The method of claim 1, wherein the operation types comprise: modifying type, deleting type and adding type, wherein the difference visualization rule comprises the following steps: the modification type corresponds to a first color mark, the deletion type corresponds to a second color mark, and the addition type corresponds to a third color mark, wherein the first color mark, the second color mark and the third color mark are different.
5. The method of claim 3, further comprising:
acquiring operation information aiming at the configuration graph;
determining an object ID, an operation type and an operation time corresponding to the operation type of the object of the configuration graph and/or the relationship information between the object and the object when the operation information is the operation type of the object of the configuration graph and/or the relationship information between the objects;
and storing the object ID, the operation type and the operation time corresponding to the operation type and/or the relationship information between the objects in the object dictionary information of the configuration graph.
6. The method of claim 5, further comprising:
determining an attribute ID and modification time corresponding to the attribute of the object of the configuration graph under the condition that the attribute of the object of the configuration graph is changed by the operation information;
and storing the attribute ID and the modification time corresponding to the attribute of the object of the configuration graph in attribute dictionary information of the object of the configuration graph.
7. The method of claim 1, wherein the object dictionary information comprises: the object ID, the operation type and the operation time corresponding to the operation type, wherein the attribute dictionary information comprises: attribute name, modification time.
8. An apparatus for processing configuration graphics, comprising:
the first acquisition module is used for acquiring first object dictionary information of the latest configuration graph and second object dictionary information of the old version of the configuration graph;
the first determining module is used for setting the operation time which is closest to the current time in the second object dictionary information as reference time;
a second determining module, configured to determine a target object in the latest configuration graph based on the operating time in the first object dictionary information and the reference time;
and the visualization display module is used for determining the operation type of each target object and performing difference visualization marking on each target object based on the operation type and the difference visualization rule of each target object.
9. An electronic device, comprising:
a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to execute the processing method of the configuration graph according to any one of claims 1 to 7.
10. A storage medium storing a computer program executable by one or more processors to perform a method for processing a configuration graphic according to any one of claims 1 to 7.
CN202111549839.7A 2021-12-17 2021-12-17 Configuration graph processing method and device, electronic equipment and storage medium Pending CN114296723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111549839.7A CN114296723A (en) 2021-12-17 2021-12-17 Configuration graph processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111549839.7A CN114296723A (en) 2021-12-17 2021-12-17 Configuration graph processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114296723A true CN114296723A (en) 2022-04-08

Family

ID=80967254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111549839.7A Pending CN114296723A (en) 2021-12-17 2021-12-17 Configuration graph processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114296723A (en)

Similar Documents

Publication Publication Date Title
Harper et al. Deconstructing and restyling D3 visualizations
US20180052593A1 (en) Providing visual selection of map data for a digital map
CN112035667A (en) Knowledge graph display method and device and terminal equipment
US11281742B2 (en) Interactive and selective coloring of digital vector glyphs
CN103093484A (en) Integrated batch drawing method of remote-sensing image and vector data
CN113608805B (en) Mask prediction method, image processing method, display method and device
CN112241565A (en) Modeling method and related device
CN111881809A (en) CAD drawing based primitive identification method and identification device
US20170323007A1 (en) Identifier Based Glyph Search
CN112288882A (en) Information display method and device, computer equipment and storage medium
CN113989167A (en) Contour extraction method, device, equipment and medium based on seed point self-growth
CN114675925A (en) Configuration image processing method and device, computer equipment and storage medium
CN107292937B (en) Method and device for setting terrain map
CN116610304B (en) Page code generation method, device, equipment and storage medium
KR102282284B1 (en) Method, apparatus, device, and storage medium for providing visual representation of set of objects
CN114296723A (en) Configuration graph processing method and device, electronic equipment and storage medium
US20220057780A1 (en) Scada web hmi system
CN112927314A (en) Image data processing method and device and computer equipment
CN108363879A (en) Data processing method suitable for image of clothing
CN108804095B (en) Attribute definition method of monitoring picture pixel
CN106547891A (en) For the quick visualization method of the pictured text message of palm display device
US20140258925A1 (en) System and method for the visualization of properties of objects
US20230343005A1 (en) Methods and Systems for Automated Structured Keyboard Layout Generation
CN112132927B (en) Drawing system and method for generating two-dimensional and three-dimensional models on webpage interface
CN114595491A (en) Drawing skipping method and device based on index primitive

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