Architecture display method and system based on network simulation platform tree structure model topology

By obtaining and generating a hierarchical structure tree, the problem of the inability to fully display the topology structure in the network simulation platform is solved, and the user experience is improved.

CN120658615APending Publication Date: 2025-09-16THE FIRST PEOPLES HOSPITAL OF FOSHAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510627750.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the network simulation platform, due to the limitation of the size of user devices, the topology structure cannot be fully displayed, resulting in a poor user experience.

Method used

By responding to the user's box selection operation, the target business area information is obtained, the topology map is traversed to determine the neighboring parent and child business area information, and a hierarchical structure tree is generated based on a recursive algorithm to improve the user's intuitive understanding of the topology structure.

Benefits of technology

It achieves the complete display of topology structure on limited devices and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658615A_ABST
    Figure CN120658615A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of network security, and provides a network simulation platform tree structure model topology-based arrangement display method and system, and the method comprises the steps: obtaining target service region information in response to a frame selection operation, and then traversing a topological graph, according to the method, neighbor parent-level service area information and neighbor child-level service area information are quickly determined, then related identifiers are updated based on the neighbor parent-level service area information, finally hierarchical structure tree information is effectively generated, and folding events and unfolding corresponding to service areas and hierarchical structure tree child nodes are continuously monitored. According to the method and the device, the nodes can be divided and the combined topology with the tree structure model can be constructed during simulation topology scene arrangement, so that the structure association relationship of the topology can be more intuitively and clearly embodied for a user, the method and the device have the advantages of friendly interactive display and support of multi-level nesting, and the use experience of the user is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network security, and in particular to a method and system for arranging and displaying a tree structure model topology based on a network simulation platform. Background Art

[0002] A network simulation platform, based on parallel simulation technology, simulates or replicates the operational status and operating environment of network architecture, system equipment, and business processes in a real-world network space, as well as the behaviors and data interactions within this environment. When orchestrating simulation topology scenarios, it is often necessary to partition nodes and construct a combined topology with a tree-like structure to more intuitively demonstrate the structural relationships of the current topology.

[0003] With the continuous development of network simulation platform simulation technology, there are more and more application scenarios. When encountering a situation where the scene topology is relatively complex and the association and subordination between each node and area needs to be displayed intuitively, the method usually adopted is to use a tree structure model to display it.

[0004] Currently, due to the size limitations of user devices, it is often impossible to fully display all nodes or the complete topology. It is also difficult to clearly see the topology structure, resulting in a poor user experience that needs further improvement. Summary of the Invention

[0005] Based on this, the embodiment of the present application provides an arrangement and display method and system based on the tree structure model topology of a network simulation platform to solve the problem of poor user experience in the existing technology.

[0006] In a first aspect, an embodiment of the present application provides a method for displaying an arrangement based on a tree structure model topology of a network simulation platform, the method comprising:

[0007] In response to the user's box selection operation, obtaining target business area information;

[0008] Based on the target business area information, a preset topology map is traversed to determine neighbor parent business area information and neighbor child business area information, wherein the topology map includes a plurality of candidate business area information, the neighbor parent business area information is used to describe the candidate business area information that contains the target business area information and is most similar to the target business area information, and the neighbor child business area information is used to describe the candidate business area information contained in the target business area information;

[0009] Based on the neighbor parent business area information, the parent business area of ​​the target business area information is identified to generate first identification information, and based on the neighbor child business area information, the parent business area of ​​the neighbor child business area information is identified to generate second identification information;

[0010] Based on a preset recursive algorithm, the nodes in the canvas and the selected business area information are traversed according to the first identification information and the second identification information to generate hierarchical structure tree information, wherein the hierarchical structure tree information and the canvas are located in the same user interface.

[0011] Compared with the existing technology, the beneficial effects are: the embodiment of the present application provides an orchestration and display method based on the network simulation platform tree structure model topology, the terminal device can first respond to the user's box selection operation to obtain the target business area information, and then traverse the topology map to quickly determine the neighbor parent business area information and the neighbor child business area information, and then based on the neighbor parent business area information, identify the parent business area of ​​the target business area information and the parent business area of ​​the neighbor child business area information, and finally effectively generate hierarchical structure tree information, so that the user can intuitively know the structure of the topology, improve the user experience, and to a certain extent solve the problem of poor user experience currently.

[0012] In a second aspect, an embodiment of the present application provides an orchestration and display system based on a tree structure model topology of a network simulation platform, the system comprising:

[0013] Target business area information acquisition module: used to obtain target business area information in response to the user's box selection operation;

[0014] a neighbor parent business area information determination module configured to traverse a preset topology map based on the target business area information to determine neighbor parent business area information and neighbor child business area information, wherein the topology map includes a plurality of candidate business area information, the neighbor parent business area information is used to describe the candidate business area information that contains the target business area information and is most similar to the target business area information, and the neighbor child business area information is used to describe the candidate business area information contained in the target business area information;

[0015] an identification information generating module configured to perform identification processing on the parent business area of ​​the target business area information based on the neighbor parent business area information to generate first identification information, and to perform identification processing on the parent business area of ​​the neighbor child business area information based on the neighbor child business area information to generate second identification information;

[0016] Hierarchical structure tree information generation module: used to traverse the nodes in the canvas and the selected business area information based on the preset recursive algorithm and the first identification information and the second identification information to generate hierarchical structure tree information, wherein the hierarchical structure tree information and the canvas are located in the same user interface.

[0017] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.

[0019] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art.

[0021] Figure 1 This is a flowchart of an arrangement and display method provided in one embodiment of the present application;

[0022] Figure 2 This is a schematic diagram of an execution process provided by an embodiment of the present application;

[0023] Figure 3 2 is a flow chart of step S200 in the arrangement and display method provided in one embodiment of the present application;

[0024] Figure 4 2 is a flow chart of step S250 in the arrangement and display method provided in one embodiment of the present application;

[0025] Figure 5 4 is a flow chart of step S400 in the arrangement and display method provided in one embodiment of the present application;

[0026] Figure 6 This is a flow chart of the process after step S402 in the arrangement and display method provided in one embodiment of the present application;

[0027] Figure 7 This is a schematic diagram of a folded portion of a sub-level business area provided in an embodiment of the present application;

[0028] Figure 8This is a schematic diagram of folding all sub-level business areas provided by an embodiment of the present application;

[0029] Figure 9 This is a schematic diagram of a collapsed parent business area provided by an embodiment of the present application;

[0030] Figure 10 This is a schematic diagram of expanding all business areas provided by an embodiment of the present application;

[0031] Figure 11 This is a module block diagram of the arrangement and display system provided in one embodiment of the present application;

[0032] Figure 12 This is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0033] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0034] In the description of this application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0035] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0036] In order to illustrate the technical solution described in this application, specific embodiments are provided below.

[0037] See also Figure 1 , Figure 11 is a flow chart of a method for arranging and displaying a network simulation platform tree structure model topology provided in an embodiment of the present application. In this embodiment, the execution subject of the arranging and displaying method is a terminal device. It is understood that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc., and the embodiments of the present application do not impose any restrictions on the specific types of terminal devices.

[0038] See also Figure 1 The arrangement and display method provided in the embodiment of the present application includes but is not limited to the following steps:

[0039] In S100 , in response to a user's selection operation, target service area information is acquired.

[0040] Specifically, the terminal device can quickly obtain the target service area information in response to the user's box selection operation, wherein the box selection operation is used to describe the user's box selection operation in the topology map.

[0041] Without loss of generality, the terminal device can include any node corresponding to any selected business area information that does not belong to the target business area information within the selection range as a child node into the target business area information, and then update the parent business area identifier of each node in the target business area information.

[0042] For example, see Figure 2 , users can draw a topology base map in advance by dragging nodes and other arrangement operations; when drawing a business block, users can hold down the ctrl key on the keyboard, drag the left mouse button to select a range, and then calculate the width and height of the range to draw a new business area A. At the same time, the nodes within the range are automatically included as child nodes in this business area. It should be noted that the node meets the condition that it does not belong to any business area within the new business area.

[0043] In S200 , based on the target service area information, a preset topology map is traversed to determine neighbor parent service area information and neighbor child service area information.

[0044] Without loss of generality, the topology map includes multiple candidate business area information, and the candidate business area information is used to describe the business area in the topology map; the neighbor parent business area information is used to describe the candidate business area information that contains the target business area information and is closest to the target business area information; the neighbor child business area information is used to describe the candidate business area information contained in the target business area information.

[0045] Specifically, after the terminal device obtains the target business area information, the terminal device can traverse the preset topology map based on the target business area information, traverse all the candidate business area information, and find the area that contains business area A and is closest to business area A as the neighbor parent business area, and find the direct business area contained by business area A as the neighbor child business area, thereby determining the neighbor parent business area information and the neighbor child business area information.

[0046] For example, see Figure 3 The terminal device can traverse the internal nodes of the newly created target service area and add or update the parent service area identification ID for each node, so that each node has and only belongs to one direct parent service area.

[0047] In some possible implementations, in order to determine the neighbor parent service area information and the neighbor child service area information, please refer to Figure 2 Step S200 includes but is not limited to the following steps:

[0048] In S210 , based on the target service area information, a preset topology map is traversed to obtain a plurality of service area related information.

[0049] Specifically, the terminal device may first traverse a preset topology map based on the target service area information to quickly obtain multiple service area information, wherein the service area information is used to describe candidate service area information including the target service area information.

[0050] In S220, for each piece of service area information, length value information is generated according to the first coordinate value information and the second coordinate value information of the target service area information.

[0051] Specifically, after the terminal device obtains multiple business area information, the terminal device can effectively generate length value information for each business area information based on the first coordinate value information and the second coordinate value information of the target business area information, wherein the first coordinate value information is used to describe the upper left corner coordinate of the business area information; the second coordinate value information is used to describe the upper left corner coordinate of the target business area information; and the length value information is used to describe the length between the first coordinate value information and the second coordinate value information.

[0052] For example, the terminal device can take out the mark value of the upper left corner corresponding to all business areas whose width and height can contain the current target business area, and then apply the Pythagorean theorem to calculate the length value between the upper left corner of the target business area, and store the length value and the corresponding area ID in the array at the same time.

[0053] In S230 , the plurality of service area information are sorted in ascending order of length value information to generate service area sequence information.

[0054] Specifically, after the terminal device generates the length value information, the terminal device can sort and process multiple business area information in order of the length value information from small to large, and accurately generate business area sequence information, wherein the business area sequence information is used to describe the sequence after multiple business area information is sorted and processed in order of the length value information from small to large.

[0055] Exemplarily, the terminal device may sort the array from small to large according to the length value, and take out the ID of the first item in the sorted array as the ID of the nearest area.

[0056] In S240, it is determined that the first related service area information in the service area sequence information is the neighbor parent service area information.

[0057] Specifically, after the terminal device generates the service area sequence information, the terminal device can quickly determine that the first service area information involved in the service area sequence information is the neighbor parent service area information.

[0058] In S250 , based on the target service area information, a preset topology map is traversed to determine neighbor sub-level service area information.

[0059] Specifically, after the terminal device determines the neighbor parent service area information, the terminal device can traverse the preset topology map based on the target service area information to effectively determine the neighbor child service area information.

[0060] For example, since the newly created target business area may have a parent business area or a child business area, it is necessary to synchronously create or update the parent-child nested relationship of the adjacent business areas; by traversing all business area blocks, the terminal device can find the area whose size can contain the size of the current target business area and is closest to the current target business area as the neighboring parent business area, and store its ID.

[0061] In some possible implementations, to determine neighbor sub-level service area information, see Figure 4 Step S250 includes but is not limited to the following steps:

[0062] In S251, based on the target service area information, a preset topology map is traversed to obtain information of multiple pre-selected service areas.

[0063] Specifically, after the terminal device determines the neighbor sub-level business area information, the terminal device can traverse the preset topology map based on the target business area information and quickly obtain multiple pre-selected business area information, where the pre-selected business area information is used to describe the selected business area information contained in the target business area information.

[0064] In S252, the lower-level service area information in the pre-selected service area information is removed to determine the neighboring sub-level service area information.

[0065] Specifically, after the terminal device obtains multiple pre-selected service area information, the terminal device can remove the subordinate service area information in the pre-selected service area information to effectively determine the neighbor sub-level service area information, wherein the subordinate service area information is used to describe all subordinates of the pre-selected service area information.

[0066] Exemplarily, the terminal device can find all the business areas included in the current target business area as pre-selected business areas by traversing all the business area blocks; if a pre-selected business area has subordinates, all subordinates of the pre-selected business area are removed, and only the outermost area is retained as the neighboring sub-level business area and its ID is stored; if a pre-selected business area has no subordinates, the pre-selected business area is directly used as the neighboring sub-level business area and its ID is stored.

[0067] It should be noted that the purpose of calculating the neighbor parent business area and the neighbor child business area is to ensure that the same topology element belongs to only one direct parent, thereby creating a topology tree structure that is simpler, clearer, and easier to manage and maintain. The relationship between parents and children is currently recorded in a flat manner using a hierarchical nesting method.

[0068] In S300, the parent business area of ​​the target business area information is identified based on the neighbor parent business area information to generate first identification information, and the parent business area of ​​the neighbor child business area information is identified based on the neighbor child business area information to generate second identification information.

[0069] Specifically, the terminal device can identify the parent business area of ​​the target business area information based on the neighbor parent business area information, and quickly generate the first identification information. At the same time, based on the neighbor child business area information, the terminal device can identify the parent business area of ​​the neighbor child business area information, and quickly generate the second identification information, thereby updating the parent business area identification of the target business area to the neighbor parent business area, and updating the parent business area identification of the neighbor child business area to the target business area.

[0070] Exemplarily, the terminal device can update the ID identification value corresponding to the parent business area of ​​the current target business area. If the current target business area has a nearest child business area, the parent field value of the child business area is updated to the ID value of the current target business area to identify the nested hierarchical relationship.

[0071] In S400 , based on a preset recursive algorithm, the nodes in the canvas and the information of the service areas to be selected are traversed according to the first identification information and the second identification information to generate hierarchical structure tree information.

[0072] Specifically, the terminal device can traverse the nodes and selected business area information in the canvas based on the first identification information and the second identification information based on a preset recursive algorithm, and generate hierarchical structure tree information, thereby sorting all the nodes and business areas in the canvas through a recursive algorithm to generate hierarchical tree structure data, and updating the view of the hierarchical structure tree, wherein the hierarchical structure tree information and the canvas are located in the same user interface.

[0073] In some possible implementations, in order to improve the user experience, please refer to Figure 5 Step S400 includes but is not limited to the following steps:

[0074] In S410 , based on a preset recursive function and according to the first identification information and the second identification information, all nodes without parent elements in the canvas and information on the to-be-selected business areas are obtained.

[0075] Specifically, the terminal device can obtain all nodes without parent elements and business area information to be selected in the canvas based on the first identification information and the second identification information based on the preset recursive function, thereby calling the recursive function and passing in all nodes without parent elements and business areas in the current canvas.

[0076] In S420, all nodes without parent elements and candidate business area information in the canvas are traversed to determine whether the node in the current traversal item has a subordinate node or whether the candidate business area information in the current traversal item has subordinate candidate business area information.

[0077] Specifically, the terminal device can traverse all nodes without parent elements and the information of the business area to be selected in the canvas, and determine whether the node in the current traversal item has a subordinate node or whether the business area to be selected in the current traversal item has subordinate business area information, thereby traversing the parameters passed in in the recursive function and determining whether the current traversal item has a subordinate node or business area.

[0078] In S430, if the node in the current traversal item has a subordinate node or the to-be-selected business area information in the current traversal item has subordinate to-be-selected business area information, then based on the recursive function, the subordinate node or the subordinate to-be-selected business area information is traversed and processed, and the subordinate node or the subordinate to-be-selected business area information is assigned to the sub-attribute of the current traversal item until there is no subordinate node or subordinate to-be-selected business area information in the current traversal item, thereby generating hierarchical structure tree information.

[0079] Specifically, if the node in the current traversal item has a subordinate node or the to-be-selected business area information in the current traversal item has subordinate to-be-selected business area information, then based on the recursive function, the subordinate node or the subordinate to-be-selected business area information is traversed and processed, and the subordinate node or the subordinate to-be-selected business area information is assigned to the child attribute of the current traversal item, thereby calling the recursive function again to pass in the subordinate node or business area, and assigning the subordinate node and business area data to the children attribute of the current traversal item, until there are no subordinate nodes or subordinate to-be-selected business area information in the current traversal item, generating hierarchical structure tree information, thereby obtaining hierarchical tree structure data until the traversal reaches the point where there are no subordinate nodes and business areas.

[0080] For example, the terminal device can sort all the nodes and business areas in the current canvas through a recursive algorithm to generate a tree with a parent-child relationship structure, and dynamically update the view of the hierarchical structure tree through the responsive system and data binding mechanism of Vue2. The specific recursive algorithm can be: first, create a getTreeNodes() function, and pass in all the nodes and business area data without parent elements in the current canvas as input parameters, then traverse the externally passed parameters to determine whether the current traversal item has subordinate nodes or business areas, if so, call the getTreeNodes() function again and pass in the subordinate node and business area data as input parameters, and assign the subordinate data to the children value of the current traversal item, and finally repeat the above steps of "traversing the externally passed parameters to determine whether the current traversal item has subordinate nodes or business areas, if so, call the getTreeNodes() function again and pass in the subordinate node and business area data as input parameters, and assign the subordinate data to the children value of the current traversal item" for each traversal item until there are no subordinate nodes and business areas in the traversal item.

[0081] It should be noted that before step S400, the terminal device can pre-set each business area to be bound to a folding event or an expanding event; when the business area is in an expanded state, the user can click the fold button to trigger the folding event; when the business area is in a folded state, such as a circular state, a square state or other preset state, the user can click the business area to trigger the expanding event.

[0082] In some possible implementations, in order to further improve the user experience, after step S400, the method further includes but is not limited to the following steps:

[0083] In S401, based on the hierarchical structure tree information, a folding event or an expanding event of the topology graph is monitored.

[0084] Specifically, the terminal device can monitor the folding event or the expanding event of the topology map based on the hierarchical structure tree information, thereby monitoring the folding and expanding events of the service area and the sub-nodes of the hierarchical structure tree.

[0085] In some possible implementations, in order to further improve the user experience, after step S401, the method further includes but is not limited to the following steps:

[0086] In S402, when a folding event is monitored, all nodes in the target service area information are hidden, and the target service area information is shrunk to generate folded area information.

[0087] Specifically, when the terminal device monitors a folding event, the terminal device can hide all nodes within the target business area information, and shrink the target business area information to generate folding area information, thereby enabling the terminal device to respond to the folding event of folding a certain tree sub-node, so that the business area corresponding to the topology can be folded accordingly.

[0088] For example, when the terminal device monitors the collapse event of the service area, the terminal device may traverse the nodes within the service area, hide all child nodes, and shrink the service area into a circular area with the area name in the middle.

[0089] In some possible implementations, the contracted position of the target service area information is a corner position corresponding to an event trigger point of the folding event.

[0090] In some possible implementations, in order to improve the user experience, please refer to Figure 6 After step S402, the method further includes but is not limited to the following steps:

[0091] In S403, it is determined whether any node in the folding area information has a connection relationship with the candidate service area information other than the folding area information.

[0092] Specifically, the terminal device may determine whether any node within the folding area information has a connection relationship with the candidate service area information other than the folding area information.

[0093] In S404, if any node in the folded area information has a connection relationship with the candidate service area information other than the folded area information, the connection information is regenerated based on the folded area information.

[0094] Specifically, if any node within the folding area information has a connection relationship with the candidate service area information other than the folding area information, the terminal device may regenerate the connection information based on the folding area information.

[0095] In some possible implementations, the connection between the shrunken business area and the outside world is different from the connection between the original topology nodes.

[0096] For example, see Figure 7 、 Figure 8 and Figure 9 After the business area is folded, the terminal device can automatically add associated relationship lines for the shrunk circular area. That is, when the nodes inside the original business area are connected to the nodes outside the area or other areas, the nodes or areas with connection relationships with the outside of the area are calculated, and then special connection lines are added between the shrunk circular area and the newly calculated external associated nodes or areas, thereby intuitively displaying the relationship between the area and the outside.

[0097] In some possible implementations, in order to further improve the user experience, after step S401, the method further includes but is not limited to the following steps:

[0098] In S405, when an expansion event is monitored, all nodes in the collapsed area information are displayed, the target business area information is resized, the connection information is deleted, and the connection relationship of the selected business area information is rendered to generate expanded area information.

[0099] Specifically, when the terminal device listens to the expansion event, the terminal device can display all nodes within the collapsed area information, restore the size of the target business area information, delete the connection information, and render the connection relationship of the selected business area information to generate expanded area information.

[0100] For example, see Figure 10 When the terminal device listens to the expansion event of the circular business area, the terminal device can immediately traverse the nodes inside the business area, redisplay all child nodes, and restore the size of the business area. In response to the collapse and expansion event of a tree child node, the business area corresponding to the topology can also be expanded synchronously. After the circular business area is expanded, the previously added association connection lines are immediately deleted, and then the nodes and connections are re-rendered.

[0101] The implementation principle of the arrangement and display method of the tree structure model topology of the network simulation platform in the embodiment of the present application is as follows: the terminal device can first respond to the user's box selection operation to obtain the target business area information, and then traverse the topology map based on the target business area information, quickly determine the neighbor parent business area information and the neighbor child business area information, and then based on the neighbor parent business area information, identify the parent business area of ​​the target business area information and the parent business area of ​​the neighbor child business area information, generate first identification information and second identification information, and finally effectively generate hierarchical structure tree information, so that the user can intuitively know the structure of the topology and improve the user experience.

[0102] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0103] The embodiment of the present application also provides an arrangement and display system based on the tree structure model topology of the network simulation platform. For the convenience of explanation, only the parts related to the present application are shown, such as Figure 11 As shown, the system 110 includes:

[0104] Target business area information acquisition module 111: used to obtain target business area information in response to a user's selection operation;

[0105] Neighbor parent service area information determination module 112: configured to traverse a preset topology map based on the target service area information to determine neighbor parent service area information and neighbor child service area information, wherein the topology map includes multiple candidate service area information, the neighbor parent service area information is used to describe the candidate service area information that includes the target service area information and is most similar to the target service area information, and the neighbor child service area information is used to describe the candidate service area information included in the target service area information;

[0106] Identification information generating module 113: configured to identify the parent business area of ​​the target business area information based on the neighbor parent business area information to generate first identification information, and to identify the parent business area of ​​the neighbor child business area information based on the neighbor child business area information to generate second identification information;

[0107] The hierarchical structure tree information generation module 114 is used to traverse the nodes and the selected business area information in the canvas based on the first identification information and the second identification information based on a preset recursive algorithm to generate hierarchical structure tree information, wherein the hierarchical structure tree information and the canvas are located in the same user interface.

[0108] Optionally, the neighbor parent service area information determination module 112 includes:

[0109] The submodule for obtaining information about business areas is used to traverse the preset topology map based on the target business area information to obtain multiple pieces of information about business areas, wherein the information about business areas is used to describe the candidate business area information including the target business area information;

[0110] Length value information generation submodule: for generating length value information for each business area information, based on the first coordinate value information and the second coordinate value information of the target business area information, wherein the first coordinate value information is used to describe the coordinate of the upper left corner of the business area information, the second coordinate value information is used to describe the coordinate of the upper left corner of the target business area information, and the length value information is used to describe the length between the first coordinate value information and the second coordinate value information;

[0111] Business area sequence information generation submodule: used to sort multiple business area information in ascending order of length value information to generate business area sequence information;

[0112] Neighbor parent business area information determination submodule: used to determine the first business area information involved in the business area sequence information as the neighbor parent business area information;

[0113] Neighbor sub-level service area information determination submodule: used to traverse the preset topology map based on the target service area information to determine the neighbor sub-level service area information.

[0114] Optionally, the neighbor sub-level service area information determination submodule includes:

[0115] A pre-selected service area information acquisition unit is configured to traverse a preset topology map based on the target service area information to acquire a plurality of pre-selected service area information, wherein the pre-selected service area information is used to describe the service area information to be selected that is included in the target service area information;

[0116] Neighbor sub-level service area information determination unit: used to remove subordinate service area information in the pre-selected service area information to determine neighbor sub-level service area information, wherein the subordinate service area information is used to describe all subordinates of the pre-selected service area information.

[0117] Optionally, the hierarchical structure tree information generating module 114 includes:

[0118] A node acquisition unit is configured to acquire, based on a preset recursive function and according to the first identification information and the second identification information, all nodes without parent elements and information on the to-be-selected business areas in the canvas;

[0119] The current traversal item judgment unit is used to traverse all nodes without parent elements and the business area information to be selected in the canvas, and judge whether the node in the current traversal item has a subordinate node or whether the business area information to be selected in the current traversal item has subordinate business area information;

[0120] Hierarchical structure tree information generation unit: used to traverse the subordinate nodes or the subordinate business area information based on a recursive function if the node in the current traversal item has a subordinate node or the to-be-selected business area information in the current traversal item has subordinate to-be-selected business area information, and assign the subordinate nodes or the subordinate to-be-selected business area information to the sub-attribute of the current traversal item until there are no subordinate nodes or subordinate to-be-selected business area information in the current traversal item, thereby generating hierarchical structure tree information.

[0121] Optionally, the system 110 further includes:

[0122] Topology monitoring module: used to monitor the collapse or expansion events of the topology based on the hierarchical structure tree information.

[0123] Optionally, the system 110 further includes:

[0124] Folding area information generation module: used for hiding all nodes inside the target business area information and shrinking the target business area information when a folding event is monitored to generate folding area information.

[0125] Optionally, the system 110 further includes:

[0126] Connection relationship judgment module: used to judge whether any node in the folding area information has a connection relationship with the candidate business area information other than the folding area information;

[0127] The connection information generating module is used to regenerate the connection information based on the folding area information if any node in the folding area information has a connection relationship with the selected business area information other than the folding area information.

[0128] Optionally, the contraction position of the target business area information is a corner position corresponding to an event trigger point of the folding event.

[0129] Optionally, the system 110 further includes:

[0130] Expanded area information generation module: used to display all nodes within the collapsed area information when listening to the expansion event, restore the size of the target business area information, delete the connection information, and render the connection relationship of the selected business area information to generate expanded area information.

[0131] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0132] The present application also provides a terminal device, such as Figure 12 As shown, the terminal device 120 of this embodiment includes: a processor 121, a memory 122, and a computer program 123 stored in the memory 122 and executable on the processor 121. When the processor 121 executes the computer program 123, the steps in the above-mentioned arrangement and display method embodiment are implemented, for example Figure 1 Steps S100 to S400 shown; or, when the processor 121 executes the computer program 123, the functions of each module in the above device are realized, such as Figure 11 The functions of modules 111 to 114 are shown.

[0133] The terminal device 120 can be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 120 includes but is not limited to a processor 121 and a memory 122. Those skilled in the art will understand that Figure 12 It is merely an example of the terminal device 120 and does not constitute a limitation on the terminal device 120. The terminal device 120 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 120 may also include input and output devices, network access devices, buses, etc.

[0134] Among them, the processor 121 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0135] The memory 122 can be an internal storage unit of the terminal device 120, such as a hard disk or memory of the terminal device 120, or the memory 122 can be an external storage device of the terminal device 120, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the terminal device 120; further, the memory 122 can also include both the internal storage unit and the external storage device of the terminal device 120, and the memory 122 can also store the computer program 123 and other programs and data required by the terminal device 120. The memory 122 can also be used to temporarily store data that has been output or is to be output.

[0136] One embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form; the computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium.

[0137] The above are all preferred embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the methods, principles, and structures of the present application should be included in the scope of protection of the present application.

Claims

1. A method for arranging and displaying a tree structure model topology based on a network simulation platform, characterized in that: The method comprises: In response to the user's box selection operation, obtaining target business area information; Based on the target business area information, a preset topology map is traversed to determine neighbor parent business area information and neighbor child business area information, wherein the topology map includes a plurality of candidate business area information, the neighbor parent business area information is used to describe the candidate business area information that contains the target business area information and is most similar to the target business area information, and the neighbor child business area information is used to describe the candidate business area information contained in the target business area information; Based on the neighbor parent business area information, the parent business area of ​​the target business area information is identified to generate first identification information, and based on the neighbor child business area information, the parent business area of ​​the neighbor child business area information is identified to generate second identification information; Based on a preset recursive algorithm, the nodes in the canvas and the selected business area information are traversed according to the first identification information and the second identification information to generate hierarchical structure tree information, wherein the hierarchical structure tree information and the canvas are located in the same user interface.

2. The method according to claim 1, characterized in that The traversal process of a preset topology map based on the target service area information to determine neighbor parent service area information and neighbor child service area information includes: Based on the target business area information, a preset topology map is traversed to obtain a plurality of business area information, wherein the business area information is used to describe the candidate business area information including the target business area information; For each piece of service area information involved, length value information is generated based on the first coordinate value information and the second coordinate value information of the target service area information, wherein the first coordinate value information is used to describe the coordinate of the upper left corner of the service area information involved, the second coordinate value information is used to describe the coordinate of the upper left corner of the target service area information, and the length value information is used to describe the length between the first coordinate value information and the second coordinate value information; Sorting the plurality of pieces of service area information according to the length value information in ascending order to generate service area sequence information; Determining that the first one of the related service area information in the service area sequence information is the neighbor parent service area information; Based on the target service area information, a preset topology map is traversed to determine the neighbor sub-level service area information.

3. The method according to claim 2, characterized in that The traversing a preset topology map based on the target service area information to determine the neighbor sub-level service area information includes: Based on the target service area information, a preset topology map is traversed to obtain a plurality of pre-selected service area information, wherein the pre-selected service area information is used to describe the to-be-selected service area information included in the target service area information; The subordinate service area information in the pre-selected service area information is removed to determine the neighboring child service area information, wherein the subordinate service area information is used to describe all subordinates of the pre-selected service area information.

4. The method according to claim 1, wherein The preset recursive algorithm is used to traverse the nodes in the canvas and the information of the selected business areas according to the first identification information and the second identification information to generate hierarchical structure tree information, including: Based on a preset recursive function, all nodes without parent elements in the canvas and the information of the to-be-selected business areas are obtained according to the first identification information and the second identification information; Traversing all nodes without parent elements and the to-be-selected business area information in the canvas, and determining whether a node in a current traversal item has a subordinate node or whether the to-be-selected business area information in the current traversal item has a subordinate to-be-selected business area information; If the node in the current traversal item has a subordinate node or the candidate business area information in the current traversal item has the subordinate candidate business area information, then based on the recursive function, the subordinate node or the subordinate candidate business area information is traversed and processed, and the subordinate node or the subordinate candidate business area information is assigned to the sub-attribute of the current traversal item until there is no subordinate node or the subordinate candidate business area information in the current traversal item, and the hierarchical structure tree information is generated.

5. The method according to claim 1, wherein After traversing the nodes in the canvas and the to-be-selected business area information according to the first identification information and the second identification information based on the preset recursive algorithm to generate the hierarchical structure tree information, the method further includes: Based on the hierarchical structure tree information, a folding event or an expanding event of the topology graph is monitored.

6. The method according to claim 1, wherein After monitoring a folding event or an expanding event of the topology graph based on the hierarchical structure tree information, the method further includes: When the folding event is monitored, all nodes in the target service area information are hidden, and the target service area information is shrunk to generate folded area information.

7. The method according to claim 6, characterized in that After monitoring the collapse event, hiding all nodes in the target service area information, and shrinking the target service area information to generate the collapsed area information, the method further includes: Determining whether any node within the folding area information has a connection relationship with the to-be-selected service area information other than the folding area information; If any node within the folding area information has a connection relationship with the candidate service area information other than the folding area information, the connection information is regenerated based on the folding area information.

8. The method according to claim 6, characterized in that The contraction position of the target service area information is a corner position corresponding to the event triggering point of the folding event.

9. The method according to claim 7, characterized in that After monitoring a folding event or an expanding event of the topology graph based on the hierarchical structure tree information, the method further includes: When the expansion event is monitored, all nodes within the collapsed area information are displayed, the target business area information is resized, the connection information is deleted, and the connection relationship of the selected business area information is rendered to generate expanded area information.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.