Island reef data model construction method for remote intelligent control

By constructing an island and reef data model for remote intelligent control, the problem of the inability to accurately control individual equipment on remote islands and reefs in existing technologies has been solved, realizing multi-level, multi-granularity organization and remote intelligent control of three-dimensional models of remote islands and reefs.

CN120298607BActive Publication Date: 2025-11-04INST OF GEOGRAPHICAL SCI & NATURAL RESOURCE RES CAS
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing 3D reality models for smart cities cannot achieve precise control of individual devices. Monitoring and protection of the ecological environment of remote islands and reefs cannot be managed by traditional manual methods, and there is a lack of ability to extend the attributes of individual devices and remotely control them intelligently.

Method used

A data model of islands and reefs for remote intelligent control is constructed. By acquiring the scene tree and converting it into XML text, different types of node classes are built using object-oriented class concepts. The node attribute table is expanded, and attribute setting, querying, and control functions are constructed to realize the modeling of individual objects of the 3D real scene model.

Benefits of technology

It realizes multi-level and multi-granular organization of 3D models of remote islands and reefs, expands the attribute information of individual models, enables remote intelligent control of individual models, and meets the needs of remote intelligent control and visualization interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120298607B_ABST
    Figure CN120298607B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of island data model construction methods for remote intelligent control, comprising: obtaining the scene tree of far sea island reef;The hierarchical structure of scene tree is converted into XML text;For different types of node layer, and different types of node class are respectively constructed;According to island reef understanding demand and remote intelligent control demand, the attribute table of different types of node is constructed, and each attribute table is associated with the node class of corresponding type;According to attribute table, attribute setting function, attribute query function and attribute storage variable are constructed in each type of node class;According to XML text, the increase function of subordinate layer node class, positioning function and remote intelligent control function are constructed in each type of node class;By XML text, each type of node class and its associated attribute table, island data model is jointly constituted.This embodiment can realize single body modeling and control in three-dimensional real scene model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data modeling technology, and in particular to a method for constructing island and reef data models for remote intelligent control. Background Technology

[0002] Remote islands and reefs are far from the mainland, requiring long travel times for personnel; the environment is harsh and unsuitable for long-term habitation; land area is scarce, and management personnel are limited. These unique characteristics—small size, sparse population, and remote location—make it difficult to manage the ecological environment of remote islands and reefs using traditional manual methods. There is an urgent need to introduce intelligent control and Internet of Things (IoT) technologies to monitor in real time and remotely and automatically turn on or off intelligent devices such as irrigation valves or streetlights, achieving real-time monitoring and intelligent control of the island and reef's ecological environment.

[0003] Existing 3D reality models in smart cities are holistic and cannot achieve precise control over individual components. For example, turning streetlights on or off typically involves turning all streetlights in an administrative district of the city on or off, rather than precisely controlling the on / off state of a single streetlight or pinpointing the location of a specific tree. For instance, patent applications CN103824327A, which provides an integrated indoor and outdoor organization method for urban 3D scene data, and CN117158301A, which provides a remote management method system and computer storage medium for coral reefs, both fail to address the aforementioned problems. Summary of the Invention

[0004] This invention provides a method for constructing an island and reef data model for remote intelligent control, in order to solve the above-mentioned technical problems.

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

[0006] Obtain a scene tree of remote islands and reefs, wherein the scene tree includes an island / reef root node, a region node, an outdoor entity node, and an indoor entity node;

[0007] The hierarchical structure of the scene tree is converted into XML text, wherein the XML text includes a root node layer, a region node layer, an outdoor entity node layer, and an indoor entity node layer;

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

[0009] Based on the needs of understanding islands and reefs and the needs of remote intelligent control, attribute tables for different types of nodes are constructed, and each attribute table is associated with the corresponding node class.

[0010] Based on the attribute tables of each type of node, construct attribute setting functions, attribute query functions, and attribute storage variables in each type of node class;

[0011] Based on the layer structure in the XML text, construct the add 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 collection;

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

[0013] Secondly, embodiments of the present invention provide a remote intelligent control method, including:

[0014] Obtain an island and reef data model of a remote island or reef, wherein the island and reef data model is constructed using the method described in the above embodiments;

[0015] In response to the control requirements of any region, the corresponding region class is loaded from the island and reef data model, and the entities in the region class are visualized.

[0016] In response to a positioning operation on any entity, the contour acquisition function of the entity is run, and the contour of the entity is displayed in the visualization interface.

[0017] In response to a click operation on the outline, the attribute query function of any entity is executed, and the attributes of any entity are displayed on the visualization interface;

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

[0019] Thirdly, embodiments of the present invention also provide an electronic device, the electronic device comprising:

[0020] One or more processors;

[0021] Memory, used to store 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 and reef data model construction method or remote intelligent control method described in any embodiment.

[0023] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the island and reef data model construction method or the remote intelligent control method described in any embodiment.

[0024] In summary, the embodiments of the present invention provide a method for constructing an island and reef data model and a method for remote intelligent control. The method organizes the 3D model data of the island and reef in a multi-layered (indoor and outdoor, different spatial scales) and multi-granular (objects of different sizes indoor and outdoor) manner, and uses the object-oriented class concept to construct adaptive data classes for various nodes. This realizes the modeling of individual objects in the 3D real scene model, expands the attribute information of the individual model, and enables remote intelligent control of the individual objects. Attached Figure Description

[0025] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

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

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

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

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

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

[0031] Figure 6 This embodiment provides a schematic diagram of the positioning of a three-dimensional model entity;

[0032] Figure 7 This embodiment provides a schematic diagram of attribute querying for a three-dimensional model entity;

[0033] Figure 8 This embodiment provides a schematic diagram of remote intelligent control of a three-dimensional model entity;

[0034] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0036] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0037] In the description of this invention, it should also be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0038] This invention provides a method for constructing a data model of islands and reefs for remote intelligent control. To illustrate this method, a three-dimensional scene model of remote islands and reefs is introduced first. Generally, a three-dimensional scene includes spatial features within a certain range above and below the terrain surface. From the perspective of people's perception of the objective world, the content of three-dimensional scene data can be divided into two categories: one is feature entities, characterized by being discrete, homogeneous, and having well-defined spatial boundaries, which can be completely defined, such as streetlights and buildings; the other is fields, characterized by having smooth and continuous spatial changes, such as terrain surfaces. From the perspective of data storage, three-dimensional scene data can be further divided into three-dimensional model data, vector data, and terrain data, as detailed below:

[0039] Regarding 3D model data, this data is used to represent discretely distributed 3D entities in the objective world and is the most important component of a 3D scene. In the 3D scene of remote islands and reefs, objects such as points, lines, surfaces, and volumes are used to represent the surfaces of entity elements such as streetlights, harbors, and buildings on the islands and reefs in the objective world, and texture mapping is used. Because the 3D scene of remote islands and reefs is relatively small, the 3D scene model file data generated using 3DS Max (3D Studio Max, a 3D modeling, rendering, and production software) is not large. Therefore, the 3D scene model of remote islands and reefs is stored as 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. This 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 orthophotos and elevation data. This data is terrain data, which, after being published as a service, is recognized and parsed by the GIS system and can be loaded into the 3D scene.

[0042] Among them, vector data and terrain data have provided good solutions for the construction and use of two-dimensional spatial data models. In order to meet the real-time requirements of visualization and interactive query of three-dimensional scene models of remote islands and reefs, this embodiment specifically constructs an adapted data structure for the three-dimensional model data of remote islands and reefs. While meeting the needs of remote intelligent control and visualization interaction, it maintains a moderate amount of modeling to quickly build a visualization remote intelligent control system suitable for remote islands and reefs.

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

[0044] S110. Obtain the scene tree of remote islands and reefs, wherein the scene tree includes island and reef root nodes, region nodes, outdoor entity nodes and indoor entity nodes.

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

[0046] Among them, the island / 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] Region nodes are obtained by dividing a 3D scene of distant islands and reefs into several smaller sub-scene regions and processing them separately. Therefore, there can be region nodes under island / reef nodes. Region nodes have attributes such as name, location, and extent.

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

[0049] Entity nodes are the smallest object units in an island / reef 3D scene, used to represent actual objects in the scene. In addition to geometric attributes such as location and extent, they also include attribute information such as name, category, and material. Optionally, based on their specific location, entity nodes can be further subdivided into outdoor entity nodes and indoor entity nodes. Outdoor entity nodes include ports, streetlights, roads, vegetation, and buildings, while indoor entity nodes include water meters, electricity meters, and pipelines.

[0050] In particular, this embodiment is designed for island and reef data modeling in a remote intelligent control scenario. Therefore, only nodes and attributes related to remote intelligent control are included in the modeling scope to reduce the workload of 3D modeling and the data loading burden in visualization.

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

[0052] S120. Convert the hierarchical structure of the scene tree into XML text, wherein the XML text includes a root node layer, a region 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, it cannot be recognized and displayed by electronic devices, nor can it directly achieve remote intelligent control of the devices. To ensure the reusability and versatility of the 3D model data, this embodiment converts the hierarchical scene tree into XML (eXtensible Markup Language) text. The hierarchical relationships between nodes are defined through multi-level layers in the XML text. Specifically, the different types of nodes in the scene tree (island nodes, region nodes, outdoor entity nodes, and indoor entity nodes) correspond to different types of node layers in the XML text, including a root node layer, region node layer, outdoor entity node layer, and indoor entity node layer.

[0054] Optionally, taking the XML text of "Zhao Shudao" 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"> / / Region 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 entity node layer

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

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

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

[0065] < / layer>

[0066] < / LayerGroup>

[0067] < / layergroup> < / layerroot>

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

[0069] To effectively utilize the geometric and attribute information of the 3D model entities of remote islands and reefs, this embodiment adopts a multi-layered (indoor and outdoor, different spatial scales) and multi-granular (objects of different sizes indoor and outdoor) approach, using object-oriented class concepts to construct data structures for the 3D model entities of islands and reefs, thereby achieving a unified data model for the geometric and attribute information of the 3D model entities based on the data hierarchy of "island and reef - scene area - outdoor model entity - indoor model entity".

[0070] Optionally, after the electronic device obtains the XML text, it can read each level of 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 in order to meet the needs of remote intelligent control and visualization display.

[0071] In one specific implementation, three data classes can be constructed for the island / reef root node and the region node: island / reef set class, island / reef class, and region class.

[0072] For physical nodes, they can be divided into three types: nodes that can be directly remotely controlled, nodes that can be indirectly remotely controlled, and nodes that affect remote control. For ease of distinction and description, these three types of physical nodes will be referred to as the first node, the second node, and the third node, respectively. For example, the first node includes streetlights, water valves, electricity meters, and water meters (which can directly control the switching of streetlights and the opening of water valves); the second node includes buildings (which cannot be directly controlled, but are indirectly controlled by controlling the equipment inside the buildings); and the third node includes vegetation (the condition of the vegetation affects the control of water valves).

[0073] For the first node, different node classes can be constructed based on different control methods. For example, water valves, streetlights, and water / electricity meters have different control methods, so three different node classes can be constructed respectively.

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

[0075] For the third node, different node classes can be created based on the different ways in which they affect remote control. For example, trees and lawns have different effects on remotely controlled water valves, so two separate node classes can be created for trees and lawns.

[0076] For example, the final object-oriented class hierarchy for several key types of 3D island and reef model entities is as follows: Figure 4 As shown, the main types of entities include: CISlands (island clusters), CISlands (reef clusters), CBlock (area clusters), outdoor entities (CStreetlight, CHydrovalve, CTree, CBuliding), and indoor entities (CFloor, CRoom, water / electricity meters). In the diagram, 1:N represents a one-to-many relationship, and N:1 represents a many-to-one relationship. Due to space limitations, the water / electricity meter class is not included in this section. Figure 4 Although not shown in the example XML text in S120, the floor and room classes 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. Based on the needs of understanding islands and reefs and the needs of remote intelligent control, construct attribute tables for different types of nodes and associate each attribute table with the corresponding type of node class.

[0078] Existing technologies lack attribute extensions for individual nodes, making it impossible to view their status and perform remote control. Therefore, this embodiment constructs attribute tables for different types of nodes based on the needs for understanding islands and reefs and the requirements for remote intelligent control. The attributes in the lists include basic attributes and control attributes.

[0079] In one specific implementation, basic attributes for meeting the needs of understanding islands and reefs can be extracted from the descriptive text of various types of nodes through text crawling. Here, the needs for understanding islands and reefs refer to the entity attributes required by staff who have recently arrived on the island to understand the situation within the island, such as island / reef name, island / reef shape, area name, area shape, port name, streetlight height, etc.

[0080] Similarly, text crawling can be used to extract attributes for locating the controlled object, attributes for calculating the control cost, and attributes for reflecting the control effect from the description text of various types of nodes, and at least one of these attributes can be used as the control attribute of the node.

[0081] Optionally, for any type of node, the node's location and number attributes, as well as attributes related to the location and number of the controlled lower-level layer nodes, can be extracted from the node's description text and used as attributes for locating control objects for that type of node. For example, for a building node, the building's location and number can be used as attributes for locating control objects. Simultaneously, the building attribute "number of floors" related to the location of the lower-level water meter node (i.e., the floor where the water meter is located) should also be used as an attribute for locating control objects for the building node.

[0082] Simultaneously, for any type of node, the control trigger conditions of the controlled nodes affected by that type of node can be extracted from the description text of the controlled nodes, and the attributes reflecting the control effect of any type of node can be extracted from the control trigger conditions. This method is particularly suitable for determining the control attributes of the aforementioned third node, such as the type, height, and growth status description of vegetation, which are important factors in controlling outdoor water valves. The control trigger conditions of outdoor water valves include the irrigation cycle of which plants and the growth stage of the plants requiring separate irrigation, etc. These contents can be extracted from the control trigger conditions as attributes of the vegetation class reflecting the control effect.

[0083] Simultaneously, for any type of node, the cost calculation formula of the parent layer node can be extracted from its description text, and the attribute of that type of node can be extracted from the cost calculation formula as the attribute for calculating the control cost of that type of node. 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 irrigation cost calculation formula is needed. Therefore, for road nodes, the irrigation cost calculation formula can be extracted from the description text of the parent area node, and the road node's attributes, such as road length (this parameter determines the water pipe route length, thus affecting the control cost), can be extracted from the formula and used as the attribute for calculating the control cost of the road node.

[0084] Finally, the basic attributes and the three control attributes mentioned above together constitute the attribute table for each type of node. Through these methods, most of the needs for understanding and remote intelligent control of islands and reefs can be covered, providing rich attribute information for the remote intelligent control of remote reefs and islands. Table 1 exemplarily shows the attribute information of several key entities of interest, such as buildings, trees, harbor basins, roads, and streetlights, and their extended attributes:

[0085] Table 1 Key Entity Attribute Information for 3D Scenes of Remote Islands and Reefs

[0086] Serial Number Entity type Attribute information 1 building Number, year of construction, purpose of construction, construction materials, construction area, floor height, number of floors, earthquake resistance level 2 Trees Number, Tree Name, Planting Year, Family and Genus, Tree Height, Tree Description 3 Harbor Basin Number, length, width, water depth, maximum tonnage for berthing. 4 the way Number, Road Name, Year of Construction, Construction Materials, Length, Width 5 Streetlights Number, Altitude, Wind Resistance Rating

[0087] After the attribute table is constructed, it can be associated with external attribute tables based on the unique number of the node, thereby expanding the attribute information of the 3D model data. The key to expanding attribute information is to construct a matching table. The purpose of this matching table is to record and maintain the association between nodes and external attribute information. This relationship can be one-to-one or one-to-many, indicating that a node has one or more attribute information. For example, the field structure of a matching table is shown in Table 2.

[0088] Table 2. Matching of Relationships Between 3D Model Entities and External Attributes

[0089] Serial Number Field Name Field type Remark 1 No Plastic Surgery serial number 2 EntityNo character type Unique Identifier for 3D Model Entities 3 AttriTableName character type External attribute table name 4 AttriItemID character type Attribute item number in the attribute table

[0090] This external attribute information extension mode allows for the establishment of associations between nodes and external attribute tables without altering the original data organization and storage structure of nodes and attribute tables. This enables each node in the 3D island / reef scene to possess customized attribute description information. By maintaining the matching table and external attribute table, the attribute extension capability of the 3D scene model of remote islands and reefs can be realized. Island / reef managers can perform interactive queries within the 3D virtual environment of the islands and reefs, gaining access to the inherent attribute information of features on the islands and reefs in the real world without leaving their offices.

[0091] Optionally, in the attribute table of a certain type of node, flag bits can be set for each attribute to indicate whether the attribute is controllable. For example, a flag bit of 1 indicates that the attribute is controllable or adjustable; a flag bit of 0 indicates that the attribute is fixed and cannot be adjusted. This flag bit can easily identify controllable attributes or lower-level nodes in subsequent operations, improving the efficiency of data model construction.

[0092] S150. Based on the attribute tables of each type of node, construct attribute setting functions, attribute query functions, and attribute storage variables in each type of node class; based on the layer structure in the XML text, construct the add function, positioning function, and remote intelligent control function of the lower-level layer node class, as well as the storage structure of the lower-level layer node class variable set in each type of node class.

[0093] As mentioned above, different types of data classes have been constructed in S130. In this step, these data classes will be populated with functions, stored variables, and stored structures according to the attribute table and XML text mentioned above.

[0094] In one specific implementation, for the island / reef set class, which is at the top of the hierarchy and requires no name, number, or other attributes, and does not need to be associated with an attribute table, the steps of constructing attribute setting and query functions in the island / reef set class are omitted. The process proceeds directly to the next step: based on the layer structure, the addition function, location function, and remote intelligent control function for the lower-level layer node classes (island / reef classes) are constructed in the island / reef set class, along with the storage structure for the variable set of the lower-level layer node classes (island / reef classes). The addition function adds an island / reef class to the island / reef set class; the location function locates any island / reef class, such as retrieving the corresponding island / reef class by any name / number; and the remote intelligent control function for a certain type of node class refers to a function used to directly perform remote intelligent control on the current node class. Since island / reef classes cannot be directly remotely controlled, no intelligent control function for island / reef classes is constructed here. The storage structure for the island / reef class variable set is an array (vector), where each element stores an island / reef class variable. The final object-oriented class of the constructed island / reef set is described in VC++ 6.0 as follows:

[0095] class CIslands{ / / Class for collecting islands and reefs, class for managing islands and reefs

[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 its ID

[0101] private:

[0102] vector<CIsland*> m_IslandSet; / / Stores a set of islands and reefs

[0103] };

[0104] As can be seen, the island and reef set class constructed using the above method can maintain, call, and store the data of all island and reef classes, thus achieving effective data management.

[0105] For the island / reef class, the attribute table associated with the island / reef class includes the island / reef's name, number, and polygon outline. First, a query function (i.e., attribute query function) and a storage variable (i.e., attribute storage variable) for the current island / reef's name, number, and polygon outline are constructed within the island / reef class. The attribute query function queries a specific attribute of the island / reef class, and the attribute storage variable stores that attribute. Then, the attribute tables of the island / reef nodes are traversed, automatically reading attributes marked as controllable. Since island / reef nodes do not have controllable attributes, the attribute setting function for the attribute table is omitted in this class, and we proceed directly to the next step: based on the layer structure, add, locate, and remotely control functions for the lower-level layer node class (region class) are constructed within the island / reef class. The remaining details are similar to those for the island / reef set class. The final object-oriented class for the island / reef is as follows:

[0106] class CIsland{ / / Island / Reef class, manages the collection of island / reef scene regions.

[0107] public:

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

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

[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 its number

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

[0115] private:

[0116] string m_IslandCode; / / Stores the island / reef number

[0117] string m_IslandName; / / Stores the name of the island / reef

[0118] Polygon *m_pPolygon; / / Stores island / reef polygons

[0119] vector<CBlock*> m_BlockSet; / / Stores a set of island / reef scene regions

[0120] };

[0121] As can be seen, the island / reef class constructed using the above method can not only manage (including maintain, call, and store) the island / reef's own data, but also manage the island / reef scene area class, storing all scene areas divided on the island / reef. By giving the name or number of the island / reef, one can query the island / reef set class and obtain its contained scene areas, possessing all attributes and actions related to the island / reef hierarchy and remote intelligent control.

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

[0123] class CBlock{ / / Scene area class, manages 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 scene area number

[0128] Polygon* GetBlockPolygon(); / / Get the spatial extent of the scene region

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

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

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

[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 its number

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

[0136] void ControlStreetlightByCode(string strStreetlightCode); / / Controls a street light switch by its code.

[0137] void ControlAllStreetlight(); / / Controls the switching of all streetlights in this area.

[0138] void ControlStreetlightByCode(string strHydrovalveCode); / / Controls the switching of a water valve by its code.

[0139] void ControlAllHydrovalve(); / / Controls the switching of all water valves in this area.

[0140] private:

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

[0142] string m_BlockName; / / Name of the storage scene area

[0143] Polygon *m_pPolygon; / / Stores the polygons of the scene region.

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

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

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

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

[0148] };

[0149] The specific construction steps are similar to those of the island / reef class, with the following differences: First, the lower-level layer nodes of the region class are read from the XML text, resulting in nodes for buildings, trees, streetlights, and water valves. Then, the attribute tables of these nodes are traversed, automatically reading attributes marked as controllable. Buildings and trees do not have such controllable attributes, so location functions are constructed for them separately. Streetlights and water valves both have such controllable attributes (on / off state), so location functions and remote intelligent control functions for on / off states are constructed for them respectively. Finally, storage structures (storage arrays) are constructed for the sets of buildings, trees, streetlights, and water valves.

[0150] As can be seen, the region class constructed using the above method corresponds to the segmented scene areas on the islands and reefs. It can manage the 3D model entity classes within the scene area, mainly including street light, water valve, tree, and building classes. Through the region class, a specific street light or water valve within the region can be turned on / off, or all street lights or water valves within the region can be turned on / off. It can also query the buildings within the region and accurately locate each tree within the region, possessing all attributes and actions related to remote intelligent control within the region.

[0151] Furthermore, for the street light class, the above method can be used to construct the following object-oriented class:

[0152] class CStreetlight{ / / Streetlight class

[0153] public:

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

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

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

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

[0158] void SetStreetlightOn(); / / Sets the streetlights to be on.

[0159] void SetStreetlightOff(); / / Sets the streetlights to off.

[0160] void SetAntiwindGrade (string strGrade); / / Sets the wind resistance rating of streetlights.

[0161] int GetAntiwindGrade(); / / Get the wind resistance rating of the street light

[0162] private:

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

[0164] Point *m_pPoint; / / Stores the location of the street light point

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

[0166] string m_AntiwindGrade; / / Stores the wind resistance rating of the streetlights

[0167] };

[0168] The specific construction steps are similar to those of the region class, with the following differences: when traversing the attribute table of the street light, the controllable attributes read by the flag bits include street light height, on / off status and wind resistance level. Therefore, in addition to constructing the get function for these attributes, setting functions for these attributes are also constructed to set the specific value of the current attribute. At the same time, the street light node does not have a lower-level layer node in the XML text, so there is no need to construct functions for the lower-level layer node.

[0169] It can be seen that the street light class constructed by the above method can instantiate street light entities in the 3D model of islands and reefs. In addition to managing the attribute information of street lights, its behavior can also perform on or off operations and is controlled and managed by the region class.

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

[0171] class CHydrovalve{ / / Water valve class

[0172] public:

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

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

[0175] void SetStreetlightOn(); / / Sets the water valve to open.

[0176] void SetStreetlightOff(); / / Sets the water valve to off.

[0177] private:

[0178] string m_HydrovalveCode; / / Storage valve number

[0179] Point *m_pPoint; / / Stores the location of the water valve point

[0180] };

[0181] The specific construction steps are similar to those of the street lamp class. It can be seen that the water valve class constructed by the above method can instantiate water valve entities in the 3D model of the island and 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 region class.

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

[0183] class CTree{ / / Trees

[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 year the tree was planted

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

[0190] void SetTreeFamily(string strFamily); / / Set the family and genus of the tree.

[0191] string GetTreeFamily(); / / Get the family and genus of the tree.

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

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

[0194] private:

[0195] string m_TreeCode; / / Stores the tree number

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

[0197] Date m_TreePlantYear; / / Stores the year the tree was planted

[0198] string m_Treefamily; / / Stores the family and genus of trees.

[0199] float m_TreeHeight; / / Stores the height of the tree

[0200] Point *m_pPoint; / / Stores the tree point location

[0201] };

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

[0203] Furthermore, for building and interior entity classes, the above method can be used to construct the following object-oriented classes:

[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); / / Sets the year the building was constructed.

[0210] DateGetBuildingYear(); / / Get the year the building was constructed

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

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

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

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

[0215] void SetBuildingUse(string strUse); / / Set the building's purpose.

[0216] string GetBuildingUse(); / / Get the building's purpose.

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

[0218] private:

[0219] string m_BuildingCode; / / Stores the building number

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

[0221] vector< CFloor*> m_FloorSet; / / Stores building floors

[0222] Date m_BuildYear; / / Stores the year the building was constructed

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

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

[0225] string m_BuildingUse; / / Stores the building's purpose

[0226] };

[0227] class CFloor{ / / Floor class, manages floors and rooms

[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 rooms on each floor

[0234] };

[0235] class CRoom{ / / Room class, manages water 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 water meters

[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 and water meter classes do not have other complex functions, the "set electricity meter" and "set water meter" functions from the electricity meter and water meter classes are added to the room class, thus omitting the electricity meter and water meter classes themselves. This is also an optional implementation method.

[0248] As can be seen, the building class constructed using the above method can instantiate building entities in the 3D island / reef model. Besides managing the building's attribute information, it is primarily used to manage the water and electricity meters in each room within the building, obtaining water and electricity consumption data. As an outdoor 3D model entity, the building class is controlled and managed by the region class; while as an indoor 3D model entity, the building class mainly manages the floor and room classes, thereby obtaining water and electricity consumption data for each room.

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

[0250] After all the node classes of the above types have been constructed, the XML text, all node classes, and the attribute tables associated with each node class will be used together as the island and reef data model to provide a data foundation for the visualized remote intelligent control system for remote islands and reefs.

[0251] Based on the above data model Figure 5 This is a flowchart of a remote intelligent control method provided in this embodiment. (Combined with...) Figure 5 The method specifically includes:

[0252] S210. Obtain an island and reef data model of remote islands and reefs, wherein the island and reef data model is constructed using the method described in any of the above embodiments.

[0253] S220. In response to the control requirements of any region, load the corresponding region class from the island and reef data model, and visualize the entities in the region class.

[0254] In one specific implementation, based on the aforementioned island and reef data model, the three-dimensional scene model of the island and reef can be visualized in a 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 and 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 entity and display the contour of the entity in the visualization interface.

[0256] Due to the large number of entities within the area, to view a specific 3D model entity, you can locate it through a query. Alternatively, you can precisely locate the model entity based on its feature type and model number, and view its outline. Figure 6 As shown.

[0257] S240. In response to a click operation on the outline, 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, you can obtain the attribute information of the model entity. Figure 7 This displays the attribute information of the building's indoor electricity meter model.

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

[0260] For example, remote islands and reefs often face challenges in accessing electricity due to their unique geographical locations. To conserve electricity, streetlights on these islands and reefs need to be controlled by switching them on and off individually or in sections. Figure 8 The display shows the streetlights retrieved by region. You can control all the streetlights as a whole or select one or more streetlights for individual control.

[0261] Furthermore, in another specific implementation, after the aforementioned island and reef data model is constructed, different dynamic association slots can be set in the model script. When changes occur in the attribute table or XML document, it is not necessary to rebuild a new island and reef data model. Instead, the island and reef data model is automatically and dynamically updated through these association slots, improving the flexibility and stability of the entire remote control system. This method defaults to using the same name for all instances of the same node in the entire data model (whether it's a function name, variable name, (data) structure name, parameter name, or attribute name). Under this premise, depending on the operator performing the update, this embodiment provides the following two optional implementation methods:

[0262] The first optional implementation method is suitable for developers of visual remote intelligent control systems to update the data model. Specifically, in S150, after constructing attribute setting functions, attribute query functions, and attribute storage variables in the node classes of each type based on the attribute tables of each type of node, dynamic slots related to attribute names can be built in the constructed function names and storage variable names. Each dynamic slot is associated with the corresponding attribute name in the attribute table of each type of node; when any attribute name in the attribute table changes, the function name or storage variable name of the dynamic slot associated with that attribute name automatically changes.

[0263] For example, in the streetlight class, the `StreetlightHeight` property in the `SetStreetlightHeight` function of setting the streetlight height is set to a dynamic slot. This dynamic slot is then associated with the property name `StreetlightHeight` in the property table. The function name then 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 changes to `StreetlightType`, thus achieving dynamic updating of the property function.

[0264] Similarly, in S150, based on the layer structure in the XML text, after constructing the add function, location function, and remote intelligent control function of the lower-level layer node class in each type of node class, as well as the storage structure of the lower-level layer node class variable set, dynamic slots related to the lower-level layer node names can be set in the constructed function names and storage structure names. Each dynamic slot is associated with the lower-level layer node name of each type of node in the layer structure. When the lower-level layer node name of any layer in the XML text changes, the function name or storage structure name of the dynamic slot associated with the changed node name automatically changes. For ease of distinction and description, this embodiment refers to the dynamic slot set for the attribute table in the preceding paragraph as the first dynamic slot, and the dynamic slot set for the XML text in this paragraph as the second dynamic slot.

[0265] For example, in the building class, the `Floor` in the function name (including the function's input parameter names) `AddFloor(CFloor *pFloor)` for adding floor nodes is set as the second dynamic slot. This dynamic slot is then associated with the node name `Floor` in the XML text. The function name then becomes `Add{second dynamic slot}(C{second dynamic slot} *p{second dynamic slot})`. When the developer changes the lower-level layer node of the building node in the XML text to `Room`, the function name automatically changes to `AddRoom(CRoom *pRoom)`, thus achieving dynamic updates of the lower-level layer node function.

[0266] The second optional implementation is suitable for users of the visual remote intelligent control system to update the data model. Specifically, after the island and reef data model is constructed in S160 by the XML text, the node classes of various types and their associated attribute tables, the function names and stored variable names in any type of node class can be compared with the attribute names in the attribute tables associated with that type of node class. The system automatically identifies identical strings in the function names and attribute names, as well as identical strings in the stored variable names and attribute names, and sets the identified strings as mutually associated dynamic slots.

[0267] For example, for the streetlight class, the function names under this class are compared with the attribute names in the attribute table associated with this class. If the same string "StreetlightHeight" is found in both, then the string is set as a dynamic slot in both the function name and the attribute table. Performing the same operation on all types of node classes will result in at least one dynamic slot for each type of node class.

[0268] Simultaneously, 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, automatically identifying identical strings in the node layer names and function names, as well as identical strings in the node layer names and storage structures, and setting the identified strings as mutually related dynamic slots. For ease of distinction and description, the identical strings identified for the attribute table in the previous paragraph are called the first string, and the corresponding dynamic slot is called the first dynamic slot; the identical strings identified for the XML text in this paragraph are called the second string, and the corresponding dynamic slot is called the second dynamic slot (different from the first and second dynamic slots in the first optional embodiment).

[0269] For example, for the building class, comparing the node layer name in the XML text with the function name (including the function's input parameter names) in the building class, and identifying that both contain the same second string "Floor", then setting the place where this string appears in both the function name and the XML text as the second dynamic slot. Performing the same operation on all types of node classes will yield at least one dynamic slot for each type of node class.

[0270] Then, each of the first and second dynamic slots is displayed as user-facing dynamic options. Users can edit each dynamic option in the interface of the visual remote intelligent control system, such as changing StreetlightHeight to StreetlightType and / or Floor to Room, etc., automatically updating the content in each dynamic slot in the island and reef data model.

[0271] Of course, in the two optional implementations mentioned above, dynamic slots can also be set only for the attribute table or XML text, so that the data model can be dynamically updated with the attribute table or XML text. Both of these are within the protection scope of this embodiment.

[0272] In summary, this embodiment provides a method for constructing an island and reef data model for remote intelligent control, and a remote intelligent control method based on the data model. The method organizes the 3D model data of the island and reef in a multi-layered (indoor and outdoor, different spatial scales) and multi-granular (objects of different sizes indoor and outdoor) manner, and uses object-oriented class concepts to construct adaptive data classes for various nodes. This enables the modeling of individual objects in the 3D real-scene model, expands the attribute information of the individual models, and enables remote intelligent control of individual objects.

[0273] In particular, addressing the issue of complex and numerous individual unit models in BIM (Building Information Modeling), this embodiment focuses on the characteristics of remote intelligent control. It selects only controllable devices and essential nodes (islands, regions, buildings, etc.) for spatial representation of controllable devices for modeling. Furthermore, it extracts key attributes from remote intelligent control based on intelligent control attributes such as control positioning, control cost, and control effect, thereby expanding the attributes and effectively controlling the modeling workload of the entire data model. This also reduces the data loading burden in the visualization of the remote intelligent system.

[0274] Furthermore, by constructing dynamic slots, the entire data model and remote intelligent control system can be dynamically updated without having to rebuild a new data model every time an attribute or node changes, thus improving the flexibility and stability of the entire data model and remote control system.

[0275] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, such as... Figure 9 As 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 can be one or more. Figure 9 Taking a processor 60 as an example; the processor 60, memory 61, input device 62, and output device 63 in the device can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.

[0276] The memory 61, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the island and reef data model construction method for remote intelligent control in this embodiment of the 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, thereby realizing the aforementioned island and reef data model construction method for remote intelligent control, or the remote intelligent control method.

[0277] The memory 61 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, the memory 61 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, the memory 61 may further include memory remotely located relative to the processor 60, which can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

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

[0279] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the island and reef data model construction method or the remote intelligent control method of any embodiment.

[0280] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A 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 thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0281] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0282] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0283] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as C or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via 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 not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 and reef data model for remote intelligent control, characterized in that, include: Obtain a scene tree of remote islands and reefs, wherein the scene tree includes an island / reef root node, a region node, an outdoor entity node, and an indoor entity node; The hierarchical structure of the scene tree is converted into XML text, wherein the XML text includes a root node layer, a region node layer, an outdoor entity node layer, and an indoor entity node layer; For different types of node layers, different types of node classes are constructed respectively. Specifically, for island / reef root nodes and region nodes, island / reef set class, island / reef class, and region class are constructed respectively. For entity nodes, each entity node is divided into first nodes for direct remote intelligent control, second nodes for indirect remote control, and third nodes that affect remote control. For first nodes, different node classes are constructed according to different control methods. For second nodes, multi-level node classes matching the field of view are constructed according to different field of view ranges. For third nodes, different node classes are constructed according to different ways of affecting remote control. Extract the basic attributes used to meet the needs of understanding islands and reefs from the description text of each type of node; From the description text of each type of node, attributes used for locating controlled objects, calculating control costs, and reflecting control effects are extracted as control attributes for each type of node. Specifically, from the description text of any type of node, the node's position and number attributes, as well as attributes related to the position and number of the controlled lower-level layer nodes, are extracted as attributes for locating controlled objects for that type of node. From the description text of controlled nodes affected by any type of node, the control trigger conditions of the controlled nodes are extracted, and attributes reflecting control effects for that type of node are extracted from the control trigger conditions. From the description text of the parent layer node of any type of node, the cost calculation formula of the parent layer node is extracted, and attributes of that type of node are extracted from the cost calculation formula as attributes for calculating control costs for that type of node. Each type of node is composed of basic attributes and control attributes, and each attribute table is associated with the corresponding node class. Based on the attribute tables of each type of node, construct attribute setting functions, attribute query functions, and attribute storage variables in each type of node class; Based on the layer structure in the XML text, construct the add 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 collection; The XML text, the node classes of various types, and their associated attribute tables together constitute the island and reef data model.

2. The method according to claim 1, characterized in that, After the attribute table of each type of node is composed of each basic attribute and each control attribute, the method further includes: setting a flag bit in the attribute table to indicate whether each attribute is controllable. Accordingly, constructing attribute setting functions, attribute query functions, and attribute storage variables in the node classes of each type based on the attribute tables of each type of node includes: traversing the attribute table of any type of node, automatically reading the flag bit as a controllable target attribute, and constructing the setting function of the target attribute in the node class of any type of node; Accordingly, based on the layer structure in the XML text, constructing the add 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, includes: for any type of node class, traversing the attribute table of the lower layer node class, automatically reading the target attribute whose flag is controllable, and constructing a remote control function for the target attribute in the node class of any type.

3. The method according to claim 1, characterized in that, After constructing attribute setting functions, attribute query functions, and attribute storage variables in the node classes of each type based on the attribute tables of each type of node, the method further includes: constructing a first dynamic slot for attribute names in the function names and storage variable names constructed based on the attribute tables of each type of node, and associating each first dynamic slot with the corresponding attribute name in the attribute table of each type of node; when any attribute name in the attribute table changes, the function name or storage variable name of the first dynamic slot associated with that attribute name automatically changes. Accordingly, after constructing the add function, positioning function, and remote intelligent control function of the lower-level layer node class in each type of node class according to the layer structure in the XML text, as well as the storage structure of the lower-level layer node class variable set, the process includes: setting a second dynamic slot for the lower-level layer node name in each function name and storage structure name constructed according to the layer structure in the XML text, and associating each second dynamic slot with the lower-level layer node name of each type of node in the layer structure; when the lower-level layer node name of any layer in the XML text changes, the function name or storage structure name of the second dynamic slot associated with the changed node name automatically changes.

4. The method according to claim 1, characterized in that, After the island and reef data model is constructed from the XML text, node classes of various types, and their associated attribute tables, it also includes: The function name and storage variable name in any type of node class are compared with the attribute name in the attribute table associated with the node class of any type. The first string that is the same in the function name and attribute name, and the first string that is the same in the storage variable name and attribute name are automatically identified, and each first string is set as a first dynamic slot that is related to each other. The node layer names in the XML text are compared with the function names and storage structure names in any type of node class. The system automatically identifies the same second string in the node layer names and function names, as well as the same second string in the node layer names and storage structure names, and sets each second string as a mutually related second dynamic slot. Each of the first and second dynamic slots is displayed as a user-facing dynamic option, and the content of each dynamic slot in the island and reef data model is automatically updated in response to the editing operation of each dynamic option.

5. A remote intelligent control method, characterized in that, include: Obtain an island and reef data model of a remote island or reef, wherein the island and reef data model is constructed using the method described in any one of claims 1-4; In response to the control requirements of any region, the corresponding region class is loaded from the island and reef data model, and the entities in the region class are visualized. In response to a positioning operation on any entity, the contour acquisition function of the entity is run, and the contour of the entity is displayed in the visualization interface. In response to a click operation on the outline, the attribute query function of any entity is executed, and the attributes of any entity are displayed on the visualization interface; In response to a click or modification operation on the control attribute in the attribute, the remote intelligent control function corresponding to the control attribute is executed to perform corresponding control on any entity.

6. An electronic device, characterized in that, include: One or more processors; Memory, used to store 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 island and reef data model construction method for remote intelligent control as described in any one of claims 1-4, or the remote intelligent control method as described in claim 5.

7. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the island and reef data model construction method for remote intelligent control as described in any one of claims 1-4, or the remote intelligent control method as described in claim 5.

Citation Information

Patent Citations

  • Indoor and outdoor integrated organization method for urban three-dimensional scene data

    CN103824327A

  • Remote management method and system of coral island reef and computer storage medium

    CN117158301A

  • Simulation modeling method and system based on scene tree

    CN113034665A