A model automatic mapping method and system

By using an automatic mapping method, an array of device models and models is established, and the model mapping table is queried in a loop. This solves the problems of slow scene updates and untimely twin display caused by manual maintenance in the existing technology, and achieves the effect of fast updates and timely display of twins.

CN116028487BActive Publication Date: 2026-01-02BEI JING YOU NUO KE JI GU FEN YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211540141.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-01-02
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

The existing twin data updates rely on manual maintenance, resulting in slow scene update speed and untimely display of newly added twins.

Method used

By using an automatic mapping method, an array of device models and an array of models are created. The model mapping table is queried in a loop, and automatic mapping is performed based on the query results. The model mapping table is updated periodically to achieve automatic scene updates.

Benefits of technology

It enables rapid scene updates and timely display of newly added twins, thus improving the efficiency of twin data display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116028487B_ABST
    Figure CN116028487B_ABST
Patent Text Reader

Abstract

The application discloses a model automatic mapping method and system, and relates to the field of model mapping development.The method comprises the following steps: generating a device model array and a model array; initializing a model mapping table and saving the model mapping table as a model mapping array; according to the device model array, cyclically inquiring each device model in the model mapping table; and when the device model array is empty, updating the data in the model mapping array to the model mapping table.The application can cyclically inquire the device model in the model mapping table according to the device model array and the model array, and can automatically update the model mapping table after the model mapping is completed, so that the newly-added or modified twin body data can be automatically mapped, and the twin body can be seen in the scene after the model automatic mapping is completed, which has the advantages of fast scene updating speed and timely display of the newly-added twin body.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of model mapping development, and in particular to a model automatic mapping method and system. BACKGROUND

[0002] Digital twin is a general-purpose technology that realizes data and information interaction, connection and feedback by establishing a digital physical object model. The relationship between the physical object and the digital model. With the help of digital twin, the state of the physical entity can be understood on the information platform, and even the predefined interface components in the physical entity can be controlled. Digital twin can be applied to various industries to optimize the use of core equipment and processes and simplify maintenance work.

[0003] However, the existing twin display method is to update the twin data by manual maintenance, which has the disadvantages of slow scene update speed and untimely display of new twins. SUMMARY

[0004] The present application solves the problem of slow scene update speed and untimely display of new twins in the prior art by manually maintaining the update of twin data. In order to solve the above technical problems, the present application provides a model automatic mapping method and system.

[0005] In a first aspect, a model automatic mapping method is provided, comprising:

[0006] Obtaining a model file, a scene file and a twin data file for a newly created scene;

[0007] Saving the model file to a model table of a database, saving the twins in the scene file and the twins in the twin data file to a twin table of the database, the model table storing a model field, and the twin table storing a device model field;

[0008] Obtaining all device models from the twin table and saving them as a device model array, and obtaining all models from the model table and saving them as a model array;

[0009] Initializing a model mapping table and saving it as a model mapping array;

[0010] According to the device model array, each device model in the model mapping table is queried in a loop, and it is judged whether a model mapping exists according to a query result; when the model mapping exists, it is judged whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table; according to the judgment result, the ID field of the device model in the model mapping array is modified, and the current device model is deleted from the device model array, and the next device model is queried until the device model array is empty;

[0011] When the model mapping does not exist, the device name of the current device model is matched with the names of all models in the model array according to the matching result, a model mapping record is added in the model mapping array, and the current device model is deleted from the device model array, and the next device model is queried until the device model array is empty;

[0012] When the device model array is empty, the data in the model mapping array is updated to the model mapping table, the model automatic mapping time is recorded, and the last modification time field in the twin table is updated.

[0013] In a possible implementation of the first aspect, after all the device models are obtained from the twin table, the method further includes:

[0014] The all device models are checked for duplication, and the duplicate device models are filtered out.

[0015] In a possible implementation of the first aspect, before the model mapping table is initialized and saved as the model mapping array, the method further includes:

[0016] It is judged whether the device model array is empty and whether the model array is empty; when the device model array and the model array are both not empty, the model mapping table is initialized and saved as the model mapping array, otherwise the process is stopped.

[0017] In a possible implementation of the first aspect, when the model mapping exists, it is judged whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, according to the judgment result, the ID field of the device model in the model mapping array is modified, and the current device model is deleted from the device model array, and the next device model is queried until the device model array is empty, specifically including:

[0018] When the model mapping exists, it is judged whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table; when the ID fields are consistent, the current device model is deleted from the device model array, and the next device model is queried until the device model array is empty.

[0019] When inconsistent, the ID of the device model in the model mapping array is modified to the model ID in the model table, the current device model is deleted from the device model array, the next device model is queried, and the process is continued until the device model array is empty.

[0020] In a possible implementation of the first aspect, when there is no model mapping, the device name of the current device model is matched with the names of all models in the model array, a model mapping record is added in the model mapping array according to the matching result, the current device model is deleted from the device model array, the next device model is queried, and the process is continued until the device model array is empty, and specifically includes:

[0021] When there is no model mapping, the device name of the current device model is matched with the names of all models in the model array, and when no corresponding model name is matched, the first model name in the model array and the device name of the current device model are considered as a successful match.

[0022] When a corresponding model name is matched, the device name of the current device model is successfully matched with the corresponding model name.

[0023] A successful model mapping record is added in the model mapping array, the current device model is deleted from the device model array, the next device model is queried, and the process is continued until the device model array is empty.

[0024] The second aspect provides a model automatic mapping system, including:

[0025] A file acquisition unit is configured to acquire a model file, a scene file and a twin data file for a newly created scene.

[0026] A file storage unit is configured to save the model file to a model table of a database, save twins in the scene file and twins in the twin data file to a twin table of the database, and store a model field in the model table and a device model field in the twin table.

[0027] A first array generation unit is configured to acquire all device models from the twin table and save the device models as a device model array, and acquire all models from the model table and save the models as a model array.

[0028] A second array generation unit is configured to initialize a model mapping table and save the model mapping table as a model mapping array.

[0029] an array query unit, configured to query each device model in the model mapping table according to the device model array, determine whether a model mapping exists for the current device model according to a query result, when the model mapping exists, determine whether an ID field of the device model in the model mapping table is consistent with a model ID field in the model table, modify the ID field of the device model in the model mapping array according to a determination result, delete the current device model from the device model array, and continue to query a next device model until the device model array is empty;

[0030] when the model mapping does not exist, match a device name of the current device model with names of all models in the model array according to a matching result, add a model mapping record in the model mapping array, delete the current device model from the device model array, and continue to query a next device model until the device model array is empty;

[0031] a data update unit, configured to update data in the model mapping array to the model mapping table when the device model array is empty, record a model automatic mapping time, and update the last modification time field in the twin table.

[0032] In a possible implementation of the second aspect, the first array generation unit is further configured to check the device models for duplication, and filter out duplicate device models.

[0033] In a possible implementation of the second aspect, the second array generation unit is further configured to determine whether the device model array is empty, determine whether the model array is empty, initialize a model mapping table when the device model array and the model array are not empty, save the model mapping table as a model mapping array, and stop the process otherwise.

[0034] In a possible implementation of the second aspect, the array query unit is specifically configured to, when the model mapping exists, determine whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, delete the current device model from the device model array when the ID field is consistent with the model ID field, continue to query a next device model until the device model array is empty.

[0035] when the ID field is not consistent with the model ID field, modify the ID of the device model in the model mapping array to the model ID in the model table, delete the current device model from the device model array, continue to query a next device model until the device model array is empty.

[0036] In a possible implementation of the second aspect, the array query unit is specifically configured to, when there is no model mapping, match the device name of the current device model with all model names in the model array, and when no corresponding model name is matched, take the first model name in the model array as matching successfully with the device name of the current device model.

[0037] When a corresponding model name is matched, the device name of the current device model is matched successfully with the corresponding model name.

[0038] The matched model mapping record is added in the model mapping array, and the current device model is deleted from the device model array, and the next device model is queried until the device model array is empty.

[0039] By establishing the device model array and the model array, the device model is queried in the model mapping table in a loop, and corresponding processing is performed according to the query result, the model mapping table can be automatically updated after the model mapping is completed, so that the newly added or modified twin data is automatically mapped to the model in time, and the twin can be seen in the scene after the model automatic mapping is completed, and the scene updating speed is fast, and the newly added twin can be displayed in time.

[0040] The advantages of the additional aspects of the application will be partially given in the following description, partially become obvious from the following description, or be understood by the practice of the application. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 A flowchart is provided for an embodiment of the model automatic mapping method of the application;

[0042] Figure 2 A model file uploading diagram is provided for an embodiment of the model automatic mapping method of the application;

[0043] Figure 3 A model mapping diagram is provided for an embodiment of the model automatic mapping method of the application;

[0044] Figure 4 A twin data diagram is provided for an embodiment of the model automatic mapping method of the application. DETAILED DESCRIPTION

[0045] The principles and characteristics of the application are described below in combination with the drawings, and the embodiments are only used to explain the application, and are not used to limit the scope of the application.

[0046] As Figure 1 shown, a flowchart is provided for an embodiment of the model automatic mapping method of the application, and the model automatic mapping method comprises:

[0047] obtain a model file, a scene file and a twin data file for a newly created scene;

[0048] It should be noted that the model file contains a model for creating a scene. Taking a building as an example, the model can be a wall, a pipeline, a texture map, etc. Figure 2 As shown in the example of uploading a model file, the model file can be pre-written and then uploaded to the system to create a scene.

[0049] The twin data file contains twin data, for example, as shown in Figure 4 Taking a rack device in a certain park scene as an example, the twin data can include various models of access switches, etc.

[0050] Save the model file to the model table in the database, save the twin in the scene file and the twin in the twin data file to the twin table in the database, and the model table stores a model field and the twin table stores a device model field;

[0051] Obtain all device models from the twin table and save them as a device model array, and obtain all models from the model table and save them as a model array;

[0052] Initialize the model mapping table and save it as a model mapping array;

[0053] It should be understood that the model mapping table is pre-established, and the model mapping array stores the correspondence between the model and the device model.

[0054] For example, a certain type of cabinet can have a corresponding model of a cuboid.

[0055] According to the device model array, query each device model in the model mapping table, determine whether the current device model exists in the model mapping according to the query result, when the model mapping exists, determine whether the ID field of the device model in the model mapping table and the model ID field in the model table are consistent, modify the ID field of the device model in the model mapping array according to the determination result, and delete the current device model from the device model array, continue to query the next device model, until the device model array is empty.

[0056] It should be understood that if the device model in the device model array exists in the model mapping table, it means that the device model has been mapped to the model, and if the queried device model does not exist in the model mapping table, it means that the device model has not been mapped to the model.

[0057] When the model mapping does not exist, the device name of the current device model is matched with the names of all models in the model array, a model mapping record is added in the model mapping array according to the matching result, the current device model is deleted from the device model array, and the next device model is continuously queried until the device model array is empty;

[0058] When the device model array is empty, the data in the model mapping array is updated to the model mapping table, the model automatic mapping time is recorded, and the last modification time field in the twin table is updated.

[0059] It should be understood that the model automatic mapping will be performed immediately after the upload scene is saved successfully; after the twin data is added or modified, the model automatic mapping will be performed after the timing task, for example, the timing task is performed once every 5 seconds, and the timing task performs the model automatic mapping on the added or modified twin data by comparing the last modification time field.

[0060] In the embodiment, the device model array and the model array are established, the device models are queried in the model mapping table, and corresponding processing is performed according to the query result, the model mapping table is automatically updated after the model mapping is completed, the model automatic mapping is performed on the added or modified twin data at a timing, and the twin can be seen in the scene after the model automatic mapping is completed, so that the scene updating speed is fast, and the added twin can be displayed in time.

[0061] Optionally, in some possible implementation manners, after all the device models are obtained from the twin table, the following further includes:

[0062] The repeated device models are filtered out.

[0063] By filtering out the repeated device models, subsequent judgment and processing on the repeated device models can be avoided, so that the processing speed is provided.

[0064] Optionally, in some possible implementation manners, before the model mapping table is initialized and saved as the model mapping array, the following further includes:

[0065] It is judged whether the device model array is empty and whether the model array is empty, when the device model array and the model array are not empty, the model mapping table is initialized and saved as the model mapping array, otherwise the process is stopped.

[0066] By judging whether the device model array and the model array are empty, program errors can be avoided.

[0067] Optionally, in some possible implementation manners, when the model mapping exists, it is judged whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, the ID field of the device model in the model mapping array is modified according to the judgment result, the current device model is deleted from the device model array, the next device model is continuously queried until the device model array is empty, and the specific operations include the following:

[0068] When the model mapping exists, it is judged whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, when the ID field is consistent with the model ID field, the current device model is deleted from the device model array, the next device model is continuously queried until the device model array is empty;

[0069] When the ID field is not consistent with the model ID field, the ID of the device model in the model mapping array is modified to the model ID in the model table, the current device model is deleted from the device model array, the next device model is continuously queried until the device model array is empty.

[0070] By modifying the ID field of the device model in the model mapping array, the mapping relationship between the device model and the model can be automatically established, so that the system can automatically perform model mapping.

[0071] Optionally, in some possible implementation manners, when the model mapping does not exist, the device name of the current device model is matched with the names of all models in the model array according to the matching result, a model mapping record is added in the model mapping array, the current device model is deleted from the device model array, the next device model is continuously queried until the device model array is empty, and the specific operations include the following:

[0072] When the model mapping does not exist, the device name of the current device model is matched with the names of all models in the model array, when the corresponding model name is not matched, the first model name in the model array and the device name of the current device model are regarded as matching success;

[0073] When the corresponding model name is matched, the device name of the current device model and the corresponding model name are matched successfully;

[0074] The matching successful model mapping record is added in the model mapping array, the current device model is deleted from the device model array, the next device model is continuously queried until the device model array is empty.

[0075] For example, assuming that a certain model device needs an A model for display, the model array includes a B model, a C model and a D model in sequence, and the A model does not exist, the B model can be specified as the matching model of the device.

[0076] By matching the device name of the current device model with all model names in the model array, each newly added twin can be matched to the corresponding model, thereby realizing automatic scene updating, and when no corresponding model is matched, automatically selecting a model can enable each twin to be matched to the corresponding model, thereby facilitating later maintenance, and only the corresponding model needs to be added, thereby improving the usability of the scene.

[0077] In some embodiments, a model automatic mapping system is also provided, comprising:

[0078] A file acquisition unit is configured to acquire model files, scene files, and twin data files for a newly created scene.

[0079] A file storage unit is configured to save the model files to a model table of a database, save the twins in the scene files and the twins in the twin data files to a twin table of the database, and store a model field in the model table and a device model field in the twin table.

[0080] A first array generation unit is configured to acquire all device models from the twin table and save them as a device model array, and acquire all models from the model table and save them as a model array.

[0081] A second array generation unit is configured to initialize a model mapping table and save it as a model mapping array.

[0082] An array query unit is configured to cyclically query each device model in the model mapping table according to the device model array, determine whether a model mapping exists for the current device model according to the query result, determine whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table when the model mapping exists, modify the ID field of the device model in the model mapping array according to the determination result, delete the current device model from the device model array, and continue to query the next device model until the device model array is empty.

[0083] When no model mapping exists, the device name of the current device model is matched with the names of all models in the model array, a model mapping record is added in the model mapping array according to the matching result, the current device model is deleted from the device model array, the next device model is continued to be queried, and the device model array is empty until the device model array is empty.

[0084] A data update unit is configured to update the data in the model mapping array to the model mapping table when the device model array is empty, record the model automatic mapping time, and update the last modification time field in the twin table.

[0085] The embodiment can automatically update the model mapping table after the model mapping is completed, so as to automatically map the model of the newly added or modified twin body data at regular time, and the twin body can be seen in the scene after the model automatic mapping is completed, so that the scene updating speed is fast, and the newly added twin body can be displayed in time.

[0086] Optionally, in some possible implementation manners, the first array generating unit is further configured to check the all device models for duplication, and filter out the duplicated device models.

[0087] Optionally, in some possible implementation manners, the second array generating unit is further configured to determine whether the device model array is empty and whether the model array is empty, initialize the model mapping table when the device model array and the model array are not empty, save the model mapping table as a model mapping array, and stop the process otherwise.

[0088] Optionally, in some possible implementation manners, the array querying unit is specifically configured to, when the model mapping exists, determine whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, delete the current device model from the device model array when the ID field is consistent, and continue to query the next device model until the device model array is empty.

[0089] When the ID field is inconsistent, the ID of the device model in the model mapping array is modified to the model ID in the model table, the current device model is deleted from the device model array, the next device model is continued to be queried, and the device model array is empty.

[0090] Optionally, in some possible implementation manners, the array querying unit is specifically configured to, when the model mapping does not exist, match the device name of the current device model with all model names in the model array, and when no corresponding model name is matched, the first model name in the model array is matched with the device name of the current device model.

[0091] When the corresponding model name is matched, the device name of the current device model is matched with the corresponding model name.

[0092] The matched model mapping record is added in the model mapping array, the current device model is deleted from the device model array, the next device model is continued to be queried, and the device model array is empty.

[0093] It should be understood that the above embodiment is a product embodiment corresponding to the prior method embodiment, and the description of the product embodiment can refer to the description of the prior method embodiment, which will not be repeated here.

[0094] It should be understood that the above-mentioned embodiments can be combined in any manner without departing from the concept of the present application, and all combinations fall within the scope of the present application.

[0095] It should be understood that the description of the specific features, structures, materials or characteristics described in the description of the specification in connection with the terms "one embodiment", "some embodiments", "an example", "a specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. The illustrative description of the above-mentioned terms in the specification does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. In addition, the skilled person in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.

[0096] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the above-described method embodiments are only illustrative, for example, the division of steps is only a logical function division, and actual implementation can have another division manner, for example, multiple steps can be combined or integrated into another step, or some features can be ignored or not executed.

[0097] The above method, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art that contributes to the present application, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0098] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A model automatic mapping method, characterized by, The method comprises the following steps: acquiring a model file, a scene file and a twin data file for a newly created scene; storing the model file into a model table of a database, and storing twins in the scene file and twins in the twin data file into a twin table of the database, wherein the model table stores a model field, and the twin table stores a device model field; acquiring all device models from the twin table and storing them as a device model array, and acquiring all models from the model table and storing them as a model array; initializing a model mapping table and storing it as a model mapping array; cycling through each device model in the model mapping table according to the device model array, judging whether a model mapping exists according to a result of the cycling, judging whether an ID field of the device model in the model mapping table is consistent with a model ID field in the model table when the model mapping exists, modifying the ID field of the device model in the model mapping array according to a result of the judging, deleting the current device model from the device model array, and continuing to cycle through the next device model until the device model array is empty; adding a model mapping record to the model mapping array according to a result of matching a device name of the current device model with names of all models in the model array when the model mapping does not exist, deleting the current device model from the device model array, continuing to cycle through the next device model until the device model array is empty; and updating data in the model mapping array to the model mapping table, recording a model automatic mapping time, and updating the last modification time field in the twin table when the device model array is empty.

2. The model automatic mapping method of claim 1, wherein, After acquiring all device models from the twin table, the method further comprises the following steps: checking all the device models for duplication, and filtering out duplicate device models.

3. The model automatic mapping method of claim 1, wherein, Before initializing the model mapping table and storing it as the model mapping array, the method further comprises the following steps: judging whether the device model array is empty, judging whether the model array is empty, initializing the model mapping table and storing it as the model mapping array when both the device model array and the model array are not empty, and stopping the process otherwise.

4. The model automatic mapping method of claim 1, wherein, When the model mapping exists, judging whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, modifying the ID field of the device model in the model mapping array according to a result of the judging, deleting the current device model from the device model array, continuing to cycle through the next device model until the device model array is empty, and specifically comprising the following steps: When the model mapping exists, judging whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, deleting the current device model from the device model array when the ID field is consistent, continuing to cycle through the next device model until the device model array is empty. When the model mapping array is not consistent with the model table, the ID of the device model in the model mapping array is modified to the model ID in the model table, the current device model is deleted from the device model array, the next device model is queried, and the process is repeated until the device model array is empty.

5. The model automatic mapping method of claim 1, wherein, When there is no model mapping, the device name of the current device model is matched with the names of all models in the model array, a model mapping record is added to the model mapping array based on the matching result, the current device model is deleted from the device model array, the next device model is queried, and the process is repeated until the device model array is empty, which specifically includes: When there is no model mapping, the device name of the current device model is matched with the names of all models in the model array, and when no corresponding model name is matched, the first model name in the model array and the device name of the current device model are considered to be matched successfully; When a corresponding model name is matched, the device name of the current device model is matched successfully with the corresponding model name; A matching successful model mapping record is added to the model mapping array, the current device model is deleted from the device model array, the next device model is queried, and the process is repeated until the device model array is empty.

6. A model automatic mapping system characterized by, It includes: A file acquisition unit is configured to acquire a model file, a scene file, and a twin data file for a newly created scene; A file storage unit is configured to save the model file to a model table of a database, save twins in the scene file and twins in the twin data file to a twin table of the database, and store a model field in the model table and a device model field in the twin table; A first array generation unit is configured to acquire all device models from the twin table and save them as a device model array, and acquire all models from the model table and save them as a model array; A second array generation unit is configured to initialize a model mapping table and save it as a model mapping array; An array query unit is configured to query each device model in the model mapping table based on the device model array, and determine whether a model mapping exists for the current device model based on the query result; when a model mapping exists, determine whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, modify the ID field of the device model in the model mapping array based on the determination result, delete the current device model from the device model array, query the next device model, and repeat the process until the device model array is empty; When there is no model mapping, the device name of the current device model is matched with the names of all models in the model array, a model mapping record is added to the model mapping array based on the matching result, the current device model is deleted from the device model array, the next device model is queried, and the process is repeated until the device model array is empty; The data updating unit is configured to update data in the model mapping array into the model mapping table, record model automatic mapping time, and update the last modification time field in the twin table when the device model array is empty.

7. The model automatic mapping system of claim 6, wherein, The first array generating unit is further configured to check all the device models for duplication and filter out duplicate device models.

8. The model automatic mapping system of claim 6, wherein, The second array generating unit is further configured to determine whether the device model array is empty and whether the model array is empty, initialize a model mapping table when neither the device model array nor the model array is empty, save the model mapping table as a model mapping array, and stop the process otherwise.

9. The model automatic mapping system of claim 6, wherein, The array querying unit is specifically configured to, when there is a model mapping, determine whether the ID field of the device model in the model mapping table is consistent with the model ID field in the model table, delete the current device model from the device model array when the ID field is consistent, continue to query the next device model until the device model array is empty, modify the ID of the device model in the model mapping array to the model ID in the model table when the ID field is inconsistent, delete the current device model from the device model array, continue to query the next device model until the device model array is empty, and add a matching successful model mapping record in the model mapping array. The array querying unit is specifically configured to, when there is no model mapping, match the device name of the current device model with all model names in the model array, regard the first model name in the model array and the device name of the current device model as matching successful when no corresponding model name is matched, match the device name of the current device model with the corresponding model name when a corresponding model name is matched, delete the current device model from the device model array, continue to query the next device model until the device model array is empty, and add a matching successful model mapping record in the model mapping array.

10. The model automatic mapping system of claim 6, wherein, The array querying unit is specifically configured to, when there is no model mapping, match the device name of the current device model with all model names in the model array, regard the first model name in the model array and the device name of the current device model as matching successful when no corresponding model name is matched, match the device name of the current device model with the corresponding model name when a corresponding model name is matched, delete the current device model from the device model array, continue to query the next device model until the device model array is empty, and add a matching successful model mapping record in the model mapping array. ​ ​

Citation Information

Patent Citations

  • Digital twin construction system and method based on unified data source driving

    CN113128865A

  • Building digital twin framework based on semantic Web technology and modeling method

    CN115115796A