WO2018076946A1 - Method and system for displaying physical object based on configuration, and computer program and storage medium - Google Patents

Method and system for displaying physical object based on configuration, and computer program and storage medium Download PDF

Info

Publication number
WO2018076946A1
WO2018076946A1 PCT/CN2017/101449 CN2017101449W WO2018076946A1 WO 2018076946 A1 WO2018076946 A1 WO 2018076946A1 CN 2017101449 W CN2017101449 W CN 2017101449W WO 2018076946 A1 WO2018076946 A1 WO 2018076946A1
Authority
WO
WIPO (PCT)
Prior art keywords
physical object
graphic
attribute
identifier
display
Prior art date
Application number
PCT/CN2017/101449
Other languages
French (fr)
Chinese (zh)
Inventor
林伟
Original Assignee
北京亚控科技发展有限公司
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
Priority claimed from CN201610936524.0A external-priority patent/CN106406910B/en
Priority claimed from CN201610936522.1A external-priority patent/CN106444427B/en
Application filed by 北京亚控科技发展有限公司 filed Critical 北京亚控科技发展有限公司
Publication of WO2018076946A1 publication Critical patent/WO2018076946A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method and system for displaying a physical object based on configuration, and a computer program and a storage medium. The method comprises: in a development mode, associating an attribute identifier of a physical object type having a pre-determined configuration with a graphic element in a corresponding graphic display template (S510), wherein the graphic display template comprises at least one graphic element; and in an operation mode, creating a graphic calculation object for a monitored physical object of the physical object type, wherein the graphic calculation object comprises data of the graphic display template of the physical object type, and by means of the graphic calculation object and according to the data of the graphic display template, drawing a display graph of the monitored physical object (S520), wherein the graphic element associated with the attribute identifier is rendered as a display effect corresponding to an attribute value of the attribute identifier of the monitored physical object. The method and system, the computer program and the storage medium can rapidly realize graphical display, so that the configuration operation is simpler and more convenient, thereby improving the efficiency of configuration and having better expandability.

Description

基于组态的物理对象展示方法、系统、计算机程序及存储介质Configuration-based physical object display method, system, computer program and storage medium 技术领域Technical field
本发明实施例涉及组态技术,尤其涉及一种基于组态的物理对象展示方法、系统、计算机程序及存储介质。The embodiments of the present invention relate to a configuration technology, and in particular, to a physical object display method, system, computer program, and storage medium based on a configuration.
背景技术Background technique
“组态(Configure)”是指“配置”、“设定”、“设置”。在组态软件中,用户使用软件提供的工具和方法完成具体任务,通过类似“搭积木”的简洁方式完成任务所需的功能,而无需编写实现该软件功能的计算机程序,实现所谓的“组态”。"Configure" means "Configuration", "Settings", "Settings". In the configuration software, the user uses the tools and methods provided by the software to complete the specific tasks, and completes the functions required for the task in a simple way like “building blocks” without writing a computer program that implements the software functions, so-called “group” state".
组态具有较广泛的应用。例如,在工程控制领域中,组态软件能够从自动化过程和装备中采集各种信息并将信息以图形化等更易于理解的方式进行显示,将重要的信息以各种手段传送到相关人员,对信息执行必要分析处理和存储并发出控制指令等等,从而实现对自动化过程和装备的监视和控制。The configuration has a wide range of applications. For example, in the field of engineering control, configuration software can collect various information from automated processes and equipment and display the information in a more understandable way, such as graphical, and transmit important information to relevant personnel in various ways. Perform necessary analysis processing and storage of information and issue control commands, etc., to achieve monitoring and control of automated processes and equipment.
任一系统的组态通常分为开发模式和运行模式。在开发模式下,创建要监控的设备的数据模型,并且为要监控的设备设置并显示展示图形;然后,由用户/开发人员设置要监控的设备的变量,并且由用户/开发人员将要监控的设备的变量与展示图形的图形要素进行动画链接。在运行模式下,组态软件根据在开发模式下设置的设备、变量、展示图形及动画链接,根据采集到的设备的变量数据,图形化地显示设备的变量数据。The configuration of any system is usually divided into development mode and operation mode. In development mode, create a data model of the device to be monitored and set up and display the presentation graphics for the device to be monitored; then, the user/developer sets the variables of the device to be monitored and is to be monitored by the user/developer The device's variables are animated with the graphical elements that display the graphic. In the running mode, the configuration software graphically displays the variable data of the device according to the variable data of the collected device according to the device, variable, display graphic and animation link set in the development mode.
图1~图3示出通常对要监控的设备进行的组态操作的示例性界面。图4示出被监控的设备的运行状态的示例性界面。在系统的开发模式下,首先,如图1所示,开发人员选择要监控的设备,即仿真PLC;此后,如图2所示,开发人员设置要监控的该仿真PLC的变量,即其温度和湿度;其后,如图3中底层窗口所示,为该仿真PLC设置和显示展示图形,开发人员选择展示图形中表示温度的图形要素,设置温度的展示形式(模拟值输出以及包括整数位数和小数位数的输出格式),并且将表示温度的图形要素与要监控的仿真PLC的温度变量值进行关联(即动画链接)。此后,在系统的运行模式下,如图4所示,根据开发人员在开发模式下配置的信息,显示要监控的仿真PLC的温度和湿度的值。Figures 1-3 illustrate exemplary interfaces of configuration operations typically performed on devices to be monitored. Figure 4 shows an exemplary interface of the operational status of the monitored device. In the system development mode, first, as shown in Figure 1, the developer selects the device to be monitored, that is, simulates the PLC; thereafter, as shown in Figure 2, the developer sets the variable of the simulated PLC to be monitored, that is, its temperature. And humidity; thereafter, as shown in the bottom window of Figure 3, for the simulated PLC setup and display display graphics, the developer chooses to display the graphical elements of the temperature in the graph, set the temperature display form (analog value output and include integer bits) The number and scale of the output format), and the graphical elements representing the temperature are associated with the temperature variable values of the simulated PLC to be monitored (ie, animated links). Thereafter, in the operating mode of the system, as shown in FIG. 4, the values of the temperature and humidity of the simulated PLC to be monitored are displayed according to the information configured by the developer in the development mode.
在现有的组态软件中,需要开发人员手动地对每个要监控的设备逐个执行前述开发模式下的创建和设置操作。如果需要监控一百台设备,就需要执行一百次前述的创建和设置操作,操作过程繁琐、耗时、效率低。In the existing configuration software, the developer is required to manually perform the creation and setting operations in the foregoing development mode one by one for each device to be monitored. If you need to monitor one hundred devices, you need to perform one hundred of the above creation and setup operations. The operation is cumbersome, time-consuming, and inefficient.
发明内容Summary of the invention
本发明实施例的目的在于,提供一种基于组态的物理对象展示方法、系统、计算机程序及存储介质,以快速地实现被监控物理对象的动画链接,并展现被监控物理对象的运行状态。An object of the present invention is to provide a physical object display method, system, computer program and storage medium based on configuration, to quickly realize an animation link of a monitored physical object, and to display an operating state of the monitored physical object.
根据本发明实施例的第一方面,提供了一种基于组态的物理对象展示方法,包括:在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,其中,所述展示图形模板包括至少一个图形要件; 在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形,其中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。According to a first aspect of the embodiments of the present invention, a configuration-based physical object presentation method is provided, including: in a development mode, an attribute identifier of a physical object type having a predetermined configuration and a corresponding display graphic template The graphic element is associated, wherein the display graphic template includes at least one graphic element; In the run mode, a graphical computing object is created for the monitored physical object of the physical object type, wherein the graphical computing object includes data of the display graphic template of the physical object type; The data of the graphic template is displayed to draw the display graphic of the monitored physical object, wherein the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object.
可选地,所述将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,包括:获取所述物理对象类型的展示图形模板和至少一个属性标识;显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件;响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据进行关联存储。Optionally, the associating the attribute identifier of the physical object type with the predetermined configuration and the graphic requirement in the corresponding presentation graphic template includes: acquiring the display graphic template of the physical object type and at least one attribute identifier; displaying The attribute identifier and the display graphic template, and labeling the graphic element in the display graphic template; in response to the user's association operation on the displayed attribute identifier and the labeled graphic element, the attribute identifier of the physical object type operated by the user And storing the data of the graphic element associated with the attribute identifier in the corresponding presentation graphic template.
可选地,所述方法还包括:在开发模式下,与所述物理对象类型相应地创建数据管理模型以及与所述数据管理模型关联的图形计算模型,所述数据管理模型包括所述物理对象类型的多个属性标识和属性值,所述图形计算模型包括所述物理对象类型的展示图形模板的数据以及图形计算逻辑代码,所述图形计算逻辑代码用于根据所述数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。Optionally, the method further includes: in a development mode, creating a data management model corresponding to the physical object type and a graphical computing model associated with the data management model, the data management model including the physical object a plurality of attribute identifiers and attribute values of a type, the graphics calculation model including data of the presentation graphics template of the physical object type and graphics calculation logic code for correlating according to the data management model The attribute of the graphic element identifies the corresponding attribute value to render the displayed effect of the associated graphic element.
可选地,所述方法还包括:在所述开发模式或运行模式下,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取所述被监控物理对象所属的物理对象类型的信息,根据所述物理对象类型的数据管理模型分别创建一个或多个所述被监控物理对象的数据管理对象,其中,将所述一个或多个数据管理对象的属性标识和属性值分别初始化为各个所述被监控物理对象的多个属性标识和属性值。Optionally, the method further includes: displaying, in the development mode or the operation mode, an interaction interface for inputting information of one or more monitored physical objects, and according to one or more monitored physics input by the user Obtaining information of the physical object type to which the monitored physical object belongs, and respectively creating one or more data management objects of the monitored physical object according to the data management model of the physical object type, where The attribute identifiers and attribute values of the one or more data management objects are respectively initialized to a plurality of attribute identifiers and attribute values of the respective monitored physical objects.
可选地,所述为所述物理对象类型的被监控物理对象创建图形计算对象,包括:根据所述被监控物理对象所属的物理对象类型的图形计算模型创建所述图形计算对象,其中,将所述图形计算对象与所述被监控物理对象的数据管理对象进行关联。Optionally, the creating a graphic computing object for the monitored physical object of the physical object type includes: creating the graphic computing object according to a graphic computing model of a physical object type to which the monitored physical object belongs, where The graphical computing object is associated with a data management object of the monitored physical object.
可选地,所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。Optionally, the rendering the graphic element associated with the attribute identifier as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including: rendering the graphic element associated with the attribute identifier into the data The corresponding display effect of the attribute value of the associated attribute identifier in the management object.
可选地,所述方法还包括:在所述运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。Optionally, the method further includes: receiving, in the running mode, an updated attribute identifier and an attribute value of the monitored physical object, and rendering and the attribute identifier according to the updated attribute identifier and attribute value. The display effect of the associated graphic element.
可选地,所述方法还包括:在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:根据记录的图形要件的渲染效果参数,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。Optionally, the method further includes: in the developing mode, recording a rendering effect parameter of the graphic element in the display graphic template; and rendering the graphic element associated with the attribute identifier into the monitored physical The corresponding display effect of the attribute value of the attribute identifier of the object includes: rendering the graphic element associated with the attribute identifier into an impression corresponding to the attribute value of the attribute identifier of the monitored physical object according to the rendering effect parameter of the recorded graphic element effect.
可选地,所述方法还包括:在所述运行模式下,接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。 Optionally, the method further includes: in the running mode, receiving a rendering effect parameter of the updated graphic requirement in the displayed graphic template, and rendering and the rendering effect parameter according to the updated graphic requirement The attribute identifies the display effect of the associated graphic element.
可选地,所述属性标识包括地理数据标识,所述地理数据标识包括所述物理对象类型的中心位置标识;所述方法还包括:根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,在所述展示位置展示所述展示图形;所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:将关联有其它属性标识的图形要件渲染为与所述其它属性标识的属性值相应的展示效果。Optionally, the attribute identifier includes a geographic data identifier, where the geographic data identifier includes a central location identifier of the physical object type, and the method further includes: determining, according to an attribute value of the geographic data identifier of the monitored physical object. a display position of the display graphic, the display graphic is displayed at the display position; the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including : Rendering the graphic element associated with other attribute identifiers into a display effect corresponding to the attribute value of the other attribute identifiers.
可选地,所述地理数据标识还包括所述物理对象类型的轮廓标识,所述轮廓标识用于标识属于所述物理对象类型的物理对象的轮廓;所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,包括:根据所述被监控物理对象的中心位置标识的属性值所指示的中心位置,和,所述轮廓标识的属性值所指示的所述被监控物理对象的轮廓,确定所述被监控物理对象的展示位置。Optionally, the geographic data identifier further includes a contour identifier of the physical object type, the contour identifier is used to identify an outline of a physical object belonging to the physical object type; and the geographic according to the monitored physical object The attribute value of the data identifier determines a display position of the display graphic, including: a center position indicated by an attribute value of the center position identifier of the monitored physical object, and the attribute value indicated by the attribute value of the contour identifier The contour of the monitored physical object determines the placement of the monitored physical object.
可选地,所述地理数据标识还包括所述物理对象类型的空间信息标识,所述空间信息标识用于标识属于所述物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及与其它物理对象之间的关系;所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,包括:根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置。Optionally, the geographic data identifier further includes a spatial information identifier of the physical object type, where the spatial information identifier is used to identify a geographic location coordinate unit, a geographic location coordinate, and a physical object belonging to the physical object type. The relationship between the other physical objects; the determining the display position of the display graphic according to the attribute value of the geographic data identifier of the monitored physical object, including: the attribute value identified according to the spatial information of the monitored physical object, Determining the placement of the display graphic of the monitored physical object.
可选地,所述物理对象与其它物理对象之间的关系包括所述物理对象与父物理对象之间的关系;所述根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置,包括:根据所述被监控物理对象的空间信息标识的属性值,判断所述被监控物理对象是否存在父物理对象;若存在,则根据所述被监控物理对象对应的空间信息标识的属性值,确定所述被监控物理对象与所述父物理对象之间的相对位置关系;基于所述父物理对象的展示图形的展示位置,根据所述相对位置关系确定所述被监控物理对象的展示图形的展示位置。Optionally, the relationship between the physical object and other physical objects includes a relationship between the physical object and a parent physical object; and determining, according to an attribute value of the spatial information identifier of the monitored physical object, The display position of the displayed graphic of the monitored physical object includes: determining, according to the attribute value of the spatial information of the monitored physical object, whether the monitored physical object has a parent physical object; if present, monitoring according to the The attribute value of the spatial information identifier corresponding to the physical object determines a relative positional relationship between the monitored physical object and the parent physical object; and based on the display position of the display graphic of the parent physical object, according to the relative positional relationship Determining the placement of the display graphic of the monitored physical object.
可选地,在运行模式下,所述方法还包括:每隔设定时间段获取并判断所述被监控物理对象的地理数据标识的属性值是否发生了更新;若发生了更新,则根据更新后的属性值更新所述被监控物理对象的展示图形的展示位置。Optionally, in the running mode, the method further includes: acquiring and determining, at a set time period, whether an attribute value of the geographic data identifier of the monitored physical object is updated; if an update occurs, updating according to the update The subsequent attribute value updates the placement of the displayed graphic of the monitored physical object.
根据本发明实施例的第二方面,还提供了一种系统,包括:存储有指令的非易失性存储器;与所述非易失性存储器连接的一个或多个硬件处理器,所述硬件处理器被配置为,执行用于执行以下操作的指令:在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,其中,所述展示图形模板包括至少一个图形要件;在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形,其中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。According to a second aspect of the embodiments of the present invention, there is also provided a system comprising: a nonvolatile memory storing instructions; one or more hardware processors coupled to the nonvolatile memory, the hardware The processor is configured to execute an instruction to: in the development mode, associate an attribute identification of a physical object type having a predetermined configuration and a graphical requirement in a corresponding presentation graphic template, wherein the display The graphic template includes at least one graphic element; in the running mode, a graphic computing object is created for the monitored physical object of the physical object type, wherein the graphic computing object includes data of the display graphic template of the physical object type; And the graphic computing object renders the display graphic of the monitored physical object according to the data of the displayed graphic template, wherein the graphic element associated with the attribute identifier is rendered to correspond to an attribute value of the attribute identifier of the monitored physical object Display effect.
可选地,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:获取所述物理对象类型的展示图形模板和至少一个属性标识;在显示装置上,显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件;响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据 进行关联存储在数据库中。Optionally, the hardware processor is configured to further execute instructions for: acquiring a presentation graphic template of the physical object type and at least one attribute identifier; displaying the attribute identifier on the display device Displaying the graphic template and labeling the graphic element in the displaying graphic template; in response to the user's association operation on the displayed attribute identifier and the labeled graphic element, the attribute identifier of the physical object type operated by the user and the corresponding display The data of the graphic element associated with the attribute identifier in the graphic template The association is stored in the database.
可选地,所述硬件处理器被配置为,还执行用于执行以下操作的指令:在开发模式下,与所述物理对象类型相应地创建数据管理模型以及与所述数据管理模型关联的图形计算模型,所述数据管理模型包括所述物理对象类型的多个属性标识和属性值,所述图形计算模型包括所述物理对象类型的展示图形模板的数据以及图形计算逻辑代码,所述图形计算逻辑代码用于根据所述数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。Optionally, the hardware processor is configured to further execute instructions for: in a development mode, creating a data management model and a graphic associated with the data management model corresponding to the physical object type a calculation model including a plurality of attribute identifications and attribute values of the physical object type, the graphic calculation model including data of a presentation graphic template of the physical object type and graphic calculation logic code, the graphic calculation The logic code is configured to render the display effect of the associated graphic element according to the attribute value corresponding to the attribute identifier associated with the graphic element in the data management model.
可选地,所述硬件处理器被配置为,还执行用于执行以下操作的指令:在所述开发模式或运行模式下,在所述显示装置上,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取所述被监控物理对象所属的物理对象类型的信息,根据所述物理对象类型的数据管理模型分别创建一个或多个所述被监控物理对象的数据管理对象,其中,将所述一个或多个数据管理对象的属性标识和属性值分别初始化为各个所述被监控物理对象的多个属性标识和属性值。Optionally, the hardware processor is configured to further execute instructions for: in the development mode or the operation mode, displaying, on the display device, one or more monitored inputs An interaction interface of the information of the physical object, and acquiring information of the physical object type to which the monitored physical object belongs according to the information of the one or more monitored physical objects input by the user, respectively, according to the data management model of the physical object type a data management object of the one or more monitored physical objects, wherein attribute identifiers and attribute values of the one or more data management objects are respectively initialized to a plurality of attribute identifiers and attributes of each of the monitored physical objects value.
可选地,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象所属的物理对象类型的图形计算模型创建所述图形计算对象,其中,将所述图形计算对象与所述被监控物理对象的数据管理对象进行关联。Optionally, the hardware processor is configured to further execute instructions for: creating the graphic computing object according to a graphical computing model of a physical object type to which the monitored physical object belongs, wherein The graphical computing object is associated with a data management object of the monitored physical object.
可选地,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。Optionally, the hardware processor is configured to further execute instructions for: rendering a graphical requirement associated with the attribute identifier to an attribute value corresponding to the attribute identifier associated with the data management object Display effect.
可选地,所述硬件处理器被配置为,还执行用于执行以下操作的指令:在所述运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。Optionally, the hardware processor is configured to further execute instructions for: in the operating mode, receiving an updated attribute identifier and an attribute value of the monitored physical object, and according to the The updated attribute identification and attribute values render the display of the graphical element associated with the attribute identification.
可选地,所述硬件处理器被配置为,还执行用于执行以下操作的指令:在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:根据记录的图形要件的渲染效果参数,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。Optionally, the hardware processor is configured to further execute an instruction to: in the development mode, record a rendering effect parameter of the graphic element in the presentation graphic template; The graphic element of the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including: rendering the graphic element associated with the attribute identifier into and according to the rendering effect parameter of the recorded graphic element The corresponding display effect of the attribute value of the attribute of the monitored physical object.
可选地,所述硬件处理器被配置为,还执行用于执行以下操作的指令:在所述运行模式下,接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。Optionally, the hardware processor is configured to further execute an instruction to: in the running mode, receive an updated rendering effect parameter of the graphic requirement in the displayed graphic template, and according to the The rendering effect parameter of the updated graphical element renders the display effect of the graphic element associated with the attribute identifier.
可选地,所述属性标识包括地理数据标识,所述地理数据标识包括所述物理对象类型的中心位置标识;所述硬件处理器被配置为,还执行用于执行以下操作的指令:根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,在所述展示位置展示所述展示图形;所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:将关联有其它属性标识的图形要件渲染为与所述其它属性标识的属性值相应的展示效果。Optionally, the attribute identifier includes a geographic data identifier, the geographic data identifier includes a central location identifier of the physical object type; the hardware processor is configured to further execute an instruction to: perform An attribute value of the geographic data identifier of the monitored physical object determines a presentation location of the presentation graphic at which the presentation graphic is displayed; the hardware processor is configured to further execute instructions for performing the following operations : Rendering the graphic element associated with other attribute identifiers into a display effect corresponding to the attribute value of the other attribute identifiers.
可选地,所述地理数据标识还包括所述物理对象类型的轮廓标识,所述轮廓标识用于标识属于所述物理对象类型的物理对象的轮廓;所述硬件处理器被配置为, 进一步执行用于执行以下操作的指令:根据所述被监控物理对象的中心位置标识的属性值所指示的中心位置,和,所述轮廓标识的属性值所指示的所述被监控物理对象的轮廓,确定所述被监控物理对象的展示位置。Optionally, the geographic data identifier further includes a contour identifier of the physical object type, the contour identifier is used to identify a contour of a physical object belonging to the physical object type; and the hardware processor is configured to: Further executing an instruction to: a center position indicated by an attribute value of a central position identifier of the monitored physical object, and an outline of the monitored physical object indicated by an attribute value of the contour identifier Determining the placement of the monitored physical object.
可选地,所述地理数据标识还包括所述物理对象类型的空间信息标识,所述空间信息标识用于标识属于所述物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及与其它物理对象之间的关系;所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置。Optionally, the geographic data identifier further includes a spatial information identifier of the physical object type, where the spatial information identifier is used to identify a geographic location coordinate unit, a geographic location coordinate, and a physical object belonging to the physical object type. a relationship between other physical objects; the hardware processor being configured to further execute instructions for: determining, based on an attribute value of the spatial information identifier of the monitored physical object, the monitored physical object Show where the graphics are displayed.
可选地,所述物理对象与其它物理对象之间的关系包括所述物理对象与父物理对象之间的关系;所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象的空间信息标识的属性值,判断所述被监控物理对象是否存在父物理对象;若存在,则根据所述被监控物理对象对应的空间信息标识的属性值,确定所述被监控物理对象与所述父物理对象之间的相对位置关系;基于所述父物理对象的展示图形的展示位置,根据所述相对位置关系确定所述被监控物理对象的展示图形的展示位置。Optionally, the relationship between the physical object and other physical objects includes a relationship between the physical object and a parent physical object; the hardware processor is configured to further execute an instruction for performing the following operations: Determining, by the attribute value of the spatial information identifier of the monitored physical object, whether the parent physical object exists in the monitored physical object; if yes, determining the attribute value according to the spatial information identifier corresponding to the monitored physical object a relative positional relationship between the monitored physical object and the parent physical object; and based on the display position of the display graphic of the parent physical object, determining a display position of the displayed graphic of the monitored physical object according to the relative positional relationship.
可选地,在运行模式下,所述硬件处理器被配置为,还执行用于执行以下操作的指令:每隔设定时间段获取并判断所述被监控物理对象的地理数据标识的属性值是否发生了更新;若发生了更新,则根据更新后的属性值更新所述被监控物理对象的展示图形的展示位置。Optionally, in the operating mode, the hardware processor is configured to further execute an instruction to: acquire and determine an attribute value of the geographic data identifier of the monitored physical object every set time period Whether an update has occurred; if an update occurs, the display position of the displayed graphic of the monitored physical object is updated according to the updated attribute value.
根据本发明实施例的第三方面,还提供了一种计算机程序,其包括有计算机程序指令,其中,所述程序指令被处理器执行时用于实现本发明实施例提供的任一种基于组态的物理对象展示方法对应的步骤。According to a third aspect of the present invention, there is also provided a computer program comprising computer program instructions, wherein the program instructions, when executed by a processor, are used to implement any of the groups provided by the embodiments of the present invention. The physical object of the state shows the steps corresponding to the method.
根据本发明实施例的第四方面,还提供了一种计算机可读存储介质,其上存储有计算机程序指令,其中,所述程序指令被处理器执行时用于实现本发明实施例提供的任一种基于组态的物理对象展示方法对应的步骤。According to a fourth aspect of the present invention, there is also provided a computer readable storage medium having stored thereon computer program instructions, wherein the program instructions are executed by a processor for implementing any of the embodiments of the present invention A step corresponding to a physical object display method based on configuration.
根据本发明实施例的基于组态的物理对象展示方法,通过在开发模式下将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件一次性进行动画链接,并且在运行模式下为实际被监控的物理对象根据从其采集到的属性值以及一次性设置的动画链接,将关联有属性标识的图形要件渲染为与被监控物理对象的属性标识的属性值相应的展示效果,可快速地实现被监控物理对象的图形化展现,而无需为每个被监控物理对象逐个设置动画链接,使得组态操作更为简洁、便利,提高了组态的效率,并且具有较优的可扩展性。A configuration-based physical object presentation method according to an embodiment of the present invention, by performing an animation link of a physical object type having a predetermined configuration and a graphic element in a corresponding presentation graphic template in a development mode, and In the running mode, the physical object that is actually monitored is rendered according to the attribute value collected from the attribute value and the one-time set animation link, and the graphic element associated with the attribute identifier is rendered as the corresponding value of the attribute value of the attribute identifier of the monitored physical object. The effect can quickly realize the graphical display of the monitored physical objects without setting an animation link for each monitored physical object one by one, which makes the configuration operation more concise and convenient, improves the configuration efficiency, and has better performance. Scalability.
附图说明DRAWINGS
图1~图3是示出通常对要监控的设备进行的组态操作的示例性界面图;1 to 3 are exemplary interface diagrams showing a configuration operation generally performed on a device to be monitored;
图4是示出被监控的设备的运行状态的示例性界面图;4 is an exemplary interface diagram showing an operational state of a device being monitored;
图5是示出根据本发明实施例一的基于组态的物理对象展示方法的流程图;FIG. 5 is a flowchart showing a configuration-based physical object display method according to Embodiment 1 of the present invention; FIG.
图6是示出图5中步骤S510的示例性处理的流程图;FIG. 6 is a flowchart showing an exemplary process of step S510 in FIG. 5;
图7是示出根据本发明实施例二的基于组态的物理对象展示方法的流程图;7 is a flow chart showing a configuration-based physical object presentation method according to Embodiment 2 of the present invention;
图8是示出根据本发明实施例三的系统的结构示意图。 Figure 8 is a block diagram showing the structure of a system according to a third embodiment of the present invention.
具体实施方式detailed description
本发明的实施例提出一种基于组态的物理对象展示方案,在系统的开发模式下一次性地设置具有预定配置的物理对象类型的属性与相应的展示图形中的图形要件之间的动画链接,并且在系统的运行模式下根据前述设置的动画链接,以及属于该物理对象类型的被监控物理对象的属性值图形化地展现被监控物理对象的状态,从而快速地实现被监控物理对象的图形化展现。Embodiments of the present invention provide a configuration-based physical object display scheme in which an animation link between a property of a physical object type having a predetermined configuration and a graphic element in a corresponding presentation graphic is set at a time in a development mode of the system. And graphically presenting the state of the monitored physical object according to the previously set animation link and the attribute value of the monitored physical object belonging to the physical object type in the running mode of the system, thereby quickly implementing the graphic of the monitored physical object Show.
这里,需要指出,在任一时刻,系统可处于开发模式、运行模式,也可以并行地处于开发模式和运行模式。例如,可在系统的运行状态下,提供用于开发的界面以执行包括前述动画链接的开发设置,并且即时地在运行模式下反映执行的前述开发设置或者通过重启系统反映执行的前述开发设置。Here, it should be noted that at any one time, the system can be in the development mode, the operation mode, or in the development mode and the operation mode in parallel. For example, an interface for development may be provided in an operating state of the system to perform development settings including the aforementioned animation link, and to immediately reflect the aforementioned development settings of the execution in the operation mode or reflect the aforementioned development settings performed by the restart system.
下面结合附图详细描述本发明实施例的示例性实施例。Exemplary embodiments of the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
实施例一 Embodiment 1
图5是示出根据本发明实施例一的基于组态的物理对象展示方法的流程图。FIG. 5 is a flow chart showing a configuration-based physical object presentation method according to a first embodiment of the present invention.
参照图5,在步骤S510,在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联。其中,展示图形模板包括至少一个图形要件。Referring to FIG. 5, in step S510, in the development mode, the attribute identifiers of the physical object types having the predetermined configuration and the graphic elements in the corresponding presentation graphic templates are associated. Wherein, the display graphic template includes at least one graphic element.
在本发明实施例中,物理对象类型可以是工控系统中需要监控的设备的类型,如特定型号或配置的风力发电机组、供电设备、锅炉或者汽机等设备,物理对象类型的属性可包括需要监控的物理对象类型的运行参数、性能参数或固有属性等。例如,风力发电机组的地理数据、规格参数、转速、扭矩、输出功率等数据;再例如,锅炉的地理数据、规格参数、温度、腔内压强等数据。其中,与展示图形模板中的图形要件关联的属性通常为物理对象类型的部分属性,例如运行参数、性能参数等,以便于监控实际物理对象的运行状态。In the embodiment of the present invention, the physical object type may be a type of equipment that needs to be monitored in the industrial control system, such as a specific model or a configured wind turbine, a power supply device, a boiler, or a steam turbine. The attributes of the physical object type may include monitoring. Run parameters, performance parameters, or intrinsic properties of the physical object type. For example, the wind turbine's geographic data, specifications, speed, torque, output power and other data; for example, the boiler's geographic data, specifications, temperature, intracavity pressure and other data. Among them, the attributes associated with the graphic elements in the display graphic template are usually partial attributes of the physical object type, such as running parameters, performance parameters, etc., in order to monitor the running state of the actual physical object.
在实际应用中,可以针对常用的物理对象类型或者客户订制的物理对象类型,预先确定并导入适用的展示图形模板(如风力发电机组的三维图形、缩略图或状态列表等),并且将该物理对象类型的属性标识(如风力发电机组的属性标签)以及展示图形模板中的图形要件进行关联设置。例如,将风力发电机组的三维图形中的叶片与风力发电机组的转速相关联。In practical applications, the applicable display graphic template (such as a 3D graphic of a wind turbine, a thumbnail or a status list, etc.) may be predetermined and imported for a common physical object type or a customized physical object type, and the The attribute identifier of the physical object type (such as the attribute label of the wind turbine) and the graphical element in the presentation graphic template are associated. For example, the blades in the three-dimensional pattern of the wind turbine are associated with the rotational speed of the wind turbine.
此外,还可通过用于进行动画链接的交互界面执行步骤S510的关联处理,从而用户/开发人员可订制执行动画链接的操作。Further, the association processing of step S510 can also be performed by the interactive interface for performing the animation link, so that the user/developer can customize the operation of performing the animation link.
图6示出步骤S510的一种示例性处理流程。FIG. 6 shows an exemplary process flow of step S510.
参照图6,在操作S5102,获取所述物理对象类型的展示图形模板和至少一个属性标识。Referring to FIG. 6, in operation S5102, a display graphic template of the physical object type and at least one attribute identifier are acquired.
在操作S5104,显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件,从而用户/开发人员可选择要关联的属性标识以及展示图形模板中的图形要件。In operation S5104, the attribute identifier and the display graphic template are displayed, and the graphic requirements in the display graphic template are marked, so that the user/developer can select the attribute identification to be associated and display the graphic element in the graphic template.
此后,在操作S5106,响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据进行关联存储。Thereafter, in operation S5106, in response to the user's association operation on the displayed attribute identifier and the marked graphical requirement, the attribute identifier of the physical object type operated by the user and the graphic element associated with the attribute identifier in the corresponding presentation graphic template are The data is stored in association.
在完成前述对相应的物理对象类型的属性标识与展示图形模板的图形要件之 间的关联(动画链接)的设置后,可以启动系统运行时,进入运行模式,可执行下述步骤S520。After completing the aforementioned attribute identification of the corresponding physical object type and the graphic element of the display graphic template After the setting of the association (animated link) can be started, the system can be started to enter the operation mode, and the following step S520 can be performed.
在步骤S520,在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形。其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;以及,在绘制所述被监控物理对象的展示图形的处理中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。In step S520, in the running mode, a graphic computing object is created for the monitored physical object of the physical object type, and the graphic computing object is used to draw the display graphic of the monitored physical object according to the data of the displayed graphic template. The graphic calculation object includes data of the display graphic template of the physical object type; and, in the process of drawing the display graphic of the monitored physical object, the graphic element associated with the attribute identifier is rendered as The corresponding display effect of the attribute value of the attribute of the monitored physical object.
由于在开发模式下已为前述物理对象类型设置了属性和图形要件之间的关联(即动画链接),因此在系统运行的状态下,当需要图形化展示属于前述物理对象类型的被监控物理对象的运行状态(如属性值)时,为被监控物理对象创建的图形计算对象可获取被监控物理对象的属性值,并且根据已设置的动画链接信息(即被监控物理对象的属性标签和展示图形模板的图形要件之间的关联)来渲染关联有属性标识的图形要件的展示效果。Since the association between the attribute and the graphic element (ie, the animation link) has been set for the aforementioned physical object type in the development mode, when the system is running, when the monitored physical object belonging to the aforementioned physical object type needs to be graphically displayed The running state (such as the attribute value), the graphic computing object created for the monitored physical object can obtain the attribute value of the monitored physical object, and according to the set animation link information (ie, the attribute label and the display graphic of the monitored physical object) The association between the graphic elements of the template) to render the display effect of the graphic element associated with the attribute identifier.
例如,对于将风力发电机组的三维图形中的叶片与风力发电机组的转速相关联的情形,图形计算对象可在绘制的风力发电机组的三维图形中叶片的部位,以文本的形式显示转速值或渲染与转速值相应的动态效果。For example, for the case of associating the blades in the three-dimensional figure of the wind turbine with the rotational speed of the wind turbine, the graphical computing object may display the rotational speed value in text form in the portion of the blade in the three-dimensional figure of the drawn wind turbine Renders dynamic effects corresponding to the speed value.
再例如,对于将锅炉的状态模拟图中的锅炉颜色与锅炉的温度相关联的情形,图形计算对象可以根据获取的锅炉的温度数据,实时地渲染图中的锅炉或者锅炉的特定部位的颜色;或者以文本的形式在图中的锅炉处或者锅炉的特定部位显示获取的温度值,以方便用户获取锅炉的运行状态信息。For another example, for the case of associating the boiler color in the state simulation diagram of the boiler with the temperature of the boiler, the graphic calculation object may render the color of the specific part of the boiler or the boiler in the map in real time according to the acquired temperature data of the boiler; Or display the obtained temperature value in the form of text at the boiler or the specific part of the boiler in the figure to facilitate the user to obtain the operating status information of the boiler.
在这里说明,本实施例的基于组态的物理对象展示方法,还可以在开发模式下关联多组对应的属性表述和图形要件,从而在运行模式下可以同时展示被监控物理对象的多种属性标识,以准确地展现被监控物理对象的运行状态。例如,针对前述实例中的锅炉,可以采用本实施例的基于组态的物理对象展示方法,来同时展示锅炉的温度、腔内压强等多种运行状态参数,以精确地展现出锅炉的运行状态。It is explained here that the configuration-based physical object display method of the embodiment can also associate multiple sets of corresponding attribute representations and graphic elements in the development mode, so that multiple attributes of the monitored physical objects can be simultaneously displayed in the running mode. Identification to accurately represent the operational status of the monitored physical object. For example, for the boiler in the foregoing example, the configuration-based physical object display method of the present embodiment can be used to simultaneously display various operating state parameters such as boiler temperature and intracavity pressure to accurately display the operating state of the boiler. .
根据本发明实施例的基于组态的物理对象展示方法,通过在开发模式下将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件一次性进行动画链接,并且在运行模式下为实际被监控的物理对象根据从其采集到的属性值以及一次性设置的动画链接,将关联有属性标识的图形要件渲染为与被监控物理对象的属性标识的属性值相应的展示效果,可快速地实现被监控物理对象的图形化展现,而无需为每个被监控物理对象逐个设置动画链接,使得组态操作更为简洁、便利,提高了组态的效率,并且具有较优的可扩展性。A configuration-based physical object presentation method according to an embodiment of the present invention, by performing an animation link of a physical object type having a predetermined configuration and a graphic element in a corresponding presentation graphic template in a development mode, and In the running mode, the physical object that is actually monitored is rendered according to the attribute value collected from the attribute value and the one-time set animation link, and the graphic element associated with the attribute identifier is rendered as the corresponding value of the attribute value of the attribute identifier of the monitored physical object. The effect can quickly realize the graphical display of the monitored physical objects without setting an animation link for each monitored physical object one by one, which makes the configuration operation more concise and convenient, improves the configuration efficiency, and has better performance. Scalability.
通常,在运行模式下,在用于展现被监控物理对象的显示界面上,可能需要同时查看/监控多个被监控物理对象的运行状态。在这种情况下,为了直观地展示在同一工场内的多个被监控物理对象,本发明实施例的基于组态的物理对象展示方法还可以包括:在运行模式下,将当前被监控的地理区域映射到显示界面的显示区域。相应地,步骤S520中为物理对象类型的被监控物理对象创建相应的图形计算对象的处理包括:为在当前被监控的地理区域中的被监控物理对象创建相应的图形计算对象。 Generally, in the running mode, on the display interface for displaying the monitored physical objects, it may be necessary to simultaneously view/monitor the running states of the plurality of monitored physical objects. In this case, in order to visually display a plurality of monitored physical objects in the same worksite, the configuration-based physical object display method of the embodiment of the present invention may further include: in the running mode, the currently monitored geography The area is mapped to the display area of the display interface. Correspondingly, the process of creating a corresponding graphic computing object for the monitored physical object of the physical object type in step S520 comprises: creating a corresponding graphic computing object for the monitored physical object in the currently monitored geographical area.
此外,为了查看某个或某几个被监控物理对象的运行状态,还可为用户提供缩放、平移等功能,根据经缩放、平移等操作映射到的被监控的地理区域来确定要展示的被监控物理对象,并且动态地创建和/或删除相应的图形计算对象。通过按需进行图形计算对象的创建和/或删除,可降低加载数据和图形计算的处理,优化利用系统资源。In addition, in order to view the running status of one or several monitored physical objects, the user may also be provided with functions such as zooming, panning, etc., and determining the to be displayed according to the monitored geographical area to which the operations such as zooming, panning, etc. are mapped. Monitor physical objects and dynamically create and/or delete corresponding graphical computing objects. By creating and/or deleting graphical calculation objects as needed, the processing of loading data and graphics calculations can be reduced, and system resources can be optimized.
实施例二 Embodiment 2
图7是示出根据本发明实施例二的基于组态的物理对象展示方法的流程图。7 is a flow chart showing a configuration-based physical object presentation method according to a second embodiment of the present invention.
参照图7,在步骤S710,在开发模式下,与物理对象类型相应地创建数据管理模型和与数据管理模型关联的图形计算模型。Referring to FIG. 7, in step S710, in the development mode, a data management model and a graphical calculation model associated with the data management model are created corresponding to the physical object type.
其中,数据管理模型包括物理对象类型的多个属性标识和属性值,图形计算模型包括物理对象类型的展示图形模板的数据以及图形计算逻辑代码,图形计算逻辑代码用于根据数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。The data management model includes multiple attribute identifiers and attribute values of the physical object type, the graphic calculation model includes data of the physical object type display graphic template and the graphic calculation logic code, and the graphic calculation logic code is used according to the data management model. The attribute of the graphic element identifies the corresponding attribute value to render the displayed effect of the associated graphic element.
在开发模式下,为需要监控的物理对象类型创建数据管理模型以及与数据管理模型关联的图形计算模型,可以针对需要监控的特定类型的物理对象进行数据管理,并设置其图形化展示的数据和图形计算逻辑。In the development mode, a data management model and a graphical computing model associated with the data management model are created for the physical object types to be monitored, and data management can be performed for specific types of physical objects that need to be monitored, and the graphically displayed data and data are set. Graphical calculation logic.
创建的数据管理模型可与存储物理对象类型的物理对象的属性数据的数据库接口,从而能够从数据库调取相应的物理对象的属性数据。创建的图形计算模型与物理对象类型的数据管理模型关联,为其指定物理对象类型的展示图形模板并设置图形计算逻辑代码。设置的图形计算逻辑代码可以是实现图形计算逻辑的脚本代码或任一种编程代码。在图形计算逻辑代码中,根据数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。The created data management model can interface with the database that stores the attribute data of the physical object of the physical object type, so that the attribute data of the corresponding physical object can be retrieved from the database. The created graphical computing model is associated with a data management model of the physical object type, which is assigned a graphical template for the physical object type and sets the graphical computing logic code. The set graphical computation logic code can be script code or any programming code that implements graphics computation logic. In the graphic calculation logic code, the display effect of the associated graphic element is rendered according to the attribute value corresponding to the attribute identifier associated with the graphic element in the data management model.
在本实施例中,与物理对象类型相应的数据管理模块中包括的物理对象类型的属性标识,至少包括地理数据标识和相应的地理数据属性,地理数据标识包括物理对象类型的中心位置标识。优选地,本实施例中,地理数据标识还可以包括物理对象类型的轮廓标识和/或物理对象类型的空间信息标识,该空间信息标识用于标识属于物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及,该物理对象与其它物理对象之间的关系。图形计算模型中的图形计算逻辑代码,可以根据属性标识中的地理数据标识对应的地理数据属性值,确定被监控物理对象对应的展示图形的展示位置,还可以根据数据管理模型中关联有图形要件的属性标识对应的属性值来渲染被关联的图形要件的展示效果。In this embodiment, the attribute identifier of the physical object type included in the data management module corresponding to the physical object type includes at least a geographic data identifier and a corresponding geographic data attribute, and the geographic data identifier includes a central location identifier of the physical object type. Preferably, in this embodiment, the geographic data identifier may further include a contour identifier of the physical object type and/or a spatial information identifier of the physical object type, where the spatial information identifier is used to identify a geographic location coordinate unit of the physical object belonging to the physical object type. , geographic location coordinates, and the relationship between the physical object and other physical objects. The graphic calculation logic code in the graphic calculation model may determine the display position of the display graphic corresponding to the monitored physical object according to the geographic data attribute value of the geographic data identifier in the attribute identifier, and may also associate the graphic element according to the data management model. The attribute identifies the corresponding attribute value to render the rendered effect of the associated graphic element.
通过步骤S710的处理,为需要监控的特定类型或配置的物理对象统一预先创建作为实例化的物理对象的数据管理模板,和图形计算模板的数据管理模型以及图形计算模型,从而当需要将物理对象类型实例化,即具体设置要监控的物理对象时,可根据创建的数据管理模型以及图形计算模型,为要监控的物理对象快速地创建相应的数据管理对象和图形计算对象。Through the processing of step S710, the data management template as the instantiated physical object, and the data management model of the graphic calculation template and the graphic computing model are pre-created for the specific type or configured physical object to be monitored, so that the physical object is needed when needed When the type is instantiated, that is, when the physical object to be monitored is specifically set, the corresponding data management object and the graphic calculation object can be quickly created for the physical object to be monitored according to the created data management model and the graphic calculation model.
在步骤S720,在开发模式或运行模式下,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取被监控物理对象所属的物理对象类型的信息,根据物理对象类型的数据管理模型分别创建一个或多个被监控物理对象的数据管理对象。 In step S720, in the development mode or the operation mode, an interaction interface for inputting information of one or more monitored physical objects is displayed, and the monitored physical objects are acquired according to information of one or more monitored physical objects input by the user. The information of the physical object type to which it belongs is created by one or more data management objects of the monitored physical object according to the data management model of the physical object type.
其中,在创建数据管理对象的处理中,将一个或多个数据管理对象的属性标识和属性值分别初始化为各个被监控物理对象的多个属性标识和属性值。In the process of creating a data management object, the attribute identifier and the attribute value of one or more data management objects are respectively initialized into a plurality of attribute identifiers and attribute values of the monitored physical objects.
在该步骤中,根据用户通过提供的交互界面输入的一个或多个被监控物理对象的信息来设置要实际监控的物理对象。具体地,可将被监控物理对象所属的物理对象类型的数据管理模型实例化,创建这些被监控物理对象的数据管理对象,并且以被监控物理对象的多个属性标识和属性值作为新创建的数据管理对象的属性标识和属性值。可例如,从存储这些被监控物理对象的属性数据的数据库,获取被监控物理对象的多个属性标识和属性值。In this step, the physical object to be actually monitored is set according to information of one or more monitored physical objects input by the user through the provided interactive interface. Specifically, the data management model of the physical object type to which the monitored physical object belongs can be instantiated, the data management object of the monitored physical object is created, and the plurality of attribute identifiers and attribute values of the monitored physical object are newly created. The attribute ID and attribute value of the data management object. For example, a plurality of attribute identifiers and attribute values of the monitored physical object may be obtained from a database storing attribute data of the monitored physical objects.
例如,开发人员可一次性设置某个风电场内要监控的数十个风力发电机组,在步骤S720,创建相应个数的风力发电机组的数据管理对象,并对这些数据管理对象进行属性的赋值。具体地,可以根据每台风力发电机组的位置信息或者编号信息,来唯一地标识该风力发电机组以及为其创建的数据管理对象。For example, the developer can set dozens of wind turbines to be monitored in a certain wind farm at a time, and in step S720, create data management objects of the corresponding number of wind turbines, and assign attributes to the data management objects. . Specifically, the wind turbine and the data management object created for it may be uniquely identified according to location information or number information of each wind turbine.
此外,在系统的开发模式和运行模式下都可设置要实际监控的物理对象。In addition, the physical objects to be actually monitored can be set in both the development mode and the operation mode of the system.
在步骤S730,在运行模式下,根据被监控物理对象所属的物理对象类型的图形计算模型创建图形计算对象。并且,在创建图形计算对象的处理中,将创建的图形计算对象与被监控物理对象的数据管理对象进行关联。In step S730, in the operation mode, the graphic calculation object is created according to the graphic calculation model of the physical object type to which the monitored physical object belongs. And, in the process of creating a graphic calculation object, the created graphic calculation object is associated with the data management object of the monitored physical object.
在运行状态下,需要展现被监控物理对象时,例如,用户打开设备监控的界面时,可动态地将被监控物理对象所属的物理对象类型的图形计算模型实例化,创建被监控物理对象的图形计算对象,并且通过该图形计算对象中的计算逻辑代码,根据展示图形模板的数据绘制被监控物理对象的展示图形,并且根据关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。其中,在渲染处理中,可以与被监控对象关联的图形要件,渲染为与被监控对象对应的数据管理对象中的关联的属性标识的属性值相应的展示效果。In the running state, when the monitored physical object needs to be presented, for example, when the user opens the device monitoring interface, the graphical computing model of the physical object type to which the monitored physical object belongs can be dynamically instantiated, and the graphic of the monitored physical object is created. Computing an object, and calculating a logic code in the object by the graphic, drawing a display graphic of the monitored physical object according to the data of the display graphic template, and rendering the associated graphic element according to the attribute value corresponding to the attribute identifier of the associated graphic element Display of results. In the rendering process, the graphic element that can be associated with the monitored object is rendered as a display effect corresponding to the attribute value of the associated attribute identifier in the data management object corresponding to the monitored object.
也就是说,仅需要在运行模式下需要展现被监控物理对象时,将图形计算模型实例化为相应的图形计算对象,而无需如在现有的组态系统中在开发模式下需要设置动画链接时也需要创建图形计算对象,处理效率较高。In other words, it is only necessary to instantiate the graphical computing model into the corresponding graphical computing object when the monitored physical object needs to be presented in the running mode, without the need to set the animation link in the development mode as in the existing configuration system. It is also necessary to create a graphical calculation object, which is more efficient.
本实施例中,在绘制被监控物理对象的展示图形的处理中,根据被监控物理对象的属性标识来确定展示图形的展示位置。具体地,在确定展示图形的展示位置时,可以根据被监控物理对象的轮廓标识的属性值(如空间包络地理坐标点),和,被监控物理对象的中心位置标识(如空间地理中心点),来自动计算展示图形的展示位置和显示大小;或者,也可以用中心位置标识的属性值(如空间地理中心点)自动计算展示图形的展示位置,由用户在计算逻辑里自定义展示图形的显示大小。In this embodiment, in the process of drawing the display graphic of the monitored physical object, the display position of the display graphic is determined according to the attribute identifier of the monitored physical object. Specifically, when determining the display position of the display graphic, the attribute value (such as the space envelope geographic coordinate point) that can be identified according to the contour of the monitored physical object, and the central location identifier of the monitored physical object (such as the spatial geographic center point) ), to automatically calculate the display position and display size of the display graphic; or, you can also use the attribute value of the central position identification (such as the spatial geographic center point) to automatically calculate the display position of the display graphic, and the user can customize the display graphic in the calculation logic. Display size.
在地理数据标识包括空间信息标识的情况下,可以根据被监控物理对象的空间信息标识的属性值,确定被监控物理对象的展示图形的展示位置。其中,空间信息标识用于标识属于物理对象类型的物理对象的地理位置坐标单位、地理位置坐标,以及该物理对象与其它物理对象之间的关系。In the case that the geographic data identifier includes the spatial information identifier, the display position of the displayed graphic of the monitored physical object may be determined according to the attribute value of the spatial information identifier of the monitored physical object. The spatial information identifier is used to identify a geographic location coordinate unit, a geographic location coordinate, and a relationship between the physical object and other physical objects of the physical object belonging to the physical object type.
其中,在一种确定展示图形的展示位置的可行方式中,物理对象与其它物理对象之间的关系包括物理对象与父物理对象的关系。在此情况下,可以根据被监控物理对象的空间信息标识的属性值(空间信息标识的属性值中,该被监控物理对象与其它物理对象之间的关系),判断当前被监控物理对象是否存在父物理对象;若存 在,则根据被监控物理对象对应的空间信息标识的属性值,确定被监控物理对象与父物理对象之间的相对位置关系;基于父物理对象的展示图形的展示位置,根据所述相对位置关系确定被监控物理对象的展示图形的展示位置。Among them, in a feasible way of determining the presentation position of the display graphic, the relationship between the physical object and other physical objects includes the relationship between the physical object and the parent physical object. In this case, it is possible to determine whether the currently monitored physical object exists according to the attribute value (the relationship between the monitored physical object and other physical objects in the attribute value of the spatial information identifier) identified by the spatial information of the monitored physical object. Parent physical object; if And determining, according to the attribute value of the spatial information corresponding to the monitored physical object, a relative positional relationship between the monitored physical object and the parent physical object; and the display position of the display graphic based on the parent physical object, according to the relative positional relationship Determine the placement of the display graphic of the monitored physical object.
例如,被监控物理对象的空间信息标识的属性值中,可以包括其父物理对象的名称,或者其父物理对象的空间名称,根据该属性值可以确定被监控物理对象的父物理对象的信息和属性(包括父物理对象的轮廓、中心位置、地理位置坐标单位、地理位置坐标等),进而确定被监控物理对象的展示图形的展示位置。对于被监控物理对象来说,若其有父物理对象,则被监控物理对象的采用与父物理对象相同的地理位置坐标单位,但其地理位置坐标可以为基于父物理对象空间的相对位置坐标。但不限于此,即使在被监控物理对象存在父物理对象的情况下,被监控物理对象也可以采用其自身的绝对地理位置坐标,通过计算确定其与你物理对象之间的相对位置。For example, the attribute value of the spatial information identifier of the monitored physical object may include the name of the parent physical object or the space name of the parent physical object, and according to the attribute value, the information of the parent physical object of the monitored physical object may be determined. Attributes (including the outline of the parent physical object, the center position, the geographic location coordinate unit, the geographic location coordinates, etc.) to determine the placement of the displayed graphic of the monitored physical object. For a monitored physical object, if it has a parent physical object, the monitored physical object adopts the same geographic location coordinate unit as the parent physical object, but its geographic location coordinate may be a relative position coordinate based on the parent physical object space. However, it is not limited to this, even if the monitored physical object has a parent physical object, the monitored physical object can use its own absolute geographic location coordinates to determine its relative position with your physical object by calculation.
例如,在对热电厂的锅炉进行监控时,其中一个被监控厂区内具有3个锅炉,每个锅炉均具有地理数据标识的属性值(包括轮廓标识的属性值、中心位置标识的属性值、空间信息标识的属性值等),在确定每个锅炉对应的展示图形的展示位置时,可以根据每个锅炉的地理数据标识的属性值确定它们的展示位置,如,根据第一个锅炉的轮廓标识的属性值和中心位置标识的属性值,确定其展示位置位于展示页面水平方向第1-100单位,竖直方向第1-200单位;根据第二个锅炉的轮廓标识的属性值和中心位置标识的属性值,确定其展示位置位于展示页面水平方向第105-205单位,竖直方向第1-200单位;根据第三个锅炉的轮廓标识的属性值和中心位置标识的属性值,确定其展示位置位于展示页面水平方向第210-310单位,竖直方向第1-200单位。For example, when monitoring a boiler of a thermal power plant, one of the monitored plants has three boilers, each of which has an attribute value of the geographic data identification (including the attribute value of the contour identification, the attribute value of the central position identification, and the spatial information). The attribute value of the identification, etc.), when determining the display position of the display graphic corresponding to each boiler, the position of the attribute of each boiler's geographic data identification may be determined, for example, according to the contour of the first boiler The attribute value and the attribute value of the central position identifier are determined to be located in the 1-100th unit in the horizontal direction of the display page and the 1-200th unit in the vertical direction; the attribute value and the central position identifier according to the contour of the second boiler are identified. Attribute value, determine its display position is 105-205 units in the horizontal direction of the display page, and 1-200 units in the vertical direction; determine the placement position according to the attribute value of the contour identification of the third boiler and the attribute value of the central position identification It is located in the 210-310 units in the horizontal direction of the display page and 1-200 units in the vertical direction.
对于当前的被监控物理对象还有父物理对象的情况,例如,当前的被监控物理对象为锅炉,其父物理对象则可以是该锅炉所在的厂房,在此情况下,通过锅炉的空间信息标识的属性值确定其父物理对象。当根据该属性值确定当前的被监控物理对象的父物理对象后,则可以根据父物理对象的地理数据标识的属性值,以该父物理对象的地理位置坐标单位为坐标单位,以被监控物理对象基于其父物理对象的相对位置为参考,确定当前的被监控物理对象对应的展示图形的展示位置。For the current monitored physical object and the parent physical object, for example, the current monitored physical object is a boiler, and the parent physical object may be the factory where the boiler is located. In this case, the space information of the boiler is identified. The attribute value determines its parent physical object. After determining the parent physical object of the current monitored physical object according to the attribute value, the geographic value coordinate unit of the parent physical object may be used as a coordinate unit according to the attribute value of the geographic data identifier of the parent physical object, to be monitored physical The object determines the display position of the display graphic corresponding to the current monitored physical object based on the relative position of its parent physical object.
例如,以二维空间为例,设定锅炉的父对象为厂房,厂房的父对象为围墙。以水平方向向右为X轴的正方向,以竖直方向向下为Y轴的正方向,当屏幕当前的分辨率为100%时,把围墙空间映射到屏幕生成显示比例100%的空间范围场景,该场景下会把场景对应的围墙范围和显示屏幕大小一对一映射。如,围墙左上角坐标(0,0),右上角坐标(110,0),左下角坐标(0,80),右下角坐标(110,80);厂房坐标基于围墙的坐标,厂房左上角坐标(10,0),右上角坐标(100,0),左下角坐标(0,70),右下角坐标(100,70);锅炉在厂房内部,以厂房的左上顶点坐标作为坐标零点,锅炉的坐标为左上角坐标(10,0),右上角坐标(20,0),左下角坐标(10,10),右下角坐标(20,10)。三维空间可参照二维空间类推。For example, taking a two-dimensional space as an example, the parent object of the boiler is set as a factory building, and the parent object of the factory building is a wall. In the horizontal direction, the positive direction is the positive direction of the X-axis, and the vertical direction is the positive direction of the Y-axis. When the current resolution of the screen is 100%, the wall space is mapped to the spatial extent of the display generation ratio of 100%. Scene, in this scenario, the fence range corresponding to the scene and the display screen size are mapped one-to-one. For example, the coordinates of the upper left corner of the wall (0,0), the coordinates of the upper right corner (110,0), the coordinates of the lower left corner (0,80), and the coordinates of the lower right corner (110,80); the coordinates of the factory building are based on the coordinates of the wall, the coordinates of the upper left corner of the factory (10,0), the upper right corner coordinates (100,0), the lower left corner coordinates (0,70), the lower right corner coordinates (100,70); the boiler is inside the factory building, taking the coordinates of the upper left vertex of the plant as the coordinate zero point, the boiler The coordinates are the upper left coordinate (10,0), the upper right coordinate (20,0), the lower left coordinate (10,10), and the lower right coordinate (20,10). The three-dimensional space can be referred to the two-dimensional space analogy.
应当理解,在实际应用中,可以先执行展示位置的确定处理,根据被监控物理对象的属性标识来确定展示图形的展示位置;后执行渲染处理,将关联有被监控物理对象的其它属性标识的图形要件,渲染为与其它属性标识的属性值相应的展示效 果。而且,也可以先执行该渲染处理,后确定展示位置,本发明实施例对此不做限定。It should be understood that, in an actual application, the determination process of the display position may be performed first, and the display position of the display graphic is determined according to the attribute identifier of the monitored physical object; and then the rendering process is performed, and the other attribute identifiers of the monitored physical object are associated. Graphical requirements, rendering to display performance corresponding to the attribute values of other attribute identifiers fruit. Moreover, the rendering process may be performed first, and then the display position is determined, which is not limited by the embodiment of the present invention.
此外,在用于实时监控和/或管理任何物理对象的过程中,需要持续获取被监控物理对象可能不断变化的属性值(如静态物理对象的运行参数值,或者,动态物理对象的地理位置坐标),并图形化展现这些属性值相应的运行状态。因此,本实施例的基于组态的物理对象展示方法可还包括:在运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。当属性标识为地理数据标识时,在运行模式下,可以每隔设定时间段获取并判断被监控物理对象的地理数据标识的属性值是否发生了更新;若发生了更新,则根据更新后的属性值更新被监控物理对象的展示图形的展示位置。In addition, in the process of real-time monitoring and/or management of any physical object, it is necessary to continuously obtain the attribute values of the monitored physical object that may be constantly changing (such as the running parameter value of the static physical object, or the geographical coordinate of the dynamic physical object). ), and graphically display the corresponding running state of these attribute values. Therefore, the configuration-based physical object presentation method of this embodiment may further include: receiving, in an operation mode, an updated attribute identifier and an attribute value of the monitored physical object, and according to the updated attribute identifier and attribute value. Renders the rendering of the graphic element associated with the attribute identifier. When the attribute identifier is a geographic data identifier, in the running mode, the attribute value of the geographic data identifier of the monitored physical object may be acquired and determined every set time period; if an update occurs, according to the updated The attribute value updates the placement of the display graphic of the monitored physical object.
基于被监控物理对象的地理位置坐标,对于静态设备和动态设备都可以自动确定其在展示页面上的位置,并自动显示渲染后的展示效果,特别是通过后台采集动态设备的地理位置坐标的变化,还可以自动在展示页面上显示设备的移动轨迹,不需用户编写复杂的计算脚本。Based on the geographical coordinates of the monitored physical object, both the static device and the dynamic device can automatically determine the position on the display page, and automatically display the rendered display effect, especially the background coordinate of the dynamic device is collected through the background. It can also automatically display the movement track of the device on the display page without the user having to write complex calculation scripts.
另一方面,还可允许用户/开发人员设置和改变关联有属性标识的图形要件的渲染效果参数。例如,将展示图形中指示设备温度的温度计设置为根据温度区间改变颜色。为此,本实施例的基于组态的物理对象展示方法可还包括:在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;在此基础上,在运行状态下,被监控物理对象的图形计算对象根据记录的图形要件的渲染效果参数将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。On the other hand, the user/developer can also be allowed to set and change the rendering effect parameters of the graphical element associated with the attribute identifier. For example, a thermometer indicating the temperature of the device in the display is set to change the color according to the temperature interval. To this end, the configuration-based physical object presentation method of the embodiment may further include: in the development mode, recording a rendering effect parameter of the graphic element in the display graphic template; on the basis of the running state, And the graphic computing object of the monitored physical object renders the graphic element associated with the attribute identifier into a display effect corresponding to the attribute value of the attribute identifier associated with the data management object according to the rendering effect parameter of the recorded graphic element.
此外,如果系统处于运行状态,而用户/开发人员设置和改变关联有属性标识的图形要件的渲染效果参数,则被监控物理对象的图形计算对象可通过消息通知或消息回调机制接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。In addition, if the system is in an operational state and the user/developer sets and changes the rendering effect parameter associated with the graphical element of the attribute identification, the graphical computing object of the monitored physical object may receive the updated by message notification or message callback mechanism A rendering effect parameter of the graphic element in the graphic template is displayed, and a rendering effect of the graphic element associated with the attribute identifier is rendered according to the rendering effect parameter of the updated graphic element.
本实施例的基于组态的物理对象展示方法,在前述实施例一的基础上,还通过在开发模式或运行模式下为用户提供用于输入被监控物理对象的信息的交互界面,根据用户输入的被监控物理对象的信息创建数据管理对象,为用户提供设置被监控物理对象的功能。在运行模式下,为实际被监控的物理对象根据从其采集到的属性值以及先前一次性设置的动画链接,将关联有属性标识的图形要件渲染为与被监控物理对象的属性标识的属性值相应的展示效果,以及根据被监控物理对象的地理数据标识确定展示位置来展示绘制的图形,从而快速地实现了被监控物理对象的图形化展现,而无需为每个被监控物理对象逐个设置动画链接,使得组态操作更为简洁、便利,提高了组态的效率,并且具有较优的可扩展性。The configuration-based physical object presentation method of the present embodiment, on the basis of the foregoing first embodiment, also provides an interactive interface for inputting information of the monitored physical object to the user in the development mode or the operation mode, according to the user input. The information of the monitored physical object creates a data management object, providing the user with the function of setting the monitored physical object. In the running mode, the graphic object associated with the attribute identifier is rendered as the attribute value of the attribute identifier of the monitored physical object according to the attribute value collected from the actual monitored physical object and the previously set animation link. Corresponding display effects, as well as determining the placement based on the geographic data identifier of the monitored physical object to display the drawn graphics, thereby quickly implementing the graphical representation of the monitored physical objects without having to animate each monitored physical object one by one. The link makes the configuration operation more concise and convenient, improves the efficiency of the configuration, and has better scalability.
实施例三 Embodiment 3
图8是示出根据本发明实施例三的系统的结构示意图。Figure 8 is a block diagram showing the structure of a system according to a third embodiment of the present invention.
参照图8,本实施例提供一种系统,包括:存储有指令的非易失性存储器802;与所述非易失性存储器802连接的一个或多个硬件处理器804,所述硬件处理器804 被配置为,执行用于执行以下操作的指令:在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,其中,所述展示图形模板包括至少一个图形要件;在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形,其中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。Referring to FIG. 8, the embodiment provides a system including: a non-volatile memory 802 storing instructions; and one or more hardware processors 804 connected to the non-volatile memory 802, the hardware processor 804 Configuring to execute an instruction to: associate, in a development mode, an attribute identifier of a physical object type having a predetermined configuration and a graphical requirement in a corresponding presentation graphic template, wherein the presentation graphic template Include at least one graphical requirement; in an operational mode, creating a graphical computing object for the monitored physical object of the physical object type, wherein the graphical computing object includes data of the physical graphic type of the presentation graphic template; The graphic computing object renders the display graphic of the monitored physical object according to the data of the displayed graphic template, wherein the graphic element associated with the attribute identifier is rendered as an impression corresponding to the attribute value of the attribute identifier of the monitored physical object effect.
可选地,在所述将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联的处理中,所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:获取所述物理对象类型的展示图形模板和至少一个属性标识;在显示装置806上,显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件;响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据进行关联存储在数据库中。Optionally, in the process of associating an attribute identifier of a physical object type having a predetermined configuration and a graphic requirement in a corresponding presentation graphic template, the hardware processor 804 is configured to be further executed for execution An instruction of: obtaining a display graphic template of the physical object type and at least one attribute identifier; displaying, on the display device 806, the attribute identifier and the display graphic template, and marking the graphic element in the display graphic template And in response to the user's association operation of the displayed attribute identifier and the marked graphic element, the attribute identifier of the physical object type operated by the user and the data of the graphic element associated with the attribute identifier in the corresponding display graphic template are associated and stored. In the database.
可选地,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:在开发模式下,与所述物理对象类型相应地创建数据管理模型以及与所述数据管理模型关联的图形计算模型,所述数据管理模型包括所述物理对象类型的多个属性标识和属性值,所述图形计算模型包括所述物理对象类型的展示图形模板的数据以及图形计算逻辑代码,所述图形计算逻辑代码用于根据所述数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。Optionally, the hardware processor 804 is configured to further execute instructions for: in the development mode, creating a data management model and associated with the data management model corresponding to the physical object type a graphical computing model, the data management model including a plurality of attribute identifiers and attribute values of the physical object type, the graphic calculation model including data of the display graphic template of the physical object type and graphics calculation logic code, the graphic The calculation logic code is configured to render the display effect of the associated graphic element according to the attribute value corresponding to the attribute identifier associated with the graphic element in the data management model.
可选地,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:在所述开发模式或运行模式下,在所述显示装置806上,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取所述被监控物理对象所属的物理对象类型的信息,根据所述物理对象类型的数据管理模型分别创建一个或多个所述被监控物理对象的数据管理对象,其中,将所述一个或多个数据管理对象的属性标识和属性值分别初始化为各个所述被监控物理对象的多个属性标识和属性值。Optionally, the hardware processor 804 is configured to further execute instructions for performing: in the development mode or the operation mode, displaying, on the display device 806, one or more inputs An interactive interface of information of the monitored physical object, and acquiring information of a physical object type to which the monitored physical object belongs according to information of one or more monitored physical objects input by the user, and a data management model according to the physical object type Separately creating one or more data management objects of the monitored physical objects, wherein the attribute identifiers and attribute values of the one or more data management objects are respectively initialized to multiple attribute identifiers of each of the monitored physical objects And attribute values.
可选地,在所述为所述物理对象类型的被监控物理对象创建图形计算对象的处理中,所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象所属的物理对象类型的图形计算模型创建所述图形计算对象,其中,将所述图形计算对象与所述被监控物理对象的数据管理对象进行关联。Optionally, in the process of creating a graphical computing object for the monitored physical object of the physical object type, the hardware processor 804 is configured to further execute an instruction for performing an operation according to the A graphical computing model that monitors the physical object type to which the physical object belongs creates the graphical computing object, wherein the graphical computing object is associated with a data management object of the monitored physical object.
可选地,在所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果的处理中所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。Optionally, the hardware processor 804 is configured to perform further execution in the process of rendering the graphic element associated with the attribute identifier into a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object. An instruction to: render a graphic element associated with an attribute identifier as a display effect corresponding to an attribute value of the attribute identifier associated with the data management object.
可选地,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:在所述运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。Optionally, the hardware processor 804 is configured to further execute an instruction to: in the operating mode, receive an updated attribute identifier and an attribute value of the monitored physical object, and according to the The updated attribute identifier and attribute value render the display effect of the graphical element associated with the attribute identifier.
可选地,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;所述将关 联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:根据记录的图形要件的渲染效果参数,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。Optionally, the hardware processor 804 is configured to further execute an instruction to: in the development mode, record a rendering effect parameter of the graphic element in the presentation graphic template; The graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including: rendering the graphic element associated with the attribute identifier into and according to the rendering effect parameter of the recorded graphic element The attribute value of the attribute identifier of the monitored physical object corresponds to the display effect.
可选地,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:在所述运行模式下,接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。Optionally, the hardware processor 804 is configured to further execute an instruction to: in the running mode, receive an updated rendering effect parameter of the graphic requirement in the displayed graphic template, and according to The rendering effect parameter of the updated graphical element renders the display effect of the graphical element associated with the attribute identifier.
可选地,所述属性标识包括地理数据标识,所述地理数据标识包括所述物理对象类型的中心位置标识;所述硬件处理器804被配置为,还执行用于执行以下操作的指令:根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,在所述展示位置展示所述展示图形;在所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果的处理中所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:将关联有其它属性标识的图形要件渲染为与所述其它属性标识的属性值相应的展示效果。Optionally, the attribute identifier includes a geographic data identifier, the geographic data identifier including a central location identifier of the physical object type; the hardware processor 804 is configured to further execute an instruction to perform the following operations: The attribute value of the geographic data identifier of the monitored physical object determines a display position of the display graphic, and the display graphic is displayed at the display position; and the graphic element associated with the attribute identifier is rendered as being The hardware processor 804 is configured to further perform an instruction for performing a process of rendering a graphical requirement associated with other attribute identifications as described in the process of monitoring the attribute value of the attribute identification of the physical object. The attribute value corresponding to the attribute identification of other attributes.
可选地,所述地理数据标识还包括所述物理对象类型的轮廓标识,所述轮廓标识用于标识属于所述物理对象类型的物理对象的轮廓;在所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置的处理中,所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象的中心位置标识的属性值所指示的中心位置,和,所述轮廓标识的属性值所指示的所述被监控物理对象的轮廓,确定所述被监控物理对象的展示位置。Optionally, the geographic data identifier further includes a contour identifier of the physical object type, the contour identifier is used to identify a contour of a physical object belonging to the physical object type; and the according to the monitored physical object In the process of determining an attribute value of the geographic data identifier, the hardware processor 804 is configured to further execute instructions for performing an operation of: identifying a central location of the monitored physical object A central location indicated by the attribute value, and an outline of the monitored physical object indicated by the attribute value of the outline identifier, determining a display position of the monitored physical object.
可选地,所述地理数据标识还包括所述物理对象类型的空间信息标识,所述空间信息标识用于标识属于所述物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及与其它物理对象之间的关系;在所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置的处理中,所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置。Optionally, the geographic data identifier further includes a spatial information identifier of the physical object type, where the spatial information identifier is used to identify a geographic location coordinate unit, a geographic location coordinate, and a physical object belonging to the physical object type. a relationship between other physical objects; in the process of determining a presentation position of the display graphic according to an attribute value of the geographic data identifier of the monitored physical object, the hardware processor 804 is configured to be further executed And an instruction to: determine a display position of the display graphic of the monitored physical object according to an attribute value of the spatial information identifier of the monitored physical object.
可选地,所述物理对象与其它物理对象之间的关系包括所述物理对象与父物理对象之间的关系;在所述根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置的处理中,所述硬件处理器804被配置为,进一步执行用于执行以下操作的指令:根据所述被监控物理对象的空间信息标识的属性值,判断所述被监控物理对象是否存在父物理对象;若存在,则根据所述被监控物理对象对应的空间信息标识的属性值,确定所述被监控物理对象与所述父物理对象之间的相对位置关系;基于所述父物理对象的展示图形的展示位置,根据所述相对位置关系确定所述被监控物理对象的展示图形的展示位置。Optionally, the relationship between the physical object and other physical objects includes a relationship between the physical object and a parent physical object; and determining, according to the attribute value identified by the spatial information of the monitored physical object, In the process of displaying the display position of the monitored physical object, the hardware processor 804 is configured to further execute an instruction for performing an operation of: determining an attribute value according to the spatial information of the monitored physical object, Determining whether the monitored physical object has a parent physical object; if yes, determining a relative relationship between the monitored physical object and the parent physical object according to the attribute value of the spatial information identifier corresponding to the monitored physical object a positional relationship; determining, according to the relative positional relationship, a display position of the display graphic of the monitored physical object based on the display position of the display graphic of the parent physical object.
可选地,在运行模式下,所述硬件处理器804被配置为,还执行用于执行以下操作的指令:每隔设定时间段获取并判断所述被监控物理对象的地理数据标识的属性值是否发生了更新;若发生了更新,则根据更新后的属性值更新所述被监控物理对象的展示图形的展示位置。Optionally, in the operating mode, the hardware processor 804 is configured to further execute an instruction to: acquire and determine an attribute of the geographic data identifier of the monitored physical object every set time period Whether the value has been updated; if an update occurs, the display position of the displayed graphic of the monitored physical object is updated according to the updated attribute value.
本实施例的系统,可用于实现前述方法实施例中相应的基于组态的物理对象展示方法,并具有相应的方法实施例的有益效果,在此不再赘述。 The system of the present embodiment can be used to implement the corresponding configuration-based physical object display method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, and details are not described herein again.
本发明实施例还提供一种计算机程序,其包括有计算机程序指令,所述程序指令被处理器执行时用于实现本发明实施例提供的任一基于组态的物理对象展示方法的步骤。The embodiment of the present invention further provides a computer program, including computer program instructions, which are used by the processor to implement the steps of any configuration-based physical object presentation method provided by the embodiments of the present invention.
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本发明实施例提供的任一基于组态的物理对象展示方法的步骤。The embodiment of the present invention further provides a computer readable storage medium, where the computer program instructions are stored, and when the program instructions are executed by the processor, the steps of the configuration-based physical object display method provided by the embodiment of the present invention are implemented.
需要指出,根据实施的需要,可将本申请中描述的各个部件/步骤拆分为更多部件/步骤,也可将两个或多个部件/步骤或者部件/步骤的部分操作组合成新的部件/步骤,以实现本发明实施例的目的。It is pointed out that the various components/steps described in this application can be split into more components/steps according to the needs of the implementation, or two or more components/steps or partial operations of the components/steps can be combined into new ones. Components/steps to achieve the objectives of embodiments of the present invention.
上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的处理方法。此外,当通用计算机访问用于实现在此示出的处理的代码时,代码的执行将通用计算机转换为用于执行在此示出的处理的专用计算机。The above method according to an embodiment of the present invention may be implemented in hardware, firmware, or implemented as software or computer code that may be stored in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or implemented by The network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable Such software processing on a recording medium of dedicated hardware such as an ASIC or an FPGA. It will be understood that a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is The processing methods described herein are implemented when the processor or hardware is accessed and executed. Moreover, when a general purpose computer accesses code for implementing the processing shown herein, the execution of the code converts the general purpose computer into a special purpose computer for performing the processing shown herein.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。Those of ordinary skill in the art will appreciate that the elements and method steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention.
以上所述,仅为本发明实施例的具体实施方式,但本发明实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明实施例的保护范围之内。因此,本发明实施例的保护范围应以所述权利要求的保护范围为准。 The foregoing is only a specific embodiment of the embodiments of the present invention, but the scope of protection of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily use the technical scope disclosed in the embodiments of the present invention. All changes or substitutions are contemplated to be within the scope of the embodiments of the invention. Therefore, the scope of protection of the embodiments of the present invention should be determined by the scope of the claims.

Claims (30)

  1. 一种基于组态的物理对象展示方法,包括:A configuration-based physical object display method, including:
    在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,其中,所述展示图形模板包括至少一个图形要件;In the development mode, an attribute identifier of a physical object type having a predetermined configuration and a graphic requirement in a corresponding presentation graphic template are associated, wherein the presentation graphic template includes at least one graphic element;
    在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形,其中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。In the run mode, a graphical computing object is created for the monitored physical object of the physical object type, wherein the graphical computing object includes data of the display graphic template of the physical object type; The data of the graphic template is displayed to draw the display graphic of the monitored physical object, wherein the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object.
  2. 根据权利要求1所述的方法,其中,所述将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,包括:The method of claim 1 wherein said associating an attribute identification of a physical object type having a predetermined configuration with a graphical requirement in a corresponding presentation graphic template comprises:
    获取所述物理对象类型的展示图形模板和至少一个属性标识;Obtaining a display graphic template of the physical object type and at least one attribute identifier;
    显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件;Displaying the attribute identifier and the display graphic template, and marking the graphic element in the display graphic template;
    响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据进行关联存储。In response to the user's association operation of the displayed attribute identifier and the annotated graphic element, the attribute identifier of the physical object type operated by the user and the data of the graphic element associated with the attribute identifier in the corresponding presentation graphic template are associated and stored.
  3. 根据权利要求1或2所述的方法,其中,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    在开发模式下,与所述物理对象类型相应地创建数据管理模型以及与所述数据管理模型关联的图形计算模型,所述数据管理模型包括所述物理对象类型的多个属性标识和属性值,所述图形计算模型包括所述物理对象类型的展示图形模板的数据以及图形计算逻辑代码,所述图形计算逻辑代码用于根据所述数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。In the development mode, a data management model and a graphical computing model associated with the data management model are created corresponding to the physical object type, the data management model including a plurality of attribute identifiers and attribute values of the physical object type, The graphic calculation model includes data of a display graphic template of the physical object type and graphic calculation logic code, and the graphic calculation logic code is configured to render an attribute value corresponding to an attribute identifier associated with the graphic element in the data management model. The display effect of the associated graphic element.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method of claim 3, wherein the method further comprises:
    在所述开发模式或运行模式下,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取所述被监控物理对象所属的物理对象类型的信息,根据所述物理对象类型的数据管理模型分别创建一个或多个所述被监控物理对象的数据管理对象,其中,将所述一个或多个数据管理对象的属性标识和属性值分别初始化为各个所述被监控物理对象的多个属性标识和属性值。In the development mode or the operation mode, displaying an interaction interface for inputting information of one or more monitored physical objects, and acquiring the monitored physical object according to information of one or more monitored physical objects input by the user Information about the physical object type to which the data management object of the monitored physical object is created according to the data management model of the physical object type, wherein the attribute identifier of the one or more data management objects is And the attribute values are respectively initialized to a plurality of attribute identifiers and attribute values of each of the monitored physical objects.
  5. 根据权利要求4所述的方法,其中,所述为所述物理对象类型的被监控物理对象创建图形计算对象,包括:The method of claim 4, wherein the creating a graphical computing object for the monitored physical object of the physical object type comprises:
    根据所述被监控物理对象所属的物理对象类型的图形计算模型创建所述图形计算对象,其中,将所述图形计算对象与所述被监控物理对象的数据管理对象进行关联。And creating the graphic computing object according to a graphic computing model of a physical object type to which the monitored physical object belongs, wherein the graphic computing object is associated with a data management object of the monitored physical object.
  6. 根据权利要求4或5所述的方法,其中,所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:The method according to claim 4 or 5, wherein the rendering of the graphic element associated with the attribute identifier as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object comprises:
    将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。The graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier associated with the data management object.
  7. 根据权利要求1~6中任一项所述的方法,其中,所述方法还包括: The method according to any one of claims 1 to 6, wherein the method further comprises:
    在所述运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。In the running mode, the updated attribute identifier and the attribute value of the monitored physical object are received, and the display effect of the graphic element associated with the attribute identifier is rendered according to the updated attribute identifier and the attribute value.
  8. 根据权利要求1~7中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;In the development mode, recording a rendering effect parameter of the graphic element in the display graphic template;
    所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:And the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including:
    根据记录的图形要件的渲染效果参数,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。The graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object according to the rendering effect parameter of the recorded graphic element.
  9. 根据权利要求8所述的方法,其中,所述方法还包括:The method of claim 8 wherein the method further comprises:
    在所述运行模式下,接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。And in the running mode, receiving a rendering effect parameter of the updated graphic requirement in the displayed graphic template, and rendering a display effect of the graphic element associated with the attribute identifier according to the updated rendering parameter of the graphic requirement.
  10. 根据权利要求1~9中任一项所述的方法,其中,所述属性标识包括地理数据标识,所述地理数据标识包括所述物理对象类型的中心位置标识;The method according to any one of claims 1 to 9, wherein the attribute identifier comprises a geographic data identifier, and the geographic data identifier comprises a central location identifier of the physical object type;
    所述方法还包括:根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,在所述展示位置展示所述展示图形;The method further includes: determining a display position of the display graphic according to an attribute value of the geographic data identifier of the monitored physical object, and displaying the display graphic at the display position;
    所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:And the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including:
    将关联有其它属性标识的图形要件渲染为与所述其它属性标识的属性值相应的展示效果。A graphic element associated with other attribute identifiers is rendered as a display effect corresponding to the attribute values of the other attribute identifiers.
  11. 根据权利要求10所述的方法,其中,所述地理数据标识还包括所述物理对象类型的轮廓标识,所述轮廓标识用于标识属于所述物理对象类型的物理对象的轮廓;The method of claim 10, wherein the geographic data identifier further comprises a contour identifier of the physical object type, the contour identifier identifying an outline of a physical object belonging to the physical object type;
    所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,包括:Determining, according to the attribute value of the geographic data identifier of the monitored physical object, the display position of the display graphic, including:
    根据所述被监控物理对象的中心位置标识的属性值所指示的中心位置,和,所述轮廓标识的属性值所指示的所述被监控物理对象的轮廓,确定所述被监控物理对象的展示位置。Determining the display of the monitored physical object according to a central location indicated by an attribute value of the central location identifier of the monitored physical object, and an outline of the monitored physical object indicated by the attribute value of the contour identifier position.
  12. 根据权利要求10所述的方法,其中,所述地理数据标识还包括所述物理对象类型的空间信息标识,所述空间信息标识用于标识属于所述物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及与其它物理对象之间的关系;The method according to claim 10, wherein said geographic data identifier further comprises a spatial information identifier of said physical object type, said spatial information identifying a geographic location coordinate unit for identifying a physical object belonging to said physical object type , geographic location coordinates, and relationships with other physical objects;
    所述根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,包括:Determining, according to the attribute value of the geographic data identifier of the monitored physical object, the display position of the display graphic, including:
    根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置。And determining, according to an attribute value of the spatial information identifier of the monitored physical object, a display position of the display graphic of the monitored physical object.
  13. 根据权利要求12所述的方法,其中,所述物理对象与其它物理对象之间的关系包括所述物理对象与父物理对象之间的关系;The method of claim 12, wherein the relationship between the physical object and other physical objects comprises a relationship between the physical object and a parent physical object;
    所述根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置,包括: Determining, according to the attribute value of the spatial information identifier of the monitored physical object, the display position of the displayed graphic of the monitored physical object, including:
    根据所述被监控物理对象的空间信息标识的属性值,判断所述被监控物理对象是否存在父物理对象;Determining, according to the attribute value of the spatial information identifier of the monitored physical object, whether the monitored physical object has a parent physical object;
    若存在,则根据所述被监控物理对象对应的空间信息标识的属性值,确定所述被监控物理对象与所述父物理对象之间的相对位置关系;基于所述父物理对象的展示图形的展示位置,根据所述相对位置关系确定所述被监控物理对象的展示图形的展示位置。If yes, determining a relative positional relationship between the monitored physical object and the parent physical object according to the attribute value of the spatial information identifier corresponding to the monitored physical object; and displaying the graphic based on the parent physical object a display location, where the display position of the displayed graphic of the monitored physical object is determined according to the relative positional relationship.
  14. 根据权利要求10~13中任一项所述的方法,其中,在运行模式下,所述方法还包括:The method according to any one of claims 10 to 13, wherein, in the operating mode, the method further comprises:
    每隔设定时间段获取并判断所述被监控物理对象的地理数据标识的属性值是否发生了更新;Obtaining and determining, at a set time period, whether an attribute value of the geographic data identifier of the monitored physical object is updated;
    若发生了更新,则根据更新后的属性值更新所述被监控物理对象的展示图形的展示位置。If an update occurs, the display position of the display graphic of the monitored physical object is updated according to the updated attribute value.
  15. 一种系统,包括:A system comprising:
    存储有指令的非易失性存储器;a non-volatile memory storing instructions;
    与所述非易失性存储器连接的一个或多个硬件处理器,所述硬件处理器被配置为,执行用于执行以下操作的指令:One or more hardware processors coupled to the non-volatile memory, the hardware processor being configured to execute instructions for performing the following operations:
    在开发模式下,将具有预定配置的物理对象类型的属性标识以及在相应的展示图形模板中的图形要件进行关联,其中,所述展示图形模板包括至少一个图形要件;In the development mode, an attribute identifier of a physical object type having a predetermined configuration and a graphic requirement in a corresponding presentation graphic template are associated, wherein the presentation graphic template includes at least one graphic element;
    在运行模式下,为所述物理对象类型的被监控物理对象创建图形计算对象,其中,所述图形计算对象包括所述物理对象类型的展示图形模板的数据;通过所述图形计算对象根据所述展示图形模板的数据绘制所述被监控物理对象的展示图形,其中,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。In the run mode, a graphical computing object is created for the monitored physical object of the physical object type, wherein the graphical computing object includes data of the display graphic template of the physical object type; The data of the graphic template is displayed to draw the display graphic of the monitored physical object, wherein the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object.
  16. 根据权利要求15所述的系统,其中,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The system of claim 15 wherein the hardware processor is configured to further execute instructions for performing the following operations:
    获取所述物理对象类型的展示图形模板和至少一个属性标识;Obtaining a display graphic template of the physical object type and at least one attribute identifier;
    在显示装置上,显示所述属性标识和所述展示图形模板,并标注所述展示图形模板中的图形要件;Displaying, on the display device, the attribute identifier and the display graphic template, and marking the graphic element in the display graphic template;
    响应于用户对显示的属性标识和标注的图形要件的关联操作,将用户操作的物理对象类型的属性标识以及在相应的展示图形模板中与所述属性标识关联的图形要件的数据进行关联存储在数据库中。Corresponding to the user's association operation of the displayed attribute identifier and the marked graphic element, the attribute identifier of the physical object type operated by the user and the data of the graphic element associated with the attribute identifier in the corresponding display graphic template are associated with each other. In the database.
  17. 根据权利要求15或16所述的系统,其中,所述硬件处理器被配置为,还执行用于执行以下操作的指令:A system according to claim 15 or 16, wherein the hardware processor is configured to also execute instructions for performing the following operations:
    在开发模式下,与所述物理对象类型相应地创建数据管理模型以及与所述数据管理模型关联的图形计算模型,所述数据管理模型包括所述物理对象类型的多个属性标识和属性值,所述图形计算模型包括所述物理对象类型的展示图形模板的数据以及图形计算逻辑代码,所述图形计算逻辑代码用于根据所述数据管理模型中关联有图形要件的属性标识对应的属性值渲染被关联的图形要件的展示效果。In the development mode, a data management model and a graphical computing model associated with the data management model are created corresponding to the physical object type, the data management model including a plurality of attribute identifiers and attribute values of the physical object type, The graphic calculation model includes data of a display graphic template of the physical object type and graphic calculation logic code, and the graphic calculation logic code is configured to render an attribute value corresponding to an attribute identifier associated with the graphic element in the data management model. The display effect of the associated graphic element.
  18. 根据权利要求17所述的系统,其中,所述硬件处理器被配置为,还执行用于执行以下操作的指令: The system of claim 17 wherein the hardware processor is configured to also execute instructions for performing the following operations:
    在所述开发模式或运行模式下,在所述显示装置上,显示用于输入一个或多个被监控物理对象的信息的交互界面,并且根据用户输入的一个或多个被监控物理对象的信息获取所述被监控物理对象所属的物理对象类型的信息,根据所述物理对象类型的数据管理模型分别创建一个或多个所述被监控物理对象的数据管理对象,其中,将所述一个或多个数据管理对象的属性标识和属性值分别初始化为各个所述被监控物理对象的多个属性标识和属性值。In the development mode or the operation mode, on the display device, an interactive interface for inputting information of one or more monitored physical objects is displayed, and according to information of one or more monitored physical objects input by the user Obtaining information about a physical object type to which the monitored physical object belongs, and respectively creating one or more data management objects of the monitored physical object according to the data management model of the physical object type, where the one or more The attribute identifiers and attribute values of the data management objects are respectively initialized to a plurality of attribute identifiers and attribute values of each of the monitored physical objects.
  19. 根据权利要求18所述的系统,其中,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令The system of claim 18, wherein the hardware processor is configured to further execute instructions for performing the following operations
    根据所述被监控物理对象所属的物理对象类型的图形计算模型创建所述图形计算对象,其中,将所述图形计算对象与所述被监控物理对象的数据管理对象进行关联。And creating the graphic computing object according to a graphic computing model of a physical object type to which the monitored physical object belongs, wherein the graphic computing object is associated with a data management object of the monitored physical object.
  20. 根据权利要求17或18所述的系统,其中,所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The system of claim 17 or 18, wherein the hardware processor is configured to further execute instructions for performing the following operations:
    将关联有属性标识的图形要件渲染为与所述数据管理对象中所述关联的属性标识的属性值相应的展示效果。The graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier associated with the data management object.
  21. 根据权利要求15~20中任一项所述的系统,其中,所述硬件处理器被配置为,还执行用于执行以下操作的指令:A system according to any one of claims 15 to 20, wherein the hardware processor is configured to also execute instructions for performing the following operations:
    在所述运行模式下,接收更新的所述被监控物理对象的属性标识和属性值,并且根据所述更新的属性标识和属性值渲染与所述属性标识关联的图形要件的展示效果。In the running mode, the updated attribute identifier and the attribute value of the monitored physical object are received, and the display effect of the graphic element associated with the attribute identifier is rendered according to the updated attribute identifier and the attribute value.
  22. 根据权利要求15~21中任一项所述的系统,其中,所述硬件处理器被配置为,还执行用于执行以下操作的指令:A system according to any one of claims 15 to 21, wherein the hardware processor is configured to also execute instructions for performing the following operations:
    在所述开发模式下,记录所述展示图形模板中的图形要件的渲染效果参数;In the development mode, recording a rendering effect parameter of the graphic element in the display graphic template;
    所述将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果,包括:And the graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object, including:
    根据记录的图形要件的渲染效果参数,将关联有属性标识的图形要件渲染为与所述被监控物理对象的属性标识的属性值相应的展示效果。The graphic element associated with the attribute identifier is rendered as a display effect corresponding to the attribute value of the attribute identifier of the monitored physical object according to the rendering effect parameter of the recorded graphic element.
  23. 根据权利要求22所述的系统,其中,所述硬件处理器被配置为,还执行用于执行以下操作的指令:The system of claim 22, wherein the hardware processor is configured to also execute instructions for performing the following operations:
    在所述运行模式下,接收更新的所述展示图形模板中的图形要件的渲染效果参数,并且根据所述更新的图形要件的渲染效果参数渲染与所述属性标识关联的图形要件的展示效果。And in the running mode, receiving a rendering effect parameter of the updated graphic requirement in the displayed graphic template, and rendering a display effect of the graphic element associated with the attribute identifier according to the updated rendering parameter of the graphic requirement.
  24. 根据权利要求15~23中任一项所述的系统,其中,所述属性标识包括地理数据标识,所述地理数据标识包括所述物理对象类型的中心位置标识;The system according to any one of claims 15 to 23, wherein the attribute identifier comprises a geographic data identifier, and the geographic data identifier comprises a central location identifier of the physical object type;
    所述硬件处理器被配置为,还执行用于执行以下操作的指令:根据所述被监控物理对象的地理数据标识的属性值确定所述展示图形的展示位置,在所述展示位置展示所述展示图形;The hardware processor is configured to further execute instructions for: determining a display location of the display graphic based on an attribute value of a geographic data identification of the monitored physical object, displaying the display at the placement location Display graphics;
    所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The hardware processor is configured to further execute instructions for performing the following operations:
    将关联有其它属性标识的图形要件渲染为与所述其它属性标识的属性值相应的展示效果。 A graphic element associated with other attribute identifiers is rendered as a display effect corresponding to the attribute values of the other attribute identifiers.
  25. 根据权利要求24所述的系统,其中,所述地理数据标识还包括所述物理对象类型的轮廓标识,所述轮廓标识用于标识属于所述物理对象类型的物理对象的轮廓;The system of claim 24, wherein the geographic data identification further comprises a contour identification of the physical object type, the contour identification identifying an outline of a physical object belonging to the physical object type;
    所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The hardware processor is configured to further execute instructions for performing the following operations:
    根据所述被监控物理对象的中心位置标识的属性值所指示的中心位置,和,所述轮廓标识的属性值所指示的所述被监控物理对象的轮廓,确定所述被监控物理对象的展示位置。Determining the display of the monitored physical object according to a central location indicated by an attribute value of the central location identifier of the monitored physical object, and an outline of the monitored physical object indicated by the attribute value of the contour identifier position.
  26. 根据权利要求25所述的系统,其中,所述地理数据标识还包括所述物理对象类型的空间信息标识,所述空间信息标识用于标识属于所述物理对象类型的物理对象的地理位置坐标单位、地理位置坐标、以及与其它物理对象之间的关系;The system according to claim 25, wherein said geographic data identifier further comprises a spatial information identifier of said physical object type, said spatial information identifying a geographic location coordinate unit for identifying a physical object belonging to said physical object type , geographic location coordinates, and relationships with other physical objects;
    所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The hardware processor is configured to further execute instructions for performing the following operations:
    根据所述被监控物理对象的空间信息标识的属性值,确定所述被监控物理对象的展示图形的展示位置。And determining, according to an attribute value of the spatial information identifier of the monitored physical object, a display position of the display graphic of the monitored physical object.
  27. 根据权利要求26所述的系统,其中,所述物理对象与其它物理对象之间的关系包括所述物理对象与父物理对象之间的关系;The system of claim 26, wherein the relationship between the physical object and other physical objects comprises a relationship between the physical object and a parent physical object;
    所述硬件处理器被配置为,进一步执行用于执行以下操作的指令:The hardware processor is configured to further execute instructions for performing the following operations:
    根据所述被监控物理对象的空间信息标识的属性值,判断所述被监控物理对象是否存在父物理对象;Determining, according to the attribute value of the spatial information identifier of the monitored physical object, whether the monitored physical object has a parent physical object;
    若存在,则根据所述被监控物理对象对应的空间信息标识的属性值,确定所述被监控物理对象与所述父物理对象之间的相对位置关系;基于所述父物理对象的展示图形的展示位置,根据所述相对位置关系确定所述被监控物理对象的展示图形的展示位置。If yes, determining a relative positional relationship between the monitored physical object and the parent physical object according to the attribute value of the spatial information identifier corresponding to the monitored physical object; and displaying the graphic based on the parent physical object a display location, where the display position of the displayed graphic of the monitored physical object is determined according to the relative positional relationship.
  28. 根据权利要求24~27中任一项所述的系统,其中,在运行模式下,所述硬件处理器被配置为,还执行用于执行以下操作的指令:A system according to any one of claims 24 to 27, wherein in the operational mode, the hardware processor is configured to also execute instructions for performing the following operations:
    每隔设定时间段获取并判断所述被监控物理对象的地理数据标识的属性值是否发生了更新;Obtaining and determining, at a set time period, whether an attribute value of the geographic data identifier of the monitored physical object is updated;
    若发生了更新,则根据更新后的属性值更新所述被监控物理对象的展示图形的展示位置。If an update occurs, the display position of the display graphic of the monitored physical object is updated according to the updated attribute value.
  29. 一种计算机程序,其包括有计算机程序指令,其中,所述程序指令被处理器执行时用于实现权利要求1~14中任一项所述基于组态的物理对象展示方法对应的步骤。A computer program comprising computer program instructions, wherein the program instructions are executed by a processor to implement the steps corresponding to the configuration-based physical object presentation method of any one of claims 1-14.
  30. 一种计算机可读存储介质,其上存储有计算机程序指令,其中,所述程序指令被处理器执行时用于实现权利要求1~14中任一项所述基于组态的物理对象展示方法对应的步骤。 A computer readable storage medium having stored thereon computer program instructions, wherein the program instructions are executed by a processor for implementing a configuration-based physical object presentation method according to any one of claims 1-14 A step of.
PCT/CN2017/101449 2016-10-24 2017-09-12 Method and system for displaying physical object based on configuration, and computer program and storage medium WO2018076946A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610936522.1 2016-10-24
CN201610936524.0A CN106406910B (en) 2016-10-24 2016-10-24 Configuration method and device
CN201610936522.1A CN106444427B (en) 2016-10-24 2016-10-24 Physical object methods of exhibiting based on configuration
CN201610936524.0 2016-10-24

Publications (1)

Publication Number Publication Date
WO2018076946A1 true WO2018076946A1 (en) 2018-05-03

Family

ID=62023070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101449 WO2018076946A1 (en) 2016-10-24 2017-09-12 Method and system for displaying physical object based on configuration, and computer program and storage medium

Country Status (1)

Country Link
WO (1) WO2018076946A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766775A (en) * 2019-11-07 2020-02-07 中煤航测遥感集团有限公司 BIM model dynamic display method and device
CN111176636A (en) * 2019-12-31 2020-05-19 新奥数能科技有限公司 Method and device for realizing graphical configuration of comprehensive energy system
CN112487112A (en) * 2020-12-17 2021-03-12 江苏苏宁云计算有限公司 Method and device for linkage configuration of components, computer equipment and storage medium
CN116166862A (en) * 2023-04-25 2023-05-26 国网信息通信产业集团有限公司 Multi-source data fusion method, system and equipment based on configuration editor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950763A (en) * 2004-05-04 2007-04-18 费舍-柔斯芒特系统股份有限公司 Graphic element with multiple visualizations in a process environment
CN103092585A (en) * 2011-11-04 2013-05-08 上海宝信软件股份有限公司 Image library configuration design system for integrated supervision software
CN104765843A (en) * 2015-04-16 2015-07-08 国家电网公司 Control method used for graphic interface of electric power real-time monitoring system
CN105573769A (en) * 2014-10-10 2016-05-11 大唐电信科技股份有限公司 Visual configuration method and device of remote control of cement production
CN105630483A (en) * 2015-12-16 2016-06-01 青岛海信网络科技股份有限公司 Configuration graphic element display method and device
CN106406910A (en) * 2016-10-24 2017-02-15 北京亚控科技发展有限公司 Configuration method and device
CN106444427A (en) * 2016-10-24 2017-02-22 北京亚控科技发展有限公司 Configuration-based physical object display method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950763A (en) * 2004-05-04 2007-04-18 费舍-柔斯芒特系统股份有限公司 Graphic element with multiple visualizations in a process environment
CN103092585A (en) * 2011-11-04 2013-05-08 上海宝信软件股份有限公司 Image library configuration design system for integrated supervision software
CN105573769A (en) * 2014-10-10 2016-05-11 大唐电信科技股份有限公司 Visual configuration method and device of remote control of cement production
CN104765843A (en) * 2015-04-16 2015-07-08 国家电网公司 Control method used for graphic interface of electric power real-time monitoring system
CN105630483A (en) * 2015-12-16 2016-06-01 青岛海信网络科技股份有限公司 Configuration graphic element display method and device
CN106406910A (en) * 2016-10-24 2017-02-15 北京亚控科技发展有限公司 Configuration method and device
CN106444427A (en) * 2016-10-24 2017-02-22 北京亚控科技发展有限公司 Configuration-based physical object display method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766775A (en) * 2019-11-07 2020-02-07 中煤航测遥感集团有限公司 BIM model dynamic display method and device
CN110766775B (en) * 2019-11-07 2023-04-07 中煤航测遥感集团有限公司 BIM model dynamic display method and device
CN111176636A (en) * 2019-12-31 2020-05-19 新奥数能科技有限公司 Method and device for realizing graphical configuration of comprehensive energy system
CN112487112A (en) * 2020-12-17 2021-03-12 江苏苏宁云计算有限公司 Method and device for linkage configuration of components, computer equipment and storage medium
CN116166862A (en) * 2023-04-25 2023-05-26 国网信息通信产业集团有限公司 Multi-source data fusion method, system and equipment based on configuration editor

Similar Documents

Publication Publication Date Title
CN110795148B (en) Method and device for generating layout file and electronic equipment
WO2018076946A1 (en) Method and system for displaying physical object based on configuration, and computer program and storage medium
US8321806B2 (en) Visualization of process control data
US9292972B2 (en) Occupant centric capture and visualization of building performance data
US10198422B2 (en) Information-processing equipment based on a spreadsheet
US9811249B2 (en) Generating an operational user interface for a building management system
CN106406910B (en) Configuration method and device
CN106444427B (en) Physical object methods of exhibiting based on configuration
US20120259594A1 (en) Bim based 3-d visualization
RU2017114994A (en) AUTOMATION PROGRAMMING IN 3D GRAPHIC EDITOR WITH TIGHTLY RELATED LOGIC AND PHYSICAL MODELING
JP2015225668A (en) Methods and apparatuses for configuring process control systems on the basis of generic process system libraries
CN109725986B (en) Graphical and containerized virtual network environment construction and batch deployment method
CN114328672A (en) Digital farmland scene mapping synchronization device and method based on digital twins
CN105159754A (en) On-line simulation method and device based on intelligent business cloud platform
EP4058886A1 (en) Computerized system and method for a distributed low-code / no-code computing environment
CN109062779A (en) Test control method, main control device, controlled device and test macro
CN112465958A (en) WebGL-based BIM model lightweight display method
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN106338964B (en) Physical object methods of exhibiting based on configuration
JP6431903B2 (en) Integration of FDT / DTM technology into native control system monitoring applications
KR101910179B1 (en) Web-based chart library system for data visualization
JP2020102115A (en) Engineering supporting system and engineering supporting method
KR20160052027A (en) Control map based diagram generating method and apparatus thereof
Leveaux et al. Augmented reality and mobile technologies in building management systems: A case study
JP2019220105A (en) Data extraction method and data extraction device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17863943

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17863943

Country of ref document: EP

Kind code of ref document: A1