Remote intelligent control-oriented island data model construction method

By building a remote intelligent control island data model, the problem of single equipment control in the three-dimensional real-life model of remote island reefs is solved, and the attribute expansion of single equipment and remote intelligent control are realized, which improves the flexibility and stability of the remote control system.

CN120298607AActive Publication Date: 2025-07-11INST OF GEOGRAPHICAL SCI & NATURAL RESOURCE RES CAS
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510780636.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-12
Publication Date
2025-07-11
Estimated Expiration
2045-06-12

AI Technical Summary

Technical Problem

The existing three-dimensional real-life model of smart cities cannot achieve precise control of single-unit equipment, and the monitoring and protection of ecological environments of far-sea islands and reefs is difficult to rely on traditional manual management, and lacks the ability to expand attributes and remote intelligent control of single-unit equipment.

Method used

Build a island and reef data model for remote intelligent control. By obtaining scene trees and converting them into XML text, using object-oriented class ideas to build adaptive data classes for various nodes, realizing multi-level and multi-grained data organization, expanding the attribute information of the single model, and constructing attribute settings, query and control functions.

Benefits of technology

The single object modeling of the three-dimensional model of remote islands and reefs is realized, the attribute information of the single model is expanded, and the remote intelligent control of the single device can be realized, the data loading burden is reduced, and the flexibility and stability of the remote control system are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120298607A_ABST
    Figure CN120298607A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a remote intelligent control-oriented island data model construction method. The method comprises the following steps of: obtaining a scene tree of an open sea island; converting the hierarchical structure of the scene tree into an XML text; aiming at different types of node layers, respectively constructing different types of node classes; according to an island understanding demand and a remote intelligent control demand, constructing attribute tables of different types of nodes, and associating each attribute table with a node type of a corresponding type; constructing an attribute setting function, an attribute query function and an attribute storage variable in each type of node class according to the attribute table; constructing an increase function, a positioning function and a remote intelligent control function of a lower-level layer node class in each type of node class according to the XML text; and jointly forming an island data model by the XML text, the node classes of various types and the associated attribute tables thereof. According to the embodiment of the invention, monomer modeling and control in the three-dimensional live-action model can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of data modeling, and in particular, to a method for constructing an island reef data model for remote intelligent control. Background Art

[0002] Remote islands and reefs are far from the land, and the round-trip time for personnel is long; the island reef environment is harsh and not suitable for long-term residence; the land area of the island reef is scarce, and there are few management personnel on the island. These unique characteristics of small land area, few people, and long distance make it difficult to manage the ecological environment monitoring and protection of remote islands and reefs by traditional manual methods. It is urgent to introduce intelligent control and Internet of Things technologies to monitor in real time and remotely automatically turn on or off intelligent devices such as a certain irrigation valve or a certain street lamp, so as to realize real-time monitoring and intelligent control of the island reef ecological environment.

[0003] The existing three-dimensional real-scene model in a smart city is a whole and cannot achieve precise control for individual entities. For example, when turning on or off street lamps, it is often to turn on or off all the street lamps in an administrative region of the city, and it is impossible to finely control the on or off of a certain street lamp or locate a certain tree. For example, Patent Application CN103824327A provides a method for indoor and outdoor integrated organization of urban three-dimensional scene data, and Patent Application CN117158301A provides a remote management method system and computer storage medium for coral islands and reefs, both of which cannot solve the above problems. Summary of the Invention

[0004] The embodiments of the present invention provide a method for constructing an island reef data model for remote intelligent control to solve the above technical problems.

[0005] In a first aspect, the embodiments of the present invention provide a method for constructing an island reef data model for remote intelligent control, including:

[0006] Obtain the scene tree of the remote island reef, where the scene tree includes an island reef root node, area nodes, outdoor entity nodes, and indoor entity nodes;

[0007] Convert the hierarchical structure of the scene tree into an XML text, where the XML text includes a root node layer, area node layers, outdoor entity node layers, and indoor entity node layers;

[0008] For different types of node layers, respectively construct different types of node classes;

[0009] According to the island reef understanding requirements and remote intelligent control requirements, construct attribute tables for different types of nodes, and associate each attribute table with the corresponding type of node class;

[0010] According to the attribute tables of each type of node, construct an attribute setting function, an attribute query function, and an attribute storage variable in each type of node class;

[0011] According to the layer structure in the XML text, construct an addition function, a positioning function, and a remote intelligent control function for the lower-layer node class in each type of node class, as well as a storage structure for the set of lower-layer node class variables;

[0012] The XML text, each type of node class, and its associated attribute table together constitute an island reef data model.

[0013] In a second aspect, an embodiment of the present invention provides a remote intelligent control method, including:

[0014] Obtain the island reef data model of a remote island reef, where the island reef data model is constructed by the method of the above embodiment;

[0015] In response to the control requirement of any area, load the corresponding area class from the island reef data model, and visually display the entities in the area class;

[0016] In response to the positioning operation of any entity, run the contour acquisition function of the any entity, and display the contour of the any entity in the visualization interface;

[0017] In response to the click operation on the contour, run the attribute query function of the any entity, and display the attributes of the any entity in the visualization interface;

[0018] In response to the click or modification operation on the control attribute in the attributes, run the remote intelligent control function corresponding to the control attribute, and perform corresponding control on the any entity.

[0019] In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

[0020] One or more processors;

[0021] A memory for storing one or more programs,

[0022] When the one or more programs are executed by the one or more processors, the one or more processors implement the island reef data model construction method or the remote intelligent control method for remote intelligent control described in any embodiment.

[0023] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the island reef data model construction method or the remote intelligent control method for remote intelligent control described in any embodiment.

[0024] In summary, the embodiments of the present invention provide a method for constructing an island reef data model for remote intelligent control and a remote intelligent control method. The three-dimensional model data of the island reef is organized in a multi-level (indoor and outdoor, different spatial scales) and multi-granularity (objects of different sizes indoor and outdoor) manner, and an adapted data class is constructed for each type of node using the object-oriented class concept, realizing the modeling of individual objects for the three-dimensional real-scene model, expanding the attribute information of the individual model, and enabling remote intelligent control of the individual. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 is a flowchart of a method for constructing an island reef data model for remote intelligent control provided by an embodiment of the present invention;

[0027] Figure 2 is a schematic diagram of the division of the island reef scene area provided by an embodiment of the present invention;

[0028] Figure 3 is a schematic diagram of a scene tree based on a hierarchical structure provided by an embodiment of the present invention;

[0029] Figure 4 is a schematic diagram of an object-oriented class hierarchical structure provided by an embodiment of the present invention;

[0030] Figure 5 is a flowchart of a remote intelligent control method provided by this embodiment;

[0031] Figure 6 is a schematic diagram of the positioning of a three-dimensional model entity provided by this embodiment;

[0032] Figure 7 is a schematic diagram of the attribute query of a three-dimensional model entity provided by this embodiment;

[0033] Figure 8 is a schematic diagram of the remote intelligent control of a three-dimensional model entity provided by this embodiment;

[0034] Figure 9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0035] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be described clearly and completely below. Obviously, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.

[0036] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be construed as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0037] In the description of the present invention, it should also be noted that unless otherwise clearly specified and defined, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

[0038] A method for constructing an island reef data model for remote intelligent control provided by an embodiment of the present invention will be described below. To illustrate this method, the three-dimensional scene model of a remote island reef will be introduced first. Generally speaking, a three-dimensional scene includes spatial features above and below the terrain surface within a certain range. From the perspective of people's understanding of the objective world, the content of three-dimensional scene data can be divided into two categories: one is feature entities, which are discrete, homogeneous, and have clearly defined spatial boundaries and can be completely defined, such as street lights, buildings, etc.; the other is fields, which are characterized by smooth continuous spatial variations, such as the terrain surface. From the perspective of data storage, three-dimensional scene data can be further divided into three-dimensional model data, vector data, and terrain data, which are specifically as follows:

[0039] Regarding 3D model data, this data is used to represent the discrete 3D entities in the objective world and is the most important component for constructing a 3D scene. In the 3D scene of remote island reefs, objects such as points, lines, surfaces, and solids are used to represent the surfaces of entity elements such as street lights, port basins, and buildings on the island reefs in the objective world, and texture mapping is used. Since the 3D scene of remote island reefs is relatively small, the data volume of the 3D scene model file modeled by 3DSMax (3D Studio Max, a 3D modeling, rendering, and production software) is not large. Therefore, the 3D scene model of remote island reefs is stored in the form of a file (wrl format) and published to the server to form a data service.

[0040] Regarding vector data, in a 3D scene, GIS (Geographic Information System) supports the loading and visualization of local vector data, vector data services, and spatial database data. These data can be directly recognized and parsed by the GIS system and loaded into the 3D scene.

[0041] Regarding terrain data, in a 3D scene, the GIS system supports the loading and visualization of orthophoto images and elevation data. These data are the terrain data, which are recognized and parsed by the GIS system after being published as a service and can be loaded into the 3D scene.

[0042] Among them, good solutions have been found for the construction and use of vector data and terrain data in the two-dimensional spatial data model. To meet the real-time requirements of visual interactive queries for the 3D scene model of remote island reefs, in this embodiment, a data structure suitable for the 3D model data of remote island reefs is specifically constructed, which can maintain a moderate amount of modeling while meeting the requirements of remote intelligent control and visual interaction, so as to quickly construct a visual remote intelligent control system applicable to remote island reefs.

[0043] Based on the above basic introduction, Figure 1 is a flowchart of a method for constructing an island reef data model for remote intelligent control provided by an embodiment of the present invention. This method is applicable to the situation of visual remote intelligent control of various objects (such as hydropower equipment, etc.) on remote island reefs and is executed by an electronic device. As Figure 1 shown, the method specifically includes:

[0044] S110. Obtain the scene tree of the remote island reef, where the scene tree includes an island reef root node, area nodes, outdoor entity nodes, and indoor entity nodes.

[0045] In this embodiment, the 3D model data will be classified and modeled according to the scene area. Therefore, first, the 3D scene of the island reef can be divided into multiple sub-scene areas according to the spatial structure and form of the remote island reef, such as Figure 2As shown, the three-dimensional entities within each sub-scene area form a scene group. Meanwhile, a complete three-dimensional reef scene consists of many elements, including sub-scene area nodes (abbreviated as area nodes), entity nodes, natural element nodes, etc. By establishing the hierarchical relationships between these nodes, all the elements in the three-dimensional reef scene can be organized into a scene tree based on a hierarchical structure, as Figure 3 shown.

[0046] Among them, the reef node is the root node of the scene tree, which contains some global information in the scene and has position and range attributes.

[0047] The area nodes are obtained by dividing the three-dimensional scene of a remote island reef into several small sub-scene areas for separate processing. Therefore, there can also be area nodes under the reef node. The area nodes have attributes such as name, position, and range.

[0048] The natural element nodes are used to define various natural elements, such as seasons, rain, fog, etc., and have attributes such as category, position, and range. They can only exist as the children nodes of the root node of the scene tree.

[0049] The entity nodes are the smallest object units in the three-dimensional reef scene and are used to represent the actual objects in the three-dimensional scene. In addition to having geometric attributes such as position and range, they also contain attribute information such as name, category, and material. Optionally, according to the specific position of the entity nodes, the entity nodes can be further divided into outdoor entity nodes and indoor entity nodes. Among them, the outdoor entity nodes include ports, street lights, roads, vegetation, and buildings, and the indoor entity nodes include water meters, electric meters, pipelines, etc.

[0050] Particularly, in this embodiment, reef data modeling is performed for the remote intelligent control scenario. Therefore, only the nodes and attributes related to remote intelligent control are included in the modeling scope to reduce the workload of three-dimensional modeling and the data loading burden in visualization.

[0051] In the scene tree obtained in the above manner, the entity nodes can exist either as internal child nodes or as leaf nodes, such as building entity nodes and sub-entity nodes inside the building.

[0052] S120. Convert the hierarchical structure of the scene tree into XML text, where the XML text includes a root node layer, an area node layer, an outdoor entity node layer, and an indoor entity node layer.

[0053] Since the scene tree in S110 is only a logical hierarchical structure and cannot be recognized and displayed by the electronic device, nor can it directly implement the remote intelligent control of the device. To meet the reusability and generality of the 3D model data, in this embodiment, the hierarchical structure-based scene tree is converted into an XML (eXtensible Markup Language) text, and the hierarchical relationship between nodes is defined through multi-level layers in the XML text. Specifically, several different types of nodes in the scene tree (reef nodes, area nodes, outdoor entity nodes, and indoor entity nodes) correspond to different types of node layers in the XML text, including a root node layer, an area node layer, an outdoor entity node layer, and an indoor entity node layer.

[0054] Optionally, taking the XML text of "Zhaoshu Island" as an example, the text may include the following content:

[0055] <? xml version = "1.0" encoding = "UTF-8" ?>

[0056] <layerroot name="赵述岛" type="RootNood"> / / Root node layer

[0057] <layergroup name="区域" type="BlockNood"> / / Regional node layer, corresponding to the scene or sub-scene

[0058] <layer Name="港口" type="EntityNood" / > / / Outdoor entity node layer

[0059] <layer Name="路灯" type="EntityNood" / > / / Outdoor entity node layer

[0060] <layer Name="道路" type="EntityNood" / > / / Outdoor entity node layer

[0061] <layer name="建筑物" type="EntityNood"> / / Outdoor physical node layer

[0062] <indoor Name="水表" type="EntityNood" / > / / Indoor physical node layer

[0063] <indoor Name="电表" type="EntityNood" / > / / Indoor physical node layer

[0064] <indoor Name="管线" type="EntityNood" / > / / Indoor physical node layer

[0065] < / layer>

[0066] < / LayerGroup>

[0067] < / layergroup> < / layerroot>

[0068] S130. For different types of node layers, different types of node classes are constructed respectively.

[0069] To effectively use the geometric information and attribute information of the 3D model entities of remote reefs, in this embodiment, in a multi-level (indoor and outdoor, different spatial scales) and multi-granularity (objects of different sizes indoor and outdoor) manner, the object-oriented class idea is used to construct data structures for the 3D model entities of reefs respectively, to implement the data hierarchy based on "reef - scene area - outdoor model entity - indoor model entity", and to obtain a unified data model for the geometric information and attribute information of the 3D model entities.

[0070] Optionally, after the electronic device obtains the XML text, it can read each level of layer in the file layer by layer and construct different class structures for the node types corresponding to different layers. Subsequently, different function filling methods, variable filling methods, and data structure filling methods will be adopted for different class structures to meet the requirements of remote intelligent control and visual display.

[0071] In a specific embodiment, for the reef root node and the area node, three data classes, namely a reef set class, a reef class, and an area class, can be constructed.

[0072] For entity nodes, the entity nodes can be divided into three types: nodes directly remotely intelligently controlled, nodes indirectly remotely controlled, and nodes affecting remote control. For the convenience of distinction and description, these three types of entity nodes will be referred to as the first node, the second node, and the third node respectively hereinafter. Exemplarily, the first node includes street lights, water valves, electricity meters, and water meters (the on / off of street lights and the opening degree of water valves can be directly controlled), the second node includes buildings (a building cannot be directly controlled, but can be indirectly controlled by controlling the equipment inside the building), and the third node includes vegetation (the situation of vegetation affects the control of water valves).

[0073] For the first node, different node classes can be constructed respectively according to different control methods. For example, since the control methods of water valves, street lights, and water meters / electricity meters are different, three node classes can be constructed respectively.

[0074] For the second node, multi-level node classes matching the field of view are constructed respectively according to different fields of view. For example, for the building node, in the case of no other redundant entities, if the maximum field of view required to clearly display a certain controlled device (such as an electricity meter) is a room, then three node classes, namely the building node, the floor node, and the room node, can be constructed according to this requirement.

[0075] For the third node, different node classes can be constructed respectively according to different ways of affecting remote control. For example, since the effects of trees and lawns on remotely controlling water valves are different, two node classes, namely trees and lawns, can be constructed respectively.

[0076] Exemplarily, finally, for several key reef three-dimensional model entities, their object-oriented class hierarchy is as Figure 4 shown, mainly including the reef set class CIslands, the reef class CIsland, the scene area class CBlock (i.e., the area class), the outdoor entity class (street light class CStreetlight, water valve class CHydrovalve, tree class CTree, building class CBuliding), the indoor entity class (floor class CFloor, room class CRoom, water meter / electricity meter class). In the figure, 1:N represents one-to-many, and N:1 represents many-to-one. Due to space limitations, the water meter / electricity meter class is not Figure 4 shown in the figure. At the same time, although the floor class and the room class are not shown in the XML text exemplified in S120, they can also be added to the XML text as two-level intermediate node layers for the building node layer and the water meter / electricity meter / pipeline node layer.

[0077] S140. According to the reef understanding requirements and remote intelligent control requirements, construct the attribute tables of different types of nodes, and associate each attribute table with the corresponding type of node class.

[0078] In the prior art, there is a lack of property expansion for monomers, so the status of monomers cannot be viewed and remotely controlled. Therefore, in this embodiment, according to the requirements of understanding the island reef and remote intelligent control, property tables are constructed for different types of nodes, and the properties in the list include basic properties and control properties.

[0079] In a specific embodiment, the basic properties for meeting the requirements of understanding the island reef can be extracted from the description text of each type of node by means of text crawling. Here, the requirements of understanding the island reef refer to the entity properties required by the staff who have just landed on the island to understand the situation inside the island, such as the name of the island reef, the shape of the island reef, the name of the area, the shape of the area, the name of the port, the height of the street lamp, etc.

[0080] Similarly, the properties for positioning the control object, the properties for calculating the control cost, and the properties for reflecting the control effect can also be extracted from the description text of each type of node by means of text crawling, and at least one of these properties is used as the control property of the node.

[0081] Optionally, for any type of node, the position and number properties of the node, as well as the properties related to the position and number of the subordinate layer nodes controlled in the node, can be extracted from the description text of this type of node as the properties of this type of node for positioning the control object. For example, for a building node, the position and number of the building can be used as the properties of the building node for positioning the control object. At the same time, the building property "number of floors" related to the position of the lower water meter node of the building node (i.e., the floor where the water meter is located) should also be used as the property of the building node for positioning the control object.

[0082] At the same time, for any type of node, the control trigger condition of the controlled node affected by this type of node can be extracted from the description text of the controlled node, and the property of this type of node for reflecting the control effect can be extracted from the control trigger condition. This method is particularly suitable for determining the control properties of the above-mentioned third node. For example, the type, height, growth condition description, etc. of the vegetation are important factors for controlling the outdoor water valve. The control trigger condition of the outdoor water valve includes the watering cycle of what kind of plants, and the content such as what kind of growth condition the plants need to be watered separately, then these contents can be extracted from the control trigger condition as the properties of the vegetation type for reflecting the control effect.

[0083] Meanwhile, for any type of node, the cost calculation formula of its superior layer node can be extracted from the description text of the superior layer node of this type of node, and the attributes of any type of node can be extracted from the cost calculation formula as the attributes of any type of node for calculating control costs. For example, in the outdoor irrigation control of the entire area, different water valves and water pipe routes can be selected to form different control methods. When selecting a control method, the calculation formula of irrigation cost is required. Therefore, for a road node, the calculation formula of irrigation cost can be extracted from the description text of the upper area node, and the attributes of the road node can be extracted from this formula, such as the road length (this parameter determines the length of the water pipe route, thus affecting the control cost), and the road length is used as the attribute of the road node for calculating control costs.

[0084] Finally, the attribute tables of each type of node are jointly composed of the basic attributes and the above three control attributes. Through the above several methods, most of the requirements for reef understanding and remote intelligent control can be covered, providing rich attribute information for the remote intelligent control of far reef islands. Table 1 exemplarily shows several types of key entities such as buildings, trees, harbor basins, roads, street lights, etc. and their extended attribute information:

[0085] Table 1 Attribute Information of Key Entities in the 3D Scene of Remote Islands and Reefs

[0086] Serial Number Entity Type Attribute Information 1 Building Number, Construction Year, Construction Purpose, Construction Materials, Construction Area, Floor Height, Number of Floors, Earthquake Resistance Level 2 Tree Number, Tree Name, Planting Year, Family and Genus, Tree Height, Tree Description 3 Basin Number, Length, Width, Water Depth, Maximum Tonnage of Ship Berthing Draft 4 Road Number, Road Name, Construction Year, Construction Materials, Length, Width 5 Street Lamp Number, Height, Wind Resistance Level

[0087] After the attribute table is constructed, the external attribute table can be associated according to the unique number of the node, so as to realize the expansion of the attribute information of the 3D model data. The key to realizing the expansion of attribute information is to construct a matching table. The purpose of this matching table is to record and maintain the association relationship between the node and the external attribute information. This relationship can be a one-to-one or one-to-many relationship, indicating that the node has one or more attribute information. Exemplarily, the field structure of a matching table is shown in Table 2.

[0088] Table 2 Matching of the Association Relationship between 3D Model Entities and External Attributes

[0089] Serial Number Field Name Field Type Remarks 1 No Integer Number 2 EntityNo Character Unique Number of 3D Model Entity 3 AttriTableName Character External Attribute Table Name 4 AttriItemID Character Attribute Item Number in Attribute Table

[0090] Through this external attribute information expansion mode, the association relationship between each node and the external attribute table can be established without changing the original data organization and storage structure of the node and the attribute table, so that each node in the 3D scene of the reef has custom attribute description information. By maintaining the matching table and the external attribute table, the attribute expansion ability of the 3D scene model of far reef islands can be realized. Reef managers can conduct interactive queries in the 3D virtual environment of the reef and master the inherent attribute information of the ground features on the reef in the objective world without leaving home.

[0091] Optionally, in the property table of a certain type of node, flag bits can also be set for each property to indicate whether the property is controllable. Exemplarily, a flag bit of 1 represents that the property is controllable or adjustable; a flag bit of 0 represents that the property is fixed and non-adjustable. This flag bit can conveniently identify controllable properties or lower-level nodes in subsequent operations, improving the construction efficiency of the data model.

[0092] S150. According to the property tables of each type of node, construct property setting functions, property query functions, and property storage variables in each type of node class; according to the layer structure in the XML text, construct an addition function, a positioning function, and a remote intelligent control function for the lower-layer node class in each type of node class, as well as a storage structure for the set of variables of the lower-layer node class.

[0093] As described above, different types of data classes have been constructed in S130. In this step, these data classes will be filled with functions, storage variables, and storage structures respectively according to the above property tables and XML text.

[0094] In a specific embodiment, for the island reef set class, which is at the top of the hierarchical structure and does not require attributes such as names and numbers, it can be not associated with a property table. Therefore, the steps of constructing property setting functions and property query functions in the island reef set class are omitted, and directly enter the next link. According to the layer structure, construct an addition function, a positioning function, and a remote intelligent control function for the lower-layer node class (island reef class) in the island reef set class, as well as a storage structure for the set of variables of the lower-layer node class (island reef class). Among them, the addition function is used to add an island reef class in the island reef set class; the positioning function is used to locate any island reef class, such as a function to obtain the corresponding island reef class by any name / number; and the remote intelligent control function of a certain type of node class refers to a function used to directly perform remote intelligent control on the current node class. Here, the island reef class cannot be directly remotely controlled, so the intelligent control function of the island reef class is not constructed. The storage structure of the set of island reef class variables is an array (vector), and each element in the array is used to store an island reef class variable. The finally constructed object-oriented class of the island reef set is described in VC++ 6.0 language as follows:

[0095] class CIslands{ / / Island reef set class, managing island reef classes

[0096] public:

[0097] CIslands(); / / Constructor

[0098] void AddIsland(CIsland *pIsland); / / Add an island reef

[0099] CIsland* GetIslandByName(string strIslandName); / / Get an island reef by name

[0100] CIsland* GetIslandByCode(string strIslandCode); / / Get an island reef by code

[0101] private:

[0102] vector< CIsland*> m_IslandSet; / / Store the island reef set

[0103] };

[0104] It can be seen that the island reef set class constructed by the above method can maintain, call, and store the data of all island reef classes, realizing effective data management.

[0105] For the island reef class, the associated attribute table of the island reef class includes the name, code, and polygon outline of the island reef. First, construct a query function (i.e., attribute query function) and storage variables (i.e., attribute storage variables) for the current island reef name, code, and polygon outline in the island reef class. Among them, the attribute query function is used to query a certain attribute of the island reef class, and the attribute storage variable is used to store a certain attribute of the island reef class; then, traverse the attribute table of the island reef node, and automatically read the attributes with the flag bit being controllable. Since there are no controllable attributes in the island reef node, the attribute setting function for the attribute table is omitted in this class, and directly enter the next link: according to the layer structure, construct the addition function, positioning function, and remote control function of the lower-layer node class (area class) in the island reef class. The remaining details are similar to those of the island reef set class. The finally constructed object-oriented class of the island reef is as follows:

[0106] class CIsland{ / / Island reef class, managing the island reef scene area set

[0107] public:

[0108] CIsland(string strCode, string strName, Polygon *pPolygon); / / Constructor

[0109] string* GetIslandName(); / / Get the island reef name

[0110] string* GetIslandCode(); / / Get the island reef code

[0111] void AddBlock(CBlock *pBlock); / / Add a scene area

[0112] CBlock* GetBlockByName(string strBlockName); / / Get a scene area by name

[0113] CBlock* GetBlockByCode(string strBlockCode); / / Get a scene area by code

[0114] Polygon* GetIslandPolygon(); / / Get the spatial range of the island reef

[0115] private:

[0116] string m_IslandCode; / / Store the island reef code

[0117] string m_IslandName; / / Store the island reef name

[0118] Polygon *m_pPolygon; / / Store the island reef polygon

[0119] vector< CBlock*> m_BlockSet; / / Store the set of island reef scene areas

[0120] };

[0121] It can be seen that the island reef class constructed by the above method can not only manage (including maintaining, calling, and storing) the data of the island reef itself, but also manage the island reef scene area class and store all the scene areas divided on the island reef. By giving the name or code of the island reef, the island reef can be queried in the island reef set class, and then the scene areas it contains can be obtained, possessing all the attributes and actions related to the island reef hierarchy and remote intelligent control.

[0122] Furthermore, for the area class, the following object-oriented class can be constructed by using the above method:

[0123] class CBlock{ / / Scene area class, managing various types of entities within the area

[0124] public:

[0125] CBlock(string strCode, string strName, Polygon *pPolygon); / / Constructor

[0126] string* GetBlockName(); / / Get the name of the scene area

[0127] string* GetBlockCode(); / / Get the code of the scene area

[0128] Polygon* GetBlockPolygon(); / / Get the spatial range of the scene area

[0129] void AddBuliding(CBuliding *pBuliding); / / Add a building

[0130] void AddTree(CTree *pTree); / / Add a tree

[0131] void AddStreetlight(CStreetlight *pStreetlight); / / Add a street lamp

[0132] void AddHydrovalve (CHydrovalve *pHydrovalve); / / Add a water valve

[0133] CBuliding* GetBulidingByName(string strBulidingName); / / Get a building by name

[0134] CBuliding* GetBulidingByCode(string strBulidingCode); / / Get a building by code

[0135] CTree* GetTreeByCode(string strTreeCode); / / Get a tree by code

[0136] void ControlStreetlightByCode(string strStreetlightCode); / / Control the switch of a certain street lamp by code

[0137] void ControlAllStreetlight(); / / Control the switches of all street lamps in this area

[0138] void ControlStreetlightByCode(string strHydrovalveCode); / / Control the switch of a certain water valve by code

[0139] void ControlAllHydrovalve(); / / Controls the opening and closing of all water valves in this area

[0140] private:

[0141] string m_BlockCode; / / Stores the scene area number

[0142] string m_BlockName; / / Stores the scene area name

[0143] Polygon *m_pPolygon; / / Stores the scene area polygon

[0144] vector< CBuliding*> m_pBulidingSet; / / Stores all buildings in the scene area

[0145] vector< CTree*> m_pTreeSet; / / Stores all trees in the scene area

[0146] vector< CStreetlight*> m_pStreetlightSet; / / Stores all streetlights in the scene area

[0147] vector< CHydrovalve*> m_pHydrovalveSet; / / Stores all water valves in the scene area

[0148] };

[0149] The specific construction steps are similar to those of the island reef class, with the differences being as follows: Read the subordinate layer nodes of the area class from the XML text to obtain nodes of types such as buildings, trees, streetlights, and water valves; then, traverse the property tables of these nodes to automatically read the properties with the controllable flag. Among them, there are no such controllable properties for buildings and trees, so positioning functions are constructed for them respectively; while there are such controllable properties (switch states) for both streetlights and water valves, so positioning functions are constructed for streetlights and water valves respectively, as well as remote intelligent control functions for the switch states; finally, storage structures (storage arrays) are constructed for the building set, tree set, streetlight set, and water valve set respectively.

[0150] It can be seen that the area class constructed by the above method corresponds to the divided scene areas on the reefs and can manage the 3D model entity classes within the scene areas, mainly including streetlight classes, water valve classes, tree classes, and building classes. Through the area class, a certain streetlight or water valve within the area can be turned on / off, or all the streetlights or water valves within the area can be turned on / off. Additionally, the buildings within the area can be queried, and each tree within the area can be accurately located, possessing all the attributes and actions related to remote intelligent control within the area.

[0151] Furthermore, for the streetlight class, the following object-oriented class can be constructed using the above method:

[0152] class CStreetlight{ / / Streetlight class

[0153] public:

[0154] CStreetlight (string strCode, Point *pPoint); / / Constructor

[0155] void SetStreetlightHeight (float fHeight); / / Set the height of the streetlight

[0156] float GetStreetlightHeight (); / / Get the height of the streetlight

[0157] string GetStreetlightCode (); / / Get the streetlight number

[0158] void SetStreetlightOn(); / / Set the streetlight to on

[0159] void SetStreetlightOff(); / / Set the streetlight to off

[0160] void SetAntiwindGrade (string strGrade); / / Set the anti-wind grade of the streetlight

[0161] int GetAntiwindGrade (); / / Get the anti-wind grade of the streetlight

[0162] private:

[0163] string m_StreetlightCode; / / Store the streetlight number

[0164] Point *m_pPoint; / / Store the position of the streetlight point

[0165] float m_StreetlightHeight; / / Store the height of the streetlight

[0166] string m_AntiwindGrade; / / Store the anti-wind grade of the streetlight

[0167] };

[0168] Its specific construction steps are similar to those of the area class, with the difference being that when traversing the property table of the streetlight, the flag bits read as controllable properties include the streetlight height, switch status, and anti-wind grade. Therefore, in addition to constructing getter functions for these properties, setter functions for these properties are also constructed to set the specific values of the current properties. At the same time, there are no subordinate layer nodes for the streetlight node in the XML text, so there is no need to construct functions for subordinate layer nodes.

[0169] It can be seen that the streetlight class constructed by the above method can instantiate the streetlight entity in the 3D model of the island reef. In addition to managing the attribute information of the streetlight, its behavior can also perform on / off operations and is controlled and managed by the area class.

[0170] Furthermore, for the hydrovalve class, the above method can be used to construct the following object-oriented class:

[0171] class CHydrovalve{ / / Hydrovalve class

[0172] public:

[0173] CHydrovalve(string strCode, Point *pPoint); / / Constructor

[0174] string GetHydrovalveCode (); / / Get the hydrovalve number

[0175] void SetStreetlightOn(); / / Set the hydrovalve to on

[0176] void SetStreetlightOff(); / / Set the hydrovalve to off

[0177] private:

[0178] string m_HydrovalveCode; / / Store the hydrovalve number

[0179] Point *m_pPoint; / / Store the hydrovalve point position

[0180] };

[0181] Its specific construction steps are similar to those of street lamps. It can be seen that the water valve class constructed by the above method can instantiate the water valve entity in the 3D model of the reef. In addition to managing the attribute information of the water valve, its behavior can also perform opening or closing operations and is controlled and managed by the area class.

[0182] Furthermore, for the tree class, the following object-oriented class can be constructed using the above method:

[0183] class CTree{ / / Tree class

[0184] public:

[0185] CTree (string strCode, Point *pPoint); / / Constructor

[0186] void SetTreeName(string strName); / / Set the tree name

[0187] string GetTreeName(); / / Get the tree name

[0188] void SetTreePlantYear (Date dYear); / / Set the tree planting year

[0189] Date GetTreePlantYear (); / / Get the tree planting year

[0190] void SetTreeFamily(string strFamily); / / Set the tree family

[0191] string GetTreeFamily(); / / Get the tree family

[0192] void SetTreeHeight(float fHeight); / / Set the tree height

[0193] float GetTreeHeight(); / / Get the tree height

[0194] private:

[0195] string m_TreeCode; / / Store the tree code

[0196] string m_TreeName; / / Store the tree name

[0197] Date m_TreePlantYear; / / Store the tree planting year

[0198] string m_Treefamily; / / Store the tree family

[0199] float m_TreeHeight; / / Store the tree height

[0200] Point *m_pPoint; / / Store the tree point position

[0201] };

[0202] Its specific construction steps are similar to those of the street lamp class. It can be seen that the tree class constructed by the above method can instantiate the tree entities in the 3D model of the island reef, which is mainly used to manage the attribute information of the trees and is controlled and managed by the area class.

[0203] Furthermore, for the building class and the indoor entity class, the following object-oriented classes can be constructed by using the above method:

[0204] class CBuliding { / / Building class

[0205] public:

[0206] CBuliding(string strCode, string strName); / / Constructor

[0207] void AddFloor(CFloor *pFloor); / / Add a floor

[0208] string GetBuildingName(); / / Get the building name

[0209] void SetBuildingYear(Date dYear); / / Set the building construction year

[0210] Date GetBuildingYear(); / / Get the building construction year

[0211] void SetBuildingHeight(double height); / / Set the building height

[0212] double GetBuildingHeight(); / / Get the building height

[0213] void SetBuildingArea(double area); / / Set the building construction area

[0214] double GetBuildingArea(); / / Get the building construction area

[0215] void SetBuildingUse(string strUse); / / Set the building construction use

[0216] string GetBuildingUse(); / / Get the building construction use

[0217] int GetBuildingFloorNum(); / / Get the number of floors of the building

[0218] private:

[0219] string m_BuildingCode; / / Store the building code

[0220] string m_BuildingName; / / Store the building name

[0221] vector<CFloor*> m_FloorSet; / / Store the floors of the building

[0222] Date m_BuildYear; / / Store the building construction year

[0223] double m_BuildingHeight; / / Store the building height

[0224] double m_BuildingArea; / / Store the building area

[0225] string m_BuildingUse; / / Store the building use

[0226] };

[0227] class CFloor{ / / Floor class, manage the rooms on the floor

[0228] public:

[0229] CFloor(); / / Constructor

[0230] void AddRoom(CRoom *pRoom); / / Add a room

[0231] CRoom* GetRoom(string strRoomCode); / / Get a room

[0232] private:

[0233] Vector<CRoom*> m_RoomSet; / / Stores the rooms on the floor

[0234] };

[0235] class CRoom { / / Room class, manages water meters and electricity meters

[0236] public:

[0237] CRoom(string strNum;); / / Constructor

[0238] void SetElectricitymeter (CElectricitymeter *pElectricitymeter); / / Set the electricity meter

[0239] void SetWatermeter (CWatermeter *pWatermeter); / / Set the water meter

[0240] CElectricityMeter* GetElectricitymeter (); / / Get the electricity meter

[0241] CWatermeter* GetWatermeter (); / / Get the water meter

[0242] private:

[0243] string m_RoomNum; / / Stores the room number

[0244] CWatermeter *m_pWatermeter; / / Stores the water meter

[0245] CElectricitymeter *m_pElectricitymeter; / / Stores the electricity meter

[0246] };

[0247] The specific construction steps are similar to those of other node classes, with the difference being that: since the electricity meter class and the water meter class have no other complex functions, the "Set Electricity Meter" and "Set Water Meter" functions in the electricity meter class and the water meter class are added to the room class, while the electricity meter class and the water meter class are omitted. This is also an optional implementation method.

[0248] It can be seen that the building class constructed by the above method can instantiate the building entities in the 3D model of the island reef. In addition to managing the attribute information of the buildings, it is more used to manage the water meters and electricity meters of each room in the buildings, and obtain the water consumption and electricity consumption data. As an outdoor 3D model entity, the building class is controlled and managed by the area class; while as an indoor 3D model entity, the building class mainly manages the floor class and the room class, and then obtains the water consumption and electricity consumption data of each room.

[0249] S160. The XML text, various types of node classes and their associated attribute tables together constitute the island reef data model.

[0250] After all the above-mentioned types of node classes are constructed, the XML text, all node classes and the attribute tables associated with each node class are used together as the island reef data model, providing a data basis for the visual remote intelligent control system of the remote island reef.

[0251] Based on the above data model, Figure 5 is the flowchart of a remote intelligent control method provided in this embodiment. Combining Figure 5 with it, the method specifically includes:

[0252] S210. Obtain the island reef data model of the remote island reef, where the island reef data model is constructed by the method described in any of the above embodiments.

[0253] S220. In response to the control requirement of any area, load the corresponding area class from the island reef data model, and visually display the entities in the area class.

[0254] In a specific implementation manner, based on the above island reef data model, the 3D scene model of the island reef can be visually displayed in the remote intelligent control system. When it is necessary to control the equipment in a certain area, a certain area can be selected for display on the system interface. The system can load the corresponding area class from the island reef data model and display the entities in the area on the system interface.

[0255] S230. In response to the positioning operation of any entity, run the contour acquisition function of the any entity, and display the contour of the any entity in the visual interface.

[0256] Since there are many entities in the area, if you want to view a certain 3D model entity, you can locate the 3D model entity by query. Optionally, you can accurately locate the model entity according to the feature type and model number of a certain entity, and display the contour of the entity, as Figure 6 shown.

[0257] S240. In response to a click operation on the contour, run the attribute query function of the entity, and display the attributes of the entity on the visualization interface.

[0258] By clicking on the 3D model entity with the mouse, the attribute information of the model entity can be obtained. Figure 7 What is displayed is the attribute information of the indoor electricity meter model of the building.

[0259] S250. In response to a click or modification operation on the control attribute in the attributes, run the remote intelligent control function corresponding to the control attribute, and perform corresponding control on the entity.

[0260] For example, due to the special geographical location of remote island reefs, it is difficult to obtain electricity. In order to save electricity, on remote island reefs, street lights need to be controlled to turn on and off in a single or segmented area manner. Figure 8 What is displayed are the street lights queried by segmented area. These street lights can be controlled to turn on and off as a whole, or one or more street lights can be selected for individual on / off control.

[0261] Furthermore, in another specific embodiment, after the above-mentioned island reef data model is constructed, different dynamic association slots can be set in the model script. When changes occur in the property table or XML document, instead of reconstructing a new island reef data model, the automatic dynamic update of the island reef data model can be achieved through these association slots, improving the flexibility and stability of the entire remote control system. This method defaults to using the same name for the same node occurrences throughout the data model (whether it is a function name, variable name, (data) structure name, parameter name, or property name). On this premise, according to different operators performing the update, the following two alternative implementation methods are provided in this embodiment:

[0262] The first alternative implementation method is applicable to developers of the visualization remote intelligent control system to update the data model. Specifically, after constructing the attribute setting function, attribute query function, and attribute storage variables in each type of node class according to the property table of each type of node in S150, dynamic slots regarding the property name can be constructed in the constructed function names and storage variable names, and each dynamic slot is associated with the corresponding property name in the property table of each type of node; when any property name in the property table changes, the function name or storage variable name where the dynamic slot associated with the any property name is located automatically changes.

[0263] Exemplarily, in the streetlight class, set "StreetlightHeight" in the function name "SetStreetlightHeight" of the streetlight height setting function as a dynamic slot, and associate this dynamic slot with the attribute name "StreetlightHeight" in the property table. At this time, the function name becomes "Set{dynamic slot}". When the developer changes "StreetlightHeight" in the property table to "StreetlightType" (streetlight type), the function name in the streetlight class automatically becomes "StreetlightType", thus realizing the dynamic update of the attribute function.

[0264] Similarly, in S150, according to the layer structure in the XML text, after constructing the addition function, positioning function, and remote intelligent control function of the lower layer node class in each type of node class, as well as the storage structure of the lower layer node class variable set, it is also possible to set dynamic slots regarding the lower layer node names in the constructed function names and storage structure names, and associate each dynamic slot with the lower layer node names of each type of node in the layer structure; when the lower layer node name of any layer in the XML text changes, the function name or storage structure name where the dynamic slot associated with the changed node name is located automatically changes. For the convenience of distinction and description, in this embodiment, the dynamic slot set for the property table in the previous paragraph is referred to as the first dynamic slot, and the dynamic slot set for the XML text in this paragraph is referred to as the second dynamic slot.

[0265] Exemplarily, in the building class, set "Floor" in the function name (including the input parameter name of the function) "AddFloor(CFloor *pFloor)" of the floor node addition function as the second dynamic slot, and associate this dynamic slot with the node name "Floor" in the XML text. At this time, the function name becomes "Add{second dynamic slot}(C{second dynamic slot} *p{second dynamic slot})". When the developer changes the lower layer node of the building node in the XML text to "Room", the function name automatically becomes "AddRoom(CRoom *pRoom)", thus realizing the dynamic update of the lower layer node function.

[0266] The second alternative implementation is applicable to the user of the visual remote intelligent control system to update the data model. Specifically, after the reef data model is jointly constituted by the XML text, various types of node classes and their associated attribute tables in S160, the function names and storage variable names in any type of node class can be compared with the attribute names in the attribute table associated with the any type of node class, respectively, to automatically identify the same strings in the function names and attribute names, as well as the same strings in the storage variable names and attribute names, and set the identified strings as mutually associated dynamic slots.

[0267] Exemplarily, for the streetlight class, compare the function name under this class with the attribute name in the attribute table associated with this class. If it is identified that there is the same string "StreetlightHeight" in both, then set the places where this string appears in the function name and the attribute table as dynamic slots. Perform the same operation for all types of node classes, and at least one dynamic slot in each type of node class can be obtained.

[0268] Meanwhile, the node layer names in the XML text can be compared with the function names and storage structure names in any type of node class respectively, to automatically identify the same strings in the node layer names and function names, as well as the same strings in the node layer names and storage structures, and set the identified strings as mutually associated dynamic slots. For the convenience of distinction and description, the same strings identified for the attribute table in the previous paragraph are called the first strings, and the corresponding set dynamic slots are called the first dynamic slots. The same strings identified for the XML text in this paragraph are called the second strings, and the corresponding set dynamic slots are called the second dynamic slots (different from the first dynamic slots and second dynamic slots in the first alternative implementation).

[0269] Exemplarily, for the building class, compare the node layer name in the XML text with the function name (including the input parameter names of the function) in the building class. If it is identified that both include the same second string "Floor", then set the places where this string appears in the function name and the XML text as the second dynamic slots. Perform the same operation for all types of node classes, and at least one dynamic slot in each type of node class can be obtained.

[0270] Then, display each first dynamic slot and second dynamic slot as dynamic options for the user. The user can edit each dynamic option on the interface of the visual remote intelligent control system. For example, modify "StreetlightHeight" to "StreetlightType", and / or modify "Floor" to "Room", etc., to automatically update the content in each dynamic slot in the reef data model.

[0271] Of course, in the above two alternative implementation manners, dynamic slots may also be set only for the property table or the XML text, and only the dynamic update of the data model along with the property table or the XML text is realized, which all fall within the protection scope of this embodiment.

[0272] In summary, this embodiment provides a method for constructing an island reef data model for remote intelligent control and a remote intelligent control method based on this data model. The three-dimensional model data of the island reef is organized in a multi-level (indoors and outdoors, different spatial scales) and multi-granularity (objects of different sizes indoors and outdoors) manner, and an adapted data class is constructed for each type of node using the object-oriented class concept, realizing the modeling of single objects for the three-dimensional real-scene model, expanding the attribute information of the single model, and enabling remote intelligent control of the single object.

[0273] In particular, aiming at the problems of complex single-object modeling and a large number of single objects in the BIM (Building Information Modeling) model, this embodiment focuses on the characteristics of remote intelligent control, and only selects the controllable devices and the necessary nodes at all levels (island reefs, regions, buildings, etc.) for expressing the spatial positions of the controllable devices for modeling. Starting from the intelligent control attributes such as control positioning, control cost, and control effect, the key attributes in remote intelligent control are extracted for attribute extension, effectively controlling the modeling amount of the entire data model and reducing the data loading burden in the visualization of the remote intelligent system.

[0274] In addition, by constructing dynamic slots, the dynamic update of the entire data model and the remote intelligent control system can also be realized, without having to reconstruct a new data model every time an attribute or a node changes, improving the flexibility and stability of the entire data model and the remote control system.

[0275] Figure 9 The following is a schematic structural diagram of an electronic device provided for an embodiment of the present invention. As Figure 9 shown, the device includes a processor 60, a memory 61, an input device 62, and an output device 63; the number of processors 60 in the device may be one or more, Figure 9 and one processor 60 is taken as an example here; the processor 60, the memory 61, the input device 62, and the output device 63 in the device may be connected through a bus or other means, Figure 9 and connected through a bus is taken as an example here.

[0276] The memory 61, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the reef data model construction method for remote intelligent control in the embodiments of the present invention. The processor 60 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 61, that is, to implement the above-mentioned reef data model construction method for remote intelligent control, or the remote intelligent control method.

[0277] The memory 61 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 61 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 61 may further include a memory remotely provided relative to the processor 60, and these remote memories can be connected to the device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0278] The input device 62 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function control of the device. The output device 63 may include a display device such as a display screen.

[0279] The embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the reef data model construction method for remote intelligent control in any embodiment, or the remote intelligent control method.

[0280] The computer storage medium of the embodiments of the present invention 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, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having 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 this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.

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

[0282] The program code contained on a 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.

[0283] The computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the C language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone 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).

[0284] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing an island reef data model for remote intelligent control, characterized in that Including: Obtain the scene tree of a remote island reef, where the scene tree includes an island reef root node, area nodes, outdoor entity nodes, and indoor entity nodes; Convert the hierarchical structure of the scene tree into XML text, where the XML text includes a root node layer, area node layers, outdoor entity node layers, and indoor entity node layers; For different types of node layers, respectively construct different types of node classes; According to the island reef understanding requirements and remote intelligent control requirements, construct property tables for different types of nodes, and associate each property table with the corresponding type of node class; According to the property tables of each type of node, construct property setting functions, property query functions, and property storage variables in each type of node class; According to the layer structure in the XML text, construct addition functions, positioning functions, and remote intelligent control functions for the lower layer node classes in each type of node class, as well as a storage structure for the set of lower layer node class variables; The XML text, each type of node class, and its associated property table together constitute an island reef data model.

2. The method according to claim 1, wherein The step of, for different types of node layers, respectively constructing different types of node classes includes: For the island reef root node and area nodes, respectively construct an island reef set class, an island reef class, and an area class; For entity nodes, divide each entity node into a first node for direct remote intelligent control, a second node for indirect remote control, and a third node that affects remote control; For the first node, respectively construct different node classes according to different control methods; For the second node, respectively construct multi-level node classes that match the field of view according to different fields of view; For the third node, respectively construct different node classes according to different ways of affecting remote control.

3. The method according to claim 1, characterized in that, The step of, according to the island reef understanding requirements and remote intelligent control requirements, constructing property tables for different types of nodes includes: Extract basic properties for meeting the island reef understanding requirements from the description texts of each type of node; Extract properties for positioning control objects, calculating control costs, and reflecting control effects from the description texts of each type of node, and use them as the control properties of each type of node; The basic properties and the control properties together constitute the property tables of each type of node.

4. The method according to claim 3, characterized in that, The step of, extracting properties for positioning control objects, calculating control costs, and reflecting control effects from the description texts of each type of node, and using them as the control properties of each type of node includes: Extract the position and number properties of the node, and the properties related to the position and number of the controlled lower layer nodes in the node, from the description text of any type of node, and use them as the properties for positioning control objects of the any type of node; Extract the control trigger conditions of the controlled nodes affected by any type of node from the description text of the controlled nodes, and extract the properties of the any type of node for reflecting control effects from the control trigger conditions; Extract the cost calculation formula of the upper layer node from the description text of the upper layer node of any type of node, and extract the properties of the any type of node from the cost calculation formula, and use them as the properties of the any type of node for calculating control costs.

5. The method according to claim 1, characterized in that, After understanding the requirements based on the reefs and the requirements for remote intelligent control and constructing the attribute tables of different types of nodes, it further includes: setting flag bits in the attribute tables to indicate whether each attribute is controllable; Correspondingly, according to the attribute tables of various types of nodes, constructing attribute setting functions, attribute query functions, and attribute storage variables in each type of node class includes: traversing the attribute table of any type of node, automatically reading the target attributes with the flag bit set to controllable, and constructing the setting functions of the target attributes in the node class of the any type; Correspondingly, according to the layer structure in the XML text, constructing addition functions, positioning functions, and remote intelligent control functions for the lower layer node classes in each type of node class, and the storage structure of the lower layer node class variable set includes: for any type of node class, traversing the attribute table of the lower layer node class, automatically reading the target attributes with the flag bit set to controllable, and constructing the remote control functions for the target attributes in the node class of the any type; 6. The method according to claim 1, wherein After constructing the attribute setting functions, attribute query functions, and attribute storage variables in each type of node class according to the attribute tables of various types of nodes, it further includes: constructing the first dynamic slots for the attribute names in the function names and storage variable names constructed according to the attribute tables of various types of nodes, and associating each first dynamic slot with the corresponding attribute name in the attribute tables of various types of nodes; when any attribute name in the attribute table changes, the function name or storage variable name where the first dynamic slot associated with the any attribute name is located automatically changes; Correspondingly, after constructing the addition functions, positioning functions, and remote intelligent control functions for the lower layer node classes in each type of node class according to the layer structure in the XML text, and the storage structure of the lower layer node class variable set, it further includes: setting the second dynamic slots for the lower layer node names in the function names and storage structure names constructed according to the layer structure in the XML text, and associating each second dynamic slot with the lower layer node names of each type of node in the layer structure; when any lower layer node name of any layer in the XML text changes, the function name or storage structure name where the second dynamic slot associated with the changed node name is located automatically changes; 7. The method according to claim 1, characterized in that After jointly constructing the reef data model by the XML text, various types of node classes, and their associated attribute tables, it further includes: Comparing the function names and storage variable names in any type of node class with the attribute names in the attribute table associated with the any type of node class, automatically identifying the same first strings in the function names and attribute names, and the same first strings in the storage variable names and attribute names, and respectively setting each first string as the mutually associated first dynamic slot; Compare the node layer names in the XML text with the function names and storage structure names in any type of node class respectively, automatically identify the same second strings in the node layer names and function names, and the same second strings in the node layer names and storage structure names, and set each second string as a mutually associated second dynamic slot; Display each first dynamic slot and second dynamic slot as dynamic options for the user, and automatically update the content in each dynamic slot in the reef data model in response to the editing operations of each dynamic option.

8. A remote intelligent control method, characterized in that, Including: Obtain a reef data model of a remote reef, where the reef data model is constructed by using the method described in any one of claims 1-7; In response to the control requirements of any area, load the corresponding area class from the reef data model, and visually display the entities in the area class; In response to the positioning operation of any entity, run the contour acquisition function of the any entity, and display the contour of the any entity in the visualization interface; In response to the click operation on the contour, run the attribute query function of the any entity, and display the attributes of the any entity in the visualization interface; In response to the click or modification operation on the control attribute in the attributes, run the remote intelligent control function corresponding to the control attribute, and perform corresponding control on the any entity.

9. An electronic device, characterized in that, Including: One or more processors; A memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the reef data model construction method for remote intelligent control described in any one of claims 1-7, or the remote intelligent control method described in claim 8.

10. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the program is executed by a processor, it implements the reef data model construction method for remote intelligent control described in any one of claims 1-7, or the remote intelligent control method described in claim 8.

Citation Information

Patent Citations

  • Island data management method and system

    CN103049549A

  • Three-dimensional geographic data-oriented transmission and rendering method and system

    CN111858828A

  • Simulation modeling method and system based on scene tree

    CN113034665A

  • Dynamic data tree construction method based on xml template and electronic equipment

    CN114461855A

  • Markup language and object model for vector graphics

    US20040189667A1