Mind map case paging method, device and equipment and readable storage medium
By dynamically adjusting the pagination data and parameters of mind map use cases, the problem of long rendering time for mind map use cases is solved, and the rendering efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411210422.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, the rendering of mind map use cases shows that when there are many branches and large data volumes, the loading and rendering time is long, resulting in poor user experience.
After setting the current entry parameter, the mind map use case is connected to the preset use case interface for rendering and displaying, dynamically adjust the paged data, and adjust the entry parameter according to the loading time, until the node at the end of all branches is a leaf node, so that paging loading is achieved.
Improves the rendering efficiency of mind map use cases, optimizes front-end performance, and improves the user's experience of accessing mind map use cases.
Smart Images

Figure CN119127370A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of processing algorithms, and more specifically, to a mind map use case paging method, apparatus, device and readable storage medium. Background Art
[0002] In the process of software testing, test case management is an essential link, and mind map use cases are an important form of presentation.
[0003] In the prior art, the rendering and display of mind map use cases are usually performed as a whole. This results in a long loading and rendering time when facing mind map use cases with many branches and large data volumes, and is prone to adverse reactions such as freezing, which creates a bad experience for users accessing mind map use cases.
[0004] Based on this, the present application provides a mind map use case paging solution, which performs rendering and display of mind map use cases to make up for the deficiencies of existing processing methods. Summary of the invention
[0005] In view of this, the present application provides a mind map use case paging method, device, equipment and readable storage medium, which dynamically adjusts the paging data according to the loading time, thereby improving the rendering efficiency of the mind map use case and improving the user experience of accessing the mind map use case.
[0006] A mind map use case paging method, comprising:
[0007] After setting the current input parameters, the mind map use case is connected to the preset use case interface for rendering and display, the use case paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node;
[0008] Determine the adjusted input parameter based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameter, and use the adjusted input parameter as the current input parameter;
[0009] For each of the secondary loading buttons, the node object where the currently clicked secondary loading button is located is obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node that is not a leaf node;
[0010] Return to execute the process of determining and adjusting the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time, and the current input parameters, until all the branch end nodes are leaf nodes.
[0011] Optionally, adjusting input parameters based on the rendering time of the last rendering of the use case interface, a preset ideal time, and current input parameters includes:
[0012] Compare the rendering time of the last rendering of the use case interface with the preset ideal time;
[0013] If the rendering time is less than the preset ideal time, the rendering time and the current input parameter are substituted into the preset first calculation formula to obtain the adjusted input parameter; otherwise, the rendering time and the current input parameter are substituted into the preset second calculation formula to obtain the adjusted input parameter.
[0014] Optionally, the use case interface renders and displays the node object where the secondary loading button is located based on the current input parameter, including:
[0015] The use case interface obtains a sub-use case set whose number of use case nodes is consistent with the current input parameter from the node object where the secondary loading button is located;
[0016] The sub-use case set is spliced to the node where the secondary loading button is located through object operation and displayed.
[0017] Optionally, the first calculation formula is:
[0018]
[0019] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0020] Optionally, the second calculation formula is:
[0021]
[0022] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0023] Optionally, the use case paging data is data returned in json data format according to the mind map structure.
[0024] A mind map use case paging device, comprising:
[0025] The initial rendering unit is used to connect the mind map use case to the preset use case interface for rendering and display after setting the current input parameters, obtain the use case paging data returned by the use case interface and calculate the rendering time. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node;
[0026] An input parameter adjustment unit, configured to determine an adjusted input parameter based on a rendering time of the last rendering of the use case interface, a preset ideal time, and a current input parameter, and use the adjusted input parameter as the current input parameter;
[0027] A paging rendering unit is used to obtain the node object where the currently clicked secondary loading button is located by clicking the secondary loading button for each of the secondary loading buttons, and request the use case interface to render and display the node object where the secondary loading button is located based on the current input parameters, obtain the sub-use case set paging data returned by the use case interface and calculate the rendering time, the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node, and return to the input parameter adjustment unit to execute the process of determining the adjustment of the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, until all the branch end nodes are leaf nodes.
[0028] Optionally, the input parameter adjustment unit includes:
[0029] A time comparison unit, used to compare the rendering time of the last rendering of the use case interface with a preset ideal time;
[0030] An input parameter calculation unit is used to substitute the rendering time and the current input parameter into a preset first calculation formula to obtain the adjusted input parameter when the rendering time is less than a preset ideal time; otherwise, substitute the rendering time and the current input parameter into a preset second calculation formula to obtain the adjusted input parameter.
[0031] A mind map use case paging device, comprising a memory and a processor;
[0032] The memory is used to store programs;
[0033] The processor is used to execute the program to implement the various steps of the mind map use case paging method as described in any one of the above items.
[0034] A readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, each step of the mind map use case paging method as described in any one of the above items is implemented.
[0035] It can be seen from the above technical scheme that the embodiment of the present application provides a mind map use case paging method, device, equipment and readable storage medium. First, after setting the current input parameter, the mind map use case is connected to the preset use case interface for rendering and display, and the use case paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the use case paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. After that, the adjustment input parameter is determined based on the rendering time of the use case interface rendering, the preset ideal time and the current input parameter, and the adjustment input parameter is used as the current input parameter. For each secondary loading button set at the end node of each branch, the node object where the currently clicked secondary loading button is located can be obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. Each time thereafter, the input parameters will be adjusted based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, and the adjusted input parameters will be used as the current input parameters until all the branch end nodes are leaf nodes.
[0036] Since this application adjusts the input parameters based on the last rendering time for each rendering after the initial rendering, and then requests the use case interface to render and display the node object where the secondary loading button is located based on the adjusted current input parameters, that is to say, after each loading and rendering, the next paging data and rendering time are dynamically adjusted based on the current rendering time, that is, the paging data is dynamically adjusted according to the loading time, thereby achieving the effect of improving the rendering efficiency of the mind map use case. In addition, further to the mind map use case as a whole, this application can optimize the front-end performance through dynamic and flexible paging loading, and improve the user experience of accessing the mind map use case. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0038] Figure 1 A flowchart of a mind map use case paging method disclosed in an embodiment of the present application;
[0039] Figure 2A schematic diagram of a mind map use case paging device disclosed in an embodiment of the present application;
[0040] Figure 3 This is a hardware structure block diagram of the mind map use case paging device disclosed in the embodiment of this application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] The present application can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or equipment, etc.
[0043] An embodiment of the present application provides a mind map use case paging method, which can be applied to various test software or test systems involving mind map use cases, and can also be applied to various computer terminals or smart terminals. The execution subject can be the processor or server of the computer terminal or smart terminal.
[0044] Next, the present application scheme is introduced. The present application proposes the following technical scheme, please see below for details.
[0045] Figure 1 This is a flowchart of a mind map use case paging method disclosed in an embodiment of the present application.
[0046] like Figure 1 As shown, the method may include:
[0047] Step S1: After setting the current input parameters, connect the mind map use case to the preset use case interface for rendering and display, obtain the use case paging data returned by the use case interface and calculate the rendering time.
[0048] Specifically, the number of use case nodes included in the use case paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node that is not a leaf node. The use case paging data is data returned in json data format according to the mind map structure.
[0049] The use case interface is pre-designed. The use case interface supports returning the number of mind map use case nodes by input parameters. For example, if the input parameter is N, N use case node data will be returned. The data will be returned in a json structure according to the actual mind map structure. The end node output parameter of the structure tells whether it is a leaf node.
[0050] Therefore, when the mind map use case is first loaded and rendered, after setting the input parameters for the first loading and rendering, that is, the current input parameters, the mind map use case can be connected to the preset use case interface for rendering and display, and the use case interface returns the use case paging data in a json structure. The number of use case nodes contained in the use case paging data should be consistent with the current input parameters, and each branch end node that is not a leaf node is set with a secondary loading button. The front end sets the current input parameter to M for the first request, and the use case paging data returned by the use case interface contains M use case nodes and is rendered and displayed. The rendering time S is calculated, and the end nodes of each branch, if non-leaf nodes, are given a secondary loading button.
[0051] Step S2: determining an adjusted input parameter based on the rendering time of the last rendering of the use case interface, a preset ideal time, and the current input parameter, and using the adjusted input parameter as the current input parameter.
[0052] Specifically, in order to optimize front-end performance and improve rendering efficiency, the system sets the default ideal time to be T. If the rendering time S is less than the ideal time T, the next time the sub-use case set data is requested for the second time, the current input parameter can be appropriately increased to increase the number of use case nodes loaded and rendered. If the rendering time S is not less than the ideal time T, the next time the sub-use case set data is requested for the second time, the current input parameter can be appropriately reduced to reduce the number of use case nodes loaded and rendered, thereby shortening the rendering time for the next loading and rendering.
[0053] Determining and adjusting input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time, and the current input parameters may specifically include:
[0054] ① Compare the rendering time of the last rendering of the use case interface with the preset ideal time.
[0055] ② If the rendering time is less than the preset ideal time, substitute the rendering time and the current input parameter into the preset first calculation formula to obtain the adjusted input parameter; otherwise, substitute the rendering time and the current input parameter into the preset second calculation formula to obtain the adjusted input parameter.
[0056] Specifically, if the rendering time S is less than the ideal time T, the next time the sub-use case set data is requested for the second time, the current input parameter can be appropriately increased through the preset first calculation formula, thereby increasing the number of use case nodes loaded for rendering, that is, the rendering time and the current input parameter are substituted into the preset first calculation formula to calculate the adjusted input parameter. If the rendering time S is not less than the ideal time T, the next time the sub-use case set data is requested for the second time, the current input parameter can be appropriately reduced through the preset second calculation formula, thereby reducing the number of use case nodes loaded for rendering, that is, the rendering time and the current input parameter are substituted into the preset second calculation formula to calculate the adjusted input parameter.
[0057] The first calculation formula may be:
[0058]
[0059] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0060] The second calculation formula may be:
[0061]
[0062] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0063] Step S3: For each of the secondary loading buttons, obtain the node object where the secondary loading button currently clicked is located by clicking the secondary loading button, and request the use case interface to render and display the node object where the secondary loading button is located based on the current input parameters, obtain the paging data of the sub-use case set returned by the use case interface and calculate the rendering time.
[0064] Specifically, the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for the end node of each branch that is not a leaf node. For each secondary loading button set at the end node of each branch, the node object where the secondary loading button currently clicked is located can be obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for the end node of each branch that is not a leaf node.
[0065] Furthermore, the process of rendering and displaying the node object where the secondary loading button is located based on the current input parameter by the use case interface may include:
[0066] ① The use case interface obtains a sub-use case set whose number of use case nodes is consistent with the current input parameter from the node object where the secondary loading button is located;
[0067] ② Through object operation, the sub-use case set is spliced to the node where the secondary loading button is located and displayed.
[0068] Step S4, return to execute the process of adjusting the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, until all the end nodes of the branches are leaf nodes.
[0069] Specifically, except for the initial rendering, each rendering after that will determine the adjusted input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, and use the adjusted input parameters as the current input parameters, that is, each rendering adjusts the input parameters based on the last rendering time, and then requests the use case interface to render and display the node object where the secondary loading button is located based on the adjusted current input parameters, that is to say, after each loading and rendering, the next paging data and rendering time are dynamically adjusted based on this rendering time until all the end nodes of the branches are leaf nodes.
[0070] It can be seen from the above technical scheme that the embodiment of the present application provides a mind map use case paging method, device, equipment and readable storage medium. First, after setting the current input parameter, the mind map use case is connected to the preset use case interface for rendering and display, and the use case paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the use case paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. After that, the adjustment input parameter is determined based on the rendering time of the use case interface rendering, the preset ideal time and the current input parameter, and the adjustment input parameter is used as the current input parameter. For each secondary loading button set at the end node of each branch, the node object where the currently clicked secondary loading button is located can be obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. Each time thereafter, the input parameters will be adjusted based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, and the adjusted input parameters will be used as the current input parameters until all the branch end nodes are leaf nodes.
[0071] Since this application adjusts the input parameters based on the last rendering time for each rendering after the initial rendering, and then requests the use case interface to render and display the node object where the secondary loading button is located based on the adjusted current input parameters, that is to say, after each loading and rendering, the next paging data and rendering time are dynamically adjusted based on the current rendering time, that is, the paging data is dynamically adjusted according to the loading time, thereby achieving the effect of improving the rendering efficiency of the mind map use case. In addition, further to the mind map use case as a whole, this application can optimize the front-end performance through dynamic and flexible paging loading, and improve the user experience of accessing the mind map use case.
[0072] A mind map use case paging device provided in an embodiment of the present application is described below. The mind map use case paging device described below and the mind map use case paging method described above can refer to each other.
[0073] See also Figure 2 , Figure 2 A schematic diagram of a mind map use case paging device disclosed in an embodiment of the present application.
[0074] like Figure 2 As shown, the mind map use case paging device may include:
[0075] The initial rendering unit 110 is used to connect the mind map use case to the preset use case interface for rendering and display after setting the current input parameters, obtain the use case paging data returned by the use case interface and calculate the rendering time, the number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node;
[0076] An input parameter adjustment unit 120, configured to determine an adjusted input parameter based on a rendering time of the last rendering of the use case interface, a preset ideal time, and a current input parameter, and use the adjusted input parameter as the current input parameter;
[0077] The paging rendering unit 130 is used for obtaining the node object where the currently clicked secondary loading button is located by clicking the secondary loading button for each of the secondary loading buttons, and requesting the use case interface to render and display the node object where the secondary loading button is located based on the current input parameters, obtaining the sub-use case set paging data returned by the use case interface and calculating the rendering time, the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameters, and a secondary loading button is set at the end node of each branch that is not a leaf node, returning to the input parameter adjustment unit to execute the process of determining the adjustment of the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, until all the end nodes of the branches are leaf nodes.
[0078] It can be seen from the above technical scheme that the embodiment of the present application provides a mind map use case paging method, device, equipment and readable storage medium. First, after setting the current input parameter, the mind map use case is connected to the preset use case interface for rendering and display, and the use case paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the use case paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. After that, the adjustment input parameter is determined based on the rendering time of the use case interface rendering, the preset ideal time and the current input parameter, and the adjustment input parameter is used as the current input parameter. For each secondary loading button set at the end node of each branch, the node object where the currently clicked secondary loading button is located can be obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated, wherein the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node of the non-leaf node. Each time thereafter, the input parameters will be adjusted based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, and the adjusted input parameters will be used as the current input parameters until all the branch end nodes are leaf nodes.
[0079] Since this application adjusts the input parameters based on the last rendering time for each rendering after the initial rendering, and then requests the use case interface to render and display the node object where the secondary loading button is located based on the adjusted current input parameters, that is to say, after each loading and rendering, the next paging data and rendering time are dynamically adjusted based on the current rendering time, that is, the paging data is dynamically adjusted according to the loading time, thereby achieving the effect of improving the rendering efficiency of the mind map use case. In addition, further to the mind map use case as a whole, this application can optimize the front-end performance through dynamic and flexible paging loading, and improve the user experience of accessing the mind map use case.
[0080] Optionally, the input parameter adjustment unit may include:
[0081] A time comparison unit, used to compare the rendering time of the last rendering of the use case interface with a preset ideal time;
[0082] An input parameter calculation unit is used to substitute the rendering time and the current input parameter into a preset first calculation formula to obtain the adjusted input parameter when the rendering time is less than a preset ideal time; otherwise, substitute the rendering time and the current input parameter into a preset second calculation formula to obtain the adjusted input parameter.
[0083] Optionally, the process of rendering and displaying the node object where the secondary loading button is located based on the current input parameter by the use case interface may include:
[0084] The use case interface obtains a sub-use case set whose number of use case nodes is consistent with the current input parameter from the node object where the secondary loading button is located;
[0085] The sub-use case set is spliced to the node where the secondary loading button is located through object operation and displayed.
[0086] Optionally, the first calculation formula used by the input parameter calculation unit may be:
[0087]
[0088] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0089] Optionally, the second calculation formula used by the input parameter calculation unit may be:
[0090]
[0091] Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
[0092] Optionally, the use case paging data is data returned in json data format according to the mind map structure.
[0093] The mind map use case paging apparatus provided in the embodiment of the present application can be applied to a mind map use case paging device. Figure 3 The hardware structure diagram of the mind map use case paging device is shown in FIG. Figure 3 ,The hardware structure of the mind map use case paging device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4;
[0094] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;
[0095] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;
[0096] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory;
[0097] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0098] After setting the current input parameters, the mind map use case is connected to the preset use case interface for rendering and display, the use case paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node;
[0099] Determine the adjusted input parameter based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameter, and use the adjusted input parameter as the current input parameter;
[0100] For each of the secondary loading buttons, the node object where the currently clicked secondary loading button is located is obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node that is not a leaf node;
[0101] Return to execute the process of determining and adjusting the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time, and the current input parameters, until all the branch end nodes are leaf nodes.
[0102] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0103] The embodiment of the present application further provides a readable storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0104] After setting the current input parameters, the mind map use case is connected to the preset use case interface for rendering and display, the use case paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node;
[0105] Determine the adjusted input parameter based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameter, and use the adjusted input parameter as the current input parameter;
[0106] For each of the secondary loading buttons, the node object where the currently clicked secondary loading button is located is obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node that is not a leaf node;
[0107] Return to execute the process of determining and adjusting the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time, and the current input parameters, until all the branch end nodes are leaf nodes.
[0108] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0109] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0110] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0111] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A mind map use case paging method, characterized in that: include: After setting the current input parameters, the mind map use case is connected to the preset use case interface for rendering and display, the use case paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node; Determine the adjusted input parameter based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameter, and use the adjusted input parameter as the current input parameter; For each of the secondary loading buttons, the node object where the currently clicked secondary loading button is located is obtained by clicking the secondary loading button, and the use case interface is requested to render and display the node object where the secondary loading button is located based on the current input parameter, and the sub-use case set paging data returned by the use case interface is obtained and the rendering time is calculated. The number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameter, and a secondary loading button is set for each branch end node that is not a leaf node; Return to execute the process of determining and adjusting the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time, and the current input parameters, until all the branch end nodes are leaf nodes.
2. The method according to claim 1, characterized in that Based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, the input parameters are adjusted, including: Compare the rendering time of the last rendering of the use case interface with the preset ideal time; If the rendering time is less than the preset ideal time, the rendering time and the current input parameter are substituted into the preset first calculation formula to obtain the adjusted input parameter; otherwise, the rendering time and the current input parameter are substituted into the preset second calculation formula to obtain the adjusted input parameter.
3. The method according to claim 1, characterized in that: The use case interface renders and displays the node object where the secondary loading button is located based on the current input parameter, including: The use case interface obtains a sub-use case set whose number of use case nodes is consistent with the current input parameter from the node object where the secondary loading button is located; The sub-use case set is spliced to the node where the secondary loading button is located through object operation and displayed.
4. The method according to claim 2, characterized in that: The first calculation formula is: Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
5. The method according to claim 2, characterized in that: The second calculation formula is: Among them, Madj is the adjustment input parameter, M is the current input parameter, and a is the set unit adjustment range.
6. The method according to claim 1, characterized in that The use case paging data is data returned in json data format according to the mind map structure.
7. A mind map use case paging device, characterized in that: include: The initial rendering unit is used to connect the mind map use case to the preset use case interface for rendering and display after setting the current input parameters, obtain the use case paging data returned by the use case interface and calculate the rendering time. The number of use case nodes contained in the use case paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node; An input parameter adjustment unit, configured to determine an adjusted input parameter based on a rendering time of the last rendering of the use case interface, a preset ideal time, and a current input parameter, and use the adjusted input parameter as the current input parameter; A paging rendering unit is used to obtain the node object where the currently clicked secondary loading button is located by clicking the secondary loading button for each of the secondary loading buttons, and request the use case interface to render and display the node object where the secondary loading button is located based on the current input parameters, obtain the sub-use case set paging data returned by the use case interface and calculate the rendering time, the number of use case nodes contained in the sub-use case set in the sub-use case set paging data is consistent with the current input parameters, and a secondary loading button is set for each branch end node that is not a leaf node, and return to the input parameter adjustment unit to execute the process of determining the adjustment of the input parameters based on the rendering time of the last rendering of the use case interface, the preset ideal time and the current input parameters, until all the branch end nodes are leaf nodes.
8. The device according to claim 7, characterized in that The input parameter adjustment unit includes: A time comparison unit, used to compare the rendering time of the last rendering of the use case interface with a preset ideal time; An input parameter calculation unit is used to substitute the rendering time and the current input parameter into a preset first calculation formula to obtain the adjusted input parameter when the rendering time is less than a preset ideal time; otherwise, substitute the rendering time and the current input parameter into a preset second calculation formula to obtain the adjusted input parameter.
9. A mind map use case paging device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the mind map use case paging method as described in any one of claims 1 to 6.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the mind map use case paging method as described in any one of claims 1 to 6 is implemented.
