CN111708599B - Configuration diagram display method, device, equipment and storage medium - Google Patents

Configuration diagram display method, device, equipment and storage medium Download PDF

Info

Publication number
CN111708599B
CN111708599B CN202010828815.4A CN202010828815A CN111708599B CN 111708599 B CN111708599 B CN 111708599B CN 202010828815 A CN202010828815 A CN 202010828815A CN 111708599 B CN111708599 B CN 111708599B
Authority
CN
China
Prior art keywords
target
primitive
configuration
information
configuration diagram
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
Application number
CN202010828815.4A
Other languages
Chinese (zh)
Other versions
CN111708599A (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.)
Shencai Technology Co., Ltd
Original Assignee
Jiangsu Shencai 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 Jiangsu Shencai Technology Co ltd filed Critical Jiangsu Shencai Technology Co ltd
Priority to CN202010828815.4A priority Critical patent/CN111708599B/en
Publication of CN111708599A publication Critical patent/CN111708599A/en
Application granted granted Critical
Publication of CN111708599B publication Critical patent/CN111708599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a configuration diagram display method, a configuration diagram display device, configuration diagram display equipment and a storage medium. The configuration diagram display method comprises the following steps: acquiring target graphic element information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and configuration information comprises configuration information of at least two operating systems; determining an associated target primitive file according to the target primitive information, and acquiring target configuration information adaptive to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems; and displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information. According to the embodiment of the invention, the configuration diagram configuration file is issued to the platforms of different operating systems, so that the configuration diagrams are displayed on the platforms of a plurality of operating systems according to the same configuration diagram configuration file, and the configuration diagram is drawn at one time for displaying the plurality of platforms.

Description

Configuration diagram display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a configuration diagram display method, a configuration diagram display device, configuration diagram display equipment and a storage medium.
Background
The configuration diagram enables monitoring and control of automated processes and equipment. It can collect various information from automatic process and equipment, and can make the information implement necessary analysis processing and storage for information in the form of graphic form, etc. which can be more easily understood so as to give out control instruction.
Most of the existing configuration software for drawing configuration diagrams is based on Windows operating systems, and linux operating systems have become a new emerging force in the industrial control field due to the advantages of good stability, high reliability, free copyright and the like, and have great market and commercial values. In the future industrial control field, the condition that the Windows operating system and the linux operating system coexist can occur. The configuration software of a single operating system cannot meet the application requirements of users on multiple operating systems and multiple hardware platforms.
In the existing configuration software cross-platform application, a Browser/Server (Browser/Server) browsing or drawing manner is usually designed. However, the browser side of the B/S does not provide advanced operations such as complicated drawing of graphics, editing of dynamic graphics, and editing of scripts, and is therefore low in applicability.
Disclosure of Invention
The embodiment of the invention provides a configuration diagram display method, a configuration diagram display device, configuration diagram display equipment and a storage medium, so that cross-platform display of a configuration diagram is realized, and the applicability of the configuration diagram is improved.
In a first aspect, an embodiment of the present invention provides a configuration diagram displaying method, including:
acquiring target graphic element information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems;
determining a related target graphic primitive file according to the target graphic primitive information, and acquiring target configuration information adaptive to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems;
and displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
In a second aspect, an embodiment of the present invention further provides a configuration diagram display device, including:
the configuration file acquisition module is used for acquiring target graphic element information and configuration information in the configuration file of the configuration diagram; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems;
the adaptation information determining module is used for determining a related target primitive file according to the target primitive information and acquiring target configuration information adapted to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems;
and the configuration diagram display module is used for displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the configuration diagram display method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the configuration diagram displaying method according to any embodiment of the present invention.
The configuration file of the configuration diagram is pre-constructed based on the cross-platform framework, the target configuration information and the target graphic element file which are adaptive to the target operating system can be determined according to the configuration file, and the configuration file can support operation on various operating systems by determining the target configuration information from the configuration file. The configuration diagram configuration file is published to the platforms of different operating systems, so that the configuration diagrams can be displayed on the platforms of a plurality of operating systems according to the same configuration diagram configuration file, and one-time drawing and multi-platform display of the configuration diagrams are really realized.
Drawings
FIG. 1 is a flow chart of a configuration diagram display method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a configuration diagram displaying method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a configuration diagram displaying method according to a third embodiment of the present invention;
FIG. 4 is a diagram illustrating a configuration diagram according to a third embodiment of the present invention;
FIG. 5 is a schematic structural deployment diagram of a cross-platform display of a configuration diagram in a third embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation architecture in a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a configuration diagram display device according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a configuration diagram display method according to an embodiment of the present invention, which is applicable to a case where a configuration diagram is displayed on a platform of a multi-operating system. The method may be performed by a configuration diagram display apparatus, which may be implemented in software and/or hardware and may be configured in a device, for example, the device may be a device with communication and computing capabilities, such as a background server. As shown in fig. 1, the method specifically includes:
step 101, acquiring target primitive information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems.
The configuration diagram is used for monitoring and controlling an automatic process and equipment, the configuration diagram is composed of a plurality of pixels, the pixels are used for representing a certain specific component, such as a rotary pump, a heat exchanger or a compressor, and the operation condition of the pixels can be monitored through the construction of the configuration diagram. The configuration diagram configuration file refers to a file for parameter configuration of a configuration diagram drawn by a topological structure of a monitoring site, and the configuration diagram can be displayed on different platforms by adopting the configuration diagram configuration file constructed by a cross-platform framework in advance.
The target primitive information refers to specific information of primitives included in the configuration diagram, such as a primitive image and position information of the image. The configuration information refers to parameter information configured for the target primitive, such as a primitive name, an ID, and a trigger condition. The primitive name refers to information for distinguishing the type and the purpose of the primitive according to the requirements of a user; the primitive ID refers to identity information distributed for each primitive; the primitive trigger condition refers to a condition that the component represented by the primitive can operate.
The configuration information of at least two operating systems included in the configuration information is realized by using a cross-platform framework, a configuration file is constructed by using the cross-platform framework, a plurality of executable files can be generated by compiling the drawn configuration diagram at one time, and each executable file supports execution on one operating system.
Specifically, after receiving the configuration diagram configuration file, the platform of the target operating system extracts the target primitive information and the configuration information included in the configuration file, so as to display the configuration diagram on the platform of the target operating system according to the target primitive information and the configuration information.
102, determining an associated target graphic element file according to the target graphic element information, and acquiring target configuration information adaptive to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems.
The target primitive file refers to a folder determined according to a target primitive used in the configuration diagram when the configuration diagram configuration file is constructed, and illustratively, target primitive information used in the configuration diagram is stored in the target primitive folder to form a complete target primitive file. Target configuration information refers to configuration information about a target primitive that may be recognized by a target operating system.
Specifically, an interface associated with the configuration diagram is determined according to the target primitive information, and a target primitive file including target primitive image information and position information can be acquired from the interface. Because the configuration file is constructed based on the cross-platform framework, the configuration file which is constructed completely comprises the configuration information of all the operating systems supported by the cross-platform framework, and therefore after the operating system of the current operating platform is determined, the operating system serves as a target operating system, the configuration information which is adapted to the operating system is determined from the configuration information and serves as the target configuration information.
Through the determination of the target primitive file and the acquisition of the target configuration information, the target primitive file and the target configuration information can be read by a platform where a target operating system is located. For example, an operating system on the current platform is obtained to determine a corresponding executable file, and configuration information supporting running on the operating system is obtained from the executable file.
In the embodiment of the present invention, optionally, the target primitive file is stored in a tree structure according to a primitive type.
The target primitive file may include subfiles corresponding to the target primitives, where the subfiles include image information and position information of the target primitives, and each subfile in the target primitive file is stored in a tree structure. The reading result of the target graphic primitive file on the platform of the target operating system is the graphic primitive file tree structure, which is convenient for the user to check.
In the embodiment of the present invention, optionally, the target primitive file is encapsulated to obtain a general interface of the target primitive file, so as to support access operations of different operating systems.
Because the target primitive file may have differences of the operation interfaces, the target primitive file cannot be accessed by a plurality of operation systems at the same time, after the target primitive file of the configuration diagram is constructed, the target primitive file is differentially encapsulated to obtain a universal interface of the target primitive file, so that cross-platform calling of a data interface is realized, and access operations of different operation systems are supported.
And 103, displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
On the basis of a cross-platform framework, corresponding primitives are displayed in a working area on corresponding coordinates according to information in a target primitive file, parameter information is bound for the target primitives according to content in target configuration information, the connection relation of each target primitive is added, and finally a configuration diagram is displayed in the working area.
The configuration file of the configuration diagram is pre-constructed based on the cross-platform framework, the target configuration information and the target graphic element file which are adaptive to the target operating system can be determined according to the configuration file, and the configuration file can support operation on various operating systems by determining the target configuration information from the configuration file. The configuration diagram configuration file is published to the platforms of different operating systems, so that the configuration diagrams can be displayed on the platforms of a plurality of operating systems according to the same configuration diagram configuration file, and one-time drawing and multi-platform display of the configuration diagrams are really realized.
Example two
Fig. 2 is a flowchart of a configuration diagram display method according to a second embodiment of the present invention, which is further optimized based on the first embodiment, and before step 101, the second embodiment further includes a step of constructing a configuration diagram configuration file. As shown in fig. 2, the method includes:
step 201, determining at least two target primitives from the candidate primitives, and determining target primitive information; wherein the target primitive information includes at least one of: target primitive image information, target primitive position information and target primitive connection relation.
The candidate graphics primitives refer to components that can be added to the configuration diagram. The target primitive is selected from the candidate primitives and can represent component information in the field topological structure. The target primitive information refers to information for describing a target primitive correspondingly, and includes, for example, target primitive image information, target primitive position information, and a target primitive connection relationship.
The target primitive image information refers to an image capable of representing the target primitive, and may be, for example, a picture, and the user may determine the type of the target primitive through the image. For example, the target primitive information may include a static image and a dynamic image, the static image is displayed when the primitive is not running, and the dynamic image is displayed when the primitive is running, so as to realize dynamic display of the configuration diagram according to the field monitoring condition. The target primitive position information refers to a position where the target primitive is placed when the user draws the configuration diagram, and can be represented by coordinate information, that is, each point on the drawing panel corresponds to one coordinate point. The target primitive connection relation is used for representing the data transmission condition between the target primitives after the target primitives are placed on the drawing panel by a user. For example, the target primitive connection relation may be position information of each connection line, for example, coordinate point information of each connection line.
Specifically, a user selects a target primitive which can be used from candidate primitives according to a topological structure on site, and adds target primitive information to the target primitive, exemplarily, the position of the target primitive is set for the target primitive to determine the position information of the target primitive, and the target primitives are connected together according to actual conditions on site to determine the connection relation of the target primitive, and simultaneously, associated target primitive image information is selected from a primitive file system while the target primitive is selected.
Step 202, determining configuration information of each target primitive according to a pre-configured primitive relation database; wherein the configuration information comprises at least one of: name, ID, and trigger conditions.
The primitive relation database stores the configuration information that the target primitive can be set, and acquires the relevant configuration information from the database and adds the configuration information for the target primitive. Exemplarily, querying an available name of a target primitive through a primitive relation database, setting a name for the target primitive in a configuration diagram to represent the type and the function of the target primitive, and setting a unique corresponding ID for the target primitive to represent the identity of the target primitive; and querying an operation triggering condition corresponding to the target primitive through the primitive relation database, and adding the triggering condition to the primitive according to the actual condition.
In the embodiment of the present invention, optionally, the primitive relationship database is encapsulated to obtain a universal interface of the primitive relationship database, so as to support access operations of different operating systems.
Because the primitive relation database may have differences of the operation interfaces, the primitive relation database cannot be accessed by a plurality of operation systems at the same time, and therefore the primitive relation database is packaged differently to obtain a universal interface of the primitive relation database, so that cross-platform calling of the data interface is realized, and access operation of different operation systems to primitive configuration information in the database is supported.
Step 203, determining a configuration diagram configuration file according to the configuration information and the target primitive information.
And storing the configuration information and the target graphic element information to obtain a configuration file of the configuration diagram, wherein the configuration file comprises configuration information of various operating systems, so that the configuration file supports analysis and operation on platforms of different operating systems.
Step 204, acquiring target primitive information and configuration information in a configuration diagram configuration file; wherein, the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework.
Step 205, determining the associated target primitive file according to the target primitive information, and obtaining target configuration information adapted to the target operating system from the configuration information.
And step 206, displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
In the embodiment of the present invention, optionally, the target primitive image information at least includes a target primitive static image and a target primitive dynamic image;
correspondingly, displaying a configuration diagram on the target operating system according to the target primitive file and the target configuration information, including:
acquiring real-time data of the target graphic primitive, and displaying the data according to the name and the ID of the target graphic primitive;
determining a triggered target primitive and an un-triggered target primitive according to the triggering condition of the target primitive;
and setting the display information of the triggered target graphic elements in the configuration diagram as associated target graphic element dynamic images, and setting the display information of the non-triggered target graphic elements as associated target graphic element static images so as to form the dynamically displayed configuration diagram.
The static image of the target graphic primitive is a static picture and is used for representing that the corresponding target graphic primitive is in an un-triggered state; the target primitive dynamic image is an image which changes the form along with the flow of time and is used for indicating that a corresponding target primitive is in a trigger state.
Specifically, the real-time data corresponding to the target primitive ID is determined by a real-time database storing real-time data information in the field topology, and the real-time data is displayed on the target primitive to represent the current operating state of the target primitive. Determining a trigger condition of a target primitive, judging whether the current running state of the target primitive meets the trigger condition, and if so, displaying a dynamic image of the target primitive at the position of the target primitive; and if not, displaying the static image.
Different images are displayed according to different states, so that the monitoring of an automatic process and equipment is realized, the visualization degree is improved, and great convenience and rapidness are provided for users and field implementation personnel.
The configuration file of the configuration diagram is pre-constructed based on the cross-platform framework, the target configuration information and the target graphic element file which are adaptive to the target operating system can be determined according to the configuration file, and the configuration file can support operation on various operating systems by determining the target configuration information from the configuration file. The configuration diagram configuration file is published to the platforms of different operating systems, so that the configuration diagrams can be displayed on the platforms of a plurality of operating systems according to the same configuration diagram configuration file, and one-time drawing and multi-platform display of the configuration diagrams are really realized.
EXAMPLE III
Fig. 3 is a flowchart of a configuration diagram display method according to a third embodiment of the present invention, which is applicable to a case where a configuration diagram is displayed on a platform of a multi-os. The method may be performed by a configuration diagram display apparatus, which may be implemented in software and/or hardware and may be configured in a device, for example, the device may be a device with communication and computing capabilities, such as a background server. Fig. 4 is a configuration diagram implementation of the embodiment of the invention.
The left part in fig. 4 is a candidate primitive part, including pictures of each candidate primitive, for selection by a user; the right side is a configuration drawing work area. And dragging the left candidate pixel to the right working area and binding the configuration data, wherein the candidate pixel becomes a target pixel node in the configuration diagram, and the pixel nodes are connected by using a connecting line so as to finish the drawing of the configuration diagram.
The drawn configuration diagram configuration file can be displayed on multiple platforms. Fig. 5 is a schematic structural deployment diagram of a cross-platform display of a configuration diagram. As shown in fig. 5, two servers are added in the implementation site, and one server deploys the real-time database and adopts the ssdb database. And the other server deploys a relational database and adopts a Mysql database. And accessing field data monitored by the equipment in the configuration diagram into a real-time database. If necessary, the access program can be used for importing the existing historical data into the real-time database from the existing real-time database or the relational database on site. And establishing platform connection between each database and different operating systems through the router so as to realize that each platform can access each database and finally complete the display of the configuration diagram.
The embodiment of the invention comprises the following concrete implementation steps:
step 301, drawing a Client side in a C/S (Client/Server) mode, and drawing a configuration diagram according to a field topological structure.
Step 302, querying the relational database, and constructing the relationship between the graph elements and the data in the configuration diagram.
And step 303, storing the drawn configuration diagram file into an Ini format.
And step 304, releasing the stored configuration diagram file resources.
Step 305, running the configuration diagram file on the basis of the platform compatible layer at the C/S display client.
And step 306, searching real-time data in the real-time database according to the configuration information in the configuration diagram file, and driving the configuration diagram to dynamically operate according to the real-time data.
The step 301 specifically includes:
the graphic element pictures used by the configuration system are stored in a graphic element file system, generally, two pictures are stored in the same graphic element, one picture is a static picture, the other picture is a dynamic picture, and the directory structure of the pictures is type/instrument name/picture name.
And reading the primitive picture file from the primitive file system by using a cross-platform frame, wherein different folders are divided into different types and are stored into a memory in a tree structure. Wherein the cross-platform framework may be a Qt framework.
And developing a display page by using a cross-platform frame, and displaying the read primitive picture tree structure. Illustratively, by using a dragging component of the Qt frame, a target primitive is dragged to a designated work area, the work area develops a presentation page for service logic, configures data to be processed of each primitive node, for example, connects each primitive node through a line, and performs condition setting on the primitive node and a branch formed by the line.
The step 302 specifically includes:
the data transmission module is arranged and used for connecting services of the relational database, and encapsulates interfaces of the external relational database part of the system, so that the configuration tool does not need to directly communicate with the relational database, and the data interface differences of different operating systems are shielded while the interface differences of different relational data are shielded.
Clicking the primitive node to trigger reading of a primitive configuration information event, displaying a primitive name and a primitive ID in a list mode, and configuring corresponding configuration information for each primitive node.
The step 303 specifically includes:
saving the dynamic pictures and the static pictures corresponding to the pixel nodes and the lines connecting the pixel nodes and the names corresponding to the pictures; storing coordinate information of the primitive nodes and lines connecting the primitive nodes; storing the name and ID corresponding to the primitive node; and storing the triggering conditions of the primitive nodes and the lines connecting the primitive nodes.
The step 305 specifically includes:
and integrating the cross-platform characteristics of the Qt library and source code programs used by different operating systems provided by a third party to form a platform compatible layer, and reading the stored Ini file on the basis of the platform compatible layer. And displaying the primitive nodes and the lines connecting the primitive nodes in the working area according to the coordinates in the configuration file, and displaying the names and the IDs of the primitive nodes and the lines connecting the primitive nodes in the configuration file.
The step 306 specifically includes:
and on the basis of the platform compatible layer, inquiring real-time data in a real-time database according to the configured primitive node ID, and displaying the real-time data on the primitive node. And comparing the real-time data of each pixel node with the corresponding trigger condition to drive the dynamic display of the configuration diagram.
Fig. 6 is a schematic diagram of an implementation architecture of a third embodiment of the present invention. The method specifically comprises the following steps:
the architecture of the embodiment of the invention is divided into four layers, including a presentation layer, a service logic layer, a platform compatible layer and a data interface layer, and the cross-platform performance is realized through the four layers of the architecture.
The presentation layer is the uppermost layer of the framework, is in direct contact with a user, realizes a user interface function, transmits the requirements of the user to the service logic layer, and displays the service logic feedback. The presentation layer comprises a configuration diagram configuration end and a configuration diagram display end, the configuration diagram configuration end is used for drawing the configuration diagram according to the field topological structure and generating a configuration file, and the configuration diagram display end can be arranged on different operating system platforms and is used for analyzing the configuration file and displaying the configuration diagram.
The service logic layer function is to perform logic judgment and execution operation on the primitive information, perform logic processing on the basis of the platform compatible layer according to a user request after receiving a user instruction of the presentation layer, perform logic processing on received data, realize functions of modifying, acquiring, deleting and the like of the data, and feed back a processing result to the presentation layer to realize a corresponding function.
The platform compatible layer is an architecture core and provides cross-platform performance. The platform compatible layer is realized by using a cross-platform framework Qt, and the Qt framework has cross-platform performance, so that a cross-platform is realized by a presentation layer and a service logic layer on the basis of the cross-platform. And a third-party library is arranged in the platform compatible layer, is preset according to the attribute information of at least two operating systems, and can provide a basis for the conversion of configuration information of different operating systems.
The data interface layer carries out differential encapsulation on the operation interfaces of the real-time database, the relational database and the file of different operation systems, and cross-platform of the data interfaces is realized.
Specifically, the configuration diagram configuration end generates the configuration file through the following steps:
the primitive pictures used by the configuration system are stored in a primitive file system, and generally two pictures are stored in the same primitive. One is a static picture and the other is a dynamic picture, and the pictures are type/instrument name/picture name in a file directory structure. And reading the primitive picture from the primitive file system by using a data interface layer, wherein different folders are divided into different types and are stored into the memory in a tree structure. And developing a page by using the platform compatible layer, and displaying the read primitive tree structure. And dragging components carried by the Qt frame can drag a plurality of primitives to the working area to form a configuration diagram.
Configuration data: and reading the relational database data through the data interface layer to configure information for the primitive nodes. And reading and configuring the corresponding name, the ID and the operation triggering condition of the primitive node.
Saving a configuration diagram configuration file: the configuration file comprises primitive nodes and connecting line coordinates, corresponding names of the primitive nodes, picture information corresponding to the primitive nodes and primitive node operation triggering conditions.
And issuing the configuration file and the primitive picture file to different system configuration diagram display ends.
The configuration diagram display end displays the configuration diagram through the following steps:
and reading the configuration file and the primitive picture file issued by the configuration diagram configuration end on the basis of the platform compatible layer. And displaying the primitive nodes and the connecting lines in the working area according to the coordinates in the configuration file, and determining the names, the IDs and the operation triggering conditions of the primitive nodes and the connecting lines according to the configuration file.
And on the basis of the platform compatible layer, inquiring real-time data in a real-time database according to the configured primitive node ID, and displaying the real-time data on the primitive node. And comparing the nodes of the query graphic elements with the operating conditions to drive the dynamic display of the configuration diagram.
Example four
Fig. 7 is a schematic structural diagram of a configuration diagram display device according to a fourth embodiment of the present invention, which is applicable to a case where a configuration diagram is displayed on a platform of a multi-operating system. As shown in fig. 7, the apparatus includes:
a configuration file obtaining module 410, configured to obtain target primitive information and configuration information in a configuration file of a configuration diagram; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems;
an adaptation information determining module 420, configured to determine an associated target primitive file according to the target primitive information, and obtain target configuration information adapted to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems;
a configuration diagram display module 430, configured to display a configuration diagram on the target operating system according to the target primitive file and the target configuration information.
The configuration file of the configuration diagram is pre-constructed based on the cross-platform framework, the target configuration information and the target graphic element file which are adaptive to the target operating system can be determined according to the configuration file, and the configuration file can support operation on various operating systems by determining the target configuration information from the configuration file. The configuration diagram configuration file is published to the platforms of different operating systems, so that the configuration diagrams can be displayed on the platforms of a plurality of operating systems according to the same configuration diagram configuration file, and one-time drawing and multi-platform display of the configuration diagrams are really realized.
Optionally, the apparatus further includes a configuration file constructing module, including:
the target primitive information determining unit is used for determining at least two target primitives from the candidate primitives and determining target primitive information; wherein the target primitive information includes at least one of: target primitive image information, target primitive position information and target primitive connection relation;
the configuration information determining unit is used for determining the configuration information of each target primitive according to a pre-configured primitive relation database; wherein the configuration information comprises at least one of: name, ID, and trigger condition;
and the configuration file determining unit is used for determining a configuration file of the configuration diagram according to the configuration information and the target primitive information.
Optionally, the primitive relationship database is encapsulated to obtain a universal interface of the primitive relationship database, so as to support access operations of different operating systems.
Optionally, the configuration information includes configuration information of at least two operating systems;
correspondingly, the adaptation information determining module 420 is specifically configured to:
acquiring target configuration information adapted to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems.
Optionally, the target primitive image information at least includes a target primitive static image and a target primitive dynamic image;
correspondingly, the configuration diagram display module is specifically configured to:
acquiring real-time data of the target graphic primitive, and displaying the data according to the name and the ID of the target graphic primitive;
determining a triggered target primitive and an un-triggered target primitive according to the triggering condition of the target primitive;
and setting the display information of the triggered target graphic elements in the configuration diagram as associated target graphic element dynamic images, and setting the display information of the non-triggered target graphic elements as associated target graphic element static images so as to form the dynamically displayed configuration diagram.
Optionally, the target primitive file is encapsulated to obtain a universal interface of the target primitive file, so as to support access operations of different operating systems.
Optionally, the target primitive file is stored in a tree structure according to the primitive type.
The configuration diagram display device provided by the embodiment of the invention can execute the configuration diagram display method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the configuration diagram display method.
EXAMPLE five
Fig. 8 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention. FIG. 8 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 8 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 8, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory device 28, and a bus 18 that couples various system components including the system memory device 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system storage 28 may include computer system readable media in the form of volatile storage, such as Random Access Memory (RAM) 30 and/or cache storage 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a hard disk drive). Although not shown in FIG. 8, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a floppy disk) and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Storage 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in storage 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 8, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be appreciated that although not shown in FIG. 8, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system storage device 28, for example, implementing a configuration diagram display method provided by the embodiment of the present invention, including:
acquiring target graphic element information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework;
determining a related target primitive file according to the target primitive information, and acquiring target configuration information adaptive to a target operating system from the configuration information;
and displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a configuration diagram display method according to the sixth embodiment of the present invention, where the computer program includes:
acquiring target graphic element information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework;
determining a related target primitive file according to the target primitive information, and acquiring target configuration information adaptive to a target operating system from the configuration information;
and displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and including conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (6)

1. A method for displaying a configuration diagram, comprising:
acquiring target graphic element information and configuration information in a configuration diagram configuration file; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems;
determining an associated target primitive file according to the target primitive information, packaging the target primitive file to obtain a general interface of the target primitive file so as to support access operation of different operating systems, and acquiring target configuration information adaptive to the target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems;
displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information;
the construction process of the configuration diagram configuration file comprises the following steps:
determining at least two target primitives from the candidate primitives and determining target primitive information; wherein the target primitive information includes at least one of: target primitive image information, target primitive position information and target primitive connection relation;
determining the configuration information of each target primitive according to a pre-configured primitive relation database; wherein the configuration information comprises at least one of: name, ID, and trigger condition;
determining a configuration diagram configuration file according to the configuration information and the target graphic element information;
and encapsulating the primitive relational database to obtain a universal interface of the primitive relational database so as to support access operations of different operating systems.
2. The method according to claim 1, wherein the target primitive image information comprises a target primitive static image and a target primitive dynamic image;
correspondingly, displaying a configuration diagram on the target operating system according to the target primitive file and the target configuration information, including:
acquiring real-time data of the target graphic primitive, and displaying the data according to the name and the ID of the target graphic primitive;
determining a triggered target primitive and an un-triggered target primitive according to the triggering condition of the target primitive;
and setting the display information of the triggered target graphic elements in the configuration diagram as associated target graphic element dynamic images, and setting the display information of the non-triggered target graphic elements as associated target graphic element static images so as to form the dynamically displayed configuration diagram.
3. The method of claim 1, wherein the target metafile is stored in a tree structure by metatype.
4. A configuration diagram display device, comprising:
the configuration file acquisition module is used for acquiring target graphic element information and configuration information in the configuration file of the configuration diagram; the configuration diagram configuration file is constructed in advance by adopting a cross-platform framework, and the configuration information comprises configuration information of at least two operating systems;
the adaptation information determining module is used for determining a related target primitive file according to the target primitive information, packaging the target primitive file to obtain a general interface of the target primitive file so as to support access operation of different operating systems, and acquiring target configuration information adapted to a target operating system from the configuration information based on a cross-platform framework; wherein the target operating system is one of at least two operating systems;
the configuration diagram display module is used for displaying a configuration diagram on the target operating system according to the target graphic element file and the target configuration information;
the apparatus further includes a profile construction module comprising:
the target primitive information determining unit is used for determining at least two target primitives from the candidate primitives and determining target primitive information; wherein the target primitive information includes at least one of: target primitive image information, target primitive position information and target primitive connection relation;
the configuration information determining unit is used for determining the configuration information of each target primitive according to a pre-configured primitive relation database; wherein the configuration information comprises at least one of: name, ID, and trigger condition; packaging the primitive relation database to obtain a universal interface of the primitive relation database so as to support access operations of different operating systems;
and the configuration file determining unit is used for determining a configuration file of the configuration diagram according to the configuration information and the target primitive information.
5. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the configuration diagram display method of any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the configuration diagram display method according to any one of claims 1 to 3.
CN202010828815.4A 2020-08-18 2020-08-18 Configuration diagram display method, device, equipment and storage medium Active CN111708599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010828815.4A CN111708599B (en) 2020-08-18 2020-08-18 Configuration diagram display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010828815.4A CN111708599B (en) 2020-08-18 2020-08-18 Configuration diagram display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111708599A CN111708599A (en) 2020-09-25
CN111708599B true CN111708599B (en) 2020-11-13

Family

ID=72547140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010828815.4A Active CN111708599B (en) 2020-08-18 2020-08-18 Configuration diagram display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111708599B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076129B (en) * 2021-03-23 2023-11-28 成都安恒信息技术有限公司 Automatic checking and processing method for complex configuration dependency relationship
CN113763497B (en) * 2021-08-11 2024-02-27 中广核工程有限公司 Link relation management method, device, computer equipment and storage medium
CN114895891A (en) * 2022-04-13 2022-08-12 北京广利核系统工程有限公司 Graphic software processing method and device, electronic equipment and storage medium
CN115185898B (en) * 2022-05-20 2024-02-09 中核武汉核电运行技术股份有限公司 Nuclear power plant data periodic real-time processing method
CN117539916B (en) * 2024-01-10 2024-04-09 中国恩菲工程技术有限公司 Data display method, device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873437B (en) * 2015-12-11 2018-12-04 中广核工程有限公司 The detection of nuclear power station real-time information monitoring system picture and automatic configuration system and method
CN108681444A (en) * 2018-04-12 2018-10-19 华中科技大学 A kind of Soft- PLC configuration development approach based on XML technology

Also Published As

Publication number Publication date
CN111708599A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN111708599B (en) Configuration diagram display method, device, equipment and storage medium
US20230359778A1 (en) Configuration of a digital twin for a building or other facility via bim data extraction and asset register mapping
CN110795325B (en) Visual point burying method, device, equipment and storage medium
US20200057550A1 (en) Method and apparatus for generating customized visualization component
WO2014179819A2 (en) Software design pattern for adapting a graph database visualization software
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
CN112269799A (en) Data query method, device, equipment and medium
CN110704476A (en) Data processing method, device, equipment and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN112785746A (en) Intelligent inspection method, device, equipment and storage medium
CN111783004B (en) Page embedding method, device and system
CN114077367A (en) Method and device for realizing shortcut of android application in Linux system
CN113220381A (en) Click data display method and device
US20190140894A1 (en) System and method for enabling hybrid integration platform through runtime auto-scalable deployment model for varying integration
CN111831320A (en) Plug-in management method and device, electronic equipment and storage medium
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN112799760B (en) Form rendering method and device
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN114358742A (en) Workflow execution method, device, equipment and storage medium
US8719416B1 (en) Multiple subparts of a uniform resource locator
CN112711677A (en) Visual management device and method for Neo4j graph database
US10795540B2 (en) Visualizing migration of a resource of a distributed computing environment
CN108037949B (en) Installation package multi-channel packaging method and device, computer equipment and storage medium
CN116893807A (en) System and method for designing a robotic flow automation robot using a browser
CN112000491B (en) Application program interface calling method, device, equipment and 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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 215000 No.12 Louyang Road, Suzhou Industrial Park, Jiangsu Province

Patentee after: Shencai Technology Co., Ltd

Address before: 215000 No.12 Louyang Road, Suzhou Industrial Park, Jiangsu Province

Patentee before: JIANGSU SHENCAI TECHNOLOGY Co.,Ltd.