Method for realizing user-defined event by data-driven life body

文档序号:1952702 发布日期:2021-12-10 浏览:23次 中文

阅读说明:本技术 一种数据驱动生命体实现自定义事件的方法 (Method for realizing user-defined event by data-driven life body ) 是由 赵光明 陈博 于 2021-08-26 设计创作,主要内容包括:一种数据驱动生命体实现自定义事件的方法,其步骤包括设定生命体规则定义、设定虚拟对象唯一身份标识ID、将虚拟对象唯一标识ID与现实资产唯一标识ID绑定、将虚拟对象与相关业务数据资产绑定,对生命体数据库资产及业务数据资产进行数据逻辑治理、对需要做分析的数据字段设置条件、对数据进行过滤、转换成操控虚拟对象可以调用的可视化组件、利用可视化编辑器操作虚拟对象对目标任务数据进行逻辑配置;本发明利用多元数据驱动虚拟对象对现实资产进行映射、监控与操纵、诊断、预测,配置过程全流程无码化操作,配置完成即可使用,全程可追溯。(A method for realizing self-defined events by a data-driven life body comprises the steps of setting life body rule definition, setting a virtual object unique identity identification ID, binding the virtual object unique identity identification ID with a real asset unique identity identification ID, binding a virtual object with related business data assets, carrying out data logic treatment on life body database assets and business data assets, setting conditions for data fields needing analysis, filtering data, converting the data into a visual component which can be called by controlling the virtual object, and carrying out logic configuration on target task data by operating the virtual object by using a visual editor; the invention utilizes the multivariate data to drive the virtual object to map, monitor, manipulate, diagnose and predict the real assets, the whole flow of the configuration process is free from coding operation, the configuration can be used after the configuration is finished, and the whole process can be traced.)

1. A method for realizing a custom event by a data-driven living body is characterized by comprising the following steps:

the method comprises the following steps: setting a life body rule definition;

step two: setting a unique identity ID of a virtual object;

step three: binding the virtual object unique identification ID with the real asset unique identification ID;

step four: binding the virtual object and related business data assets, carrying out data logic treatment on the life body database assets and the business data assets through an ETL tool, and outputting data assets required by a virtual object target task;

step five: associating the virtual object with the service data, setting conditions for data fields needing to be analyzed, and filtering the data;

step six: converting the filtered service data into a visual component which can be called by the control virtual object, and defining the style of the visual component;

step seven: the method comprises the steps that a visual editor is used for operating a virtual object to carry out logic configuration on target task data, specifically, a user-defined event is created in the visual editor, then the user-defined event is selected, and the virtual object triggering the user-defined event is bound to the selected user-defined event;

step eight: and performing bidirectional data driving by configuring custom events and real assets for the virtual objects.

2. The method for realizing the custom event of the data-driven life entity according to claim 1, wherein in the second step, a virtual object Unique identity ID is set, and a Windows system global Unique Identifier is used as the system Unique Identifier, so as to avoid redundant objects.

3. The method of claim 1, wherein the step one comprises naming and summarizing life forms and asset objects, and the types of life forms comprise models, effects and UIs.

4. The method of claim 1, wherein the method for the data-driven live body to realize the custom event realizes a full-process configuration process without codes through JAVA and C # language centralized in Unity, and the configuration process is traceable.

5. The method of claim 4, wherein the uncoded configuration process comprises: firstly, opening a KDSP platform, using a living body front-end component to store a local JSON file for living body data, then opening a KDEDITOR platform, importing the local JSON file living body data, generating a living body mapping table, creating a data source, creating a business data asset, associating and analyzing the living body mapping table and the managed data asset table to generate a business data visualization component which can be called by the living body, carrying out data formatting on the living body, generating a data living body, and finally carrying out custom event configuration on the data living body.

Technical Field

The invention relates to application of a digital twin technology, in particular to a method for realizing a user-defined event by a data-driven life body.

Background

The method for realizing the custom event by the data-driven life body is a technology for digitally describing the geometric attributes of the real object, and the prior art has the defects that only the appearance and the structure of the real object are mapped but data feedback and logic interaction with the real phenomenon cannot be carried out; at present, a plurality of related technologies for displaying a three-dimensional visual model are available on the market, but when data driving and control are required to be performed on the model, the realized functions are limited, the realization process is very complex, and a professional developer is required to invest for a long time to reluctantly realize partial data driving functions; therefore, the real-time bidirectional data-driven three-dimensional visualization interaction technology becomes a significant problem for three-dimensional visualization workers.

Therefore, the problem to be solved in the art is to provide a method for realizing the custom event by the data-driven living body.

Disclosure of Invention

A method for a data-driven living being to implement a custom event, the method comprising the steps of:

the method comprises the following steps: setting a life body rule definition;

step two: setting a unique identity ID of a virtual object;

step three: binding the virtual object unique identification ID with the real asset unique identification ID;

step four: binding the virtual object and related business data assets, carrying out data logic treatment on the life body database assets and the business data assets through an ETL tool, and outputting data assets required by a virtual object target task;

step five: associating the virtual object with the service data, setting conditions for data fields needing to be analyzed, and filtering the data;

step six: converting the filtered service data into a visual component which can be called by the control virtual object, and defining the style of the visual component;

step seven: the method comprises the steps that a visual editor is used for operating a virtual object to carry out logic configuration on target task data, specifically, a user-defined event is created in the visual editor, then the user-defined event is selected, and the virtual object triggering the user-defined event is bound to the selected user-defined event;

step eight: and performing bidirectional data driving by configuring custom events and real assets for the virtual objects.

Further, the Unique identity ID of the virtual object is set in the second step, and a Windows system global Unique Identifier is used as the Unique identity of the system, so that redundant objects are avoided.

Further, the step one includes naming, summarizing, and selecting life forms and asset objects, the types of life forms including models, effects, and UIs.

Furthermore, the method for realizing the user-defined event by the data-driven life entity realizes a whole-process codeless configuration process through a JAVA language and a C # language centralized in the Unity, and the configuration process can be traced.

Further, the configuration process without coding is as follows: firstly, opening a KDSP platform, using a living body front-end component to store a local JSON file for living body data, then opening a KDEDITOR platform, importing the local JSON file living body data, generating a living body mapping table, creating a data source, creating a business data asset, associating and analyzing the living body mapping table and the managed data asset table to generate a business data visualization component which can be called by the living body, carrying out data formatting on the living body, generating a data living body, and finally carrying out custom event configuration on the data living body.

Compared with the prior art, the invention has the following beneficial effects:

1. and driving the virtual object to map, monitor, manipulate, diagnose and predict the real assets by utilizing the multivariate data.

2. The whole flow of the configuration process of the invention is free of coding operation, the configuration can be used after the configuration is completed, and the whole process can be traced.

Drawings

FIG. 1 is a flow chart of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The invention aims to overcome the defects in the prior art and realize a data life body technology which is far beyond the definition of a three-dimensional visual model in the field at present, wherein the data life body not only comprises the digital description of the geometric attributes of the whole corresponding real assets or subsystems with independent functions, but also comprises the functions of model mapping, monitoring and operating, diagnosing and predicting.

The method for realizing the user-defined event by the data-driven life body comprises the following steps:

the method comprises the following steps: setting a life body rule definition;

including naming of life and asset objects, summaries of life and asset objects; the types of the life bodies comprise models, special effects and UIs, wherein the life bodies in the UI form, the SP base only transmits the screen mapping positions, and the specific interaction logic is directly realized by a JS end or realized by calling an API (application programming interface) after being designed;

step two: setting a unique identity ID of a virtual object;

importing or creating a virtual object through Unity, naming the name of the virtual object as a real asset name, acquiring a system GUID (Unique identity) through a Windows system API (application program interface) as a Unique ID of the virtual object, wherein the Unique ID of the virtual object is a GUID (Unique Identifier) which is called for short by a Windows system Global Unique Identifier (Globall Unique Identifier), and redundant objects cannot appear;

step three: binding the virtual object unique identification ID with the real asset unique identification ID;

using a Unity life transformation tool to transform the life of the virtual object into life, storing GUID and the name of a real asset, wherein the GUID and the name of the real asset are in one-to-one correspondence and stored as JSON data, and importing local JSON data into a database asset, wherein the unique identification ID of the real asset is the name of the real world data asset;

step four: binding a virtual object and related business data assets, carrying out data logic treatment on life body database assets and business data assets through an ETL tool, and outputting data assets required by a virtual object target task, wherein the file format of the virtual object is in an FBX format or an OBJ format;

step five: associating the virtual object with the service data, setting conditions for data fields needing to be analyzed, and filtering the data;

step six: converting the filtered service data into a visual component, such as a visual chart, which can be called by controlling the virtual object, and defining the style of the visual component;

step seven: the method comprises the steps that a visual editor is used for operating a virtual object to carry out logic configuration on target task data, specifically, a user-defined event is created in the visual editor, then the user-defined event is selected, and the virtual object triggering the user-defined event is bound to the selected user-defined event;

step eight: and performing bidirectional data driving by configuring custom events and real assets for the virtual objects.

In addition, the invention realizes the whole codeless configuration process through two software platforms of KDEDITOR and KDSP and JAVA language and C # language concentrated in Unity, the configuration process can be traced, and the specific process is as follows: firstly, opening a KDSP platform, using a living body front-end component to store a local JSON file for living body data, then opening a KDEDITOR platform, importing the living body data of the local JSON file, generating a living body mapping table, creating a data source and a business data asset, associating and analyzing the living body mapping table and a treated data asset table to generate a business data visualization component which can be called by a living body, carrying out data formatting on the living body and generating a data living body, and finally carrying out custom event configuration on the data living body; through the operation of the steps, the virtual object and the real asset can be driven in a two-way mode through data, the whole process is operated without codes, all the processes can be traced, and the learning cost and the execution operation difficulty are greatly reduced.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种粮库系统与上级系统间的对接方法、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!