CN113055235A - Tree-based equipment selection method, system and related equipment - Google Patents

Tree-based equipment selection method, system and related equipment Download PDF

Info

Publication number
CN113055235A
CN113055235A CN202110339049.XA CN202110339049A CN113055235A CN 113055235 A CN113055235 A CN 113055235A CN 202110339049 A CN202110339049 A CN 202110339049A CN 113055235 A CN113055235 A CN 113055235A
Authority
CN
China
Prior art keywords
tree
node
nodes
area
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202110339049.XA
Other languages
Chinese (zh)
Inventor
江天捷
刘能
曾富来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
He'an Technology Co ltd
Original Assignee
He'an Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by He'an Technology Co ltd filed Critical He'an Technology Co ltd
Priority to CN202110339049.XA priority Critical patent/CN113055235A/en
Publication of CN113055235A publication Critical patent/CN113055235A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention relates to the technical field of Internet of things, and provides a tree-based equipment selection method, a tree-based equipment selection device and related equipment, wherein the method is used for an equipment selection system, the equipment selection system comprises a user side and a server side, an interface of the user side comprises a structure tree area and a selected node area, and the method comprises the steps of displaying the structure tree in the structure tree area of the interface of the user side; selecting tree nodes from the tree nodes of the structure tree, determining a selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area; and submitting the node list from the selected node area to a server, selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment, and adding the target tree node to the instantiation selected equipment. The invention can meet the requirement of fine management, can enable the user to know the parameter information of the selected equipment, and can reduce the bandwidth and performance pressure of the server and the client.

Description

Tree-based equipment selection method, system and related equipment
Technical Field
The invention relates to the technical field of Internet of things, in particular to a tree-based equipment selection method, a tree-based equipment selection system and related equipment.
Background
The development of the internet of things currently enters a large-scale equipment integration stage at a city level, for example, the number of street lamps in a large city exceeds millions. In a city-level internet of things system, how to conveniently and intuitively manage mass equipment is a new challenge. In the internet of things system, various application scenarios need to select target equipment, such as task planning, upgrading, debugging and controlling. In the existing scheme, the method is realized by directly inquiring and selecting the equipment list. Part of systems are simply processed uniformly according to the types of the devices, and although the selection problem is relieved, users cannot clearly know the selected devices and the range, and the requirements of mass device selection cannot be met. And the efficiency is low, the performance pressure of the server and the client is large, and the increasingly refined management requirements cannot be met. Therefore, in the prior art, the user cannot know the selected device and the range of the device, and the bandwidth and performance pressure of the server and the client are large.
Disclosure of Invention
The embodiment of the invention provides a tree-based equipment selection method, which can meet the increasing fine management requirements, know the selected equipment and the selected range, and reduce the bandwidth and performance pressure of a server and a client.
In a first aspect, an embodiment of the present invention provides a tree-based device selection method, which is used for a device selection system, where the device selection system includes a user side and a server side, an interface of the user side includes a structure tree region and a selected node region, the selected tree node region includes nodes displaying and displaying selected different levels, and the method includes the following steps:
displaying a structure tree in the structure tree region of the user-side interface, wherein the structure tree comprises a plurality of tree levels, and the tree levels comprise tree nodes;
selecting tree nodes from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area;
submitting the node list from the selected node area to the server side;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment through the server, and adding the target equipment to the instantiation selected equipment;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment, wherein the step of adding the target equipment to instantiation seed selection equipment comprises the following steps:
selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment;
storing the target devices one by one;
and instantiating the stored target device into the selected device.
Preferably, the step of displaying the structure tree in the structure tree region of the user-side interface includes:
acquiring area information of different areas;
constructing a structure tree corresponding to each region on the interface of the user side according to the region information of the different regions;
and displaying the structure tree corresponding to each area in the structure tree area in the interface of the user side.
Preferably, the structure tree includes a plurality of tree nodes, the tree nodes include a selected state, and the node list includes a list identifier, a tree node name, and a tree node identifier.
Preferably, the step of selecting a tree node from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree node, and displaying the node list corresponding to the selected tree node in the selected node area includes:
establishing a mapping relation between the tree node identification and the list identification of the node list;
according to the tree node names, tree nodes are selected from all the tree nodes of the structure tree in the structure tree area;
and acquiring the node list of the selected tree node according to the mapping relation, displaying the node list in the selected node area, and modifying the selected state of all lower tree nodes of the selected tree node into an unselectable state.
Preferably, after the tree node selection is performed from all tree nodes of the structure tree in the structure tree region according to the tree node name, the method further includes the steps of:
judging whether all the subordinate tree nodes of the selected tree node contain the selected tree node or not according to the tree node identification;
and if the lower-level tree nodes contain the selected tree node, canceling the selection of the selected tree node in the lower-level tree nodes.
Preferably, the method further comprises the steps of:
removing the selected tree node from the node list while modifying the selected state of all the subordinate tree nodes of the selected tree node to a selectable state.
In a second aspect, an embodiment of the present invention further provides a system for selecting a device based on a tree, where the apparatus includes:
the display module is used for displaying a structural tree in the structural tree area of the interface of the user side, wherein the structural tree comprises a plurality of layers of tree hierarchies, and the tree hierarchies comprise tree nodes;
the selection module is used for selecting tree nodes from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area;
the submitting module is used for submitting the node list from the selected node area to the server side;
the instantiation module is used for selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment and adding the target equipment to instantiation selected equipment;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment, wherein the process of adding the target equipment to instantiation seed selection equipment comprises the following steps:
selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment;
storing the target devices one by one;
and instantiating the stored target device into the selected device.
Preferably, the display module includes:
the acquisition submodule is used for acquiring the regional information of different regions;
the construction submodule is used for constructing a structure tree corresponding to each region on the interface of the user side according to the region information of the different regions;
and the display sub-module is used for displaying the structure tree corresponding to each area in the structure tree area in the interface of the user side.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the tree-based device selection method provided by any of the embodiments when executing the computer program.
In a fourth aspect, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps in the tree-based device selection method provided by any of the embodiments.
In the embodiment of the present invention, a tree-based device selection method is provided, which is used for a device selection system, where the device selection system includes a user side and a server side, an interface of the user side includes a structure tree region and a selected node region, the selected tree node region includes nodes displaying and displaying selected different levels, a structure tree is displayed in the structure tree region of the interface of the user side, the structure tree includes multiple levels of tree levels, and the tree levels include tree nodes; selecting tree nodes from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area; and submitting the node list from the selected node area to the server, selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment, and adding the target equipment to instantiation selected equipment. According to the invention, the multilayer structure tree is built in the interface of the user side, and the multilayer structure tree is displayed in the structure tree area, so that a user can randomly select the structure tree corresponding to any area on the interface of the user side, select tree nodes, display the selected tree nodes in the selected node area, and simultaneously or regionally select the node list of the selected tree nodes, so that the user can know which equipment information is specifically corresponding to the selected tree nodes; and the node list of the selected tree node is submitted to the server, the target tree node is automatically selected from the structure tree as the target equipment through the server according to the selected tree node, and the parameter information of the target equipment does not need to be known in a mode of inquiring an equipment list, so that the requirement of fine management can be met, a user can know the equipment information of the selected equipment, and meanwhile, the bandwidth and performance pressure of the server and the client can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a tree-based device selection method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another tree-based device selection method provided by an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a tree-based device selection system according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another tree-based device selection system according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another tree-based device selection system according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another tree-based device selection system according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of another tree-based device selection system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this application and the description of the figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1, fig. 1 is a flowchart of a device selection method based on a tree according to an embodiment of the present invention, where the device selection method based on the tree is used in a device selection system, the device selection system includes a user side and a server side, and includes the following steps:
101. and displaying the structure tree in a structure tree area of the interface of the user side, wherein the structure tree comprises a plurality of layers of tree hierarchies, and the tree hierarchies comprise tree nodes.
In this embodiment, the above tree-based device selection method may be applied to a device selection system, where the device selection system includes a user side and a server side, and an interface of the user side includes a structure tree region and a selected node region, and the selected tree node region includes nodes displaying selected different levels. The structure tree region may be used to display and select tree nodes, tree hierarchies, and the like. The selected nodes area may be used to display selected tree nodes. Specifically, for the situation that the number of street lamps in a large city is too large, how to select a target device is required for street lamp management, at this time, a target device can be selected by the device selection system operated by the tree-based device selection method. The electronic device on which the tree-based device selection method operates may perform data transmission in a wired connection manner or a wireless connection manner. The Wireless connection may include, but is not limited to, a 3G/4G connection, a WiFi (Wireless-Fidelity) connection, a bluetooth connection, a wimax (worldwide Interoperability for Microwave access) connection, a Zigbee (low power local area network protocol), a uwb (ultra wideband) connection, and other Wireless connection methods now known or developed in the future.
The user terminal may include, but is not limited to, an electronic Device such as a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Computer, or a notebook Computer. The user and the user terminal can carry out man-machine interaction in a keyboard, a mouse, a remote controller, a touch panel or a voice control device and the like, and the user terminal comprises a display interface.
The above-mentioned structure tree may associate information of different levels, different types, etc. through different trunks, the structure tree may include a plurality of different levels, and the different levels may include a plurality of tree nodes, for example: the structure tree is an urban area a, the root node (first level) of the corresponding structure tree can be an area a, the second level can be a loop box, the third level is a loop included by the loop box, and the fourth level is a lamp post, a street lamp, a camera, an LED screen and the like included by the loop. Corresponding structure trees can be constructed for different regions respectively. The construction of the multi-layer structure tree can be realized through a program.
102. And selecting tree nodes from the tree nodes of the structure tree, determining a selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area.
The user can randomly select any tree node on the interface of the user side, and the selected tree node is used as the selected tree node. Meanwhile, a node list corresponding to the selected tree node can be mapped on an interface of the user side, and the parameter information of the selected tree node can be displayed in the node list. And after the selected tree node is obtained, the information of the selected tree node is automatically added into the node list. Specifically, the tree nodes may include, but are not limited to, tree node identification, tree node type, selected state of the tree node, and the like. The mapping relationship between each tree node in the structure tree and the node list can be constructed in advance, and after the selected tree node is selected, the information of the selected tree node can be mapped into the node list according to the mapping relationship.
103. And submitting the node list from the selected node area to a server side.
104. And selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment through the server, and adding the target equipment into the instantiation selected equipment.
Wherein a communication link is established between the user side and the server side. The node list can be submitted to a server side through the communication link, and data analysis processing can be carried out on the server side according to the information of the selected tree nodes in the node list.
The server side comprises a device selection model, and the model can comprise selection configuration, selected tree nodes and instantiation selected devices. The selection configuration may include a configuration identification, a target device type. The selected tree node comprises a tree node identification and a tree node type. Instantiating the selected device may include device identification including a selection tree node identification. After receiving the selected tree node submitted by the client, the server can automatically query all the tree nodes matched with the selected tree node from the structure tree according to the selected tree node, take the selected tree node as a target tree node, namely target equipment, and add the target equipment to the instantiated selected equipment. The target device may be a controller for controlling a street lamp switch, and the target device type selected for configuration may be implemented by database configuration or program coding.
In the embodiment of the invention, the tree-based equipment selection method is used for an equipment selection system, the equipment selection system comprises a user terminal and a server terminal, an interface of the user terminal comprises a structure tree region and a selected node region, the selected tree node region comprises nodes for displaying and displaying selected different hierarchies, and a structure tree is displayed through the structure tree region of the interface of the user terminal, the structure tree comprises a plurality of layers of tree hierarchies, and the tree hierarchies comprise tree nodes; selecting tree nodes from the tree nodes of the structure tree, determining a selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area; submitting the node list from the selected node area to a server, selecting a target tree node corresponding to the selected tree node from a structure tree as target equipment through the server, and adding the target equipment to instantiation selection equipment, wherein specifically, the process of selecting the target tree node corresponding to the selected tree node from the structure tree as the target equipment and adding the target equipment to the instantiation selection equipment comprises the following steps: selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment; storing the target devices one by one; and instantiating the stored target device into the selected device.
According to the invention, the multilayer structure tree is built in the interface of the user side, and the multilayer structure tree is displayed in the structure tree area, so that a user can randomly select the structure tree corresponding to any area on the interface of the user side, select tree nodes, display the selected tree nodes in the selected node area, and simultaneously or regionally select the node list of the selected tree nodes, so that the user can know which equipment information is specifically corresponding to the selected tree nodes; and the node list of the selected tree node is submitted to the server, the target tree node is automatically selected from the structure tree as the target equipment through the server according to the selected tree node, and the parameter information of the target equipment does not need to be known in a mode of inquiring an equipment list, so that the requirement of fine management can be met, a user can know the equipment information of the selected equipment, and meanwhile, the bandwidth and performance pressure of the server and the client can be reduced.
As shown in fig. 2, fig. 2 is a flowchart of a specific implementation of another tree-based device selection method according to an embodiment of the present invention, which specifically includes the following steps:
201. and displaying the structure tree in a structure tree area of the interface of the user side, wherein the structure tree comprises a plurality of layers of tree hierarchies, and the tree hierarchies comprise tree nodes.
The tree structure may include a plurality of tree levels, each tree level may include at least one tree node, the data sources of the tree nodes of the same tree level may be the same, and the tree nodes may include a selected state and a tree node type. The selected state can represent whether a user selects a tree node or not, and the selected state can be selected when the tree node is selected. The multi-layer structure tree may be a structure tree applied to different scenes, and therefore, types of the corresponding tree nodes in each hierarchy may also be different, and the types may include execution, total control, hierarchical control, acquisition devices, display devices, and the like.
Specifically, step 201 includes:
area information of different areas is acquired.
When the method is applied to a street lamp control scene, the area information of the different areas may include position information, area size information, street lamp number information, street lamp control end information, and the like.
And constructing a structure tree corresponding to each region on the interface of the user side according to the region information of different regions.
After the region information is obtained, classification can be performed according to the region information, and then a structure tree corresponding to the region is constructed according to the classified region information. Each structure tree may include a structure tree name. The user can select the tree nodes of the structure tree according to the names of the structure trees.
And displaying the structure tree region corresponding to each region in the interface of the user side.
The structure tree corresponding to each area can be displayed in the structure tree area of the interface of the user side for the user to select.
202. And establishing a mapping relation between the tree node identification and the list identification of the node list.
The node list comprises list identification, tree node names and tree node identification. The mapping relationship between the tree node identifier and the list identifier of the node list may be established in advance, for example: and establishing a mapping relation between the tree node identifications a, b, c, d and e and the list identification h.
203. And selecting tree nodes from all the tree nodes of the structure tree in the structure tree area according to the tree node names.
The user can select the tree node from the interface of the user side according to the name of the tree node in the selected structure tree, namely, the selected tree node is selected.
204. And mapping the data of the selected tree node into the node list according to the mapping relation, and modifying the selected state of all lower tree nodes of the selected tree node into an unselected state.
After the mapping relation is established, parameter information and the like of the selected tree nodes can be mapped into the node list according to the mapping relation, and the selected states of all lower-level tree nodes of the selected tree nodes are modified into the unselected states, so that the same tree nodes are prevented from being selected, and repeated equipment is contained when the target equipment is searched.
205. And submitting the node list from the selected node area to a server, selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment, and adding the target equipment to the instantiation selected equipment.
Optionally, after the step 203, the method further includes the steps of:
and judging whether all subordinate tree nodes of the selected tree node contain the selected tree node or not according to the tree node identification.
The same tree nodes can be included in the upper and lower levels of the same structure tree, and the identifiers of all lower-level tree nodes of the selected tree nodes can be inquired to judge whether tree nodes which are consistent with the tree node identifiers of the selected tree nodes exist.
And if the lower-level tree nodes contain the selected tree nodes, canceling the selection of the selected tree nodes in the lower-level tree nodes.
And if the lower level tree nodes contain the selected tree nodes, the selected tree nodes in the lower level tree nodes are deselected, and the selected states of all the lower level tree nodes are selected as the unselected states. Therefore, the server side can be prevented from finding the same target equipment, resource waste of the server side is avoided, and pressure of the server side is reduced.
Optionally, the method may further comprise the steps of:
and removing the selected tree node from the node list, and modifying the selected state of all lower-level tree nodes of the selected tree node into a selectable state.
After the target device is inquired, the selected tree node in the node list can be deleted, and the node list is emptied for the next device selection. Meanwhile, the selected state of all subordinate tree nodes of the selected tree node is modified into a selectable state, so that the next selection is facilitated.
In the embodiment of the invention, by constructing the multilayer structure tree in the interface, a user can randomly select the selected tree node on any structure tree on the interface of the user side and can add the selected tree node into the node list. In the node list, the user can know the information of the selected tree node; and the node list is submitted to the server side, the server side automatically selects the target equipment from the structure tree according to the selected tree node, and parameter information of the target equipment does not need to be known in a mode of inquiring an equipment list. Therefore, the requirement of fine management can be met, the user can know the parameter information of the selected equipment, and meanwhile, the bandwidth and performance pressure of the server and the client can be reduced.
As shown in fig. 3, fig. 3 is a schematic structural diagram of a tree-based device selection system according to an embodiment of the present invention, where the tree-based device selection system is used in a device selection system, the device selection system includes a user side and a server side, and the tree-based device selection system 300 includes:
the display module 301 is configured to display a structure tree in a structure tree region of an interface of a user side, where the structure tree includes multiple tree levels, and each tree level includes tree nodes;
a selecting module 302, configured to select a tree node from tree nodes of the structure tree, determine a selected node area, select a node list of the selected tree node, and display the node list corresponding to the selected tree node in the selected node area;
a submitting module 303, configured to submit the node list from the selected node area to the server;
an instantiation module 304, configured to select, by the server, a target tree node corresponding to the selected tree node from the structure tree as a target device, and add the target device to an instantiation selected device; selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment, wherein the process of adding the target equipment to instantiation seed selection equipment comprises the following steps: selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment; storing the target devices one by one; and instantiating the stored target device into the selected device.
Optionally, as shown in fig. 4, fig. 4 is a schematic structural diagram of another tree-based device selection system 300a provided in the embodiment of the present invention, and the display module 301 includes:
an obtaining sub-module 3011, configured to obtain region information of different regions;
the constructing submodule 3012 is configured to construct, on the interface of the user side, a structure tree corresponding to each region according to the region information of the different regions;
and the display sub-module 3013 is configured to display the structure tree corresponding to each region in the structure tree region in the interface of the user side.
Optionally, the structure tree includes a plurality of tree nodes, the tree nodes include selected states, and the node list includes a list identifier, a tree node name, and a tree node identifier.
Optionally, as shown in fig. 5, fig. 5 is a schematic structural diagram of another tree-based device selection system 300b provided in the embodiment of the present invention, where the selecting module 302 includes:
a building submodule 3021, configured to build a mapping relationship between a tree node identifier and a list identifier of a node list;
a selecting submodule 3022 configured to select a tree node from all tree nodes of the structure tree in the structure tree region according to the tree node name;
the mapping submodule 3023 is configured to obtain a node list of the selected tree node according to the mapping relationship, display the node list in the selected node area, and modify the selected state of all subordinate tree nodes of the selected tree node into an unselected state.
Optionally, as shown in fig. 6, fig. 6 is a schematic structural diagram of another tree-based device selection system 300c provided in the embodiment of the present invention, and the selecting module 302 further includes:
the judging submodule 3024 is configured to judge whether all subordinate tree nodes of the selected tree node include the selected tree node according to the tree node identifier;
the canceling submodule 3025 is configured to, if the lower level tree node includes the selected tree node, cancel the selected tree node in the lower level tree node.
Optionally, as shown in fig. 7, fig. 7 is a schematic structural diagram of another tree-based device selection system 300d provided in the embodiment of the present invention, and the apparatus 300 further includes:
a deleting module 305, configured to remove the selected tree node from the node list, and modify the selected state of all subordinate tree nodes of the selected tree node to a selectable state.
The tree-based device selection system provided by the embodiment of the invention can realize each implementation mode in the tree-based device selection method embodiment and corresponding beneficial effects, and is not repeated here to avoid repetition.
As shown in fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 800 includes: a processor 801, a memory 802, a network interface 803 and a computer program stored on the memory 802 and operable on the processor 801, the processor 801 implementing the steps in the tree-based device selection method provided by the embodiments when executing the computer program.
Specifically, the above tree-based device selection method is used in a device selection system, where the device selection system includes a user side and a server side, and the processor 801 is configured to execute the following steps:
displaying a structure tree in a structure tree area of an interface of a user side, wherein the structure tree comprises a plurality of tree levels, and the tree levels comprise tree nodes;
selecting tree nodes from the tree nodes of the structure tree, determining a selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area;
and submitting the node list from the selected node area to a server, selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment, and adding the target equipment to the instantiation selected equipment.
Optionally, the processor 801 displays the structure tree in a structure tree region of the interface at the user end, where the structure tree includes a plurality of tree levels, and the step of the tree level including the tree node includes:
acquiring area information of different areas;
building a structure tree corresponding to each region on an interface of a user side according to region information of different regions;
and displaying the structure tree region corresponding to each region in the interface of the user side.
Optionally, the structure tree in the steps executed by the processor 801 includes a plurality of tree nodes, the tree nodes include the selected state, and the node list includes a list identifier, a tree node name, and a tree node identifier.
Optionally, the step of the processor 801 selecting a tree node from tree nodes of the structure tree, determining a selected node area, selecting a node list of the selected tree node, and displaying the node list corresponding to the selected tree node in the selected node area includes:
establishing a mapping relation between the tree node identification and the list identification of the node list;
according to the tree node name, tree nodes are selected from all tree nodes of the structure tree in the structure tree area;
and acquiring a node list of the selected tree node according to the mapping relation, displaying the node list in the selected node area, and modifying the selected state of all subordinate tree nodes of the selected tree node into an unselected state.
Optionally, after performing a step of selecting tree nodes from all tree nodes of the structure tree in the structure tree region according to the tree node name, the processor 801 is further configured to:
judging whether all subordinate tree nodes of the selected tree node contain the selected tree node or not according to the tree node identification;
and if the lower-level tree nodes contain the selected tree nodes, canceling the selection of the selected tree nodes in the lower-level tree nodes.
Optionally, the processor 801 is further configured to perform removing the selected tree node from the node list, and modify the selected state of all subordinate tree nodes of the selected tree node to a selectable state.
The electronic device 800 provided in the embodiment of the present invention can implement each implementation manner in the above-mentioned embodiment of the tree-based device selection method, and has corresponding beneficial effects, and for avoiding repetition, details are not described here again.
It is noted that 801 and 803 with components are shown, but it is understood that not all of the shown components are required and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the electronic device 800 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The memory 802 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 802 may be an internal storage unit of the electronic device 800, such as a hard disk or a memory of the electronic device 800. In other embodiments, the memory 802 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the electronic device 800. Of course, the memory 802 may also include both internal and external memory units of the electronic device 800. In this embodiment, the memory 802 is generally used for storing an operating system and various types of application software installed in the electronic device 800, such as program codes of a tree-based device selection method. In addition, the memory 802 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 801 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 801 is generally configured to control the overall operation of the electronic device 800. In this embodiment, the processor 801 is configured to execute program code stored in the memory 802 or to process data, such as program code that executes a tree-based device selection method.
The network interface 803 may include a wireless network interface or a wired network interface, and the network interface 803 is generally used to establish a communication connection between the electronic device 800 and other electronic devices.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by the processor 801, the computer program implements each process in the tree-based device selection method provided in the embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes in the method for selecting a device based on a tree according to the embodiments may be implemented by a computer program, which is stored in a computer-readable storage medium and can include processes such as the embodiments of the methods when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A device selection method based on a tree is used for a device selection system, the device selection system comprises a user terminal and a server terminal, and is characterized in that an interface of the user terminal comprises a structure tree area and a selected node area, the selected tree node area comprises nodes displaying and displaying selected different hierarchies, and the method comprises the following steps:
displaying a structure tree in the structure tree region of the user-side interface, wherein the structure tree comprises a plurality of tree levels, and the tree levels comprise tree nodes;
selecting tree nodes from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area;
submitting the node list from the selected node area to the server side;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment through the server, and adding the target equipment to the instantiation selected equipment;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment, wherein the step of adding the target equipment to instantiation seed selection equipment comprises the following steps:
selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment;
storing the target devices one by one;
and instantiating the stored target device into the selected device.
2. The tree-based device selection method of claim 1, wherein the step of displaying the structure tree in the structure tree region of the user-side interface comprises:
acquiring area information of different areas;
constructing a structure tree corresponding to each region on the interface of the user side according to the region information of the different regions;
and displaying the structure tree corresponding to each area in the structure tree area in the interface of the user side.
3. The tree-based device selection method of claim 2, wherein the structure tree includes a plurality of tree nodes, the tree nodes including the selected state, the node list including a list identification, a tree node name, and a tree node identification.
4. The tree-based device selection method of claim 3, wherein the step of performing tree node selection from the tree nodes of the structure tree, determining the selected node area, and selecting a node list of the selected tree node, and displaying the node list corresponding to the selected tree node in the selected node area comprises:
establishing a mapping relation between the tree node identification and the list identification of the node list;
according to the tree node names, tree nodes are selected from all the tree nodes of the structure tree in the structure tree area;
and acquiring the node list of the selected tree node according to the mapping relation, displaying the node list in the selected node area, and modifying the selected state of all lower tree nodes of the selected tree node into an unselectable state.
5. The tree-based device selection method of claim 4, wherein after performing tree node selection from all tree nodes of the structure tree in the structure tree region according to the tree node name, further comprising the steps of:
judging whether all the subordinate tree nodes of the selected tree node contain the selected tree node or not according to the tree node identification;
and if the lower-level tree nodes contain the selected tree node, canceling the selection of the selected tree node in the lower-level tree nodes.
6. The tree-based device selection method of claim 4, wherein the method further comprises the steps of:
removing the selected tree node from the node list while modifying the selected state of all the subordinate tree nodes of the selected tree node to a selectable state.
7. A tree-based device selection system, the apparatus comprising:
the display module is used for displaying a structural tree in the structural tree area of the interface of the user side, wherein the structural tree comprises a plurality of layers of tree hierarchies, and the tree hierarchies comprise tree nodes;
the selection module is used for selecting tree nodes from the tree nodes of the structure tree, determining the selected node area, selecting a node list of the selected tree nodes, and displaying the node list corresponding to the selected tree nodes in the selected node area;
the submitting module is used for submitting the node list from the selected node area to the server side;
the instantiation module is used for selecting a target tree node corresponding to the selected tree node from the structure tree through the server as target equipment and adding the target equipment to instantiation selected equipment;
selecting a target tree node corresponding to the selected tree node from the structure tree as target equipment, wherein the process of adding the target equipment to instantiation seed selection equipment comprises the following steps:
selecting the selected tree node target and all subordinate targets thereof from the structure tree as target equipment;
storing the target devices one by one;
and instantiating the stored target device into the selected device.
8. The tree-based device selection system of claim 7, wherein the display module comprises:
the acquisition submodule is used for acquiring the regional information of different regions;
the construction submodule is used for constructing a structure tree corresponding to each region on the interface of the user side according to the region information of the different regions;
and the display sub-module is used for displaying the structure tree corresponding to each area in the structure tree area in the interface of the user side.
9. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the tree-based device selection method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the tree-based device selection method according to any one of claims 1 to 6.
CN202110339049.XA 2021-03-30 2021-03-30 Tree-based equipment selection method, system and related equipment Withdrawn CN113055235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110339049.XA CN113055235A (en) 2021-03-30 2021-03-30 Tree-based equipment selection method, system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110339049.XA CN113055235A (en) 2021-03-30 2021-03-30 Tree-based equipment selection method, system and related equipment

Publications (1)

Publication Number Publication Date
CN113055235A true CN113055235A (en) 2021-06-29

Family

ID=76517026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110339049.XA Withdrawn CN113055235A (en) 2021-03-30 2021-03-30 Tree-based equipment selection method, system and related equipment

Country Status (1)

Country Link
CN (1) CN113055235A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1209208A (en) * 1995-12-22 1999-02-24 英特尔公司 Method and apparatus for managing computer network
CN1929393A (en) * 2005-09-07 2007-03-14 中兴通讯股份有限公司 Tri-state tree representing and location method of network element object in network optimization system
CN101060433A (en) * 2006-04-17 2007-10-24 佳能株式会社 Management system and control method therefor
US20080291848A1 (en) * 2007-05-23 2008-11-27 Brother Kogyo Kabushiki Kaisha Information distribution system, terminal apparatus used in same system and recording medium on which is recorded a program, as well as information processing method
CN102811300A (en) * 2011-06-02 2012-12-05 佳能株式会社 Information processing apparatus and display control method
WO2012165430A1 (en) * 2011-06-01 2012-12-06 株式会社コナミデジタルエンタテインメント Selection device, selection method, non-transitory storage medium, and program
CN104412215A (en) * 2012-07-12 2015-03-11 日立空调·家用电器株式会社 Machine management device
CN106034059A (en) * 2015-03-19 2016-10-19 北大方正集团有限公司 Network transmission method and device of tree-structure data
CN106998257A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 System of selection and resource management system based on tree
CN109040690A (en) * 2018-08-27 2018-12-18 北京旷视科技有限公司 Management method, device and the electronic equipment of video camera distribution
CN111459972A (en) * 2020-04-07 2020-07-28 上海熙菱信息技术有限公司 Big data equipment selection interaction method and system
US20200363912A1 (en) * 2019-05-16 2020-11-19 Microsoft Technology Licensing, Llc Scoped view of file tree
CN112379641A (en) * 2020-10-09 2021-02-19 爱普(福建)科技有限公司 Process IO point selection and association method, device, equipment and medium
CN112507676A (en) * 2020-12-02 2021-03-16 新奥数能科技有限公司 Energy report generation method and device, electronic equipment and computer readable medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1209208A (en) * 1995-12-22 1999-02-24 英特尔公司 Method and apparatus for managing computer network
CN1929393A (en) * 2005-09-07 2007-03-14 中兴通讯股份有限公司 Tri-state tree representing and location method of network element object in network optimization system
CN101060433A (en) * 2006-04-17 2007-10-24 佳能株式会社 Management system and control method therefor
US20080291848A1 (en) * 2007-05-23 2008-11-27 Brother Kogyo Kabushiki Kaisha Information distribution system, terminal apparatus used in same system and recording medium on which is recorded a program, as well as information processing method
WO2012165430A1 (en) * 2011-06-01 2012-12-06 株式会社コナミデジタルエンタテインメント Selection device, selection method, non-transitory storage medium, and program
CN102811300A (en) * 2011-06-02 2012-12-05 佳能株式会社 Information processing apparatus and display control method
CN104412215A (en) * 2012-07-12 2015-03-11 日立空调·家用电器株式会社 Machine management device
CN106034059A (en) * 2015-03-19 2016-10-19 北大方正集团有限公司 Network transmission method and device of tree-structure data
CN106998257A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 System of selection and resource management system based on tree
CN109040690A (en) * 2018-08-27 2018-12-18 北京旷视科技有限公司 Management method, device and the electronic equipment of video camera distribution
US20200363912A1 (en) * 2019-05-16 2020-11-19 Microsoft Technology Licensing, Llc Scoped view of file tree
CN111459972A (en) * 2020-04-07 2020-07-28 上海熙菱信息技术有限公司 Big data equipment selection interaction method and system
CN112379641A (en) * 2020-10-09 2021-02-19 爱普(福建)科技有限公司 Process IO point selection and association method, device, equipment and medium
CN112507676A (en) * 2020-12-02 2021-03-16 新奥数能科技有限公司 Energy report generation method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN112764916B (en) Data acquisition method and device
KR101779387B1 (en) Multi-round session interaction method and system, and computer device
CN111858820B (en) Land property identification method and device, electronic equipment and storage medium
CN109819179A (en) A kind of video clipping method and device
CN110309316B (en) Method and device for determining knowledge graph vector, terminal equipment and medium
CN109408699B (en) Method for realizing rapid retrieval of tree nodes by synchronous cache zTree
CN111708641B (en) Memory management method, device, equipment and computer readable storage medium
CN112118551B (en) Equipment risk identification method and related equipment
CN109905293A (en) A kind of terminal device recognition methods, system and storage medium
CN110992937B (en) Language off-line identification method, terminal and readable storage medium
CN114791846B (en) Method for realizing observability aiming at cloud-originated chaos engineering experiment
CN109213493A (en) Container dispositions method, special resource management terminal and readable storage medium storing program for executing
CN110515896A (en) Model resource management method, model file production method, device and system
CN105468161A (en) Instruction execution method and device
CN111881930A (en) Thermodynamic diagram generation method and device, storage medium and equipment
CN109377406A (en) Electronic device promotes the building Methods of electric load forecasting and storage medium returned based on gradient
CN104361040A (en) Method and device for customized query
CN116011322A (en) Urban information display method, device, equipment and medium based on digital twinning
CN112558968B (en) Method, device, equipment and storage medium for generating resource tree view
CN114138246A (en) Topology automatic generation method and device, computing equipment and storage medium
CN112783898A (en) Method and device for constructing special-shaped structure tree, electronic equipment and storage medium
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN113055235A (en) Tree-based equipment selection method, system and related equipment
CN116227566A (en) Calculation graph visualization method, device, equipment and medium applied to AI chip
CN109213782A (en) Configuration, display methods, device and the communication equipment of search interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210629

WW01 Invention patent application withdrawn after publication