CN111243059B - Method, device, equipment and computer readable medium for drawing graph in real time - Google Patents
Method, device, equipment and computer readable medium for drawing graph in real time Download PDFInfo
- Publication number
- CN111243059B CN111243059B CN202010004584.5A CN202010004584A CN111243059B CN 111243059 B CN111243059 B CN 111243059B CN 202010004584 A CN202010004584 A CN 202010004584A CN 111243059 B CN111243059 B CN 111243059B
- Authority
- CN
- China
- Prior art keywords
- component
- foundation
- class
- subsystem
- information
- 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 OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Generation (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to a method, a device, equipment and a computer readable medium for drawing a graph in real time. The method comprises the following steps: classifying the collected data of the components of multiple types to obtain component information, acquiring the change information in the component information and generating a graphic redrawing instruction under the condition that the component information is monitored to change, carrying out graphic drawing according to the graphic redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain multiple graphic after redrawing, and superposing the multiple graphic to obtain the integral graphic of the target object. The method and the device can intuitively and graphically display the equipment state and the working progress in real time.
Description
Technical Field
The present disclosure relates to the technical field of automobile manufacturing, aeroengine manufacturing, aircraft maintenance, and the like, and in particular, to a method, an apparatus, a device, and a computer readable medium for drawing a graphic in real time.
Background
With rapid development of computer technology and coming of an informatization age, an automatic development and data acquisition system of mechanical equipment has been widely applied to production assembly factories of various large mechanical equipment. The popularization of the automation technology promotes the digital construction of the mechanical equipment production assembly plant, greatly facilitates research and development personnel and first-line production personnel, and effectively improves the production efficiency and accuracy.
At present, most of automatic research and development and data acquisition systems of mechanical equipment in the related art are presented in a form mode, although a digital factory is built in a production assembly plant of the mechanical equipment, the data can only be stored and presented by means of the form when a large amount of production equipment, test equipment and field data are faced, and graphical presentation cannot be adopted in real time, so that research personnel and first-line production personnel cannot intuitively control the state of the production process of the assembly plant, and even if the data exist, the data cannot be seen and understood for the first time.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The application provides a method, a device, equipment and a computer readable medium for drawing a graph in real time, so as to solve the technical problem that the graph cannot be displayed in real time.
In a first aspect, the present application provides a method for drawing a graphic in real time, including: classifying the collected data of the multiple types of components to obtain component information, wherein the multiple types of components comprise a system foundation component and a subsystem foundation component of a target object, the system foundation component comprises a system dynamic foundation component and a system static foundation component, and the subsystem foundation component comprises a subsystem dynamic foundation component and a subsystem static foundation component; under the condition that the change of the component information is monitored, the change information in the component information is obtained, and a graphic redrawing instruction is generated; drawing the graphics according to the graphics redrawing instruction and the change information by adopting a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphics, wherein each of the graphics is drawn by utilizing the change information corresponding to the data of one type of component; and superposing the multiple graphs to obtain the overall graph of the target object.
Optionally, classifying the collected data of the plurality of types of components to obtain component information includes: dividing data acquired by a system foundation component into a system foundation component layer, dividing the data acquired by a sub-system foundation component into a sub-system foundation component layer, dividing the association relationship between the system foundation component and the sub-system foundation component into a system-level association foundation component class, wherein the component information comprises the system foundation component layer, the sub-system foundation component layer and the system-level association foundation component class; dividing data acquired by a system dynamic foundation component and a system static foundation component into a system dynamic foundation component class and a system static foundation component class, dividing an association relation between the system dynamic foundation component and the system static foundation component into a system-level class association foundation class, wherein component information comprises the system dynamic foundation component class, the system static foundation component class and the system-level class association foundation class; the data collected by the sub-system dynamic foundation component and the sub-system static foundation component are divided into a sub-system dynamic foundation component class and a sub-system static foundation component class, the association relation between the sub-system dynamic foundation component and the sub-system static foundation component is divided into a sub-system level class association foundation class, and the component information comprises a sub-system dynamic foundation component class, a sub-system static foundation component class and a sub-system level class association foundation class; the component information is stored.
Optionally, under the condition that the component information is monitored to change, acquiring the change information in the component information and generating the graphic redrawing instruction includes: recording the data of the component information in real time to obtain real-time monitoring data; comparing the real-time monitoring data with stored component information; when the real-time monitoring data is different from the stored component information, extracting the change information and generating a graphic redrawing instruction; the change information is updated to the new stored component information.
Optionally, a multithreading asynchronous drawing mode is adopted, drawing of the graph is performed according to the graph redrawing instruction and the change information, and obtaining a plurality of redrawn graphs includes: distributing the component information to a plurality of threads; and starting threads corresponding to the change information according to the graphic redrawing instruction and the change information to carry out graphic redrawing, so as to obtain a plurality of drawn graphics, wherein the graphics redrawing is carried out among the threads in an asynchronous working mode.
Optionally, overlaying the plurality of graphics to obtain an overall graphic of the target object includes: and carrying out relative position coverage superposition on the multiple graphs according to the component information, wherein the component information comprises a system-level association basic component class, a system-level category association basic class and a sub-system-level category association basic class.
Optionally, the method further comprises: and adding a passive response event, wherein the passive response event comprises a single click event, a double click event, a long press event and a sliding event, and is used for modifying data, checking details and sending instructions to an associated lower computer.
Optionally, the method further comprises: and carrying out fuzzy indexing in the components of the target object according to the acquired index information, and selecting the target components obtained by indexing to draw required graphs, wherein the index information comprises keywords, categories and models of the components.
In a second aspect, the present application provides a graphics real-time rendering apparatus, including: the classification module is used for classifying the acquired data of the multiple types of components to obtain component information, the multiple types of components comprise a system foundation component and a subsystem foundation component of the target object, the system foundation component comprises a system dynamic foundation component and a system static foundation component, and the subsystem foundation component comprises a subsystem dynamic foundation component and a subsystem static foundation component; the monitoring module is used for acquiring the change information in the component information and generating a graphic redrawing instruction under the condition that the component information is monitored to change; the graphic redrawing module is used for drawing the graphics according to the graphic redrawing instruction and the change information by adopting a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphics, wherein each graphic in the plurality of graphics is drawn by utilizing the change information corresponding to the data of one type of component; and the superposition module is used for superposing the multiple graphs to obtain the whole graph of the target object.
In a third aspect, the present application provides a computer device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, the processor executing the steps of the method of any of the first aspects described above.
In a fourth aspect, the present application also provides a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform any of the methods of the first aspect.
Compared with the related art, the technical scheme provided by the embodiment of the application has the following advantages:
the method comprises the steps of classifying collected data of a plurality of types of components to obtain component information, acquiring change information in the component information and generating a graph redrawing instruction under the condition that the component information is monitored to change, performing graph drawing according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of graphs after redrawing, and superposing the plurality of graphs to obtain an integral graph of a target object.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is obvious to those skilled in the art that other drawings can be obtained according to these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative method for drawing graphics in real time according to an embodiment of the present application;
FIG. 2 is a flowchart of an alternative method for drawing graphics in real time according to an embodiment of the present application;
fig. 3 is a block diagram of an alternative graphics real-time rendering apparatus according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and are not of specific significance per se. Thus, "module" and "component" may be used in combination.
According to an aspect of the embodiments of the present application, an embodiment of a method for drawing a graphic in real time is provided.
Alternatively, in the embodiment of the present application, the graphics real-time rendering method described above may be applied to a hardware environment configured by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, the server 103 is connected to the terminal 101 through a network, which may be used to provide services to the terminal or a client installed on the terminal, and a database 105 may be provided on the server or independent of the server, for providing data storage services to the server 103, where the network includes, but is not limited to: a wide area network, metropolitan area network, or local area network, and terminal 101 includes, but is not limited to, a PC, a cell phone, a tablet computer, etc.
A method for drawing graphics in real time in the embodiment of the present application may be performed by the server 103, as shown in fig. 2, and the method may include the following steps:
step S202: and classifying the collected data of the multiple types of components to obtain component information.
In the embodiment of the application, the data acquisition can adopt a method of inputting and uploading by an operator and associated equipment, and the input and uploaded data can be data recorded in a form of a table or can be directly input and uploaded picture files. Alternatively, the data acquisition may also use an intelligent photographing device to directly acquire image data, where the photographing device may be a mobile phone, a camera, an industrial camera, etc.
Optionally, classifying the collected data of the multiple types of components to obtain component information includes the following steps 1 to 4:
step 1: the data collected by the system foundation assembly is divided into a system foundation assembly layer, the data collected by the sub-system foundation assembly is divided into a sub-system foundation assembly layer, the association relationship between the system foundation assembly and the sub-system foundation assembly is divided into a system-level association foundation assembly class, and the assembly information comprises the system foundation assembly layer, the sub-system foundation assembly layer and the system-level association foundation assembly class.
Step 2: the data collected by the system dynamic foundation component and the system static foundation component are divided into a system dynamic foundation component class and a system static foundation component class, the association relation between the system dynamic foundation component and the system static foundation component is divided into a system-level class association foundation class, and the component information comprises the system dynamic foundation component class, the system static foundation component class and the system-level class association foundation class.
Step 3: the data collected by the sub-system dynamic foundation component and the sub-system static foundation component are divided into a sub-system dynamic foundation component class and a sub-system static foundation component class, the association relation between the sub-system dynamic foundation component and the sub-system static foundation component is divided into a sub-system class association foundation class, and the component information comprises a sub-system dynamic foundation component class, a sub-system static foundation component class and a sub-system class association foundation class.
Step 4: the component information is stored.
In this embodiment of the present application, the mechanical devices involved in the assembly plant may be classified according to preset classification information, which may specifically include, but not limited to: the system foundation assembly layer provides basic data support for the sub-system foundation assembly layer, the system foundation assembly layer and the sub-system foundation assembly layer carry out data association through the system-level association foundation assembly class, one system foundation assembly layer can be associated with only one sub-system foundation assembly layer, or one foundation assembly layer is associated with a plurality of sub-system foundation assembly layers.
In the embodiment of the application, the system foundation component layer comprises a system dynamic foundation component class, a system static foundation component class and a system level class association foundation class. The system dynamic basic component class can store system-level dynamic change data, the system static basic component class can store system-level static data, the system-level class association basic class can store association relation between the system-level dynamic change data and the system-level static data, and the system dynamic basic component class, the system static basic component class and the system-level class association basic class data integrally show the data structure relation, the graph drawing position, the key point data and the association relation of the system layer.
In the embodiment of the application, the subsystem basic component layer comprises a subsystem dynamic basic component class, a subsystem static basic component class and a subsystem level class association basic class. The subsystem dynamic basic component class stores subsystem-level dynamic change data, the subsystem static basic component class stores subsystem-level static data, the subsystem-level class association basic class stores an association relation between the subsystem-level dynamic change data and the subsystem-level static data, and the subsystem dynamic basic component class, the subsystem static basic component class and the subsystem-level class association basic class data integrally show the data structure relation, the graph drawing position, the key point data and the association relation of the subsystem layer.
In the embodiment of the application, the component information including the system base component layer, the sub-system base component layer, the system-level association base component class, the system dynamic base component class, the system static base component class, the system-level class association base class, the sub-system dynamic base component class, the sub-system static base component class and the sub-system-level class association base class is stored so as to facilitate subsequent data comparison.
Step S204: and under the condition that the change of the component information is monitored, acquiring the change information in the component information and generating a graphic redrawing instruction.
Optionally, under the condition that the change of the component information is monitored, the change information in the component information is acquired, and a graphic redrawing instruction is generated, and the method further comprises the following steps 1 to 4:
step 1: and recording the data of the component information in real time to obtain real-time monitoring data.
Step 2: and comparing the real-time monitoring data with the stored component information.
Step 3: and under the condition that the real-time monitoring data is different from the stored component information, extracting the change information and generating a graphic redrawing instruction.
Step 4: the change information is updated to the new stored component information.
In the embodiment of the application, in order to draw a real-time graph, real-time monitoring and recording component information including a system base component layer, a sub-system base component layer, a system level association base component class, a system dynamic base component class, a system static base component class, a system level class association base class, a sub-system dynamic base component class, a sub-system static base component class and a sub-system level class association base class are needed, real-time monitoring data is obtained, the real-time monitoring data is compared with stored component information, if the monitoring data obtained by the comparison result is different from the stored data, the different data is extracted as change information, a graph redrawing instruction is generated at the same time, then the extracted change information is stored in a covering mode at the same position, so that data updating is completed, and a latest comparison basis is provided for graph redrawing at the next position.
Step S206: and drawing the graphics according to the graphics redrawing instruction and the change information by adopting a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphics.
Optionally, a multithreading asynchronous drawing mode is adopted, drawing of the graphics is performed according to the graphics redrawing instruction and the change information, and a plurality of redrawn graphics are obtained, and the method further comprises the following steps 1 to 2:
step 1: component information is assigned to a plurality of threads.
Step 2: and starting threads corresponding to the change information according to the graphic redrawing instruction and the change information to carry out graphic redrawing, so as to obtain a plurality of drawn graphics, wherein the graphics redrawing is carried out among the threads in an asynchronous working mode.
In the embodiment of the application, since the whole system is relatively complex, the corresponding images are difficult to be drawn by a single image drawing mode, the image drawing mode is required to be layered and classified for drawing the images, namely, a system foundation component layer, a subsystem foundation component layer, a system-level association foundation component class, a system dynamic foundation component class, a system static foundation component class, a system-level category association foundation class, a subsystem dynamic foundation component class, a subsystem static foundation component class and a subsystem-level category association foundation class are required to be distributed to different threads, the threads do not interfere with each other, asynchronous work is achieved, when changing information is generated and a graph redrawing instruction is generated, a graph drawing module checks the level and category corresponding to the changing information, and starts the corresponding threads to carry out graph redrawing work.
In the embodiment of the application, the static data, namely the data in the system static base component class and the subsystem static base component class, is not changed usually, so that the static data is not redrawn under the normal condition in the drawing process. When the static data is abnormally changed, firstly, data marking is carried out, a worker is reminded to check to determine whether to redraw the change information, or when the change information is abnormally changed, the system marks the data, firstly, graphics drawing is carried out according to the change information and a graphics redrawing instruction, the data and the images before and after the abnormal change are reserved, and the worker is informed to carry out subsequent checking and confirmation. The dynamic class data of each layer is subjected to real-time redrawing action under normal conditions according to the change frequency of the data, and the redrawing action is not performed when the dynamic class data cannot monitor the data change, wherein the change frequency can be determined by priori knowledge, and can be obtained according to the change rule of the real-time dynamic data.
In the embodiment of the application, various graphics of each layer are completely isolated in the drawing process, no association is performed, and various redrawn graphics of each layer which are completely isolated are obtained after drawing is completed.
Step S208: and superposing the multiple graphs to obtain the overall graph of the target object.
Optionally, the stacking of the multiple graphics to obtain the overall graphics of the target object may further include the following steps: and carrying out relative position coverage superposition on the multiple graphs according to the component information, wherein the component information comprises a system-level association basic component class, a system-level category association basic class and a sub-system-level category association basic class.
In the embodiment of the application, after the fully isolated various redrawn graphics of each layer are obtained, the fully isolated various redrawn graphics of each layer are further required to be overlapped according to the association relation among various layers, so that the overall graphics of the target object are obtained. The system-level association basic component class stores an association relation between a system layer and a subsystem layer, the system-level class association basic class stores an association relation between a system dynamic basic component class and a system static basic component class, and the subsystem-level class association basic class stores an association relation between a subsystem dynamic basic component class and a subsystem static basic component class. And during superposition, the graphics of each layer are subjected to relative position coverage superposition on a bottom-up principle, wherein the bottom-up principle can be that firstly, sub-system graphics layer superposition is performed according to the association relation stored in the sub-system class association basic class, then, system graphics layer superposition is performed according to the association relation stored in the system class association basic class, finally, the superposition of the whole graphics layer is performed according to the association relation stored in the system class association basic component class, the whole graphics of the target object are obtained, the whole graphics displayed after superposition are uniformly displayed in a dynamic change mode, and finally, the graphics supported by big data are drawn in real time.
Optionally, the method may further include: and adding a passive response event, wherein the passive response event comprises a single click event, a double click event, a long press event and a sliding event, and is used for modifying data, checking details and sending instructions to an associated lower computer. "passive" refers to a form that cannot trigger itself actively, requiring other transactions to trigger. Each layer of passive response event is based on the principle of feedback from top to bottom, and after the feedback of the upper layer, the event action is not transmitted downwards any more. When the upper layer does not do feedback action, the event action continues to be transmitted downwards until the lowest layer of the graph layer. If all layers do not make feedback actions, the event will not respond. For example: after the clicking operation is performed, the upper layer in the graph superposition can select whether feedback is performed or not, if no feedback operation is performed, the clicking event is continuously transmitted to the next layer of graph until the last layer, and if no feedback is performed on all the layers, no feedback action is performed on the clicking event.
The embodiment of the application can be operated in a terminal of a system-level platform, namely an upper computer, and the upper computer is used for receiving data transmitted by a lower computer and a server and sending instructions to the lower computer. The lower computer can be data acquisition equipment, detection equipment and the like, such as a torque wrench, a pressure tester and the like. The passive response event is used for modifying data, checking details and sending instructions to the associated lower computer.
The data modification may specifically be that after the data acquisition device such as a torque wrench acquires data, the data is found to exceed a normal value, and a fault is determined. At this time, the worker will get rid of the trouble and measure again. The measured data after the staff is removed from the fault cannot be directly accessed into the graphic drawing system, the data is required to be input into the graphic drawing system in a filling mode, for example, a target needing to be modified is clicked to be selected, and the target is double-clicked to modify the data.
The detail view can be specifically that when any position of the graph is clicked, the data condition used for drawing the graph is displayed above the clicked position.
The instruction to the associated lower computer may specifically be a function included in the graphics rendering method. The sent instructions may include, for example, start, end, last step, next step, etc. instructions for the smart multimeter.
Optionally, the method may further include: and carrying out fuzzy indexing in the components of the target object according to the acquired index information, and selecting the target object components obtained by indexing to draw required graphs, wherein the index information comprises keywords, categories and models of the components. When a worker needs to check, modify or send an instruction to a lower computer to a certain system component in actual operation, the worker can input index information on the system to carry out fuzzy index, select and draw a desired system graph according to the result of the fuzzy index, and can also carry out accurate index to obtain the desired system graph for subsequent processing if the specific system component information is known.
Optionally, the embodiment of the application is written in Java language, and can be performed in a cross-platform mode based on the cross-platform characteristic of Java language.
In the embodiment of the application, the acquired data of the plurality of types of components are classified to obtain the component information, under the condition that the component information is monitored to change, the change information in the component information is acquired and the graphic redrawing instruction is generated, the graphic drawing is performed according to the graphic redrawing instruction and the change information in a multithreading asynchronous drawing mode, a plurality of graphs after redrawing are obtained, the plurality of graphs are overlapped, and the overall graph of the target object is obtained.
According to still another aspect of the embodiments of the present application, as shown in fig. 3, there is provided an embodiment of a graphic real-time rendering apparatus, including:
the classification module 301 is configured to classify collected data of multiple types of components to obtain component information, where the multiple types of components include a system base component and a subsystem base component of a target object, the system base component includes a system dynamic base component and a system static base component, and the subsystem base component includes a subsystem dynamic base component and a subsystem static base component; the monitoring module 303 is configured to obtain change information in the component information and generate a graphic redrawing instruction when it is monitored that the component information changes; the graphics redrawing module 305 is configured to draw graphics according to graphics redrawing instructions and change information by using a multithreading asynchronous drawing manner, so as to obtain a plurality of redrawn graphics, where each of the plurality of graphics is drawn by using change information corresponding to data of one type of component; and the superposition module 307 is configured to superimpose the multiple graphics to obtain an overall graphics of the target object.
Optionally, the graphic real-time rendering device may further include: the first classification module is used for dividing the data acquired by the system foundation assembly into a system foundation assembly layer, dividing the data acquired by the system foundation assembly into a sub-system foundation assembly layer, dividing the association relationship between the system foundation assembly and the sub-system foundation assembly into a system-level association foundation assembly class, and the assembly information comprises the system foundation assembly layer, the sub-system foundation assembly layer and the system-level association foundation assembly class; the second classification module is used for classifying the data acquired by the system dynamic foundation assembly and the system static foundation assembly into a system dynamic foundation assembly class and a system static foundation assembly class, classifying the association relationship between the system dynamic foundation assembly and the system static foundation assembly into a system-level class association foundation class, and the assembly information comprises the system dynamic foundation assembly class, the system static foundation assembly class and the system-level class association foundation class; the third classification module is used for classifying the data acquired by the subsystem dynamic base component and the subsystem static base component into a subsystem dynamic base component class and a subsystem static base component class, classifying the association relationship between the subsystem dynamic base component and the subsystem static base component into a subsystem-level class association base class, and the component information comprises the subsystem dynamic base component class, the subsystem static base component class and the subsystem-level class association base class; and the storage module is used for storing the component information.
Optionally, the graphic real-time rendering device may further include: the real-time recording module is used for recording the data of the component information in real time to obtain real-time monitoring data; the comparison module is used for comparing the real-time monitoring data with the stored component information; the processing module is used for extracting the change information and generating a graphic redrawing instruction when the real-time monitoring data is different from the stored component information; and the updating module is used for updating the change information into the new stored component information.
Optionally, the graphic real-time rendering device may further include: the thread dividing module is used for distributing the component information to a plurality of threads; and the graphic redrawing module is used for starting threads corresponding to the change information to redraw the graphics according to the graphic redrawing instruction and the change information to obtain a plurality of redraws, wherein the multiple threads carry out graphic redrawing in an asynchronous working mode.
Optionally, the graphic real-time rendering device may further include: and the superposition module is used for carrying out relative position coverage superposition on the multiple graphs according to the component information, wherein the component information comprises a system-level association basic component class, a system-level class association basic class and a sub-system-level class association basic class.
Optionally, the graphic real-time rendering device may further include: the response adding module is used for adding passive response events, wherein the passive response events comprise a single click event, a double click event, a long press event and a sliding event, and are used for modifying data, checking details and sending instructions to an associated lower computer.
Optionally, the graphic real-time rendering device may further include: and the index and selection module is used for carrying out fuzzy index in the components of the target object according to the acquired index information and selecting the target components obtained by the index to draw required graphs, wherein the index information comprises keywords, types and models of the components.
There is also provided in accordance with a further aspect of embodiments of the present application a computer device comprising a memory, a processor, the memory storing a computer program executable on the processor, the processor implementing the above steps when executing the computer program.
The memory and the processor in the computer device communicate with the communication interface through a communication bus. The communication bus may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The communication bus may be classified as an address bus, a data bus, a control bus, or the like.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform any of the methods described above.
In specific implementation, the embodiments of the present application may refer to the above embodiments, which have corresponding technical effects.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP devices, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
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 solution. 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 application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may 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 or, what contributes to the prior art, or part of the technical solutions, may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc. It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A method for drawing a graphic in real time, comprising:
classifying the collected data of a plurality of types of components to obtain component information, wherein the plurality of types of components comprise a system foundation component and a subsystem foundation component of a target object, the system foundation component comprises a system dynamic foundation component and a system static foundation component, and the subsystem foundation component comprises a subsystem dynamic foundation component and a subsystem static foundation component;
under the condition that the change of the component information is monitored, the change information in the component information is obtained and a graphic redrawing instruction is generated;
drawing the graphics according to the graphics redrawing instruction and the change information by adopting a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphics, wherein each graphic in the plurality of graphics is drawn by utilizing the change information corresponding to the data of one type of component;
superposing the multiple graphs to obtain an overall graph of the target object;
the classifying the collected data of the plurality of types of components to obtain component information comprises the following steps:
dividing the data acquired by the system foundation assembly into a system foundation assembly layer, dividing the data acquired by the subsystem foundation assembly into a subsystem foundation assembly layer, dividing the association relationship between the system foundation assembly and the subsystem foundation assembly into a system-level association foundation assembly class, and dividing the assembly information into the system foundation assembly layer, the subsystem foundation assembly layer and the system-level association foundation assembly class;
dividing the data collected by the system dynamic foundation component and the system static foundation component into a system dynamic foundation component class and a system static foundation component class, dividing the association relation between the system dynamic foundation component and the system static foundation component into a system-level class association foundation class, and dividing the component information into the system dynamic foundation component class, the system static foundation component class and the system-level class association foundation class;
dividing the data acquired by the subsystem dynamic base component and the subsystem static base component into a subsystem dynamic base component class and a subsystem static base component class, dividing the association relation between the subsystem dynamic base component and the subsystem static base component into a subsystem-level class association base class, and dividing the component information into the subsystem dynamic base component class, the subsystem static base component class and the subsystem-level class association base class;
and storing the component information.
2. The method of claim 1, wherein, in the event that a change in the component information is monitored, obtaining the change information in the component information and generating a graphics redrawing instruction comprises:
recording the data of the component information in real time to obtain real-time monitoring data;
comparing the real-time monitoring data with the stored component information;
when the real-time monitoring data is different from the stored component information, extracting the change information and generating the graphic redrawing instruction;
updating the change information to the newly stored component information.
3. The method of claim 1, wherein performing graphics rendering according to the graphics redrawing instruction and the change information by using a multithreaded asynchronous rendering manner, obtaining a plurality of redrawn graphics includes:
distributing the component information to a plurality of threads;
and starting the thread corresponding to the change information to carry out graphic redrawing according to the graphic redrawing instruction and the change information to obtain a plurality of graphics after redrawing, wherein the graphics redrawing is carried out among the plurality of threads in an asynchronous working mode.
4. The method of claim 1, wherein overlaying the plurality of graphics to obtain the overall graphic of the target object comprises:
and carrying out relative position coverage superposition on the multiple graphs according to the component information, wherein the component information comprises the system-level association basic component class, the system-level class association basic class and the sub-system-level class association basic class.
5. The method according to claim 1, wherein the method further comprises:
and adding a passive response event, wherein the passive response event comprises a single click event, a double click event, a long press event and a sliding event, and is used for modifying data, checking details and sending instructions to an associated lower computer.
6. The method according to claim 1, wherein the method further comprises:
and carrying out fuzzy indexing in the components of the target object according to the acquired index information, and selecting the target components obtained by indexing to draw required graphs, wherein the index information comprises keywords, categories and models of the components.
7. A real-time graphics rendering apparatus, comprising:
the classification module is used for classifying the acquired data of a plurality of types of components to obtain component information, wherein the plurality of types of components comprise a system foundation component and a subsystem foundation component of a target object, the system foundation component comprises a system dynamic foundation component and a system static foundation component, and the subsystem foundation component comprises a subsystem dynamic foundation component and a subsystem static foundation component;
the monitoring module is used for acquiring the change information in the component information and generating a graphic redrawing instruction under the condition that the component information is monitored to change;
the graphic redrawing module is used for drawing the graphics according to the graphic redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphics, wherein each graphic in the plurality of graphics is drawn by utilizing the change information corresponding to the data of one type of component;
the superposition module is used for superposing the multiple graphs to obtain the overall graph of the target object;
the classification module is used for:
dividing the data acquired by the system foundation assembly into a system foundation assembly layer, dividing the data acquired by the subsystem foundation assembly into a subsystem foundation assembly layer, dividing the association relationship between the system foundation assembly and the subsystem foundation assembly into a system-level association foundation assembly class, and dividing the assembly information into the system foundation assembly layer, the subsystem foundation assembly layer and the system-level association foundation assembly class;
dividing the data collected by the system dynamic foundation component and the system static foundation component into a system dynamic foundation component class and a system static foundation component class, dividing the association relation between the system dynamic foundation component and the system static foundation component into a system-level class association foundation class, and dividing the component information into the system dynamic foundation component class, the system static foundation component class and the system-level class association foundation class;
dividing the data acquired by the subsystem dynamic base component and the subsystem static base component into a subsystem dynamic base component class and a subsystem static base component class, dividing the association relation between the subsystem dynamic base component and the subsystem static base component into a subsystem-level class association base class, and dividing the component information into the subsystem dynamic base component class, the subsystem static base component class and the subsystem-level class association base class;
and storing the component information.
8. A computer device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method of any of the preceding claims 1 to 6.
9. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010004584.5A CN111243059B (en) | 2020-01-03 | 2020-01-03 | Method, device, equipment and computer readable medium for drawing graph in real time |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010004584.5A CN111243059B (en) | 2020-01-03 | 2020-01-03 | Method, device, equipment and computer readable medium for drawing graph in real time |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111243059A CN111243059A (en) | 2020-06-05 |
| CN111243059B true CN111243059B (en) | 2023-05-26 |
Family
ID=70872916
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010004584.5A Active CN111243059B (en) | 2020-01-03 | 2020-01-03 | Method, device, equipment and computer readable medium for drawing graph in real time |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111243059B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114691701A (en) * | 2020-12-31 | 2022-07-01 | 华为技术有限公司 | High-precision map update method and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109343924A (en) * | 2018-09-20 | 2019-02-15 | 北京锐安科技有限公司 | Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed |
| CN109804364A (en) * | 2016-10-18 | 2019-05-24 | 浙江核新同花顺网络信息股份有限公司 | Knowledge mapping constructs system and method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9147129B2 (en) * | 2011-11-18 | 2015-09-29 | Honeywell International Inc. | Score fusion and training data recycling for video classification |
-
2020
- 2020-01-03 CN CN202010004584.5A patent/CN111243059B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109804364A (en) * | 2016-10-18 | 2019-05-24 | 浙江核新同花顺网络信息股份有限公司 | Knowledge mapping constructs system and method |
| CN109343924A (en) * | 2018-09-20 | 2019-02-15 | 北京锐安科技有限公司 | Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed |
Non-Patent Citations (1)
| Title |
|---|
| 赵旭宝 ; 魏伟 ; .重载列车动力学仿真绘图工具的设计与实现.计算机工程与设计.2010,(第22期),全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111243059A (en) | 2020-06-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11275357B2 (en) | Event analyzing device, event analyzing system, event analyzing method, and non-transitory computer readable storage medium | |
| WO2020168190A1 (en) | Process mapping and monitoring using artificial intelligence | |
| CN109933019B (en) | Industrial control system, supporting device thereof, control supporting method thereof, and storage medium | |
| JP6538057B2 (en) | Computer-implemented method and system for automatically monitoring and determining the status of all process segments in a process unit | |
| US20220035356A1 (en) | Equipment failure diagnosis support system and equipment failure diagnosis support method | |
| DE102016119100A9 (en) | Data analysis services for distributed performance monitoring of industrial installations | |
| CN108427382A (en) | Event resolver, system, method and computer-readable nonvolatile recording medium | |
| CN102736582A (en) | Methods and apparatus to manage process control resources | |
| EP3327528A1 (en) | Information processing apparatus, information processing system, information processing method, and information processing program | |
| WO2015106894A1 (en) | Method and system for use in connection with an industrial control system | |
| US10691118B2 (en) | Information retrieval system and method | |
| CN111243059B (en) | Method, device, equipment and computer readable medium for drawing graph in real time | |
| WO2020066124A1 (en) | Process state analysis device and process state display method | |
| KR20230090274A (en) | Ai based manufacturing equipment diagnosis and chat bot response method | |
| JP2021516808A (en) | Systems and methods for explaining state prediction in complex systems | |
| CN111066038A (en) | Alert-enabled passive application integration | |
| CN107766306B (en) | Data display method and equipment | |
| CN112785418A (en) | Credit risk modeling method, credit risk modeling device, credit risk modeling equipment and computer readable storage medium | |
| CN114035470B (en) | Unit state display method and device and storage medium | |
| CN113326626B (en) | User-oriented system modeling simulation platform and method | |
| DE112021005168T5 (en) | SUPPORT DEVICE AND MECHANICAL SYSTEM | |
| CN114328051A (en) | Equipment function detection method and device applied to recovery detection | |
| Ross | The collection and use of data for monitoring software projects | |
| CN116467139B (en) | System alarm repetition rate detection method, electronic equipment and readable storage medium | |
| CN115994070B (en) | System availability detection method and device, electronic equipment and readable storage medium |
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 |