CN111243059A - Method, device and equipment for drawing graph in real time and computer readable medium - Google Patents

Method, device and equipment for drawing graph in real time and computer readable medium Download PDF

Info

Publication number
CN111243059A
CN111243059A CN202010004584.5A CN202010004584A CN111243059A CN 111243059 A CN111243059 A CN 111243059A CN 202010004584 A CN202010004584 A CN 202010004584A CN 111243059 A CN111243059 A CN 111243059A
Authority
CN
China
Prior art keywords
basic component
component
subsystem
class
graph
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.)
Granted
Application number
CN202010004584.5A
Other languages
Chinese (zh)
Other versions
CN111243059B (en
Inventor
班树海
吕思宇
梅爱寒
石学文
肖江涛
白伟光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN202010004584.5A priority Critical patent/CN111243059B/en
Publication of CN111243059A publication Critical patent/CN111243059A/en
Application granted granted Critical
Publication of CN111243059B publication Critical patent/CN111243059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Image Generation (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: the method comprises the steps of classifying collected data of a plurality of types of assemblies to obtain assembly information, obtaining change information in the assembly information and generating a graph redrawing instruction under the condition that the assembly information is monitored to change, conducting graph drawing according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawed graphs, and superposing the plurality of graphs to obtain an integral graph of a target object. The method and the device can be used for visually displaying the equipment state and the working progress in a real-time graphical mode.

Description

Method, device and equipment for drawing graph in real time and computer readable medium
Technical Field
The present application relates to the field of automobile manufacturing, aircraft engine manufacturing, aircraft maintenance, and the like, and in particular, to a method, an apparatus, a device, and a computer readable medium for drawing a graph in real time.
Background
With the rapid development of computer technology and the coming of information era, the automatic development and data acquisition system of mechanical equipment is widely applied to various large mechanical equipment production assembly factories. The popularization of the automation technology promotes the digital construction of a mechanical equipment production assembly factory, greatly facilitates research and development personnel and front-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 related technologies are displayed in a table mode, although a digital factory is built in a mechanical equipment production assembly factory, data storage and display can be carried out only by means of tables when a large amount of production equipment, test equipment and field data are faced, graphical display cannot be adopted in real time, and therefore research personnel and front-line production personnel cannot visually control the state of the production process of the assembly factory, and even if data exist, the data cannot be seen and cannot be understood at first time.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a method, a device and equipment for drawing a graph in real time and a computer readable medium, which are used for solving the technical problem that the graph cannot be graphically displayed in real time.
In a first aspect, the present application provides a method for drawing a graph in real time, including: classifying the collected data of the components of multiple types to obtain component information, wherein the components of multiple types comprise a system basic component and a subsystem basic component of a target object, the system basic component comprises a system dynamic basic component and a system static basic component, and the subsystem basic component comprises a subsystem dynamic basic component and a subsystem static basic component; under the condition that the component information is monitored to change, obtaining the change information in the component information and generating a graph redrawing instruction; drawing the graph according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphs, wherein each graph in the plurality of graphs is drawn by using the change information corresponding to the data of one type of component; and superposing the plurality of graphs to obtain the whole graph of the target object.
Optionally, classifying the collected data of the plurality of types of components, and obtaining component information includes: dividing data acquired by a system basic component into a system basic component layer, dividing data acquired by the system basic component into a subsystem basic component layer, and dividing an association relation between the system basic component and the subsystem basic component into a system level association basic component class, wherein component information comprises the system basic component layer, the subsystem basic component layer and the system level association basic component class; dividing data acquired by a system dynamic basic component and a system static basic component into a system dynamic basic component class and a system static basic component class, dividing an association relation between the system dynamic basic component and the system static basic component into a system level class association basic class, wherein component information comprises the system dynamic basic component class, the system static basic component class and the system level class association basic class; dividing data acquired by the branch system dynamic basic component and the branch system static basic component into a branch system dynamic basic component class and a branch system static basic component class, dividing the incidence relation between the branch system dynamic basic component and the branch system static basic component into a branch system level category incidence basic class, wherein the component information comprises a branch system dynamic basic component class, a branch system static basic component class and a branch system level category incidence basic class; and storing the component information.
Optionally, when it is monitored that the component information changes, the obtaining of the change information in the component information and the generating of the graph redrawing instruction includes: recording 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; extracting change information and generating a graph redrawing instruction under the condition that the real-time monitoring data is different from the stored component information; the change information is updated to the new stored component information.
Optionally, the method of multithread asynchronous drawing is adopted, and the drawing of the graph is performed according to the graph redrawing instruction and the change information, and obtaining a plurality of redrawn graphs includes: assigning the component information to a plurality of threads; and starting the threads corresponding to the change information according to the graph redrawing instruction and the change information to redraw the graph to obtain a plurality of redrawn graphs, wherein the multiple threads redraw the graph in an asynchronous working mode.
Optionally, the overlaying the plurality of graphs to obtain the overall graph of the target object includes: and overlaying the relative positions of the plurality of 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 subsystem level category association basic class.
Optionally, the method further comprises: and 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, viewing details and sending instructions to the 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 a required graph, wherein the index information comprises keywords, categories and models of the components.
In a second aspect, the present application provides a device for drawing a graph in real time, including: the classification module is used for classifying the collected data of the components of multiple types to obtain component information, the components of multiple types comprise a system basic component and a subsystem basic component of a target object, the system basic component comprises a system dynamic basic component and a system static basic component, and the subsystem basic component comprises a subsystem dynamic basic component and a subsystem static basic component; the monitoring module is used for acquiring the change information in the component information and generating a graph redrawing instruction under the condition that the component information is monitored to change; the graph redrawing module is used for performing graph drawing according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphs, wherein each graph in the plurality of graphs is obtained by drawing the change information corresponding to the data of one type of component; and the superposition module is used for superposing the plurality of graphs to obtain the whole graph of the target object.
In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor implements the steps of any one of the above methods when executing the computer program.
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 assemblies to obtain assembly information, acquiring change information in the assembly information and generating a graph redrawing instruction under the condition that the assembly information is monitored to change, carrying out graph drawing according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawed graphs, superposing the plurality of graphs to obtain an integral graph of a target object, carrying out visual real-time graphical display on the equipment state and the working progress, and enabling the graphs to be generated more quickly and refreshed more timely.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the technical solutions in the embodiments or related technologies of the present application, the drawings needed to be used in the description of the embodiments or related technologies will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without any creative effort.
Fig. 1 is a schematic diagram of a hardware environment of an alternative graphics real-time rendering method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method for real-time rendering of graphics according to an embodiment of the present application;
fig. 3 is a block diagram of an alternative real-time graphics rendering apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in 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 obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
According to an aspect of embodiments of the present application, an embodiment of a method for drawing a graph in real time is provided.
Alternatively, in the embodiment of the present application, the graphics real-time rendering method may be applied to a hardware environment formed by the terminal 101 and the server 103 as shown in fig. 1. As shown in fig. 1, a server 103 is connected to a terminal 101 through a network, which may be used to provide services for the terminal or a client installed on the terminal, and a database 105 may be provided on the server or separately from the server, and is used to provide data storage services for the server 103, and the network includes but is not limited to: wide area network, metropolitan area network, or local area network, and the terminal 101 includes but is not limited to a PC, a cell phone, a tablet computer, and the like.
A method for drawing a graph in real time in the embodiment of the present application may be executed by the server 103, as shown in fig. 2, the method may include the following steps:
step S202: and classifying the collected data of the components of multiple types to obtain component information.
In the embodiment of the application, the data acquisition can adopt methods of inputting by operators and uploading by associated equipment, and the input and uploaded data can be data recorded in a form of a table or can be data directly input and uploaded to picture files. Optionally, the data acquisition may also adopt an intelligent photographing device to directly acquire image data, and the photographing device may be a mobile phone, a camera, an industrial camera, or the like.
Optionally, classifying the collected data of the plurality of types of components to obtain component information includes the following steps 1 to 4:
step 1: the data collected by the system basic component is divided into a system basic component layer, the data collected by the system basic component is divided into a subsystem basic component layer, the association relation between the system basic component and the subsystem basic component is divided into a system level association basic component class, and the component information comprises the system basic component layer, the subsystem basic component layer and the system level association basic component class.
Step 2: the data collected by the system dynamic basic component and the system static basic component are divided into a system dynamic basic component class and a system static basic component class, the association relation between the system dynamic basic component and the system static basic component is divided into a system level class association basic class, and the component information comprises the system dynamic basic component class, the system static basic component class and the system level class association basic class.
And step 3: the data collected by the branch system dynamic basic component and the branch system static basic component are divided into a branch system dynamic basic component class and a branch system static basic component class, the association relation between the branch system dynamic basic component and the branch system static basic component is divided into a branch system level category association basic class, and the component information comprises a branch system dynamic basic component class, a branch system static basic component class and a branch system level category association basic class.
And 4, step 4: and storing the component information.
In the embodiment of the present application, the mechanical devices involved in the final assembly plant may be classified according to preset classification information, which may specifically include but are not limited to: the system comprises a system basic component layer, a subsystem basic component layer, a system level association basic component class, a system dynamic basic component class, a system static basic component class, a system level category association basic class, a subsystem dynamic basic component class, a subsystem static basic component class and a subsystem level category association basic class, wherein the system basic component layer provides basic data support for the subsystem basic component layer, the system basic component layer and the subsystem basic component layer carry out data association through the system level association basic component class, one system basic component layer can be only associated with one subsystem basic component layer, and one basic component layer can be associated with a plurality of subsystem basic component layers.
In the embodiment of the application, the system basic component layer comprises a system dynamic basic component class, a system static basic component class and a system level class association basic class. The system dynamic basic component type can store data with system level dynamic change, the system static basic component type can store system level static data, the system level type association basic type can store association relation between the system level dynamic change data and the system level static data, and the system dynamic basic component type, the system static basic component type and the system level type association basic type integrally show data structure relation, graph drawing position, key point data and 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 class association basic class. The data structure relationship, the graph drawing position, the key point data and the association relationship of the subsystem layer are integrally represented by the subsystem dynamic basic component class, the subsystem static basic component class and the subsystem class association basic data.
In the embodiment of the application, the component information including the system basic component layer, the subsystem basic component layer, the system level associated basic component class, the system dynamic basic component class, the system static basic component class, the system level category associated basic class, the subsystem dynamic basic component class, the subsystem static basic component class and the subsystem level category associated basic class is stored for subsequent data comparison.
Step S204: and under the condition that the component information is monitored to change, obtaining the change information in the component information and generating a graph redrawing instruction.
Optionally, when it is monitored that the component information changes, obtaining change information in the component information and generating a graphics redrawing instruction may further include 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: the real-time monitoring data is compared with the stored component information.
And 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 graph redrawing instruction.
And 4, step 4: the change information is updated to the new stored component information.
In the embodiment of the application, in order to perform real-time graph drawing, component information including a system basic component layer, a subsystem basic component layer, a system level associated basic component class, a system dynamic basic component class, a system static basic component class, a system level category associated basic class, a subsystem dynamic basic component class, a subsystem static basic component class and a subsystem level category associated basic class is monitored and recorded in real time to obtain real-time monitoring data, 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, simultaneously, a graph redrawing instruction is generated, then the extracted change information is used for covering and storing the originally stored component information at the same position, to complete the data update and to provide the latest contrast basis for the next graphic redrawing of the location.
Step S206: and drawing the graph by adopting a multithreading asynchronous drawing mode according to the graph redrawing instruction and the change information to obtain a plurality of redrawn graphs.
Optionally, a multithreading asynchronous drawing mode is adopted, the graphics are drawn according to the graphics redrawing instruction and the change information to obtain a plurality of redrawn graphics, and the method may further include the following steps 1 to 2:
step 1: the component information is assigned to a plurality of threads.
Step 2: and starting the threads corresponding to the change information according to the graph redrawing instruction and the change information to redraw the graph to obtain a plurality of redrawn graphs, wherein the multiple threads redraw the graph in an asynchronous working mode.
In the embodiment of the application, because the whole system is relatively complex, and the corresponding image is difficult to be drawn by a single image drawing mode, the graphics drawing needs to be layered and classified by adopting a multithread asynchronous drawing mode, namely, a system basic component layer, a subsystem basic component layer, a system level association basic component class, a system dynamic basic component class, a system static basic component class, a system level category association basic class, a subsystem dynamic basic component class, a subsystem static basic component class and a subsystem level category association basic class need to be distributed to different threads, all the threads are not interfered with one another and work asynchronously, when the change information is generated and the graphics redrawing instruction is generated, the graphics drawing module checks the level and the category corresponding to the change information, starts the corresponding thread to perform the graphics redrawing operation, and optionally, the graphics drawing module can simultaneously process a plurality of change information and the corresponding graphics redrawing instruction, asynchronous work is realized, so that the time for drawing the graph is greatly shortened, the real-time performance of data display is effectively improved, and the problem of slow refreshing is solved.
In the embodiment of the application, the static data, i.e., the data in the system static basic component class and the subsystem static basic component class, is usually not changed, so the static data is not redrawn in the drawing process under the normal condition. When the static data has abnormal change, the data is labeled firstly and the staff is reminded to check to determine whether to redraw the change information, or when the static data has abnormal change, the system labels the data firstly, performs graph drawing firstly according to the change information and the graph redrawing instruction, reserves the data and the images before and after the abnormal change, and informs the staff to perform subsequent check and confirmation. And performing real-time redrawing action on each layer of dynamic class data under a normal condition according to the change frequency of the data, and not performing the redrawing action when the dynamic class data cannot be monitored to change the data, wherein the change frequency can be determined by priori knowledge or obtained according to the change rule of the real-time dynamic data.
In the embodiment of the application, all the graphs of each layer are completely isolated in the drawing process without any association, and all the redrawn graphs of each layer are completely isolated after the drawing is completed.
Step S208: and superposing the plurality of graphs to obtain the whole graph of the target object.
Optionally, the step of superimposing a plurality of graphics to obtain an overall graphic of the target object may further include: and overlaying the relative positions of the plurality of 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 subsystem level category association basic class.
In the embodiment of the present application, after obtaining the completely isolated redrawn graphics of each layer, the completely isolated redrawn graphics of each layer need to be superimposed according to the association relationship between each layer, so as to obtain the whole graphics of the target object. The system level type association basic component stores the association relationship between the system layer and the subsystem layer, the system level type association basic component stores the association relationship between the system dynamic basic component and the system static basic component, and the subsystem level type association basic component stores the association relationship between the subsystem dynamic basic component and the subsystem static basic component. When in superposition, each layer of graphics is overlaid and superposed in a relative position manner according to a principle of bottom to top, wherein the principle of bottom to top can be that the system layer is superposed according to the incidence relation stored by the system level type association basic type, then the system layer is superposed according to the incidence relation stored by the system level type association basic type, finally the whole layer is superposed according to the incidence relation stored by the system level association basic component type to obtain the whole graphics of the target object, the whole graphics displayed after superposition are uniformly displayed in a dynamic change manner, and finally the real-time drawing of the graphics supported by big data is realized.
Optionally, the method may further include: and 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, viewing details and sending instructions to the associated lower computer. "passive" refers to a form that does not trigger itself actively, requiring other transactions to trigger. The passive response events of each layer are fed back from top to bottom, and after the upper layer feeds back, the event actions are not transmitted downwards. And when the upper layer does not perform the feedback action, the event action is continuously transmitted downwards until the lowest layer. If all layers do not make feedback actions, the event will not make any response. For example: after the clicking operation is carried out, the upper layer in the graph superposition can select whether to carry out feedback, if the feedback operation is not carried out, the clicking event is continuously transmitted to the next layer of graphs until the last layer, and if all the layers do not carry out feedback, the clicking event does not carry out any feedback action.
The embodiment of the application can operate in a terminal of a system-level platform, namely the upper computer, and the upper computer is used for receiving data transmitted by the lower computer and the 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 the data, the data is found to exceed a normal value, and a fault is determined. At this time, the worker may remove the trouble and perform the measurement again. Data measured after the worker gets rid of the fault cannot be directly accessed into the graph drawing system, and the data needs to be recorded into the graph drawing system in a filling mode, for example, a target needing data modification is clicked to select, and the target is double clicked to modify the data.
The detail viewing specifically may be that when any position of the click graph is clicked, a data condition used for drawing the graph is displayed above the click position.
The instruction to be transmitted to the associated lower computer may specifically be a function included in the graphic drawing method. The transmitted instructions may include, for example, instructions for the intelligent multimeter to start, end, last step, next step, etc.
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 a required graph, wherein the index information comprises keywords, categories and models of the components. When a worker needs to check and modify a certain system component or send an instruction to a lower computer in actual operation, the worker can input index information on the system to perform fuzzy indexing, select and draw a desired system graph according to the result of the fuzzy indexing, and if specific system component information is known, the worker can perform accurate indexing to obtain the desired system graph for subsequent processing.
Optionally, the embodiment of the present application is written in Java language, and based on the cross-platform characteristics of Java language, the embodiment of the present application can be performed in a cross-platform manner.
In the embodiment of the application, the collected data of the components of multiple types is classified to obtain component information, under the condition that the component information is monitored to change, the change information in the component information is obtained and a graph redrawing instruction is generated, a multithreading asynchronous drawing mode is adopted, graph drawing is carried out according to the graph redrawing instruction and the change information, multiple graphs after redrawing are obtained, the multiple graphs are overlapped, and the method for obtaining the whole graph of a target object can be used for carrying out visual real-time graphical display on the equipment state and the working progress, further the graph is generated more quickly and refreshing is more timely.
According to another aspect of the embodiments of the present application, as shown in fig. 3, there is provided an embodiment of a graphics real-time rendering apparatus, including:
the classification module 301 is configured to classify the collected data of the multiple types of components to obtain component information, where the multiple types of components include a system basic component and a subsystem basic component of a target object, the system basic component includes a system dynamic basic component and a system static basic component, and the subsystem basic component includes a subsystem dynamic basic component and a subsystem static basic component; the monitoring module 303 is configured to acquire change information in the component information and generate a graphics redrawing instruction when the component information is monitored to change; the graph redrawing module 305 is configured to perform graph drawing according to a graph redrawing instruction and change information in a multi-thread asynchronous drawing manner, so as to obtain a plurality of redrawed graphs, where each graph in the plurality of graphs is obtained by drawing change information corresponding to data of one type of component; and the overlaying module 307 is configured to overlay the plurality of graphs to obtain an overall graph of the target object.
Optionally, the apparatus for drawing a graph in real time may further include: the system comprises a first classification module, a second classification module and a third classification module, wherein the first classification module is used for dividing data acquired by a system basic component into a system basic component layer, dividing data acquired by the system basic component into a subsystem basic component layer, and dividing the incidence relation between the system basic component and the subsystem basic component into a system level incidence basic component class, and the component information comprises the system basic component layer, the subsystem basic component layer and the system level incidence basic component class; the second classification module is used for classifying data acquired by the system dynamic basic component and the system static basic component into a system dynamic basic component class and a system static basic component class, classifying the association relationship between the system dynamic basic component and the system static basic component into a system level class association basic class, and classifying component information comprising the system dynamic basic component class, the system static basic component class and the system level class association basic class; the third classification module is used for classifying data acquired by the subsystem dynamic basic component and the subsystem static basic component into a subsystem dynamic basic component class and a subsystem static basic component class, classifying the incidence relation between the subsystem dynamic basic component and the subsystem static basic component into a subsystem class incidence basic class, and classifying component information into a subsystem dynamic basic component class, a subsystem static basic component class and a subsystem class incidence basic class; and the storage module is used for storing the component information.
Optionally, the apparatus for drawing a graph in real time may further include: the real-time recording module is used for recording 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 graph redrawing instruction under the condition that the real-time monitoring data is different from the stored component information; and the updating module is used for updating the change information into new stored component information.
Optionally, the apparatus for drawing a graph in real time may further include: a thread partitioning module for allocating the component information to a plurality of threads; and the graph redrawing module is used for starting the threads corresponding to the change information according to the graph redrawing instruction and the change information to redraw the graph to obtain a plurality of redrawn graphs, wherein the multiple threads redraw the graph in an asynchronous working mode.
Optionally, the apparatus for drawing a graph in real time may further include: and the superposition module is used for performing covering superposition on the relative positions of the plurality of 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 subsystem level category association basic class.
Optionally, the apparatus for drawing a graph in real time may further include: and the response adding module is used for adding passive response events, wherein the passive response events comprise single-click events, double-click events, long-press events and sliding events, and are used for modifying data, viewing details and sending instructions to the associated lower computer.
Optionally, the apparatus for drawing a graph in real time may further include: and the indexing and selecting module is used for 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 so as to draw the required graph, wherein the index information comprises keywords, types and models of the components.
There is also provided, in accordance with yet another aspect of the embodiments of the present application, a computer device, including a memory and a processor, the memory having stored therein a computer program executable on the processor, the processor implementing the steps when executing the computer program.
The memory and the processor in the computer device communicate with each other through a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a 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 processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
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.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, 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 performing 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 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 application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. 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 application 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 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 implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk. It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present 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 (10)

1. A method for drawing a graph in real time is characterized by comprising the following steps:
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 basic component and a subsystem basic component of a target object, the system basic component comprises a system dynamic basic component and a system static basic component, and the subsystem basic component comprises a subsystem dynamic basic component and a subsystem static basic component;
under the condition that the component information is monitored to change, obtaining the change information in the component information and generating a graph redrawing instruction;
performing graph drawing according to the graph redrawing instruction and the change information in a multithreading asynchronous drawing mode to obtain a plurality of redrawn graphs, wherein each graph in the plurality of graphs is obtained by drawing the change information corresponding to data of one type of component;
and superposing the plurality of graphs to obtain the whole graph of the target object.
2. The method of claim 1, wherein classifying the collected data for the plurality of types of components to obtain component information comprises:
dividing data acquired by the system basic component into a system basic component layer, dividing data acquired by the subsystem basic component into a subsystem basic component layer, and dividing an association relation between the system basic component and the subsystem basic component into a system level association basic component class, wherein the component information comprises the system basic component layer, the subsystem basic component layer and the system level association basic component class;
dividing data acquired by the system dynamic basic component and the system static basic component into a system dynamic basic component class and a system static basic component class, dividing an association relation between the system dynamic basic component and the system static basic component into a system level class association basic class, wherein the component information comprises the system dynamic basic component class, the system static basic component class and the system level class association basic class;
dividing data acquired by the subsystem dynamic basic component and the subsystem static basic component into a subsystem dynamic basic component class and a subsystem static basic component class, and dividing an association relation between the subsystem dynamic basic component and the subsystem static basic component into a subsystem level category association basic class, wherein the component information comprises the subsystem dynamic basic component class, the subsystem static basic component class and the subsystem level category association basic class;
and storing the component information.
3. The method of claim 1, wherein in the case that the component information is monitored to be changed, acquiring change information in the component information and generating a graphical redrawing instruction comprises:
recording 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 graph redrawing instruction;
updating the change information to the newly stored component information.
4. The method of claim 1, wherein performing graph drawing according to the graph redrawing instruction and the change information in a multi-thread asynchronous drawing manner to obtain a plurality of redrawn graphs comprises:
assigning the component information to a plurality of threads;
and starting the threads corresponding to the change information to redraw the graphs according to the graph redrawing instruction and the change information to obtain a plurality of redrawn graphs, wherein the multiple threads redraw the graphs in an asynchronous working mode.
5. The method of claim 1, wherein superimposing the plurality of graphics to obtain the overall graphic of the target object comprises:
and overlaying the plurality of graphs in a covering mode of relative positions according to the component information, wherein the component information comprises the system level association basic component class, the system level category association basic class and the subsystem level category association basic class.
6. The method of claim 1, further comprising:
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, viewing details and sending instructions to an associated lower computer.
7. The method of claim 1, further comprising:
and carrying out fuzzy indexing in the components of the target object according to the acquired index information, and selecting the indexed target components to draw a required graph, wherein the index information comprises keywords, categories and models of the components.
8. A real-time graphics rendering apparatus, comprising:
the system comprises a classification module, a data acquisition module and a data processing module, wherein the classification module is used for classifying collected data of a plurality of types of components to obtain component information, the plurality of types of components comprise a system basic component and a subsystem basic component of a target object, the system basic component comprises a system dynamic basic component and a system static basic component, and the subsystem basic component comprises a subsystem dynamic basic component and a subsystem static basic component;
the monitoring module is used for acquiring the change information in the component information and generating a graph redrawing instruction under the condition that the component information is monitored to change;
the graph redrawing module is used for performing graph drawing according to the graph redrawing instruction and the change information in a multi-thread asynchronous drawing mode to obtain a plurality of redrawn graphs, wherein each graph in the plurality of graphs is obtained by drawing the change information corresponding to the data of one type of component;
and the superposition module is used for superposing the plurality of graphs to obtain the whole graph of the target object.
9. A computer device comprising 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 method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1 to 7.
CN202010004584.5A 2020-01-03 2020-01-03 Method, device, equipment and computer readable medium for drawing graph in real time Active CN111243059B (en)

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 true CN111243059A (en) 2020-06-05
CN111243059B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142889A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 High-precision map updating method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132311A1 (en) * 2011-11-18 2013-05-23 Honeywell International Inc. Score fusion and training data recycling for video classification
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132311A1 (en) * 2011-11-18 2013-05-23 Honeywell International Inc. Score fusion and training data recycling for video classification
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)

* Cited by examiner, † Cited by third party
Title
赵旭宝;魏伟;: "重载列车动力学仿真绘图工具的设计与实现" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142889A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 High-precision map updating method and apparatus

Also Published As

Publication number Publication date
CN111243059B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
US10997308B2 (en) Systems and methods for error detection and diagnostics visualization
JP6643267B2 (en) Method, apparatus and computer program for managing process control resources
US20240160550A1 (en) Process mapping and monitoring using artificial intelligence
CN108474806B (en) System and method for monitoring manufacturing
US8479097B2 (en) Method and system for generating a control system user interface
JP2020017302A (en) Distributed industrial performance monitoring and analysis platform
CN109871670B (en) Method for operating and monitoring industrial equipment to be controlled and operator system
US9395891B2 (en) Method for providing a navigation tool of a user interface for an industrial control system
EP3095013B1 (en) Method and system for use in connection with an industrial control system
US10249033B1 (en) User interface for managing defects
US11983651B2 (en) Managing production pipelines
CN103680654A (en) Control method and system for nuclear power plant master-control room
CN114143220A (en) Real-time data visualization platform
CA2950448A1 (en) Information retrieval system and method
Pavlov et al. Case study of using virtual and augmented reality in industrial system monitoring
CN111243059A (en) Method, device and equipment for drawing graph in real time and computer readable medium
EP3511835A1 (en) Management of software bugs in a data processing system
EP3933571A1 (en) System for providing software development environment, method for providing software development environment, and non-transitory computer readable medium
CN107766306B (en) Data display method and equipment
CN111066038A (en) Alarm enabled passive application integration
JP2017076165A (en) Apparatus monitoring device and alert information management method
US20130194299A1 (en) Method and system for multi-ied event classification in an electrical grid
US20170357664A1 (en) Hierarchical navigation apparatus and method
CN117055506A (en) Method and system for monitoring industrial equipment based on GIS technology, equipment and medium
CN115834353A (en) Fault self-healing method, device, equipment, storage medium and computer program product

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