Interval segmentation setting method and device, equipment, medium and program product
By generating visual number axis on the user interface and responding to user input, adding nodes to segment intervals, the problem of interval crossing in the prior art is solved, and the accuracy and user experience of interval settings are improved.
Patent Information
- Application Number
- CN202411344540.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-25
Smart Images

Figure CN119166263A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction technology, and in particular to a method, device, equipment, medium and program product for setting interval segmentation. Background Art
[0002] In the field of human-computer interaction, especially in the operation of enterprise B-side systems, threshold interval settings or similar scenarios are often encountered. Users need to divide and set different threshold intervals and set different event feedbacks, such as different levels of alarms or different levels of scoring.
[0003] Most of the existing interval segmentation setting methods rely on manual input of interval ranges, which requires complex menu operations, is cumbersome and inefficient. Manual filling may result in setting thresholds multiple times in adjacent intervals, which may easily lead to problems with segmented intervals crossing, causing system calculation errors and poor overall user experience. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a method, device, equipment, medium and program product for setting interval segmentation, which can generate a visual number axis on the user interface. When the user sets the node threshold, the corresponding node is displayed on the visual number axis, so that the setting of the node threshold is more specific and intuitive, avoiding the intersection of node intervals, improving the accuracy and rationality of the interval setting, and thus improving the user experience.
[0005] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:
[0006] In a first aspect, the present application provides a method for setting interval segmentation, comprising: generating and displaying a visual number axis when a user interface involves a threshold setting task; adding nodes to the visual number axis in response to a user's node threshold input on the visual number axis, wherein the nodes are used to divide the visual number axis into multiple intervals, and the multiple intervals do not intersect each other.
[0007] As an optional implementation of the embodiment of the present application, the method also includes: in response to the user's setting operation of multiple intervals, adding a task control of multiple intervals on the visual number axis, so that when the node value is in the corresponding interval, it triggers at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events.
[0008] As an optional implementation of an embodiment of the present application, a visual number axis includes a horizontal visual number axis with a positive direction being right; the method also includes: in response to a user's switching operation of an opening and closing attribute of a target node on the horizontal visual number axis, modifying a positional relationship between the target node and multiple intervals according to a first preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete fully open; the first preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; if the opening and closing attribute switching operation indicates switching to discrete fully open, the target node is moved from the left end of the next adjacent interval to the middle position, and the middle position is the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
[0009] As an optional implementation manner of an embodiment of the present application, a visual number axis includes a vertical visual number axis with an upward positive direction; the method also includes: in response to a user's opening and closing attribute switching operation on a target node on the vertical visual number axis, modifying the association relationship between the task control corresponding to the target node and the target node according to a second preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete fully open; the second preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, then establishing an association relationship between the previous task control corresponding to the target node and the target node, and releasing the association relationship between the next task control corresponding to the target node and the target node; if the opening and closing attribute switching operation indicates switching to discrete fully open, then releasing the association relationship between the task control corresponding to the target node and the target node.
[0010] In a second aspect, the present application provides a device for setting interval segments, the device comprising:
[0011] A visual number axis generation module, used to generate and display a visual number axis when the user interface involves a threshold setting task;
[0012] The node adding module is used to add nodes on the visual number axis in response to the node threshold input by the user on the visual number axis, and the nodes are used to divide the visual number axis into multiple sections, and the multiple sections do not intersect each other.
[0013] As an optional implementation of the embodiment of the present application, the device also includes a task control adding module, which is used to: in response to the user's setting operation on multiple intervals, add task controls for multiple intervals on the visual number axis, so that when the node value is in the corresponding interval, it triggers at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events.
[0014] As an optional implementation of an embodiment of the present application, a visual number axis includes a horizontal visual number axis with a positive direction to the right; the transposition also includes a modification module, which is used to: in response to a user's switching operation of an opening and closing attribute of a target node on the horizontal visual number axis, modify the positional relationship between the target node and multiple intervals according to a first preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete full open; the first preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; if the opening and closing attribute switching operation indicates switching to discrete full open, the target node is moved from the left end of the next adjacent interval to the middle position, and the middle position is the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
[0015] As an optional implementation of an embodiment of the present application, a visual number axis includes a vertical visual number axis with the positive direction upward; the transposition also includes a modification module, which is used to: in response to a user's opening and closing attribute switching operation on a target node on the vertical visual number axis, modify the association relationship between the task control corresponding to the target node and the target node according to a second preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete fully open; the second preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, then establish an association relationship between the previous task control corresponding to the target node and the target node, and release the association relationship between the next task control corresponding to the target node and the target node; if the opening and closing attribute switching operation indicates switching to discrete fully open, then release the association relationship between the task control corresponding to the target node and the target node.
[0016] In a third aspect, the present application provides an electronic device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for setting interval segmentation as described in the first aspect or any one of its optional embodiments is implemented.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the interval segmentation setting method as described in the first aspect or any optional embodiment thereof.
[0018] In a fifth aspect, the present application provides a computer program product, including: the computer program product includes a computer program, and when the computer program runs on a computer, the computer implements the interval segmentation setting method as described in the first aspect or any optional embodiment thereof.
[0019] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:
[0020] The embodiment of the present application provides a method, device, equipment, medium and program product for setting interval segmentation, wherein the method first generates and displays a visual axis when the user interface involves a threshold setting task, and then adds nodes to the visual axis in response to the user's node threshold input on the visual axis, and the nodes divide the visual axis into multiple intervals, and the intervals do not intersect each other. In this way, the present application generates a visual axis on the user interface, and when the user sets the node threshold, it is displayed accordingly on the visual axis, making the setting of the node threshold more specific and intuitive, avoiding the intersection of node intervals, and improving the accuracy and rationality of the interval setting, thereby improving the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0023] Figure 1A A schematic diagram of a user interface involving a threshold setting task is shown first;
[0024] Figure 1B A user interface for a threshold setting task Figure 2 ;
[0025] Figure 2 A schematic diagram of a flow chart of a method for setting interval segments provided in an embodiment of the present application;
[0026] Figure 3A A schematic diagram of a visualized number axis provided in an embodiment of the present application;
[0027] Figure 3B A schematic diagram of a visual number axis provided in an embodiment of the present application Figure 2 ;
[0028] Figure 3C A schematic diagram of adding controls to a node provided in an embodiment of the present application;
[0029] Figure 3D A schematic diagram of a node deletion control provided in an embodiment of the present application;
[0030] Figure 4ASchematic diagram 1 of a node opening and closing property control provided in an embodiment of the present application;
[0031] Figure 4B Schematic diagram of the node opening and closing property control provided in the embodiment of the present application Figure 2 ;
[0032] Figure 4C A modified schematic diagram of a target node provided in an embodiment of the present application;
[0033] Figure 4D A modified schematic diagram of a task control provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a device for setting interval segments provided in an embodiment of the present application;
[0035] Figure 6 A schematic diagram of the structure of an electronic device described in an embodiment of the present application. DETAILED DESCRIPTION
[0036] For example, Figure 1A As shown, Figure 1A The first diagram is a user interface diagram involving a threshold setting task. The user interface is used to set a CPU alarm threshold. For example, when the average value of CPU utilization within three consecutive cycles (1 cycle = 1 minute) is greater than or equal to 70%, a reminder is given through a combination of SMS, email and instant messaging software.
[0037] Another example is Figure 1B As shown, Figure 1B A user interface for a threshold setting task Figure 2 , the user interface is used to set the monthly activity score threshold, and set the corresponding score for different monthly activity ranges. It can be seen that when multiple thresholds need to be set manually, the operation is cumbersome and there may be problems with interval overlap. Figure 1A or Figure 1B The user interface shown cannot detect the interval crossing problem in time, which leads to operation errors and affects the user experience.
[0038] In order to solve some or all of the technical problems existing in the above-mentioned related technologies, the embodiments of the present application provide a method, device, electronic device, and medium for setting interval segmentation, wherein the method generates and displays a visual number axis when the user interface involves a threshold setting task, and then adds nodes to the visual number axis in response to the user's node threshold input on the visual number axis, and the nodes divide the visual number axis into multiple intervals, and the intervals do not intersect with each other. In this way, the present application generates a visual number axis on the user interface, and when the user sets the node threshold, it is displayed accordingly on the visual number axis, so that the setting of the node threshold is more specific and intuitive, avoiding the intersection of node intervals, and improving the accuracy and rationality of the interval setting, thereby improving the user's experience.
[0039] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0041] A method for setting interval segmentation provided in an embodiment of the present application can be implemented by an interval segmentation setting device or an electronic device, and the electronic device includes but is not limited to a vehicle terminal, a server, a personal computer, a laptop computer, a tablet computer, a smart phone, etc. The operating system of the electronic device may include Android, a mobile operating system (iOS) developed by Apple, an operating system (Windows) developed by Microsoft Corporation of the United States, etc., and the embodiment of the present application does not limit this. The electronic device can be run alone to implement the present application, or it can be connected to a network and implement the present application through interactive operations with other computer devices in the network. Among them, the network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN) network, etc.
[0042] It should be noted that the protection scope of the interval segmentation setting method described in the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.
[0043] like Figure 2 As shown, Figure 21 is a flow chart of a method for setting interval segments according to an embodiment of the present application. The method can be executed by a device for setting interval segments, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 2 As shown, the method mainly includes the following steps S201-S202:
[0044] S201. When the user interface involves a threshold setting task, generate and display a visual number axis.
[0045] The threshold setting task includes but is not limited to: setting a minimum value, an average value, or a maximum value; and selecting whether it is greater than or equal to a threshold or less than or equal to a threshold.
[0046] As a display control on a user node, a visualized number axis can be a horizontal visualized number axis, a vertical visualized number axis, or other forms of visualized number axes; the positive direction of the horizontal visualized number axis can be right, that is, from left to right; the positive direction of the vertical visualized number axis can be up, that is, from bottom to top. The present application does not specifically limit the display form and positive direction of the visualized number axis.
[0047] When executing step S201, a visual number axis is generated and displayed, and the visual number axis is a straight line that specifies the origin, positive direction and unit length. Optionally, the visual number axis may also include the following contents: nodes, node names. The nodes may be marked on the visual number axis in the form of symbols such as solid circles, and the node names may be displayed on the left or bottom side of the visual number axis; the number axis segments between nodes are defined as segmented intervals, and the visual number axis also includes task controls for intervals, and the task controls for intervals are used to indicate the triggerable tasks corresponding to the intervals, including: generating interval scores, evaluating interval levels, calling interval functions, triggering interval events, etc. The task controls for segmented intervals can be distinguished from the node names displayed on the other side of the visual number axis, and may be on the right or top side of the visual number axis. The task controls for segmented intervals may be edit controls, drop-down selection controls, etc., such as function editors.
[0048] For example, Figure 3AAs shown, a horizontal visual number axis with the positive direction being right is generated and displayed in the user interface. The horizontal visual number axis includes 4 initial nodes (node 1, node 2, node 3 and node 4), 5 initial intervals, and task controls corresponding to the 5 initial intervals (level 1, level 2, level 3, level 4 and level 5). The node name of the initial node is displayed on the lower side of the horizontal visual number axis, and the task control of the initial interval is displayed on the upper side of the horizontal visual number axis. The size and name of the initial node can be modified. For example, when the user sets the node threshold of the initial node node 1, the initial node node 1 is moved to the corresponding position of the visual number axis according to the node threshold. The task control of the initial interval can also be modified. For example, when the task control is a function editor, the user can modify the interval function in the function editor. It should be noted that the horizontal visual number axis generated in the user interface, refer to Figure 3A As shown, it may be a straight line that only specifies the origin, positive direction and unit length, but does not include the initial node, the task control corresponding to the initial interval and other contents. In this way, when executing the subsequent step S202, a new node is added on the straight line.
[0049] Another example is Figure 3B As shown, a vertical visualization axis with the positive direction upward is generated and displayed in the user interface. The vertical visualization axis includes 4 initial nodes (node1, node2, node3, and node4) and 5 task controls corresponding to the initial intervals (trigger event 1, trigger event 2, trigger event 3, trigger event 4, and trigger event 5). The node name of the initial node is displayed on the left side of the vertical visualization axis, and the task control corresponding to the initial interval is displayed on the right side of the vertical visualization axis.
[0050] S202 . In response to a node threshold input by a user on a visualized number axis, adding nodes on the visualized number axis, where the nodes are used to divide the visualized number axis into multiple intervals.
[0051] The node threshold input can be multiple values, such as 30, 50, 70, etc. According to the multiple values input by the user, the size of each value is first checked, and then the nodes corresponding to the values are added to the visual number axis in sequence after sorting.
[0052] Exemplary, reference Figure 3AAs shown, in response to the user's input of the node threshold on the visual number axis, nodes node1, node2, node3 and node4 are added to the visual number axis. The nodes node1, node2, node3 and node4 divide the visual number axis into 5 intervals, namely, the interval less than node 1, the interval greater than or equal to node 1 and less than node 2, the interval greater than or equal to node 2 and less than node 3, the interval greater than or equal to node 3 and less than node 4, and the interval greater than node4.
[0053] In some embodiments, after executing step S202, it also includes adding a task control of multiple intervals on the visual number axis in response to the user's setting operation of multiple intervals, so that when the node value is in the corresponding interval, at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events is triggered.
[0054] Exemplary, reference Figure 3A As shown, after adding nodes node1, node2, node3 and node4, the user can set the triggering task of each interval, such as the evaluation interval level, and display the task control on the upper side of the number axis. For example, for the interval less than node 1, the task control "level 1" (right dotted line) corresponding to the interval is added on the upper side of the visual number axis, indicating that when the node is less than node 1, the score is level 1; for the interval greater than or equal to node 1 and less than node 2, the task control "level 2" (left solid line and right dotted line) corresponding to the interval is added on the upper side of the visual number axis; for the interval greater than or equal to node 2 and less than node 3, the task control "level 3" (left solid line and right dotted line) corresponding to the interval is added on the upper side of the visual number axis; for the interval greater than or equal to node 3 and less than node 4, the task control "level 4" (left solid line and right dotted line) corresponding to the interval is added on the upper side of the visual number axis; and for the interval greater than node 4, the task control "level 5” (solid left line).
[0055] For example, reference Figure 3BAs shown, after adding nodes node1, node2, node3 and node4, the user can set the triggering tasks of each interval, such as interval events, and display the task controls on the right side of the number axis. For example, when setting the interval less than node 1, add the task control "Trigger Event 1" (upper dotted line) corresponding to the interval on the right side of the visualized number axis, indicating that when the node is less than node 1, trigger event 1; set the interval greater than or equal to node 1 and less than node 2, add the task control "Trigger Event 2" (upper dotted line and lower solid line) corresponding to the interval on the right side of the visualized number axis; set the interval greater than or equal to node 2 and less than node 3, add the task control "Trigger Event 3" (upper dotted line and lower solid line) corresponding to the interval on the right side of the visualized number axis; set the interval greater than or equal to node 3 and less than node 4, add the task control "Trigger Event 4" (upper dotted line and lower solid line) corresponding to the interval on the right side of the visualized number axis; and set the interval greater than node 4, add the task control "Trigger Event 5" (lower solid line) corresponding to the interval on the right side of the visualized number axis.
[0056] In some embodiments, node addition controls are set at both ends of the visual axis in the user interface. After the user clicks the node addition controls at both ends of the visual axis and enters a node threshold, a node corresponding to the node threshold is added to the visual axis, and the node divides the visual axis into intervals. For example, Figure 3C As shown, there is a node adding control 301 at one end of the vertical visualization axis. After the user clicks the node adding control 301, the vertical visualization axis Figure 3B On the basis shown in the figure, a new node node5 is added, corresponding to a new interval task control "trigger event 6".
[0057] In some embodiments, a node deletion control is provided in the visual axis of the user interface. When the user clicks the node deletion control of the target node, or hovers over the area where the target node is located, the corresponding target node can be deleted from the visual axis and the adjacent segment intervals corresponding to the target node can be merged. For example, Figure 3D As shown, the user clicks the node deletion control 302 of node node4 on the vertical visual axis to delete node4 from the visual axis, and then compares whether "trigger event 4" and "trigger event 5" are the same. If so, the task control of the segmented interval is retained, and if not, the task control of the interval is cleared. For example, Figure 4A As shown, the node deletion control can be hidden as an option first, and when the user clicks the target node, the "Delete Node" option is displayed.
[0058] The above embodiment customizes the visual number axis through node addition controls and node deletion controls, supports users to modify the nodes on the visual number axis according to actual needs, intuitively displays the relative sizes of nodes and intervals, and avoids the problem of mutual intersection.
[0059] In the embodiment of the present application, the opening and closing properties of the nodes are defined, and the nodes include left-closed and right-open nodes, left-open and right-closed nodes, and discrete fully-open nodes. The interval corresponding to the node has an interval opening and closing property. The opening and closing property of a node determines the opening or closing of an interval endpoint, and the opening and closing property of an interval depends on the opening and closing properties of two nodes. The previous adjacent interval corresponding to the left-closed and right-open node is a right-closed interval, and the next adjacent interval is a left-open interval; the previous adjacent interval corresponding to the left-open and right-closed node is a right-open interval, and the next adjacent interval is a left-closed interval; the discrete fully-open node corresponds to a previous adjacent interval that is a right-open interval, and the next adjacent interval is a left-open interval. The opening and closing property of the node can be left-open and right-closed by default.
[0060] For example, Figure 4A As shown, the node opening and closing attribute control 401 is displayed in the user interface. When the user selects node node 3, the node opening and closing attribute control 401 is displayed. The current node opening and closing attribute of node 3 is left open and right closed. The user can switch to left closed and right open, or discrete full open. The opening and closing attributes of a node can be modified separately. The node node3 can be selected by clicking or hovering, which is only an exemplary description and is not specifically limited in this application.
[0061] Another example is Figure 4B As shown, the user interface displays a node opening and closing property control 402, which is used to set the opening and closing properties of multiple nodes. The current node opening and closing properties of the illustrated nodes node1, node2, node3 and node4 are all left open and right closed. When the user operates the node opening and closing property control 402 and selects the left closed and right open option, the node opening and closing properties of the nodes node1, node2, node3 and node4 are switched to left closed and right open, thereby realizing batch modification of the opening and closing properties of the nodes.
[0062] In some embodiments, after executing step S202, the method further includes modifying the positional relationship between the target node and the multiple intervals according to the first preset rule in response to the user's switching operation of the opening and closing attributes of the target node on the visual number axis. Here, the horizontal visual number axis with the positive direction being right is taken as an example to illustrate the positional relationship between the node and the interval: after executing step S202, in response to the user's switching operation of the opening and closing attributes of the target node on the horizontal visual number axis, the positional relationship between the target node and the multiple intervals is modified according to the first preset rule. As mentioned above, the opening and closing attributes of the node include left open and right closed, left closed and right open, and discrete full open. Assuming that the opening and closing attributes of the target node are set to left open and right closed by default, the first preset rule includes: if the opening and closing attribute switching operation indicates switching to left open and right closed, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; if the opening and closing attribute switching operation indicates switching to discrete full open, the target node is moved from the left end of the next adjacent interval to the middle position, that is, the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
[0063] When the opening and closing properties of the target node are left-open and right-closed by default, on the horizontal visualization axis with the positive direction being right, the target node is located at the left end of the next adjacent interval, the previous adjacent interval does not include the node threshold corresponding to the target node, and the next adjacent interval includes the node threshold corresponding to the target node; when the opening and closing properties of the target node are left-closed and right-open by default, on the horizontal visualization axis with the positive direction being right, the target node is located at the right end of the previous adjacent interval, the previous adjacent interval includes the node threshold corresponding to the target node, and the next adjacent interval does not include the node threshold corresponding to the target node.
[0064] For example, Figure 3A As shown in the figure, the target node node 2 is originally a left-open and right-closed node, located at the left end of the next adjacent interval. The user switches the open and closed attributes of the target node node 2 to left-closed and right-open. Figure 4C As shown, the target node node 2 is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval.
[0065] When the positive direction of the horizontal visualization axis is left, or the visualization axis is a vertical visualization axis, and the opening and closing properties of the node are left closed and right open or discretely fully open by default, you can refer to the above embodiment to modify the positional relationship between the target node and the multiple intervals. This application will not go into details here.
[0066] In some embodiments, after executing step S202, it also includes responding to the user's switching operation of the opening and closing properties of the target node on the visual axis, modifying the association relationship between the task control corresponding to the target node and the target node according to the second preset rule. Here, the vertical visual axis with the positive direction as the upper direction is taken as an example to illustrate the association relationship between the node task control and the target node: after executing step S202, in response to the user's switching operation of the opening and closing properties of the target node on the visual axis, modifying the association relationship between the task control corresponding to the target node and the target node according to the second preset rule, as mentioned above, the opening and closing properties of the node include left open and right closed, left closed and right open, and discrete full open. Assuming that the opening and closing properties of the target node are set to left open and right closed by default, the second preset rule includes: if the opening and closing property switching operation indicates switching to left closed and right open, then establish the association relationship between the previous task control corresponding to the target node and the target node, and cancel the association relationship between the next task control corresponding to the target node and the target node; if the opening and closing property switching operation indicates switching to discrete full open, then cancel the association relationship between the task control corresponding to the target node and the target node, and optionally generate a task control with an association relationship with the target node.
[0067] Among them, the two task controls corresponding to each target node can be defined as the previous task control and the next task control, which correspond to the previous adjacent interval and the next adjacent interval of the target node respectively. Assuming that the opening and closing properties of the target node are set to left open and right closed by default, the previous task control of the target node has no association with the target node, while the next task control of the target node has an association with the target node. Figure 3B As shown, the previous task control "trigger event 3" of the target node node 3 is connected to the target node node 3 through a dotted line, and the next task control "trigger event 4" of the target node node 3 is connected to the target node node 3 through a solid line, indicating that when the node value reaches the node threshold corresponding to node 3, trigger event 4 is executed.
[0068] For example, Figure 3B As shown in the figure, the target node node 3 was originally a left-open and right-closed node, and had no association with the previous task control "trigger event 3", which was connected by a dotted line, and had an association with the next task control "trigger event 4", which was connected by a solid line. When the user switches the open and close properties of the target node node 3 to discrete full open, as shown in the figure, Figure 4D As shown, the association relationship between the next task control "trigger event 4" and the target node node 3 is released, and the target node node 3 is connected to the next task control "trigger event 4" by a dotted line. At this time, the target node node 3 is a discrete node and can be used as an independent interval to generate a task control associated with the target node node 3, which is connected to the target node node 3 by a solid line.
[0069] In summary, the embodiment of the present application provides a method for setting interval segmentation. The method first generates and displays a visual axis when the user interface involves a threshold setting task, and then adds nodes to the visual axis in response to the user's node threshold input on the visual axis. The nodes divide the visual axis into multiple intervals, and the intervals do not intersect with each other. In this way, the present application generates a visual axis on the user interface, and when the user sets the node threshold, it is displayed accordingly on the visual axis, making the setting of the node threshold more specific and intuitive, avoiding the intersection of node intervals, and improving the accuracy and rationality of the interval setting, thereby improving the user's experience.
[0070] like Figure 5 As shown, Figure 5 An interval segmentation setting device provided in an embodiment of the present application includes:
[0071] A visual number axis generation module 501 is used to generate and display a visual number axis when the user interface involves a threshold setting task;
[0072] The node adding module 502 is used to add nodes on the visual number axis in response to the node threshold input by the user on the visual number axis, and the nodes are used to divide the visual number axis into multiple sections, and the multiple sections do not intersect each other.
[0073] As an optional implementation of the embodiment of the present application, the device also includes a task control adding module, which is used to: in response to the user's setting operation on multiple intervals, add task controls for multiple intervals on the visual number axis, so that when the node value is in the corresponding interval, it triggers at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events.
[0074] As an optional implementation of an embodiment of the present application, a visual number axis includes a horizontal visual number axis with a positive direction to the right; the transposition also includes a modification module, which is used to: in response to a user's switching operation of an opening and closing attribute of a target node on the horizontal visual number axis, modify the positional relationship between the target node and multiple intervals according to a first preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete full open; the first preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; if the opening and closing attribute switching operation indicates switching to discrete full open, the target node is moved from the left end of the next adjacent interval to the middle position, and the middle position is the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
[0075] As an optional implementation of an embodiment of the present application, a visual number axis includes a vertical visual number axis with the positive direction upward; the transposition also includes a modification module, which is used to: in response to a user's opening and closing attribute switching operation on a target node on the vertical visual number axis, modify the association relationship between the task control corresponding to the target node and the target node according to a second preset rule; wherein the opening and closing attributes of the node include left open and right closed, left closed and right open, or discrete fully open; the second preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: if the opening and closing attribute switching operation indicates switching to left closed and right open, then establish an association relationship between the previous task control corresponding to the target node and the target node, and release the association relationship between the next task control corresponding to the target node and the target node; if the opening and closing attribute switching operation indicates switching to discrete fully open, then release the association relationship between the task control corresponding to the target node and the target node.
[0076] For the specific definition of the interval segmentation setting device, please refer to the definition of the interval segmentation setting method above, which will not be repeated here. Each module in the above-mentioned interval segmentation setting device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0077] In one embodiment, the present application provides an electronic device, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for setting interval segmentation is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0078] Those skilled in the art will understand that Figure 6The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0079] In one embodiment, the interval segmentation setting device provided in the present application can be implemented in the form of a computer program. The computer program can be used in Figure 6 The computer program composed of each program module enables the processor to execute the steps of the interval segmentation setting method of each embodiment of the present application described in this specification.
[0080] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed, the steps in the interval segmentation setting method of each embodiment of the present application described in this specification are implemented.
[0081] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0082] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] In the present application, the processor may 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. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0084] In this application, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0085] In this application, computer-readable media includes permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0086] It should be noted that, in this article, relational terms such as "first" and "second" 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 existence of other identical elements in the process, method, article or device including the elements.
[0087] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can 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 these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for setting interval segments, It is characterized in that include: Generate and display visual number lines when the user interface involves threshold setting tasks; In response to a node threshold input by a user on the visual number axis, a node is added to the visual number axis, wherein the node is used to divide the visual number axis into a plurality of intervals, and the plurality of intervals do not intersect each other.
2. The method according to claim 1, It is characterized in that The method further comprises: In response to the user's setting operation on the multiple intervals, task controls for the multiple intervals are added to the visual number axis, so that when the node value is in the corresponding interval, at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events is triggered.
3. The method according to claim 1, It is characterized in that The visualized number axis includes a horizontal visualized number axis with a positive direction being right; and the method further includes: In response to a user's on / off attribute switching operation on a target node on the horizontal visualized number axis, modifying a positional relationship between the target node and the plurality of intervals according to a first preset rule; The opening and closing properties of the node include left open and right closed, left closed and right open, or discrete fully open; The first preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: If the opening and closing attribute switching operation indicates switching to left-closed and right-opened, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; If the on-off attribute switching operation indicates switching to discrete full opening, the target node is moved from the left end of the next adjacent interval to the middle position, and the middle position is the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
4. The method according to claim 2, It is characterized in that The visualized number axis includes a vertical visualized number axis with the positive direction upward; the method further includes: In response to a user's on / off attribute switching operation on a target node on the vertical visualization axis, modifying an association relationship between a task control corresponding to the target node and the target node according to a second preset rule; The opening and closing properties of the node include left open and right closed, left closed and right open, or discrete fully open; The second preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: If the opening and closing attribute switching operation indicates switching to left closing and right opening, an association relationship between the previous task control corresponding to the target node and the target node is established, and an association relationship between the next task control corresponding to the target node and the target node is released; If the on / off attribute switching operation indicates switching to discrete full opening, the association relationship between the task control corresponding to the target node and the target node is released.
5. A device for setting interval segments, It is characterized in that include: A visual number axis generation module, used to generate and display a visual number axis when the user interface involves a threshold setting task; The node adding module is used to add nodes on the visual number axis in response to the node threshold input by the user on the visual number axis, wherein the nodes are used to divide the visual number axis into multiple sections, and the multiple sections do not intersect each other.
6. The device according to claim 5, It is characterized in that The device also includes: The task control adding module is used to add the task controls of the multiple intervals on the visual number axis in response to the user's setting operation on the multiple intervals, so that when the node value is in the corresponding interval, at least one of generating interval scores, evaluating interval levels, calling interval functions, and interval events is triggered.
7. The device according to claim 5, It is characterized in that The visualized number axis includes a horizontal visualized number axis with a positive direction being right; the device further includes: A modification module, configured to modify the positional relationship between the target node and the plurality of intervals according to a first preset rule in response to a user's switching operation of an open or closed attribute of a target node on the horizontal visual number axis; The opening and closing properties of the node include left open and right closed, left closed and right open, or discrete fully open; The first preset rule includes when the opening and closing attributes of the target node are set to left open and right closed by default: If the opening and closing attribute switching operation indicates switching to left-closed and right-opened, the target node is moved from the left end of the next adjacent interval to the right end of the previous adjacent interval; If the on-off attribute switching operation indicates switching to discrete full opening, the target node is moved from the left end of the next adjacent interval to the middle position, and the middle position is the midpoint position between the right end of the previous adjacent interval and the left end of the next adjacent interval.
8. An electronic device, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the interval segmentation setting method according to any one of claims 1 to 4.
9. A computer-readable storage medium, It is characterized in that include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the interval segmentation setting method according to any one of claims 1 to 4 is implemented.
10. A computer program product, It is characterized in that include: The computer program product comprises a computer program, and when the computer program is executed on a computer, the computer is enabled to implement the interval segmentation setting method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Creation method of editing controls component capable of setting multiple range interval
CN101118492A
Class attribute-based parallel coordinate visualization curve binding method
CN108304500A
Data processing method and device, medium and computing equipment
CN108874899A
Medical equipment and interval threshold setting method for medical equipment and device thereof
CN110604580A
Data processing method and device based on Echarts, equipment and storage medium
CN115687723A
