CN111026307B - Method and device for quickly associating graphics primitives in graphics configuration tool - Google Patents
Method and device for quickly associating graphics primitives in graphics configuration tool Download PDFInfo
- Publication number
- CN111026307B CN111026307B CN201911265114.8A CN201911265114A CN111026307B CN 111026307 B CN111026307 B CN 111026307B CN 201911265114 A CN201911265114 A CN 201911265114A CN 111026307 B CN111026307 B CN 111026307B
- Authority
- CN
- China
- Prior art keywords
- primitive
- graphic
- path
- primitives
- associating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention is applicable to the technical field of application of a configuration tool of a data acquisition and monitoring control system, and provides a method and a device for quickly associating graphics primitives in a graphics configuration tool, wherein the method comprises the following steps: analyzing a graphic file to be associated to obtain data information of a primitive in the graphic file; judging whether the graphic elements in the graphic file are associated or not; if the graphic elements in the graphic file are associated, associating the paths of the devices where the graphic elements are located; and if the graphic elements in the graphic file are not associated, associating the service objects of the graphic elements. The invention can quickly complete the association of the primitives by identifying whether the primitives to be associated are approximate to the old associated data of the primitives and quickly replacing the approximate primitives with the old associated data, thereby saving a large amount of time.
Description
Technical Field
The invention belongs to the technical field of application of a data acquisition and monitoring control system configuration tool, and particularly relates to a method and a device for quickly associating primitives in a graph configuration tool.
Background
A Data Acquisition And monitoring Control System (SCADA) is a man-machine interaction system for monitoring And controlling factories And engineering equipment, And therefore, the generation of a man-machine interaction interface has a great influence on the Control operation of the whole system. In the human-computer interface of the SCADA, a collection point (namely a primitive) is arranged corresponding to equipment on a specific project, and the collection point is controlled by software to correspondingly control specific hardware equipment so as to finish remote monitoring.
When the existing SCADA product is used for carrying out graph configuration association, primitives in an interactive interface are matched and associated with corresponding equipment manually, the association content comprises the type, control path and the like of the equipment, and the operation is complex, so that the time is usually required to be several days or even longer; meanwhile, due to the increase of time, the probability of errors in manual association is greatly increased, and the efficiency is low for ensuring the correctness of association of each point.
Especially, under the condition of the existing human-computer interaction graph which is completed in association, once a new interaction interface needs to be generated in engineering, if the new interaction interface needs to be associated again, a large amount of tedious work needs to be repeated, and a large number of devices applied to the actual engineering are the same or similar, and then the similar devices are associated one by one, so that a large amount of time is repeatedly spent.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for quickly associating primitives in a graphics configuration tool, so as to solve the problems in the prior art that the association of the primitives is time-consuming and the error rate of manual comparison is high.
A first aspect of an embodiment of the present invention provides a method for quickly associating primitives in a graphics configuration tool, including:
analyzing a graphic file to be associated to obtain data information of a primitive in the graphic file;
judging whether the graphic elements in the graphic file are associated or not;
if the graphic elements in the graphic file are associated, associating the paths of the devices where the graphic elements are located;
and if the graphic elements in the graphic file are not associated, associating the service objects of the graphic elements.
A second aspect of the present invention provides an apparatus for quickly associating primitives in a graphics configuration tool, comprising:
the analysis module is used for analyzing the graphic file to be associated and acquiring the primitive data information in the graphic file;
the judging module is used for judging whether the graphic elements in the graphic file are associated;
the first association module is used for associating the path of the device where the graphic primitive is located;
and the second association module is used for associating the service objects of the graphic elements.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to implement the steps of the above method when executed by a processor.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, whether the primitive needing to be associated is approximate to the old associated data of the primitive is identified, the approximate primitives are quickly replaced by the old associated data, and the association of the primitives can be quickly completed only by modifying the equipment path of the primitive, so that a great deal of time is saved. The method is particularly suitable for the condition of the existing old graph, the manual association time is greatly shortened to twenty minutes, and even shorter time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart illustrating an implementation of a method for quickly associating primitives in a graphics configuration tool according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a path step of a device where the primitive is associated according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an implementation of importing a second path of a device in a model database into a second device column according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an implementation of the step of associating the service object of the primitive according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating a complete implementation of a method for quickly associating primitives in a graphics configuration tool according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an apparatus for quickly associating primitives in a graphics configuration tool according to an embodiment of the present invention;
FIG. 7 is a diagram of a first association module provided by an embodiment of the invention;
FIG. 8 is a diagram of a path importing unit according to an embodiment of the present invention;
FIG. 9 is a diagram of a second correlation module provided by an embodiment of the present invention;
fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention. Unless otherwise specified, the technical means used in the examples are conventional means well known to those skilled in the art.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, a flow chart of an implementation of a method for quickly associating primitives in a graphics configuration tool according to an embodiment of the present invention is shown, where the method includes:
step S10: analyzing a graphic file to be associated, and acquiring data information of a primitive in the graphic file, wherein the data information of the primitive comprises all important information of equipment represented by the primitive, including but not limited to: whether the graphic elements are associated, the name, type, path or coordinate of the associated business object, and the like;
step S20: judging whether the graphic elements in the graphic file are associated according to the data information of the graphic elements;
if the graphic element in the graphic file is associated, the step S30 is performed to associate the path of the device where the graphic element is located;
if the graphic element in the graphic file is not associated, step S40 is entered to associate the service object of the graphic element.
It should be noted that, in this embodiment, when determining whether to associate, the logic is adopted:
if any of the primitives in the graphics file have been associated, all of the primitives for the graphics file are considered to have been associated.
The association method can quickly complete the association of the primitives of the new graph only by updating the paths of the primitives in the new graph under the condition that the business objects are associated in advance, namely the old graph completes the association, so that the business objects do not need to be associated one by one again, and the association workload and time are greatly reduced.
As shown in fig. 2, in this embodiment, one way of associating the path of the device where the primitive is located may include:
step S301: extracting a device where the primitive is located according to a first path of the primitive, and storing the device where the primitive is located in a list form;
the first path is formed by associating primitive elements, and the primitive elements correspond to the position path stored in the physical device. In the storage, it is preferable to store only names of the devices after arranging them, and since only names are stored, it is possible to list only different devices, the same device being indicated by the same name, and only duplicate devices being marked.
Step S302: creating a table, wherein the table at least comprises a first device column and a second device column, and a cell of the first device column is set as the device where the cell is located and is correspondingly associated with a first path of the cell;
the first device column of the created table may be displayed by the device name, or may be displayed in an unlimited form, for example, an identifier or a character which is convenient for recognition or memory is also applicable, but regardless of the display form, the devices displayed by the cells and the storage paths of the devices are in one-to-one correspondence and binding, so that the paths of the devices can be changed.
And the second device column is initially empty as the intermediate replacement candidate column at the time of change.
Step S303: according to specific engineering, importing a second path of a device in a model database into the second device column;
the introduction form of the second path may preferably be the one shown in fig. 3, and includes:
step S3031: loading all devices according to the model database, and displaying in a first draggable form;
step S3032: and dragging the device in the first dragging mode according to specific engineering, and putting the device in the corresponding cell of the second device row to finish the importing of the second path.
The path is required to be led in, so the content displayed in the first dragging mode also needs to be correspondingly bound with the storage path of the device, the path in the dragged object can be directly identified during manual dragging, and then the dragged object is written into the corresponding cell, so that the method is visual and rapid, and is convenient for manual operation of personnel.
The first draggable form may be set as an intuitive topological structure, such as a tree structure, and the specific structure may be preset content, and after the model database is loaded, the topological structure in the draggable form can be obtained by directly reading the loaded model database, and of course, the topological structure may also be generated according to the actually loaded content, and the manner is not limited.
Step S304: correspondingly replacing the first path bound by the first device column according to the second path of the second device column to obtain a new device path;
after replacement, the path of the primitive represented by the first device column is changed, and the association of the new path can be completed only by writing the changed content into the data of the primitive.
Step S305: and writing the new path of the device into the associated data of the corresponding graphic element to complete the path of the device where the associated graphic element is located.
The whole process of the path leading-in is very simple, and the path leading-in only needs to be manually dragged when a new path needing leading-in is selected, so that the operation is convenient.
In this embodiment, the business object associated with the primitive may adopt the method shown in fig. 4, which includes:
step S401: classifying and storing according to the object types associated with the primitives, and marking the primitives to be associated;
the service objects of the primitives are often divided according to the object types, the total object is associated with large types such as switches, disconnecting links, remote measuring points, remote control points and the like, and multiple primitives can also form a primitive group to perform combined association, at this time, the object type required to be associated by the primitive group is an intelligent device, the primitives with the analyzed object type do not need to be associated with the service objects, and the primitives with the analyzed object type are to-be-associated primitives or to-be-associated primitive groups to mark the to-be-associated primitives so as to facilitate subsequent processing.
Step S402: loading a corresponding business object in a model database according to the object type, and displaying the business object in a second draggable form;
the second draggable form may also be configured as a topological structure, such as a tree structure, but each draggable object is a service object of a primitive, and may be regarded as a service object in the model database that is converted into a service object tree capable of being dragged.
Step S403: selecting the service object in the second draggable form, and dragging the service object to a corresponding primitive to be associated;
in the association process, the individual primitives are accurately dragged one by one for association, but the primitives of the same type can also be combined into a unit, and then the corresponding business objects are dragged uniformly to the primitive unit of the type to complete the association of the primitives of the same type, so that the association is fast and convenient.
In order to confirm that all the primitives and the service objects of the primitive group are associated, after the step of selecting the service object in the second draggable form and dragging the service object to the corresponding primitive to be associated is completed each time, the method further includes:
step S404: judging whether all object types of the graphic elements to be associated are associated or not;
if all the object types of the primitive to be associated are associated, step S405 is performed: eliminating the mark of the graphic primitive to be associated;
and if all the object types of the primitive to be associated are not associated, returning to the step S403, and associating the service object with the object type that is not associated with the primitive to be associated until all the object types are associated.
The step is that only after the mark of the primitive to be associated is eliminated, the association operation is stopped for the primitive to be associated, because some primitives may have multiple types and need to be associated with multiple service objects simultaneously, the association of all the primitives is prevented from being stopped only once through the steps.
The following will describe a specific implementation in the flow illustrated in fig. 5:
a method for quickly associating primitives in a graphics configuration tool:
after the start, step S10 is first executed to analyze the graphic file to be associated and obtain the primitive data information therein;
step S20 is entered, and whether the graphics primitives in the graphics file are associated is judged by utilizing the associated information in the graphics primitive data information;
if the graphics primitives in the graphics file are associated, the method proceeds to step S301, and according to a source device path of the graphics primitives, that is, a first path, a device where the graphics primitives are located is extracted, and the device where the graphics primitives are located is stored in a list form;
step S302, a two-column table is created, wherein the first column is a source device column, and the second column is a target device column;
setting the cells in the first column as the devices where the cells are located, and correspondingly associating the paths of the source devices;
the cells of the second column are set to null.
Step S3031 is entered, all devices are loaded according to the model database and displayed in a draggable tree form;
step S3032, according to the specific project, dragging the device in the tree form, and placing the device in the corresponding cell in the second column to complete the importing of the target device path.
Step S304 is carried out, the source device path bound in the first column is replaced correspondingly according to the target device path in the second column, and a new device path is obtained;
finally, step S305 is performed, and the new path of the device is written into the associated data of the corresponding primitive, so that the association of the path of the device where the primitive is located can be completed.
If the judgment result of the step S20 is that any primitive in the graphics file is not associated, the step S401 is entered, classified storage is performed according to the object type associated with the primitive, and the primitive to be associated is marked;
step S402, loading the corresponding business object in the model database according to the object type, and displaying the business object in a draggable tree form;
it should be noted that the draggable tree form in step S402 may be different from the draggable tree form in step S3031.
Step S403 is carried out, the service object in the second draggable form is selected, and the service object is dragged to the corresponding primitive to be associated;
step S404, judging whether all the object types of the primitive to be associated are associated,
if all the object types of the primitive to be associated are associated, the step S405 is performed, the mark of the primitive to be associated is eliminated, and the association of the service object of the primitive is completed;
if all the object types of the primitive to be associated are not associated, returning to step S403, or step S402, performing an association service object on the object type that is not associated with the primitive to be associated until all the object types are associated.
In this embodiment, no matter step S305 or step S405 is completed, the process proceeds to step S501, and determines whether to save the association information,
if the association information needs to be saved, step S502 is entered, the associated primitive file is rewritten into the graphics file, and the graphics file is saved, so as to complete the entire association process;
if the associated information does not need to be saved, the flow is ended.
The method can quickly realize the primitive association of the new graphic file, is particularly suitable for the situation that the new graphic file is similar to the old graphic file, applies the primitives associated in the old graphic file to the new graphic file, and can complete the association work of the new graphic file only by correspondingly modifying the associated paths, thereby shortening the association time to twenty minutes or even shorter time, and greatly reducing the error rate in manual operation by comparing the primitives by software.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an 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 invention.
Referring to fig. 6, an apparatus for quickly associating primitives in a graphics configuration tool according to an embodiment of the present invention includes an analyzing module 61, a determining module 62, a first associating module 63, and a second associating module 64, where:
the parsing module 61 is configured to process step S10, parse the graphics file to be associated, and obtain the primitive data information therein;
the judging module 62 is configured to process step S20, and judge whether the primitives in the graphics file are related;
the first correlation module 63 is configured to process step S30, and correlate a path of a device where the primitive is located;
the second associating module 64 is configured to process step S40 to associate the service object of the primitive.
The determining module 62 is electrically connected to the analyzing module 61, the first associating module 63, and the second associating module 64, respectively.
In this embodiment, referring to fig. 7, the first associating module 63 may include an extracting unit 631, a first storage unit 632, a table processing unit 633, and a path importing unit 634, where:
the extracting unit 631 is a device for extracting primitives;
the first storage unit 632 is configured to store the extracted home device;
the table processing unit 633 is used for creating a table and replacing cell contents in the table;
the path importing unit 634 is used for importing paths in the model database.
Referring to fig. 8, the path importing unit 634 may further include a first loading unit 6341 and a first dragging processing unit 6342, where:
the first loading unit 6341 is configured to load devices in the model database and display the devices in a first draggable form;
the first drag processing unit 6342 is used to identify a drag operation.
In this embodiment, referring to fig. 9, the second association module 64 may include a second storage unit 641, a marking unit 642, a second loading unit 643, and a second drag processing unit 644, where:
the second storage unit 641 is configured to store an object type associated with a primitive;
the marking unit 642 is configured to process a mark and an elimination mark of the primitive to be associated/the primitive group to be associated;
the second loading unit 643 is configured to load a business object in a model database and display the business object in a second draggable form;
the second drag processing unit 644 is configured to recognize a drag operation.
Fig. 10 is a schematic diagram of the terminal device 7 according to an embodiment of the present invention. As shown in fig. 10, the terminal device 7 of this embodiment includes a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and operable on the processor 70, for example, a primitive program in a fast associated graphics configuration tool. The processor 70, when executing the computer program 72, performs the steps of the above-described embodiments of the method for quickly associating primitives in a graphics configuration tool, such as steps S10-S40 shown in FIG. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the modules 61 to 64 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 72 in the terminal device 7.
The terminal device 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device 7 may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that fig. 10 is only an example of the terminal device 7, and does not constitute a limitation to the terminal device 7, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device 7 may further include an input-output device, a network access device, a bus, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer programs and other programs and data required by the terminal device 7. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Of course, the units and modules may be replaced by a processor containing a computer program, and the work of each part can be completed in a pure software form
Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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, may be located in one place, or may be 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, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (9)
1. A method for quickly associating primitives in a graphics configuration tool, comprising:
analyzing a graphic file to be associated to obtain data information of a primitive in the graphic file;
judging whether the graphic elements in the graphic file are associated or not;
if the graphic elements in the graphic file are associated, extracting the devices where the graphic elements are located according to the first path of the graphic elements, and storing the devices in a list form; creating a table, wherein the table at least comprises a first device column and a second device column, and a cell of the first device column is set as the device where the cell is located and is correspondingly associated with a first path of the cell; according to specific engineering, importing a second path of a device in a model database into the second device column; correspondingly replacing the first path bound by the first device column according to the second path of the second device column to obtain a new device path; writing the new path of the device into the associated data of the corresponding graphic element to complete the path of the device where the associated graphic element is located;
and if the graphic elements in the graphic file are not associated, associating the service objects of the graphic elements.
2. The method of claim 1, wherein the importing, according to a specific project, a second path of devices in a model database into the second device column comprises:
loading all devices according to the model database, and displaying in a first draggable form;
and dragging the device in the first dragging mode according to specific engineering, and putting the device in the corresponding cell of the second device row to finish the importing of the second path.
3. The method of claim 1, wherein associating the business object with the primitive comprises:
classifying and storing according to the object types associated with the primitives, and marking the primitives to be associated;
loading a corresponding business object in a model database according to the object type, and displaying the business object in a second draggable form;
and selecting the service object in the second draggable form, dragging the service object to the corresponding primitive to be associated, and completing the service object of the associated primitive.
4. The method as claimed in claim 3, wherein said step of selecting the service object in the second draggable form and dragging the service object to the corresponding primitive to be associated further comprises:
judging whether all object types of the graphic elements to be associated are associated or not;
if all object types of the primitive to be associated are associated, eliminating the mark of the primitive to be associated;
and if all the object types of the graphic elements to be associated are not associated, associating the business objects with the object types which are not associated with the graphic elements to be associated until all the object types are associated.
5. The method of any of claims 1-4, wherein the method for rapidly associating primitives in a graphics configuration tool further comprises:
whether the associated information is stored or not is judged,
and if the associated information needs to be stored, rewriting the associated primitive file into the graphic file for storage.
6. An apparatus for quickly relating primitives in a graphics configuration tool, comprising:
the analysis module is used for analyzing the graphic file to be associated and acquiring the primitive data information in the graphic file;
the judging module is used for judging whether the graphic elements in the graphic file are associated;
the first association module is used for associating the path of the device where the graphic primitive is located; the method specifically comprises the following steps: the extraction unit is used for extracting the device of the primitive; a first storage unit, configured to store the extracted home device; the table processing unit is used for creating a table and replacing the cell contents in the table; the path importing unit is used for importing paths in the model database;
and the second association module is used for associating the service objects of the graphic elements.
7. The apparatus of claim 6, wherein the second correlation module comprises:
the second storage unit is used for storing the object type associated with the graphic primitive;
the marking unit is used for processing the marks and eliminating the marks of the primitives to be associated/the primitive groups to be associated;
the second loading unit is used for loading the business objects in the model database and displaying the business objects in a second draggable form;
and the second drag processing unit is used for identifying drag operation.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911265114.8A CN111026307B (en) | 2019-12-11 | 2019-12-11 | Method and device for quickly associating graphics primitives in graphics configuration tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911265114.8A CN111026307B (en) | 2019-12-11 | 2019-12-11 | Method and device for quickly associating graphics primitives in graphics configuration tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111026307A CN111026307A (en) | 2020-04-17 |
CN111026307B true CN111026307B (en) | 2021-07-30 |
Family
ID=70209137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911265114.8A Active CN111026307B (en) | 2019-12-11 | 2019-12-11 | Method and device for quickly associating graphics primitives in graphics configuration tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111026307B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092585A (en) * | 2011-11-04 | 2013-05-08 | 上海宝信软件股份有限公司 | Image library configuration design system for integrated supervision software |
CN105373655A (en) * | 2015-11-04 | 2016-03-02 | 国网电力科学研究院武汉南瑞有限责任公司 | Method for organically correlating primary and secondary system connection diagrams of intelligent substation |
US9342078B2 (en) * | 2012-12-07 | 2016-05-17 | Amplisine Labs, LLC | Remote control of fluid-handling devices |
CN105912325A (en) * | 2016-04-05 | 2016-08-31 | 华自科技股份有限公司 | Reuse method and system for primitive assembly based on configuration software and configuration software |
CN108847979A (en) * | 2018-06-21 | 2018-11-20 | 北京和利时智能技术有限公司 | A kind of adaptive configuration system and method based on SCADA |
CN109597377A (en) * | 2017-10-02 | 2019-04-09 | 费希尔-罗斯蒙特系统公司 | Convenient for the system and method for the graphical display designing workflows in process control plant |
CN109933324A (en) * | 2019-03-25 | 2019-06-25 | 北京广利核系统工程有限公司 | A kind of nuclear power DCS man-machine interface automatic generation method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9134960B2 (en) * | 2010-10-29 | 2015-09-15 | International Business Machines Corporation | Numerical graphical flow diagram conversion and comparison |
CN104123271B (en) * | 2014-08-01 | 2017-10-31 | 贵阳供电局 | Intelligent substation secondary design system based on Excel |
CN105429291B (en) * | 2015-10-26 | 2018-08-10 | 山东网聪信息科技有限公司 | The correlating method of intelligent substation primary connection figure and electrical secondary system logic connectivity diagram |
CN109255041B (en) * | 2018-08-22 | 2021-07-09 | 国网山西省电力公司 | Intelligent identification method for electrical drawing |
-
2019
- 2019-12-11 CN CN201911265114.8A patent/CN111026307B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092585A (en) * | 2011-11-04 | 2013-05-08 | 上海宝信软件股份有限公司 | Image library configuration design system for integrated supervision software |
US9342078B2 (en) * | 2012-12-07 | 2016-05-17 | Amplisine Labs, LLC | Remote control of fluid-handling devices |
CN105373655A (en) * | 2015-11-04 | 2016-03-02 | 国网电力科学研究院武汉南瑞有限责任公司 | Method for organically correlating primary and secondary system connection diagrams of intelligent substation |
CN105912325A (en) * | 2016-04-05 | 2016-08-31 | 华自科技股份有限公司 | Reuse method and system for primitive assembly based on configuration software and configuration software |
CN109597377A (en) * | 2017-10-02 | 2019-04-09 | 费希尔-罗斯蒙特系统公司 | Convenient for the system and method for the graphical display designing workflows in process control plant |
CN108847979A (en) * | 2018-06-21 | 2018-11-20 | 北京和利时智能技术有限公司 | A kind of adaptive configuration system and method based on SCADA |
CN109933324A (en) * | 2019-03-25 | 2019-06-25 | 北京广利核系统工程有限公司 | A kind of nuclear power DCS man-machine interface automatic generation method |
Non-Patent Citations (2)
Title |
---|
Power Systems Monitoring & Control Centers Sharing SCADA/EMS Information in the Age of Enterprise Mobility;A.H. Mahjoub;《 2007 Innovations in Information Technologies (IIT)》;20071231;第312-316页 * |
一种基于图元监视组态软件的设计与实现;朱尚明;《基础自动化》;20011231;第30-32页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111026307A (en) | 2020-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108830554B (en) | Task model-based intelligent detection method and system for data result information quality | |
CN107015901B (en) | Log analysis method and device | |
CN114461534A (en) | Software performance testing method and system, electronic equipment and readable storage medium | |
CN113051171A (en) | Interface test method, device, equipment and storage medium | |
GB2509090A (en) | An extract-transform-load (ETL) processor controller indicates a degree of preferredness of a proposed placement of data | |
CN113568833A (en) | Test case determination method and device, computer equipment and readable storage medium | |
CN115730605A (en) | Data analysis method based on multi-dimensional information | |
CN115576834A (en) | Software test multiplexing method, system, terminal and medium for supporting fault recovery | |
CN111158827A (en) | Method and device for graphic configuration tool correlation calculation value information | |
CN111026307B (en) | Method and device for quickly associating graphics primitives in graphics configuration tool | |
CN116340172A (en) | Data collection method and device based on test scene and test case detection method | |
CN113360388B (en) | Method for integrally managing test process of unmanned aerial vehicle ground station software | |
CN112003837B (en) | Intelligent equipment adaptation method and device based on Modbus protocol and storage medium | |
CN114417788A (en) | Drawing analysis method and device, storage medium and electronic equipment | |
CN113342430A (en) | Fault code processing method and device, terminal equipment and readable storage medium | |
CN112035364A (en) | Function test result evaluation method and device | |
CN112650796A (en) | Automatic application data collection and storage management system | |
CN113722208B (en) | Project progress verification method and device for software test report | |
CN110879722B (en) | Method and device for generating logic schematic diagram and computer storage medium | |
CN115544983B (en) | Data processing method, device, equipment and medium based on matrix equipment | |
CN113504420B (en) | Device automatic test data processing method and device and terminal equipment | |
CN113778038B (en) | Offline configuration comparison method and system for distributed control system | |
CN112347095B (en) | Data table processing method, device and server | |
CN114564380A (en) | Writing evaluation software test method and device, electronic equipment and storage medium | |
CN118312162A (en) | Method and device for building evaluation model and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |