A variable attribute modification method and related device of Internet of Things model

By using the parallel search and modification method of inheritance chain in the Internet of Things, the problem of low efficiency in modifying variable attributes of the Internet of Things data model is solved, efficient variable attribute updates are achieved, and the operation efficiency of the Internet of Things system is improved.

CN115033598BActive Publication Date: 2024-12-20NINGBO HOLLYSYS INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210795171.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-07
Publication Date
2024-12-20
Estimated Expiration
2042-07-07

AI Technical Summary

Technical Problem

In the prior art, the variable attribute modification efficiency of the IoT data model is low, and it is necessary to find and modify the variable attributes of each model one by one in the database, resulting in inefficiency.

Method used

By obtaining model change events, determine the descendant model number with inheritance relationships in the inheritance chain, and send the model change events and numbers to the modification center, realize parallel search and modification, reduce the number of model searches, and improve the efficiency of variable attribute modification.

Benefits of technology

Through the parallel search and modification methods of the inheritance chain, the modification efficiency of variable attributes of the IoT model is significantly improved, the number of database queries is reduced, and the operation efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033598B_ABST
    Figure CN115033598B_ABST
Patent Text Reader

Abstract

The present application discloses a method for modifying the variable attributes of an Internet of Things model and a related device. The method includes: if the variable attributes of a model in the Internet of Things change, obtaining a model change event; obtaining the number of a descendant model that has an inheritance relationship with the model in an inheritance chain according to the model change event; sending the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model. All models that need to modify the variable attributes are searched through the inheritance chain, thereby improving the efficiency of modifying the variable attributes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things data modeling, and in particular to a method for modifying variable attributes of an Internet of Things model and related devices. Background Art

[0002] With the introduction of the concept of "Internet of Everything", the Internet that connects everything has made great progress. The data models in the Internet of Things belong to the same class. Each data model generally includes multiple elements such as variables, descriptions, services, events, logic and alarms. Among them, variables, as the carrier of data models, contain the attributes of each dimension of model data; in some application scenarios, it is necessary to modify the variable attributes of all data models.

[0003] In the prior art, the variable attributes of the data model are modified layer by layer. For example, in the car model scenario, the data models include a car model, a truck model, and a Foton pickup model. To modify the variable attributes of all data models, first, the variable attributes of the car model need to be modified; then, through the relationship between the models, the truck model is searched in the database, and the variable attributes of the truck model are modified; finally, the Foton pickup model is searched in the database, and the variable attributes of the Foton pickup model are modified. Since each modification of the variable attributes of a data model requires the model to be searched in the database, the efficiency of variable attribute modification is low.

[0004] In summary, how to improve the modification efficiency of variable attributes of data models in the Internet of Things is a technical problem that technical personnel in this field need to solve. Summary of the invention

[0005] Based on the above problems, the present application provides a method and related device for modifying the variable attributes of an Internet of Things model, which can improve the modification efficiency of the variable attributes of the model.

[0006] The embodiments of the present application disclose the following technical solutions:

[0007] In a first aspect, the present application provides a method for modifying variable attributes of an Internet of Things model, which is applied to an event center, and the method includes:

[0008] If the variable attributes of the model in the Internet of Things change, obtain the model change event;

[0009] According to the model change event, obtain the model number of the descendant model that has an inheritance relationship with the model in the inheritance chain;

[0010] The model change event and the descendant model number are sent to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0011] Optionally, the inheritance chain is stored in a remote dictionary service database.

[0012] Optionally, the Internet of Things model is stored in a remote dictionary service database, and the method further includes:

[0013] The Internet of Things model is backed up, and the backed up Internet of Things model is stored in a MongoDB database.

[0014] Optionally, the inheritance chain is a data link table that connects in series all models with inheritance relationships in the Internet of Things according to an object-oriented object model relationship construction method.

[0015] Optionally, sending the model change event to the descendant model specifically includes:

[0016] By adopting the event bus, the model change event in the event sequence is sent to the modification center.

[0017] Optionally, after the model change event is sent, the method further includes:

[0018] The model change event is deleted from the event sequence.

[0019] In a second aspect, the present application provides a device for modifying variable attributes of an Internet of Things model, the device comprising:

[0020] Model change event acquisition module, descendant model acquisition module and sending module;

[0021] The model change event acquisition module is used to acquire a model change event when a variable attribute of a model in the Internet of Things changes;

[0022] The descendant model acquisition module is used to acquire the descendant model number that has an inheritance relationship with the model in the inheritance chain according to the model change event;

[0023] The sending module is used to send the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0024] Optionally, the device further comprises:

[0025] The inheritance chain generation module is used to generate an inheritance chain connecting all models with inheritance relationships in the Internet of Things in series according to an object-oriented object model relationship construction method.

[0026] Optionally, the sending module is specifically configured to send the model change event in the event sequence to the modification center by adopting an event bus.

[0027] Optionally, the device further comprises: a deletion module;

[0028] The deleting module is used to delete the model change event from the event sequence after the model change event is sent.

[0029] In a third aspect, the present application provides a device for modifying variable attributes of an Internet of Things model, the device comprising: a memory, a processor;

[0030] The memory is used to store computer programs;

[0031] The processor is used to implement the steps of the variable attribute modification method of the Internet of Things model as described in any one of the first aspects when executing the computer program.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for modifying variable attributes of an Internet of Things model as described in any one of the first aspects are implemented.

[0033] Compared with the prior art, this application has the following beneficial effects:

[0034] The method provided in the present application is applied to an event center. If the variable attributes of a model in the Internet of Things change, a model change event is obtained; the number of a descendant model that has an inheritance relationship with the model in an inheritance chain is determined based on the model change event; the model change event and the descendant model number are sent to a modification center so that the modification center can modify the variable attributes of the descendant model.

[0035] In this application, through the inheritance chain, all descendant models that have an inheritance relationship with the model can be found in the inheritance chain (equivalent to a parallel search method), and the variable properties of all descendant models can be modified at one time (equivalent to a parallel modification method); by reducing the number of model searches, the modification efficiency of the model's variable properties is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 A flow chart of a method for modifying variable attributes of an Internet of Things model provided in an embodiment of the present application;

[0038] Figure 2 A flowchart of another method for modifying variable attributes of an Internet of Things model provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of model variable event transmission provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of a variable attribute modification device for an Internet of Things model provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] As described above, the variable attributes of the same type of data model in the current Internet of Things are modified layer by layer. For example, in the car model scenario, the data models include car model, truck model and Foton pickup model. Since the Foton pickup model has no direct relationship with the car model in the database, the Foton pickup model cannot be directly found in the database through the car model. The truck model must be found through the car model, and then the Foton pickup model must be found through the truck model.

[0042] After research, the inventor found that there is an inheritance relationship between the car model and the Foton pickup model, so the car model, truck model and Foton pickup model can be connected together through an inheritance chain; in this way, as long as the variable attributes in the car model change, the truck model and the Foton pickup model can be directly found through the inheritance chain; because the models on the inheritance chain have corresponding inheritance relationships, the Foton pickup model can also change accordingly according to the changes in the variable attributes of the truck model.

[0043] In view of this, the present application provides a method for modifying the variable attributes of an Internet of Things model, the method comprising: if the variable attributes of a model in the Internet of Things change, obtaining a model change event; obtaining the number of a descendant model that has an inheritance relationship with the model in an inheritance chain according to the model change event; sending the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0044] In this application, through the inheritance chain, all descendant models that have an inheritance relationship with the model can be found in the inheritance chain (equivalent to a parallel search method), and the variable properties of all descendant models can be modified at one time (equivalent to a parallel modification method); by reducing the number of model searches, the modification efficiency of the model's variable properties is improved.

[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] See also Figure 1 , which is a flow chart of a method for modifying variable attributes of an Internet of Things model provided in an embodiment of the present application.

[0047] like Figure 1 As shown, the variable attribute modification method includes:

[0048] S101: If the variable attribute of the model in the Internet of Things changes, obtain a model change event.

[0049] The Internet of Things (IoT) can be an Internet that uses various devices and technologies such as information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners, etc. to collect real-time information on any object or process that needs to be monitored, connected, and interacted with, and collects various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, and location. Through various possible network access, it can achieve ubiquitous connection between things and things, things and people, and realize intelligent perception, identification, and management of objects and processes.

[0050] The entire IoT model is constructed by abstraction followed by inheritance, and a complex network of model relationships is formed between models. Models in the IoT can be divided layer by layer according to type; for example, in the first level: models in the IoT can be divided into multiple categories such as animals, plants, cars, tires, etc.; among them, cars are divided into the second level, such as trucks, bulldozers, military vehicles, station wagons, sedans and SUVs, etc.; models in the second level can be further subdivided to form the third level, such as the truck model includes the Foton pickup model, and the bulldozer model includes the Mitsubishi Heavy Industries bulldozer model. There is no limitation on the types and number of levels of models in the IoT here.

[0051] The models in the Internet of Things may include descriptions, services, events, logic, alarms, variables, and other elements. Variables, as carriers of model data, contain attributes of various dimensions of the model quantity, including but not limited to value, type, data source, upper range limit, lower range limit, default value, cycle, and storage method.

[0052] The model change event may include the model number or name of the model whose variable attributes have changed, which can be used to refer to the changed model, as well as the variable whose attributes have changed and how the change has occurred.

[0053] In this embodiment, the model attribute changes can be monitored by Proxy. Here, only an example is given of the method of obtaining the variable attribute changes, and the present application does not limit the method of obtaining the model change event in any form.

[0054] S102: Obtain the ID of a descendant model that has an inheritance relationship with the model in the inheritance chain according to the model change event.

[0055] Each model can correspond to multiple inheritance chains.

[0056] The inheritance chain can be a form of connecting models with inheritance relationships in series. The essence of the inheritance chain is a data linked list that stores the relationships between models. The linked list is divided into a one-way linked list, a two-way linked list, and a circular linked list. This embodiment does not limit the form of the linked list.

[0057] Inheritance refers to a concept in object-oriented software technology. It is one of the three basic characteristics of object-oriented software technology, along with polymorphism and encapsulation. For example, in the application scenario of car models, the car model can be regarded as the parent class of the truck model, and the truck model is a subclass of the car model; the truck model can also be regarded as a parent class of the Foton pickup model. Inheritance can make the subclass have the properties and methods of the parent class or redefine and add properties and methods.

[0058] As described above, the model change event may include the model ID of the model in which the variable attribute has changed, which variable has changed, and how the change has occurred.

[0059] Therefore, an inheritance chain can be uniquely determined through the model number of the variable attribute change and the changed variable, and the descendant model that has an inheritance relationship with the model can be found through the inheritance chain, and the descendant model number can be recorded.

[0060] S103: Send the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0061] The information that the modification center can obtain based on the model change event includes the model in which the variable attributes have changed, what variables have changed, and how the changes have occurred; the modification center can accurately find the location of the descendant model in the database through the descendant model number.

[0062] The modification center can change the variable attributes of the corresponding model through Stata software or MATLAB.

[0063] The method provided in the present application is applied to an event center. If the variable attributes of a model in the Internet of Things change, a model change event is obtained; the number of a descendant model that has an inheritance relationship with the model in an inheritance chain is determined based on the model change event; the model change event and the descendant model number are sent to a modification center so that the modification center can modify the variable attributes of the descendant model.

[0064] In this application, through the inheritance chain, all descendant models that have an inheritance relationship with the model can be found in the inheritance chain (equivalent to a parallel search method), and the variable properties of all descendant models can be modified at one time (equivalent to a parallel modification method); by reducing the number of model searches, the modification efficiency of the model's variable properties is improved.

[0065] See also Figure 2 , which is a flowchart of another method for modifying variable attributes of an Internet of Things model provided in an embodiment of the present application.

[0066] like Figure 2 As shown, the variable attribute modification method includes:

[0067] S201: If the variable attributes of the model stored in the Redis IoT are changed, a model change event is obtained.

[0068] The models in the Internet of Things may include descriptions, services, events, logic, alarms, variables, and other elements. Variables, as carriers of model data, contain attributes of various dimensions of the model quantity, including but not limited to value, type, data source, upper range limit, lower range limit, default value, cycle, and storage method.

[0069] The model change event may include the model number or name of the model whose variable attributes have changed, which can be used to refer to the changed model, as well as the variable whose attributes have changed and how the change has occurred.

[0070] In this embodiment, the model attribute changes can be monitored by Proxy. Here, only an example is given of the method of obtaining the variable attribute changes, and the present application does not limit the method of obtaining the model change event in any form.

[0071] Redis (Remote Dictionary Server), or remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supporting the network, memory-based and persistent, and provides APIs in multiple languages. Redis is a completely open source, extremely high-performance NoSql database; the reading speed can reach 110,000 times / s, and the writing speed can reach 81,000 times / s. It is worth noting that Redis is an in-memory database. As the name suggests, an in-memory database is a database that directly operates on data in memory. Compared with disks, the data reading and writing speed of memory is several orders of magnitude higher. Storing data in memory can greatly improve the performance of applications compared to accessing it from disk.

[0072] The advantage of storing the data model in the Redis database is that Redis is an in-memory database that reads and writes data quickly, which can improve the reading and writing efficiency of data.

[0073] S202: Back up the IoT model, and store the backed up IoT model in a MongoDB database.

[0074] MongoDB is a database based on distributed file storage. It is written in C++ and is designed to provide a scalable, high-performance data storage solution for WEB applications.

[0075] MongoDB is a product between relational databases and non-relational databases. It is the most feature-rich and relational database-like non-relational database. The data structure it supports is very loose, in a bson format similar to json, so it can store relatively complex data types. The biggest feature of Mongo is that it supports a very powerful query language, whose syntax is somewhat similar to an object-oriented query language. It can achieve almost most of the functions of a single-table query in a relational database, and it also supports indexing of data.

[0076] It is worth noting that MongoDB is a disk database. The advantage of a disk database is that it is less likely to lose data than a memory database. In this embodiment, by copying the model data and placing it in the MongoDB database, the disadvantage of the model data in the memory database being easily lost can be effectively compensated.

[0077] The combination of MongoDB database and Redis database can realize fast reading and writing of data and ensure that data is not lost.

[0078] S203: Obtain the ID of the descendant model that has an inheritance relationship with the model in the inheritance chain according to the model change event.

[0079] Each model can correspond to multiple inheritance chains.

[0080] An inheritance chain can be a form of expression that connects models with inheritance relationships in series; the essence of an inheritance chain is a data linked list that stores the relationships between models. Linked lists are divided into one-way linked lists, two-way linked lists, and circular linked lists. The form of the linked list is not limited in this embodiment.

[0081] Inheritance refers to a concept in object-oriented software technology. It is one of the three basic characteristics of object-oriented software technology, along with polymorphism and encapsulation. For example, in the application scenario of car models, the car model can be regarded as the parent class of the truck model, and the truck model is a subclass of the car model; the truck model can also be regarded as a parent class of the Foton pickup model. Inheritance can make the subclass have the properties and methods of the parent class or redefine and add properties and methods.

[0082] As described above, the model change event may include the model ID of the model in which the variable attribute has changed, which variable has changed, and how the change has occurred.

[0083] Therefore, an inheritance chain can be uniquely determined through the model number of the variable attribute change and the changed variable, and the descendant model that has an inheritance relationship with the model can be found through the inheritance chain, and the descendant model number can be recorded.

[0084] S204: Sending the model change event in the event sequence to the modification center by using an event bus.

[0085] EventBus is also called event bus. Its working mode is shown in the figure below. Figure 3 To understand, in this figure, Publisher (event center) publishes Event (model change event) through post() method, and Subscriber (modification center) receives the event in onEvent() method.

[0086] S205: Send the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0087] The information that the modification center can obtain based on the model change event includes the model in which the variable attributes have changed, what variables have changed, and how the changes have occurred; the modification center can accurately find the location of the descendant model in the database through the descendant model number.

[0088] The modification center can change the variable attributes of the corresponding model through Stata software or MATLAB.

[0089] S206: After the model change event is sent, the model change event is deleted from the event sequence.

[0090] Event sending uses EventBus in asynchronous loop mode, and maintains an infinitely growing event sequence EventQueue internally. After the model change event is sent, the model change event is removed from the EventQueue, and EventBus starts executing from the event queue again.

[0091] The method provided in the present application is applied to an event center. If the variable attributes of a model in the Internet of Things change, a model change event is obtained; the number of a descendant model that has an inheritance relationship with the model in an inheritance chain is determined based on the model change event; the model change event and the descendant model number are sent to a modification center so that the modification center can modify the variable attributes of the descendant model.

[0092] In this embodiment, by storing the model data and the inheritance chain in the Redis database, the model data can be quickly searched, and by storing the backed-up model data in MongoDB, the loss of model data can be effectively prevented, thereby ensuring the reliability of system storage.

[0093] See also Figure 4 , which is a structural diagram of a variable attribute modification device of an Internet of Things model provided in an embodiment of the present application.

[0094] like Figure 4 As shown, the variable attribute modification device includes:

[0095] Model change event acquisition module 401, descendant model acquisition module 402 and sending module 403;

[0096] The model change event acquisition module 401 is used to acquire the model change event when the variable attribute of the model in the Internet of Things changes;

[0097] A descendant model acquisition module 402 is used to acquire the descendant model number that has an inheritance relationship with the model in the inheritance chain according to the model change event;

[0098] The sending module 403 is used to send the model change event and the descendant model number to the modification center so that the modification center can modify the variable attributes of the descendant model.

[0099] The sending module 403 is specifically configured to send the model change event in the event sequence to the modification center by using an event bus.

[0100] The device also includes:

[0101] The deletion module is used to delete the model change event from the event sequence after the model change event is sent.

[0102] The device also includes:

[0103] The backup module is used to back up the model data and store the backed-up model data in the MongoDB database.

[0104] A schematic diagram of the structure of a variable attribute modification device for an Internet of Things model provided in an embodiment of the present application.

[0105] The embodiment of the present application also provides a variable attribute modification device, the device comprising:

[0106] Memory for storing computer programs;

[0107] A processor, which is used to implement the steps of any of the above variable attribute modification methods when executing a computer program.

[0108] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of any one of the above variable attribute modification methods are implemented.

[0109] In practical applications, the computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0110] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0111] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0112] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0113] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for modifying variable attributes of an Internet of Things model, characterized in that: Applied to the event center, the method includes: If the variable attributes of the model in the Internet of Things change, obtain the model change event; According to the model change event, obtain the model number of the descendant model that has an inheritance relationship with the model in the inheritance chain; The model change event and the descendant model number are sent to a modification center so that the modification center can modify the variable attributes of all the descendant models at one time.

2. The method according to claim 1, characterized in that The inheritance chain is stored in a remote dictionary service database.

3. The method according to claim 1, characterized in that The Internet of Things model is stored in a remote dictionary service database, and the method further includes: The Internet of Things model is backed up, and the backed up Internet of Things model is stored in a MongoDB database.

4. The method according to claim 1, characterized in that The inheritance chain is a data link table that connects all the models with inheritance relationships in the Internet of Things in series according to an object-oriented object model relationship construction method.

5. The method according to claim 1, characterized in that The sending the model change event to the descendant model specifically includes: By adopting the event bus, the model change event in the event sequence is sent to the modification center.

6. The method according to claim 5, characterized in that If the model change event is sent, the method further includes: The model change event is deleted from the event sequence.

7. A variable attribute modification device for an Internet of Things model, characterized in that: The device comprises: a model change event acquisition module, a descendant model acquisition module and a sending module; The model change event acquisition module is used to acquire a model change event when a variable attribute of a model in the Internet of Things changes; The descendant model acquisition module is used to acquire the descendant model number that has an inheritance relationship with the model in the inheritance chain according to the model change event; The sending module is used to send the model change event and the descendant model number to the modification center, so that the modification center can modify the variable attributes of all the descendant models at one time.

8. The device according to claim 7, characterized in that The device also includes: The inheritance chain generation module is used to generate an inheritance chain connecting all models with inheritance relationships in the Internet of Things in series according to an object-oriented object model relationship construction method.

9. A variable attribute modification device for an Internet of Things model, characterized in that: The device comprises: a memory and a processor; The memory is used to store computer programs; The processor is used to implement the steps of the variable attribute modification method of the Internet of Things model as described in any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for modifying variable attributes of an Internet of Things model as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Internet of things machine data transformation method and device

    CN108256089A

  • Template inheritance system of thing-linked node in thing-linked application platform

    CN109088771A

  • Processing, storing and sharing method for mass Internet of Things data modeling

    CN113986873A

  • Inherited information propagator for objects

    US20020002557A1

  • Internet of Things Search and Discovery Using Graph Engine

    US20190147090A1