CN115237387A - Rapid development method and system for digital twin application - Google Patents

Rapid development method and system for digital twin application Download PDF

Info

Publication number
CN115237387A
CN115237387A CN202210814740.3A CN202210814740A CN115237387A CN 115237387 A CN115237387 A CN 115237387A CN 202210814740 A CN202210814740 A CN 202210814740A CN 115237387 A CN115237387 A CN 115237387A
Authority
CN
China
Prior art keywords
interface
data
dimensional scene
online
digital twin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210814740.3A
Other languages
Chinese (zh)
Inventor
邓潇
汪璞
袁颖
刘磊
刘宏春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Digital Hail Technology Co ltd
Original Assignee
Beijing Digital Hail Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Digital Hail Technology Co ltd filed Critical Beijing Digital Hail Technology Co ltd
Priority to CN202210814740.3A priority Critical patent/CN115237387A/en
Publication of CN115237387A publication Critical patent/CN115237387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Abstract

The invention provides a method and a system for rapidly developing digital twin application, wherein the development method comprises the following steps: the online interactive interface is consulted, an interface library required by the digital twin application is built in, the quick consultation of the interface is realized, and meanwhile, example codes, example data and effect examples are attached, so that the constraint of a traditional manual can be removed, and the intuitive interface learning and expected effect display can be realized; generating online data, and creating data conditions for realizing the calling of an interface; and the online interface debugging provides online debugging capability independent of other development tools, and the interfaces inquired in online interactive interface inquiry are operated in the online interface debugging capability and substituted into online data to generate generated data. The real effect of the interface after being executed is immediately obtained through the WYSIWYG mode. The development and learning cost is obviously reduced, the development steps are simplified, no complex external tool is relied on, test data is rapidly generated, and efficient development of digital twin application is realized.

Description

Rapid development method and system for digital twin application
Technical Field
The invention relates to the field of digital twin application, in particular to a method and a system for rapidly developing digital twin application.
Background
The digital twin application is an interactive program based on a three-dimensional scene, and a large amount of programmable interface calls and data debugging are involved in the development process, a certain learning cost usually exists in the programmable interface, and correct parameters and data must be introduced in the calls of the interface. Meanwhile, the effect of the called interface cannot be intuitively reflected, and the result can be seen only by preparing data and really substituting the data into the interface and then calling the data. The process has high prepositive learning cost, complicated prepositive conditions and low working efficiency, and needs to prepare data, so that developers need to spend a great deal of time to complete interface learning, data preparation and interface development.
In the prior art, the above processes are mainly performed with the help of a development manual for interface learning, data required by interface parameters are generated with the help of a third-party tool, and a real code project is established with the help of a development tool for call testing and effect verification. The document type learning efficiency related to the method is low, the data preparation tools are various and complex, the debugging can be completed only by compiling a large number of test codes and carrying out repeated iteration for many times in the development and debugging process, and the final satisfactory state is achieved.
In summary, in order to solve the above problems, a fast development method and system that can simultaneously satisfy low learning cost, do not depend on complicated external tools, and can fast generate test data and implement real interface invocation is needed.
Disclosure of Invention
In view of the above, the present invention proposes a method and system for rapid development of a digital twin application in order to overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a rapid development method of a digital twin application including:
online interactive interface lookup, online data generation and online interface debugging;
the online interactive interface lookup is an interface library required by the built-in digital twin application, realizes interface lookup and is accompanied by example codes, example data and effect examples;
the online data is generated into various data required by the digital twin application according to the scene requirement of a user;
and debugging and loading a real digital twin three-dimensional scene by the online interface, operating the interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution result.
Optionally, the consulting of the online interactive interface is realized by using an interface library required by a built-in digital twin application, and the consulting of the interface is accompanied by example codes, example data, and an example effect specifically includes:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
acquiring a built-in interface library and displaying an interface index table;
the interface index table receives an operation instruction of a user, displays example codes and example data attached to each interface and is used for realizing interface reference;
carrying out adaptation processing on the example data and the three-dimensional scene to obtain processed example data for enabling the example data to be correctly displayed in the three-dimensional scene;
automatically generating an interface calling code according to the processed example data;
and executing the interface calling code, and directly displaying an execution effect in the three-dimensional scene.
Optionally, the acquiring a built-in interface library displays an interface index table; the interface index table receives an operation instruction of a user, and the displaying of example codes and example data attached to each interface specifically includes:
acquiring a built-in interface library of the digital twin application;
classifying the full amount of interface names in the built-in interface library according to the interface types to form an interface index table;
retrieving the interface according to the interface index table to obtain a retrieval result;
according to the retrieval result, acquiring example codes and example data of corresponding interfaces from the built-in interface library;
the example code and the example data are presented to a user for implementing a lookup.
Optionally, the adapting the example data and the three-dimensional scene, and the obtaining the processed example data specifically includes:
acquiring a central point coordinate of the example data, a central point coordinate of the three-dimensional scene and a coordinate position data set;
calculating an offset between a center point of the example data and a center point of the three-dimensional scene;
obtaining the range radius of the example data and the range radius of the three-dimensional scene, and calculating the scaling;
and adjusting the coordinates of the central point of the example data one by one to obtain the coordinates after correcting the offset.
Optionally, the interface calling code is automatically generated according to the processed example data; executing the interface calling code, and directly displaying an execution effect in the three-dimensional scene specifically comprises the following steps:
acquiring the processed example data and example codes of corresponding interfaces in an interface library;
combining the processed example data with the example code to generate an interface calling code;
displaying the interface calling code and allowing a user to edit and modify the interface calling code;
executing the interface calling code and returning an execution result; the execution result comprises information of execution date, execution interface name and success or failure;
if not, returning error information; and if the three-dimensional scene effect is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
Optionally, the generating of the online data into various types of data required by the digital twin application according to the scene needs of the user specifically includes:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
establishing a data plotting operation interface in the three-dimensional scene, allowing a user to mark various coordinate points in the three-dimensional scene in an interactive mode, and obtaining a plotting result data set;
and according to the plotting result data set, adding corresponding display elements and generating interface calling codes in the three-dimensional scene, and exporting data files.
Optionally, the allowing the user to mark various coordinate points in the three-dimensional scene in an interactive manner, and obtaining the plotting result data set specifically includes:
selecting a plotting object type comprising a point, a line and a face object;
performing position marking in the three-dimensional scene;
acquiring coordinates of the position markers, and respectively generating three-dimensional point line surface object data sets according to the types of the plotting objects;
the three-dimensional point-line-surface object data set includes: a point object data set of latitude and longitude height information of a single marking point; a line object data set of longitude and latitude height information of at least two mark points; a face object dataset of latitude and longitude altitude information for at least three marker points.
Optionally, the adding, according to the plotting result data set, the corresponding display element and generating an interface call code in the three-dimensional scene specifically include:
obtaining example code for a display element of the three-dimensional scene;
analyzing variable definitions, calling relations and assignment logic in the example code;
rearranging and combining the three-dimensional point line surface object data set according to variable definition;
coding the additional parameters and rearranging and combining the additional parameters according to variable definitions;
and splicing the processed additional parameters, the three-dimensional point, line and plane object data sets and the interface sample codes to generate interface calling codes for meeting the coding specifications and the code execution logic.
Optionally, the debugging and loading a real digital twin three-dimensional scene by the online interface, operating an interface queried in the online interactive interface lookup, substituting the data generated in the online data generation process, and directly displaying the execution result specifically includes:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
establishing a code editing picture in the three-dimensional scene, and allowing a user to input an interface in an editing area to call a code;
utilizing the online interactive interface to look up the generated interface calling code and fill the interface calling code into an editing area;
using the interface generated in the online data generation process to call codes to fill in an editing area;
and the execution interface calls the code, directly shows an execution effect in the three-dimensional scene and simultaneously displays an execution log.
Optionally, a code editing picture is established in the three-dimensional scene, and a user is allowed to input an interface calling code in an editing area; utilizing the online interactive interface to look up the generated interface calling code and fill the interface calling code into an editing area; the step of filling an interface calling code generated by utilizing the online data into an editing area specifically comprises the following steps:
creating a test item;
allowing a user to add any interface calling code generated by consulting any online interactive interface to the test item, and adding at least one of the interface calling codes;
allowing a user to add any interface calling code generated by the online data to the test item, and adding at least one interface calling code;
and automatically splicing all interface calling codes added to the test items, meeting the coding specification and the code execution logic, and displaying in an editing area.
Optionally, the executing interface calls a code, directly shows an execution effect in the three-dimensional scene, and simultaneously displaying the execution log specifically includes:
executing the interface calling code in the editing area; returning an execution result, including information of an execution date, an execution interface name and whether the execution result is successful;
if the failure is not successful, returning error information; and if the three-dimensional scene effect is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
The invention also provides a rapid development system for the digital twin application, which specifically comprises the following steps: the online interactive interface debugging system comprises an online interactive interface consulting module, an online data generating module and an online interface debugging module;
the online interactive interface consulting module is used for realizing interface consulting through an interface library required by the built-in digital twin application and attaching example codes, example data and effect examples;
the online data generation module is used for generating various data required by the digital twin application according to the scene requirements of the user;
and the online interface debugging module is used for directly loading a real digital twin three-dimensional scene, operating an interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution effect in the three-dimensional scene.
The invention provides a method and a system for rapidly developing digital twin application, wherein the method comprises the following steps: the method comprises the following steps of online interactive interface consulting, online data generating and online interface debugging; the online interactive interface lookup is realized by an interface library required by the built-in digital twin application, and is accompanied by example codes, example data and effect examples; the online data generation is various data required by generating the digital twin application according to the scene requirement of a user; and debugging and loading a real digital twin three-dimensional scene by the online interface, operating an interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution result. The rapid development method and the rapid development system can simultaneously meet the requirements of low learning cost, do not depend on complex external tools, can rapidly generate test data and realize real interface calling.
The foregoing description is only an overview of the technical solutions of the present invention, and the following detailed description of the present invention is provided to make the technical means of the present invention more clearly understood and to make the present invention more comprehensible.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for rapid development of a digital twin application provided by the present invention;
FIG. 2 is a flow chart of an online interactive interface lookup provided by an embodiment of the present invention;
FIG. 3 is a flow chart of online data generation provided by an embodiment of the present invention;
fig. 4 is a flowchart of online interface debugging according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terms "comprises" and "comprising," and any variations thereof, in the present description and claims and drawings are intended to cover a non-exclusive inclusion, such as a list of steps or elements.
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and embodiments.
As shown in fig. 1, a method for rapidly developing a digital twin application includes steps of on-line interactive interface lookup, on-line data generation, and on-line interface debugging, and specifically includes:
step M1: the method comprises the steps of online interactive interface lookup, wherein interface lookup is realized through an interface library required by a built-in digital twin application, and an example code, example data and an effect example are attached;
step M2: generating online data, namely generating various data required by the digital twin application according to the scene requirement of a user;
step M3: and debugging an online interface, loading a real digital twin three-dimensional scene, operating an interface inquired in online interactive interface inquiry, substituting data generated by the online data, and directly displaying an execution result.
A rapid development method of a digital twin application comprises the following steps:
and the online interactive interface is consulted, an interface library required by the built-in digital twin application is used for realizing the quick consult of the interface, and meanwhile, example codes and example data and effect examples are attached, so that the constraint of a traditional manual is broken away, and the intuitive interface learning and expected effect display are realized. As shown in fig. 2, the method specifically includes:
step A1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene;
step A2: acquiring a built-in interface library and displaying an interface index table;
step A3: the interface index table receives a user operation instruction, displays example codes and example data attached to each interface, and realizes quick lookup of the interfaces;
step A4: carrying out adaptation processing on the interface accompanying example data and the three-dimensional scene to enable the example data to be correctly displayed in the three-dimensional scene;
step A5: automatically generating an interface calling code according to the automatically processed example data;
step A6: and the execution interface calls the code, and directly shows the execution effect in the three-dimensional scene.
Step A1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the method specifically comprises the following steps:
acquiring a scene service address input by a user;
and loading and initializing the scene according to the scene service address.
Step A2: acquiring a built-in interface library, and displaying an interface index table, wherein the method specifically comprises the following steps:
and acquiring a built-in interface library of the digital twin application, wherein the interface library comprises all interfaces for developing the digital twin application, such as a scene object related interface, a layer object related interface and a global object related interface.
And classifying the full interface names in the interface library according to the interface types to form an interface index table.
Step A3: the interface index table receives user operation, calls and displays example codes and example data attached to each interface, and realizes quick lookup of the interfaces, and specifically comprises the following steps:
and searching the interface based on the interface index table to obtain a search result. The retrieval method comprises the following steps: browsing, selecting and searching.
According to the retrieval result, acquiring example codes and example data of corresponding interfaces from a digital twin application interface library;
example code and example data are presented to a user for quick review.
Step A4: the method for displaying the example data in the three-dimensional scene comprises the following steps of carrying out adaptation processing on the example data attached to the interface and the three-dimensional scene to enable the example data to be correctly displayed in the three-dimensional scene, and specifically comprises the following steps:
acquiring coordinates of a center point of example data and coordinates of a center point of a three-dimensional scene;
calculating the offset between the example data center point and the three-dimensional scene center point, specifically:
longitude offset = default example center point longitude-model center point longitude;
latitude offset = default example center point latitude-model center point latitude;
height offset = default example center point height-model center point height.
Obtaining the range radius of the example data and the range radius of the three-dimensional scene, and calculating a scaling, specifically:
zoom ratio = range radius of three-dimensional scene/range radius of example data
Adjusting the coordinates of the central point of the example data one by one to obtain the coordinates after correcting offset, which specifically comprises the following steps:
adjusted longitude = (original longitude-longitude offset) × scaling;
the adjusted latitude = (original latitude-latitude offset) × scaling;
adjusted height = (original height-height offset) = scaling.
Step A5: according to the example data after automatic processing, automatically generating an interface calling code, which specifically comprises:
acquiring processed example data;
acquiring example codes of corresponding interfaces in an interface library;
combining the processed example data with the example code to generate an interface calling code;
and displaying the interface calling code and allowing a user to edit and modify the interface calling code.
Step A6: the execution interface calls the code, shows the execution effect in the three-dimensional scene directly, specifically includes: executing the interface calling code; automatically returning an execution result; the execution result comprises information of execution date, execution interface name and success or failure;
if the information is unsuccessful, returning error information at the same time; and if the three-dimensional scene is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
The online data generation provides various types of data required by the digital twin application to be generated quickly, and creates data conditions for realizing the call of the interface, as shown in fig. 3, the online data generation specifically includes:
step B1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene;
and step B2: establishing a data plotting operation interface, and allowing a user to mark various coordinate points in a three-dimensional scene in an interactive mode;
and step B3: obtaining a result data set of a plotting operation;
and step B4: adding corresponding display elements in the three-dimensional scene according to the result data set;
and step B5: generating an interface calling code according to the result data set;
step B6: from the resulting data set, a data file is exported.
Step B1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the method specifically comprises the following steps:
acquiring a scene service address input by a user;
loading and initializing a scene according to the scene service address;
and step B2: establishing a data plotting operation interface, allowing a user to mark various coordinate points in a three-dimensional scene in an interactive mode, and specifically comprising the following steps:
establishing a data plotting operation interface, receiving a user plotting instruction, and switching a three-dimensional scene interaction state;
the plotting instructions comprise three types, point plotting, line plotting and surface plotting;
the interaction states are two, namely a browsing state and a plotting state;
in the plotting state, allowing a user to mark various coordinate points in the three-dimensional scene in an interactive mode;
in the plotting state, the three-dimensional scene continuously receives the clicking operation of the user, and mark points are generated at the spatial position of the clicking operation of the user, wherein the mark points comprise longitude and latitude height information;
and step B3: acquiring a result data set of the plotting operation, specifically comprising:
acquiring generated marking points, and respectively generating point-line-surface object data sets according to different plotting instructions;
the three-dimensional point line surface data set comprises: a point object data set of latitude and longitude height information of a single marking point; a line object data set of longitude and latitude height information of at least two marking points; a face object dataset of longitude and latitude altitude information of at least three marker points; each type of data set can be arbitrarily grouped, and subsequent searching and selection are facilitated.
And step B4: according to the data set, adding corresponding display elements in the three-dimensional scene specifically comprises:
allowing a user to select display elements to be added in the three-dimensional scene;
the display elements comprise a landmark graph, a path, a region, a circular region, a three-dimensional bar graph, a grid graph, a point statistic thermodynamic diagram, a region random thermodynamic diagram, a bubble graph, a track graph, a relation graph, a type region graph, a numerical region graph, a path segment thermodynamic diagram, a limited lens view, a roaming lens and a path moving lens;
acquiring a corresponding data set;
acquiring corresponding additional parameters;
when the display element is a landmark graph, the corresponding object set is a three-dimensional point data set, and the corresponding additional parameters comprise: layer type, layer name, icon type, automatic scaling, color, title name and template attribute;
when the category is a path, the corresponding object set is a three-dimensional line data set, and the corresponding three-dimensional layer parameters comprise: layer type, layer name, line style, color and width attribute;
display elements are added to the three-dimensional scene according to the data set and the additional parameters.
And step B5: generating an interface calling code according to the result data set, wherein the interface calling code specifically comprises the following steps:
acquiring a three-dimensional point-line-surface object data set and additional parameters, and example codes of display elements of a three-dimensional scene;
analyzing variable definitions, calling relations and assignment logic in the example code;
rearranging and combining the three-dimensional point line surface object data set according to variable definition;
coding the additional parameters and rearranging and combining the additional parameters according to variable definitions;
and splicing the processed additional parameters, the three-dimensional point-line-surface object data set and the interface sample code to meet the coding specification and the code execution logic.
And step B6: exporting the data file according to the result data set, specifically comprising:
exporting the three-dimensional point, line and plane object data set into a structured data file, and storing the structured data file independently;
the data files comprise Json format files, geoJson format files, kml format files and shp format files;
exporting display elements of the three-dimensional scene into a structured data file, and storing the structured data file independently;
the data files comprise csv format files, txt format files and txt format files;
and the online interface debugging provides online debugging capability independent of other development tools, can directly load a real digital twin three-dimensional scene, runs an interface inquired in online interactive interface lookup, and substitutes online data to generate generated data. The real effect of the interface after being executed is immediately obtained through the WYSIWYG mode. As shown in fig. 4, the method specifically includes:
step C1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene;
and step C2: establishing a code editing picture, and allowing a user to input an interface calling code in an editing area;
and C3: utilizing an online interactive interface to look up the generated interface calling code and fill the interface calling code into an editing area, or utilizing the interface calling code generated by the online data to fill the interface calling code into the editing area;
and C4: and the execution interface calls the code, directly shows an execution effect in the three-dimensional scene and simultaneously displays an execution log.
Step C1: acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the method specifically comprises the following steps:
acquiring a scene service address input by a user;
loading and initializing a scene according to the scene service address;
and step C2: establishing a code editing picture, allowing a user to input an interface calling code in an editing area, and specifically comprising the following steps:
initializing a blank interactive panel as an editing area;
the JS codes can be identified in the editing area, code formatting and code highlighting are automatically carried out, and reading is facilitated;
the editing area receives common text operation and special encoding operation of a user;
the common text operations include adding, deleting, changing, checking, copying and pasting.
Encoding specific operations include line annotation, line movement, folding.
And C3: the method for filling the interface calling code generated by looking up the online interactive interface into the editing area or the interface calling code generated by the online data into the editing area specifically comprises the following steps:
creating a test item;
allowing a user to add any interface calling code generated by the online interactive interface lookup to the test item, and adding at least one of the interface calling codes;
allowing a user to add interface calling codes generated by any online data to the test items, and adding at least one interface calling code;
and automatically splicing all the interface calling codes added to the test items, meeting the coding specification and the code execution logic, and displaying in an editing area.
And C4: the method includes that an execution interface calls a code, an execution effect is directly displayed in a three-dimensional scene, and an execution log is displayed at the same time, and specifically includes:
executing an interface calling code in the editing area;
automatically returning an execution result; the execution result comprises the information of the execution date, the name of the execution interface and whether the execution is successful;
if the information is unsuccessful, returning error information at the same time;
and if the three-dimensional scene effect is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
A rapid development system for digital twin applications specifically includes: the online interactive interface debugging system comprises an online interactive interface consulting module, an online data generating module and an online interface debugging module;
the online interactive interface consulting module is used for realizing interface consulting through an interface library required by the built-in digital twin application and attaching example codes, example data and effect examples;
the online data generation module is used for generating various data required by the digital twin application according to the scene requirements of the user;
and the online interface debugging module is used for directly loading a real digital twin three-dimensional scene, operating an interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution effect in the three-dimensional scene.
Has the advantages that: in conclusion, the method for on-line interactive interface lookup, on-line data generation and on-line interface debugging is adopted, so that the on-line debugging capability of other development tools is not depended on, and the real twin three-dimensional scene of data can be directly loaded. The rapid development method and the rapid development system have the advantages that the low learning cost is met, the dependence on complex external tools is avoided, the test data can be rapidly generated, and the real interface calling is realized.
The above embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, it should be understood that the above embodiments are merely exemplary embodiments of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for rapid development of a digital twin application, the method comprising:
online interactive interface lookup, online data generation and online interface debugging;
the online interactive interface lookup is realized by an interface library required by the built-in digital twin application, and is accompanied by example codes, example data and effect examples;
the online data is generated into various data required by the digital twin application according to the scene requirement of a user;
and debugging and loading a real digital twin three-dimensional scene by the online interface, operating an interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution result.
2. The method for rapidly developing the digital twin application according to claim 1, wherein the online interactive interface consulting is realized by embedding an interface library required by the digital twin application, and is accompanied by example code, example data and effect examples, and specifically comprises the following steps of:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
acquiring a built-in interface library and displaying an interface index table;
the interface index table receives an operation instruction of a user, displays example codes and example data attached to each interface and is used for realizing interface reference;
carrying out adaptation processing on the example data and the three-dimensional scene to obtain processed example data for enabling the example data to be correctly displayed in the three-dimensional scene;
automatically generating an interface calling code according to the processed example data;
and executing the interface calling code, and directly displaying an execution effect in the three-dimensional scene.
3. The method for rapidly developing the digital twin application according to claim 2, wherein the step of acquiring a built-in interface library displays an interface index table; the interface index table receives an operation instruction of a user, and the displaying of the example code and the example data attached to each interface specifically includes:
acquiring a built-in interface library of the digital twin application;
classifying the full interface names in the built-in interface library according to interface types to form an interface index table;
searching the interface according to the interface index table to obtain a search result;
according to the retrieval result, acquiring example codes and example data of corresponding interfaces from the built-in interface library;
the example code and the example data are presented to a user for implementing a review.
4. The method for rapidly developing a digital twin application according to claim 2, wherein the adapting the sample data to the three-dimensional scene to obtain the processed sample data specifically includes:
acquiring a central point coordinate of the example data, a central point coordinate of the three-dimensional scene and a coordinate position data set;
calculating an offset between a center point of the example data and a center point of the three-dimensional scene;
obtaining the range radius of the example data and the range radius of the three-dimensional scene, and calculating the scaling;
and adjusting the coordinates of the central point of the example data one by one to obtain the coordinates after correction offset.
5. The method for rapidly developing a digital twin application according to claim 2, wherein the interface calling code is automatically generated according to the processed example data; executing the interface calling code, and directly displaying an execution effect in the three-dimensional scene specifically comprises the following steps:
acquiring the processed example data and example codes of corresponding interfaces in an interface library;
combining the processed example data with the example code to generate an interface calling code;
displaying the interface calling code and allowing a user to edit and modify the interface calling code;
executing the interface calling code and returning an execution result; the execution result comprises information of execution date, execution interface name and success or failure;
if not, returning error information; and if the three-dimensional scene effect is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
6. The method for rapidly developing a digital twin application according to claim 1, wherein the generation of the online data into various types of data required for generating the digital twin application according to the scene needs of the user specifically comprises:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
establishing a data plotting operation interface in the three-dimensional scene, allowing a user to mark various coordinate points in the three-dimensional scene in an interactive mode, and obtaining a plotting result data set;
and according to the plotting result data set, adding corresponding display elements and generating interface calling codes in the three-dimensional scene, and exporting a data file.
7. The method for rapid development of a digital twin application according to claim 6, wherein the allowing a user to mark various coordinate points in the three-dimensional scene by an interactive manner, the obtaining of the plot result data set specifically comprises:
selecting a plotting object type comprising a point, a line and a face object;
performing position marking in the three-dimensional scene;
acquiring coordinates of the position markers, and respectively generating three-dimensional point line surface object data sets according to the types of the plotting objects;
the three-dimensional point-line-surface object data set includes: a point object data set of latitude and longitude height information of a single marking point; a line object data set of longitude and latitude height information of at least two mark points; a face object dataset of latitude and longitude altitude information for at least three marker points.
8. The method for rapidly developing a digital twin application according to claim 6, wherein the adding of the corresponding display element and the generation of the interface calling code in the three-dimensional scene according to the plotting result data set specifically comprise:
obtaining example code for a display element of the three-dimensional scene;
analyzing the variable definition, the calling relation and the assignment logic in the example code;
rearranging and combining the three-dimensional point-line-surface object data sets according to variable definitions;
coding the additional parameters and rearranging and combining according to variable definitions;
and splicing the processed additional parameters, the three-dimensional point, line and plane object data sets and the interface sample codes to generate interface calling codes for meeting the coding specifications and the code execution logic.
9. The method for rapidly developing a digital twin application according to claim 1, wherein the online interface debugging loads a real digital twin three-dimensional scene, runs an interface queried in the online interactive interface lookup, substitutes data generated in the online data generation process, and directly displays an execution result specifically includes:
acquiring three-dimensional scene data and executing initialization to obtain a three-dimensional scene, wherein the three-dimensional scene data is a scene service address input by a user;
establishing a code editing picture in the three-dimensional scene, and allowing a user to input an interface calling code in an editing area;
utilizing the online interactive interface to look up the generated interface calling code and fill the interface calling code into an editing area;
using the interface generated by the online data to call a code to fill in an editing area;
and executing the interface calling code, directly displaying an execution effect in the three-dimensional scene, and simultaneously displaying an execution log.
10. The method for rapidly developing a digital twin application according to claim 9, wherein a code editing screen is created in the three-dimensional scene, and a user is allowed to input an interface calling code in an editing area; utilizing the interface call code generated by the online interactive interface to fill in an editing area; the step of filling an interface calling code generated by utilizing the online data into an editing area specifically comprises the following steps:
creating a test item;
allowing a user to add any interface calling code generated by the online interactive interface reference to the test item, and adding at least one;
allowing a user to add any interface calling code generated by the online data to the test item, and adding at least one interface calling code;
and automatically splicing all interface calling codes added to the test items, meeting the coding specification and the code execution logic, and displaying in an editing area.
11. The method for rapidly developing a digital twin application according to claim 9, wherein the executing interface calls a code and directly shows an execution effect in a three-dimensional scene, and the displaying the execution log specifically includes:
executing an interface calling code in the editing area; returning an execution result, including information of an execution date, an execution interface name and success or failure;
if the failure is not successful, returning error information; and if the three-dimensional scene effect is successful, refreshing the three-dimensional scene effect in real time to realize what you see is what you get.
12. A rapid development system for digital twin applications, the development system comprising: the online interactive interface debugging system comprises an online interactive interface consulting module, an online data generating module and an online interface debugging module;
the online interactive interface consulting module is used for realizing interface consulting through an interface library required by the built-in digital twin application and attaching example codes, example data and effect examples;
the online data generation module is used for generating various data required by the digital twin application according to the scene requirements of the user;
and the online interface debugging module is used for directly loading a real digital twin three-dimensional scene, operating an interface inquired in the online interactive interface inquiry, substituting the data generated by the online data, and directly displaying an execution effect in the three-dimensional scene.
CN202210814740.3A 2022-07-11 2022-07-11 Rapid development method and system for digital twin application Pending CN115237387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210814740.3A CN115237387A (en) 2022-07-11 2022-07-11 Rapid development method and system for digital twin application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210814740.3A CN115237387A (en) 2022-07-11 2022-07-11 Rapid development method and system for digital twin application

Publications (1)

Publication Number Publication Date
CN115237387A true CN115237387A (en) 2022-10-25

Family

ID=83673666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210814740.3A Pending CN115237387A (en) 2022-07-11 2022-07-11 Rapid development method and system for digital twin application

Country Status (1)

Country Link
CN (1) CN115237387A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878131A (en) * 2023-02-09 2023-03-31 天津汉云工业互联网有限公司 Code generation method and device for digital twin application and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950066A (en) * 2020-08-27 2020-11-17 中国铁路设计集团有限公司 Digital twin data driving system based on BIM and GIS technology
CN113673948A (en) * 2021-08-02 2021-11-19 江苏杰瑞信息科技有限公司 Industrial Internet-based digital twin foundation development platform
CN114528613A (en) * 2022-01-26 2022-05-24 中瑞恒(北京)科技有限公司 Intelligent park digital twin system visual editing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950066A (en) * 2020-08-27 2020-11-17 中国铁路设计集团有限公司 Digital twin data driving system based on BIM and GIS technology
CN113673948A (en) * 2021-08-02 2021-11-19 江苏杰瑞信息科技有限公司 Industrial Internet-based digital twin foundation development platform
CN114528613A (en) * 2022-01-26 2022-05-24 中瑞恒(北京)科技有限公司 Intelligent park digital twin system visual editing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878131A (en) * 2023-02-09 2023-03-31 天津汉云工业互联网有限公司 Code generation method and device for digital twin application and electronic equipment

Similar Documents

Publication Publication Date Title
CN109948134B (en) Report automatic generation method, system, electronic equipment and storage medium
US7644370B2 (en) Method of componentisation of a graphically defined formula
US8106903B2 (en) System and method for visually representing a project using graphic elements
CN108762743B (en) Data table operation code generation method and device
CN108369514B (en) System and method for executable content and executable content stream creation
CN104915201A (en) Interface generating method and device
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN104504171A (en) Modeling method based on unified modeling environment
CN115237387A (en) Rapid development method and system for digital twin application
CN103123660A (en) Computer-aided design (CAD) graphical modeling method for software/hardware system
CN113010169A (en) Method and apparatus for converting UI diagram into code file
CN111666100A (en) Software framework generation method and device, electronic equipment and storage medium
CN111367514A (en) Page card development method and device, computing device and storage medium
US20230384766A1 (en) Information processing apparatus, ladder-program generation apparatus, information processing method, ladder-program generation method, method of manufacturing product, and recording medium
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
US10310823B2 (en) Program development support system and program development support software
JP4582701B2 (en) Screen creation method, apparatus, and program
JP6097231B2 (en) Program generating apparatus and method
CN112667210A (en) Modularization customizing method and device for geographic information system software
JP4526354B2 (en) Screen creation device
CN113220596B (en) Application testing method, device, equipment, storage medium and program product
US20220404935A1 (en) Dual panel mapping modal
JP2001117761A (en) Method and device for manufacturing picture program and recording medium stored with picture program manufacturing program
JP2007034806A (en) Information processor and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination