Reservation task processing method and device, electronic equipment and vehicle
By introducing an appointment task processing method into the vehicle reservation control function, the time conflict algorithm is used to detect and avoid appointment task conflicts, the problem that vehicles cannot perform complete tasks due to appointment time conflicts is solved, and more efficient and stable task execution is achieved.
Patent Information
- Application Number
- CN202510284554.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-11
- Publication Date
- 2025-06-20
AI Technical Summary
In the vehicle reservation control function, multiple reservation functions may have reservation time conflicts, resulting in the vehicle being unable to perform the complete task, which has a huge impact on the vehicle.
A reservation task processing method is provided. By obtaining the new reservation task plan entered by the user, the newly added reservation task configuration information is determined, and the preset time conflict algorithm is used to calculate and determine whether there is a conflict. When there is a conflict, conflict information is generated and displayed for users to modify to avoid conflicts.
It effectively avoids conflicts between appointment tasks, ensures that the vehicle can not have any impact when performing appointment tasks, and improves the vehicle's task execution capabilities and user experience.
Smart Images

Figure CN120181269A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle reservation control, and particularly to a reservation task processing method, device, electronic device, and vehicle. Background Art
[0002] With the development of vehicle technology, vehicle reservation control functions are widely used. Through remote operation platforms such as mobile phone APPs, users can send various reservation functions to the vehicle. When the vehicle executes the corresponding reservation tasks, it needs to be based on the specific reservation time. Since there may be conflicts in the reservation times of various reservation functions, when the vehicle executes the reservation tasks according to the reservation time, it may cause the interruption of the previous task, and then the vehicle cannot execute the complete task, which has a huge impact on the vehicle. Summary of the Invention
[0003] In view of this, the purpose of the present application is to propose a reservation task processing method, device, electronic device, and vehicle to solve the problem that there are reservation conflicts in various vehicle reservation functions. When the vehicle executes the reservation tasks according to the reservation time, it may cause the interruption of the previous task, and then the vehicle cannot execute the complete task, which has a huge impact on the vehicle.
[0004] Based on the above purpose, the present application provides a reservation task processing method, including:
[0005] Obtain a newly added reservation task plan input by the user;
[0006] Determine the configuration information of the newly added reservation task according to the newly added reservation task plan;
[0007] Calculate the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine the conflict calculation result;
[0008] Determine whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result;
[0009] In response to the conflict between the newly added reservation task configuration information and the existing reservation task configuration information, generate and display conflict information.
[0010] Optionally, the reservation task configuration information includes a numerical string, and the numerical string is determined according to the reservation type and the reservation time;
[0011] The step of calculating the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine the conflict calculation result includes:
[0012] Calculate the numerical string of the newly added appointment task configuration information and the numerical string of the existing appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result.
[0013] Optionally, the calculating the numerical string of the newly added appointment task configuration information and the numerical string of the existing appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result includes:
[0014] Sort the newly added appointment task configuration information and the existing appointment task configuration information in ascending order of the numerical string to form the first appointment task configuration information.
[0015] Based on a preset time conflict algorithm, calculate the numerical strings of all adjacent appointment task configuration information in the first appointment task configuration information to determine the conflict calculation result.
[0016] Optionally, the calculating the numerical strings of all adjacent appointment task configuration information in the first appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result includes:
[0017] Determine the date and time corresponding to the appointment time in the numerical string.
[0018] Calculate the time difference between the date and time in the two numerical strings, and use the time difference as the conflict calculation result.
[0019] Optionally, the determining whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information according to the conflict calculation result includes:
[0020] In response to the conflict calculation result being less than the conflict preset threshold, determine that there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information;
[0021] In response to the conflict calculation result being greater than or equal to the conflict preset threshold, determine that there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information.
[0022] Optionally, the determining whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information includes:
[0023] Screen out the existing appointment task configuration information with the appointment type of non-periodic task from the existing appointment task configuration information, and record it as the non-periodic existing appointment task configuration information;
[0024] Determine whether there is a conflict between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information;
[0025] In response to a conflict existing between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information, it is determined that a conflict exists between the newly added appointment task configuration information and the existing configuration information.
[0026] Optionally, in response to no conflict existing between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information, filter out the existing appointment task configuration information with an appointment type of periodic task from the existing appointment task configuration information, and denote it as the periodic existing appointment task configuration information;
[0027] Determine whether a conflict exists between the newly added appointment task configuration information and the periodic existing appointment task configuration information;
[0028] In response to a conflict existing between the newly added appointment task configuration information and the periodic existing appointment task configuration information, it is determined that a conflict exists between the newly added appointment task configuration information and the existing configuration information.
[0029] Optionally, in response to no conflict existing between the newly added appointment task configuration information and the existing appointment task configuration information, generate target configuration information according to the newly added appointment task configuration information and the existing appointment task configuration information.
[0030] Based on the same inventive concept, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor implements the method as described above when executing the computer program.
[0031] Based on the same inventive concept, the present disclosure also provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the method as described above.
[0032] As can be seen from the above, the present application provides a method, apparatus, electronic device and vehicle for processing reservation tasks. After obtaining the newly added reservation task plan input by the user, the method first converts the newly added reservation plan into newly added reservation task configuration information. In this way, it is convenient to detect conflicts between the newly added reservation task configuration information and the existing reservation task configuration information. The conflict detection can be understood as calculating the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm, that is, calculating according to the reservation time, and judging whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result. When it is detected that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, the user needs to be reminded, and then conflict information is generated and displayed, so that the user can modify the newly added reservation task plan according to the displayed conflict information to ensure that all reservation tasks do not have conflicts and the vehicle will not be affected when executing the reservation tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or related technologies, the following will briefly introduce the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings in the following description are only embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0034] Figure 1 It is a schematic flowchart of a method for processing reservation tasks according to an embodiment of the present application;
[0035] Figure 2 It is a schematic flowchart for determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to an embodiment of the present application;
[0036] Figure 3 It is a schematic structural diagram of an apparatus for processing reservation tasks according to an embodiment of the present application;
[0037] Figure 4 It is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] To make the objectives, technical solutions and advantages of the present application clearer and more understandable, the following further details the present application in conjunction with specific embodiments and with reference to the accompanying drawings.
[0039] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of this application should have the ordinary meanings understood by those of ordinary skill in the field to which this application belongs. The "first", "second" and similar terms used in the embodiments of this application do not denote any order, quantity or importance, but are only used to distinguish different components. Words such as "including" or "comprising" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Words such as "connected" or "linked" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to represent relative position relationships. When the absolute position of the object being described changes, the relative position relationship may also change accordingly.
[0040] Based on the description in the background art, the vehicle reservation control function includes, for example, various control functions such as air conditioning control, reservation charging, battery pack heating, intelligent reservation cooling, etc. When performing reservation control on a vehicle, its principle is to connect the vehicle with a remote operation platform such as a control terminal APP through the vehicle networking system to achieve real-time data transmission and remote instruction sending. For example, the vehicle owner can set the reservation time and control instructions on the mobile APP, and the vehicle will automatically execute the corresponding operations at the reservation time according to the set control instructions. The user can set control instructions for regularly executing tasks, and its periodic reservation tasks are, for example: perform reservation charging at 10:00 every Tuesday in a month. Control instructions for non-periodically executing tasks can also be set, and its non-periodic reservation tasks are, for example, perform reservation charging at 9:50 on Tuesday. Since the periodic reservation task is to be executed at 10:00 every Tuesday and the non-periodic reservation task is to be executed at 9:50 on Tuesday, and both are reservation charging. In comparison, the difference in the reservation times between the two is less than one hour. In this way, the vehicle needs to execute the second reservation charging before finishing the first reservation charging, which is equivalent to the vehicle stopping the first reservation task and executing the second reservation task. In this way, repeatedly starting and stopping charging in a short period of time will affect the service life of the battery. Therefore, when the user issues a reservation task plan, it is necessary to first detect whether there is a conflict between the reservation task and the existing tasks.
[0041] To solve the above technical problems, as Figure 1 shown, this application provides a reservation task processing method, including the following steps:
[0042] Step 102, obtain the newly added reservation task plan input by the user.
[0043] In this step, for example, the user inputs a reservation task plan through the APP corresponding to the vehicle installed in the smart phone, or inputs a reservation task plan through the APP corresponding to the vehicle installed in the tablet computer, or inputs a reservation task plan through the APP installed in the in-vehicle unit. The vehicle-side controller will receive the reservation task plan sent by the APP. The historical reservation task plans are stored in the controller. The vehicle-side controller regards the reservation task plan sent by the APP as a newly added reservation task plan, and the controller thus obtains the newly added reservation task plan input by the user. For example, the reservation task plan can be: make a reservation for charging at 19:00 every Tuesday in April.
[0044] Step 104: Determine the newly added reservation task configuration information according to the newly added reservation task plan.
[0045] In this step, the newly added reservation task plan is just a plan. When the newly added reservation task plan is a regular task, a reservation task plan includes multiple tasks. For example, the reservation task plan can be: make a reservation for charging at 19:00 every Tuesday in April. Then this reservation task plan includes 5 tasks, namely: make a reservation for charging at 19:00 on April 1st, make a reservation for charging at 19:00 on April 8th, make a reservation for charging at 19:00 on April 15th, make a reservation for charging at 19:00 on April 22nd, and make a reservation for charging at 19:00 on April 29th. When the newly added reservation task plan is an irregular task, then the reservation task plan includes one task. For example, the reservation task plan is to turn on the air conditioner at 8:00 on April 12th, then the reservation task also includes one task of turning on the air conditioner at 8:00 on April 12th. When determining the newly added reservation task configuration information according to the newly added reservation task plan, that is, splitting the newly added reservation task plan into one or more tasks, and forming the newly added reservation task configuration information according to the reservation time and reservation type of the one or more tasks. It can be understood that the reservation task configuration includes each task and the reservation type and reservation time of each task.
[0046] Step 106: Calculate the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine the conflict calculation result.
[0047] In this step, exemplarily, the appointment time in the newly added appointment task configuration information and the appointment time in the existing appointment task configuration information are calculated based on a preset time conflict algorithm to determine the conflict calculation result. For example, the appointment time is 8:00 on April 12th, and the appointment time includes the date and the moment. The preset time conflict algorithm includes: calculating the time difference between the date and the moment in the newly added appointment task configuration information and the date and the moment in the existing appointment task configuration information, and taking the time difference as the conflict calculation result. Then, based on the conflict calculation result, it is determined whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information.
[0048] Step 108: Determine whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information according to the conflict calculation result.
[0049] In this step, after the controller receives the newly added appointment task plan and uses it as the newly added appointment task configuration information, it is necessary to first determine whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information. That is to say, it can be understood as whether there is a conflict in the appointment time between the newly added appointment task configuration information and the existing appointment task configuration information. For example, when the time difference is less than the conflict preset threshold, it is determined that there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information. When the time difference is greater than or equal to the conflict preset threshold, it is determined that there is no conflict between the newly added appointment task configuration information and the existing appointment task configuration information. If there is a conflict, it means that the newly added appointment task configuration information is unreasonable, and the controller cannot store the newly added appointment task configuration information. If there is no conflict, it means that the newly added appointment task configuration information is reasonable and can be stored for the vehicle to execute the appointment task according to the stored appointment task configuration information.
[0050] Step 110: In response to the conflict between the newly added appointment task configuration information and the existing appointment task configuration information, generate and display conflict information.
[0051] In this step, when the controller determines that there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information, it means that the appointment time of the newly added appointment task is unreasonable and the user needs to be reminded. Therefore, the controller generates conflict information and displays it for the user to understand the situation.
[0052] Through steps 102 - 110, after obtaining the newly added reservation task plan input by the user, first convert the newly added reservation plan into newly added reservation task configuration information. In this way, it is convenient to perform conflict detection between the newly added reservation task configuration information and the existing reservation task configuration information. The conflict detection can be understood as calculating the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm, that is, calculating according to the reservation time to obtain a conflict calculation result. According to the conflict calculation result, it is judged whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information. When it is detected that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, the user needs to be reminded, and then conflict information is generated and displayed so that the user can modify the newly added reservation task plan according to the displayed conflict information, or the controller can automatically adjust all reservation task configuration information according to the conflict information and also adaptively adjust the reservation task execution order to ensure that all reservation tasks do not have conflicts and the vehicle will not be affected when executing the reservation tasks.
[0053] In some embodiments, after the controller receives the newly added reservation task plan and converts the newly added reservation task plan into newly added reservation task configuration information, in order to avoid the newly added reservation plan being unreasonable, it is necessary to judge whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information. However, before judging whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, first calculate the conflict calculation result of the newly added reservation task configuration information and the existing reservation task configuration information, and then judge whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result. In this way, according to the conflict calculation result, it can be quickly judged whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information. The specific conflict calculation process is as follows: The reservation task configuration information includes a numerical string, and the numerical string is determined according to the reservation type and the reservation time;
[0054] Calculating the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result includes the following steps:
[0055] Calculate the numerical string of the newly added reservation task configuration information and the numerical string of the existing reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result.
[0056] Specifically, by way of example, the reservation task configuration information includes a numerical string determined according to the reservation type and reservation time. For example, the reservation task plan is: turn on the air conditioner at 19:50 on April 15th. The reservation type is an irregular task (represented by 0.1 for an irregular task). An irregular task refers to a task with a fixed date and time. The irregular task includes one task, and the reservation time of the reservation task is: 19:50 on April 15th. The numerical string can be expressed as 04151950.1. Another example, the reservation task plan is: make a reservation for charging at 19:00 every Tuesday in April; the reservation type is a regular task (represented by 0.2 for a regular task). The reservation task includes 5 tasks. The reservation times of the reservation tasks are respectively: the numerical string corresponding to 19:00 on April 1st can be expressed as 04011900.2; the numerical string corresponding to 19:00 on April 8th can be expressed as 04081900.2; the numerical string corresponding to 19:00 on April 15th can be expressed as 04151900.2; the numerical string corresponding to 19:00 on April 22nd can be expressed as 04221900.2; the numerical string corresponding to 19:00 on April 29th can be expressed as 04291900.2.
[0057] Taking the above-mentioned newly added reservation task plan to turn on the air conditioner at 19:50 on April 15th and the existing reservation task plan to make a reservation for charging at 19:00 every Tuesday in April as an example. Among them, the newly added reservation task configuration information includes that the reservation type is a non-periodic task, the reservation time is 19:50 on April 15th, and the numerical string is 04221950.1. The existing task configuration information includes that the reservation type is a periodic task, and the reservation time and numerical string include: the numerical string corresponding to 19:00 on April 1st is 04011900.2; the numerical string corresponding to 19:00 on April 8th is 04081900.2; the numerical string corresponding to 19:00 on April 15th is 04151900.2; the numerical string corresponding to 19:00 on April 22nd is 04221900.2; the numerical string corresponding to 19:00 on April 29th is 04291900.2. When determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, it is calculated and judged according to the numerical strings of all reservation task configuration information. The numerical string of the newly added reservation task configuration information (exemplarily, in the above example, its numerical string is 04221950.1) and the numerical strings of the existing reservation configuration information (exemplarily, in the above example, its numerical strings include: 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04291900.2) are calculated based on a preset time conflict algorithm to obtain a conflict calculation result. Since the numerical string is determined based on the reservation time, the preset time conflict algorithm can be understood as calculating the time difference, that is, calculating the time difference of all numerical strings to determine the conflict calculation result. Furthermore, the conflict detection of the reservation task can be carried out according to the conflict calculation result. Since the controller calculates the conflict detection result by itself, the detection speed can be improved, bringing a better experience to the user.
[0058] In some embodiments, as Figure 2 shown, after the controller receives the newly added reservation task plan and takes the newly added reservation task plan as the newly added reservation task configuration information, in order to avoid the newly added reservation plan being unreasonable, it is necessary to determine whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, so as to ensure the executability of the newly added reservation task configuration information and ensure that the vehicle will not have an adverse impact when executing the reservation task. Based on the above embodiments, in the process of conflict detection, judging based on the conflict calculation result of the newly added reservation task configuration information and the existing reservation task configuration information can improve the judgment speed. The specific judgment process is as follows: Determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result includes:
[0059] 202. Determine that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information in response to the conflict calculation result being less than the conflict preset threshold;
[0060] 204. Determine that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information in response to the conflict calculation result being greater than or equal to the conflict preset threshold.
[0061] Specifically, based on the above embodiments, after calculating the conflict calculation result, compare the conflict calculation result with the conflict preset threshold, and the conflict preset threshold can be understood as the preset duration for conflict. Exemplarily, the conflict preset threshold can be one hour. When the conflict calculation result is less than the conflict preset threshold, that is, when the time difference is less than the set threshold (the set threshold can be one hour as an example), it indicates that there is a conflict between the newly added reservation task configuration information and the existing reservation configuration information. In this way, by calculating the time difference based on the reservation time in the numerical string, it can be accurately determined that there is a conflict between the newly added task configuration information and the existing reservation task configuration information, and then the conflict information can be generated and displayed to prompt the user to modify or delete the newly added reservation task, so as to ensure that all reservation tasks do not have conflicts and the vehicle can execute the reservation tasks stably.
[0062] In some embodiments, based on the above embodiments, the numerical string is determined based on the reservation type and reservation time. The newly added reservation task configuration information and the existing reservation task configuration information can be sorted based on the reservation time corresponding to the numerical string, that is, the newly added reservation task configuration information and the existing reservation task configuration information are mixed. After sorting, calculate based on the reservation time corresponding to the numerical string, and then determine the conflict calculation result. In this way, the conflict calculation result is obtained by comparing the reservation times, and it can accurately determine whether there is a conflict between the newly added reservation task and the existing reservation task configuration information. Specifically, it includes: calculating the numerical strings of the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine the conflict calculation result, including:
[0063] Sort the newly added reservation task configuration information and the existing reservation task configuration information in ascending order of the numerical string to form the first reservation task configuration information;
[0064] Based on a preset time conflict algorithm, calculate the numerical strings of all adjacent reservation task configuration information in the first reservation task configuration information to determine the conflict calculation result;
[0065] Determine that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information in response to the conflict calculation result being less than the conflict preset threshold.
[0066] Specifically, in this embodiment, taking the configuration information as a numerical string as an example, other configuration information may also include the reservation type, specific tasks to be reserved (such as reservation for charging, reservation for turning on the air conditioner, etc.), which are not described in this embodiment. Specifically, taking the above embodiment as an example, the reservation type in the newly added reservation task configuration information is a non-periodic task, and its numerical string includes 04221950.1. The reservation type in the existing reservation task configuration information is periodic, and its numerical strings include 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04291900.2. Sort the newly added reservation task configuration information and the existing reservation task configuration information in ascending order of the numerical string to form the first reservation task configuration information. The numerical strings of the first reservation task configuration information include: 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04221950.1, 04291900.2. Substantially, it is equivalent to integrating the newly added reservation task configuration information and the existing reservation configuration information into the first reservation configuration information in ascending order of the numerical string. Based on a preset time conflict algorithm, calculate the numerical strings of all adjacent reservation task information in the first reservation task configuration information to determine the conflict calculation result. For example, calculate 04011900.2 and 04081900.2 based on the preset time conflict algorithm, calculate 04081900.2 and 04151900.2 based on the preset time conflict algorithm, calculate 04151900.2 and 04221900.2 based on the preset time conflict algorithm, calculate 04221900.2 and 04221950.1 based on the preset time conflict algorithm, calculate 04221950.1 and 04291900.2 based on the preset time conflict algorithm; it can be understood that the calculation is performed according to the reservation time in the numerical string to obtain the conflict calculation result, and then whether there is a time conflict for each numerical string is judged according to the conflict calculation result. That is, the conflict calculation result is the time difference between two adjacent numerical strings and there are 5 of them, which are: the time difference is seven days, the time difference is seven days, the time difference is seven days, the time difference is 50 minutes, and the time difference is seven days. When the conflict calculation result is less than the conflict preset threshold (exemplarily, the conflict preset threshold is 60 minutes), it is determined that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information. Among them, the two adjacent numerical strings with a time difference of 50 minutes in the conflict calculation result are in conflict, that is, there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.During the conflict judgment process, calculations are performed using the numerical string in the configuration information. The numerical string contains a date and a time, and direct addition and subtraction calculations can be performed. Therefore, in this application, calculations using the numerical string can improve the calculation speed of the controller, avoiding the problem that the controller needs to search for files storing dates to retrieve the date and time and then perform separate calculations for the date and time, resulting in a slower calculation speed and wasted time.
[0067] In some embodiments, based on the above embodiments, the numerical string is determined based on the reservation type and the reservation time. Therefore, the reservation times of the new reservation task configuration information and the existing task configuration information can be compared based on the reservation time of the numerical string to determine the calculation result. Then, based on the calculation result, it can be determined whether there is a conflict between the new reservation task configuration information and the existing task configuration information. Specifically, for example: Based on a preset time conflict algorithm, calculations are performed on the numerical strings of all adjacent reservation task configuration information in the first reservation task configuration information to determine the conflict calculation result, including:
[0068] Determine the date and time corresponding to the reservation time in the numerical string;
[0069] Calculate the time difference between the date and the time in the two numerical strings, and use the time difference as the conflict calculation result.
[0070] Specifically, based on the above embodiments, the appointment type in the newly added appointment task configuration information is a non-periodic task, and its numerical string includes 04221950.1. The appointment type in the existing appointment task configuration information is periodic, and its numerical strings include 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04291900.2. The first and second digits of the numerical string represent the month, the third and fourth digits represent the specific date in each month, the fifth and sixth digits represent the specific time, the seventh and eighth digits represent the specific minute, and the digits after the decimal point represent the appointment type. For example, 04011950.1 represents 19:50 on April 15th, and 0.1 represents that the appointment type is a non-periodic task. When calculating the conflict calculation result, first determine the date and time corresponding to the appointment time in the numerical string. The date and time corresponding to the numerical string of the first appointment task configuration information and the appointment time are 19:00 on April 1st; 19:00 on April 8th; 19:00 on April 15th; 19:50 on April 15th, 19:00 on April 22nd; 19:00 on April 29th. Then calculate the time difference between the dates and times in two adjacent numerical strings, which are respectively: the time difference is seven days, the time difference is seven days, the time difference is seven days, the time difference is 50 minutes, and the time difference is seven days. Use the time difference as the conflict calculation result. Furthermore, based on the conflict calculation result, determine whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information. Since the numerical string exists in the appointment task configuration information and can be directly retrieved by the controller, in this way, the search time of the controller for other date files can be saved. And there is an appointment time in the numerical string. Based on the numerical string as the calculation basis, the calculation speed of the controller can be improved, and the calculation result can be obtained quickly, avoiding the problem of too long calculation time caused by searching for the corresponding appointment time in the database or file.
[0071] In some embodiments, based on the above embodiments, the numerical string is determined based on the appointment type and the appointment time. The newly added appointment task configuration information and the existing appointment task configuration information can be sorted based on the appointment time corresponding to the numerical string, that is, the newly added appointment task configuration information and the existing appointment task configuration information are mixed. Since the newly added appointment task configuration information is stored with a timestamp or other marks, after the sorting of the newly added appointment task configuration information and the existing task configuration information is completed, the specific position of the newly added appointment task configuration information can also be determined; after the sorting is completed, only the appointment times of the newly added appointment task and the existing appointment task configuration information are compared based on the numerical string, and it can be quickly determined whether there is a conflict between the newly added appointment task and the existing appointment task configuration information. Specifically, it includes: calculating the numerical string of the newly added appointment task configuration information and the numerical string of the existing appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result, including:
[0072] Sort the newly added reservation task configuration information and the existing reservation task configuration information in ascending order of the numerical strings to form the first reservation task configuration information;
[0073] Based on a preset time conflict algorithm, calculate the numerical strings of the reservation task configuration information adjacent to the newly added reservation task configuration information in the first reservation task configuration information to determine the conflict calculation result;
[0074] In response to the conflict calculation result being less than the conflict preset threshold, determine that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.
[0075] Specifically, in this embodiment, taking the configuration information as a numerical string as an example, other configuration information may also include the reservation type, the specific tasks of the reservation (such as reservation for charging, reservation for turning on the air conditioner, etc.), which are not described in this embodiment. Specifically, taking the above embodiment as an example, the reservation type in the newly added reservation task configuration information is a non-periodic task, and its numerical string includes 04221950.1. The reservation type in the existing reservation task configuration information is periodic, and its numerical strings include 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04291900.2. Sort the newly added reservation task configuration information and the existing reservation task configuration information in ascending order of the numerical string to form the first reservation task configuration information. The numerical strings of the first reservation task configuration information include: 04011900.2, 04081900.2, 04151900.2, 04221900.2, 04221950.1, 04291900.2. Substantially, it is equivalent to integrating the newly added reservation task configuration information and the existing reservation configuration information in ascending order of the numerical string into the first reservation configuration information. In this way, sorting the newly added reservation task configuration information according to the size of the numerical string and forming the first reservation configuration information can only perform comparison calculations on the reservation task configuration information adjacent to the newly added reservation task configuration information to determine whether there is a conflict. If there is no conflict in the adjacent reservation task configuration information, then the newly added reservation task configuration information must not have a conflict, which can reduce the comparison calculation process and save the detection time of conflict detection. The specific comparison calculation process includes: based on a preset time conflict algorithm, calculate the numerical strings of the reservation task information adjacent to the newly added reservation task configuration information in the first reservation task configuration information to determine the conflict calculation result. For example, only calculate the two numerical strings adjacent to 04221950.1 one by one, that is, calculate 04221900.2 and 04221950.1 based on the preset time conflict algorithm, and calculate 04221950.1 and 04291900.2 based on the preset time conflict algorithm. Since the newly added reservation task configuration information has a timestamp or a mark, the position of the newly added reservation task configuration information can be determined in the first reservation configuration information according to the timestamp or the mark. Since there is no conflict in all the reservation task configuration information in the existing reservation task configuration information, only calculate the numerical strings of the newly added reservation task configuration information and the adjacent existing reservation task configuration information to determine the conflict calculation result, and then judge whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result. When the conflict calculation result is less than the conflict preset threshold, it is determined that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.In this way, during the conflict detection process, only the newly added reservation task configuration information is compared with the adjacent existing reservation task configuration information. If there is no conflict between the adjacent reservation task configuration information, then the newly added reservation task configuration information must have no conflict, which can reduce the comparison calculation process, improve the calculation speed, save the detection time of conflict detection, and quickly feedback the result to the user.
[0076] In some embodiments, when determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, since there is less reservation task configuration information for non-periodic tasks and more reservation task configuration information for periodic tasks, it is possible to determine whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the reservation task type, that is, first determine the non-periodic tasks and then determine the periodic tasks. When there is a conflict in the periodic tasks, there is no need to determine the periodic tasks. In this way, the determination time can be reduced. Specifically as follows: Determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information includes:
[0077] Screen the existing reservation task configuration information with the reservation type of non-periodic tasks from the existing reservation task configuration information, and record it as the non-periodic existing reservation task configuration information;
[0078] Determine whether there is a conflict between the newly added reservation task configuration information and the non-periodic existing reservation task configuration information;
[0079] In response to the conflict between the newly added reservation task configuration information and the non-periodic existing reservation task configuration information, determine that there is a conflict between the newly added reservation task configuration information and the existing configuration information.
[0080] Further, in response to the non-existence of conflict between the newly added reservation task configuration information and the non-periodic existing reservation task configuration information, screen the existing reservation task configuration information with the reservation type of periodic tasks from the existing reservation task configuration information, and record it as the periodic existing reservation task configuration information;
[0081] Determine whether there is a conflict between the newly added reservation task configuration information and the periodic existing reservation task configuration information;
[0082] In response to the conflict between the newly added reservation task configuration information and the periodic existing reservation task configuration information, determine that there is a conflict between the newly added reservation task configuration information and the existing configuration information.
[0083] Specifically, since the reservation task configuration information includes a numerical string, which is determined by the reservation type and reservation time, the reservation type of the reservation task configuration information can be determined according to the numerical string. For example, the numerical strings of the reservation tasks are: 04221950.1, 04221900.2. The first digit after the decimal point represents the reservation type. 0.1 indicates that the reservation type is an irregular task. 0.2 indicates that the reservation type is a regular task. Therefore, the irregular existing reservation task configuration information can be screened from the existing reservation task configuration information according to the numerical string and recorded as the irregular existing reservation task configuration information. The numerical string of the newly added reservation task configuration information and the numerical string of the irregular existing reservation task configuration information are calculated based on a preset time conflict algorithm to obtain a calculation result. When the calculation result is less than the conflict preset threshold, it is determined whether there is a conflict between the newly added reservation task configuration information and the irregular existing reservation task configuration information. When the calculation result is greater than or equal to the conflict preset threshold, it is determined that there is no conflict between the newly added reservation task configuration information set and the irregular existing reservation configuration information. When there is a conflict between the newly added reservation task configuration information and the irregular existing reservation task configuration information, it is determined that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information. That is to say, first judge whether there is a conflict between the newly added reservation task and the existing reservation tasks of the irregular task type. When there is no conflict between the newly added reservation task configuration information and the existing reservation tasks of the irregular task type, then judge whether there is a conflict between the newly added reservation task and the existing reservation task configuration information of the regular task type. After the above statement, first judge whether there is a conflict between the newly added reservation task configuration information and the existing reservation tasks of the irregular task type. If there is a conflict, it can be determined that the newly added reservation task configuration information cannot be added to the reservation task list and cannot be executed by the vehicle, and a message reminder can be sent to the user to prompt the user to modify the newly added reservation task configuration information. When there is no conflict, continue to perform conflict detection on the newly added reservation task configuration information and the existing reservation task configuration information of the regular task type. Since the number of regular tasks is large, it is placed behind the irregular task type for comparison, which can save comparison time and promptly feedback the conflict detection result to the user.
[0084] When there is no conflict between the newly added appointment task configuration information and the existing non-recurring appointment task configuration information, filter the existing appointment configuration information with the appointment type of recurring task from the existing appointment task configuration information according to the numerical string, and record it as the existing recurring task configuration information; calculate the numerical string of the newly added appointment task configuration information and the numerical string of the existing recurring appointment task configuration information based on a preset time conflict algorithm to obtain a calculation result. When the calculation result is less than the conflict preset threshold, determine whether there is a conflict between the newly added appointment task configuration information and the existing recurring appointment task configuration information. When the calculation result is greater than or equal to the conflict preset threshold, determine that there is no conflict between the newly added appointment task configuration information and the existing recurring appointment configuration information. When there is no conflict between the newly added appointment task configuration information and the existing recurring appointment configuration information, it is determined that there is no conflict between the newly added appointment task configuration information and the existing appointment configuration information. That is to say, it can be understood that when it is determined that there is no conflict between the newly added appointment task configuration information and the existing appointment configuration information of non-recurring tasks, the newly added appointment task configuration information and the existing appointment configuration information of recurring tasks are judged. In this way, since there is less appointment task configuration information for non-recurring tasks and more appointment task configuration information for recurring tasks, it can be judged whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information according to the appointment task type, that is, judge non-recurring tasks first and then recurring tasks. When there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information of non-recurring task type, a message reminder can be sent to the user to prompt the user to modify the newly added appointment task configuration information, and there is no need to perform conflict detection on the existing appointment task configuration information of recurring task type. In this way, the judgment time can be reduced, the calculation speed can be improved, and a better experience can be given to the user. In addition, the newly added appointment task configuration information and the existing appointment task configuration information of non-recurring task type can also be detected for conflict first. If there is a conflict, the existing appointment task configuration information of recurring task type also needs to be detected for conflict. In this way, all existing appointment task configuration information with conflicts can be detected, which can be used for the controller to adaptively adjust the existing appointment task configuration information with conflicts, realize intelligence, and improve the user experience.
[0085] In some embodiments, when it is determined that there is no conflict between the newly added appointment task configuration information and the existing appointment task configuration information, it means that the newly added appointment task configuration information of the user can make the vehicle execute. However, since the newly added appointment task configuration information has not been stored, it is necessary to fuse and store the newly added appointment task configuration information and the existing appointment task configuration information so that the vehicle can execute in order. Therefore, in response to the fact that there is no conflict between the newly added appointment task configuration information and the existing appointment task configuration information, target configuration information is generated according to the newly added appointment task configuration information and the existing appointment task configuration information.
[0086] Specifically, in this embodiment, when there is no conflict between the newly added reservation task configuration information and the existing reservation task configuration information, since the newly added reservation task configuration information is not stored, it is necessary to store the newly added reservation task configuration information and the existing reservation task configuration information together for the vehicle to execute. And when storing, since the reservation task configuration information includes a numerical string, and the numerical string is determined according to the reservation type and the appointment time; therefore, the newly added reservation task configuration information and the existing reservation task configuration information are sorted in ascending order of the numerical string to form the target configuration information. That is, the formed target configuration information is arranged in the order of the reservation time, and the vehicle can execute according to the order of the reservation time, improving the vehicle's reservation task execution ability and ensuring that the vehicle can safely execute the reservation task.
[0087] Further, in this embodiment, when the vehicle terminal controller detects that the reservation type of the newly added reservation task configuration information is a non-periodic task, it can be understood that there is only one piece of newly added reservation task configuration information. Then the original execution list can be retrieved, and the newly added reservation task configuration information can be inserted into the original execution list according to the numerical string order of all the reservation task configuration information. When the vehicle terminal controller detects that the reservation type of the newly added reservation task configuration information is a periodic task, it means that the newly added reservation task configuration information includes multiple pieces. In order to reduce the search time, the existing task configuration information and the newly added reservation configuration information are directly re-sorted to form a new execution list for the vehicle to execute. When the newly added reservation task configuration information is a periodic task, multiple pieces of newly added task configuration information can also be inserted into the original execution list according to the size of the numerical string. There is no specific limitation in this application.
[0088] In some embodiments, when there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, in order to prevent the user from being unclear about whether the newly added reservation task plan is reasonable, it is necessary to generate and display a prompt message. Specifically, it includes: generating and displaying a conflict message, including: obtaining the control end information, generating a conflict message and a display control message according to the control end information, and sending the conflict message and the display control message.
[0089] Specifically, by way of example, the conflict information may be: the failure of adding a new appointment task plan or the unreasonable configuration information of the new appointment task. Please delete the new appointment task plan after modification and add it again. The display control information may be "displaying the conflict information in the form of a pop-up window" and / or "displaying the conflict information in the form of voice broadcast". The control terminal information may be the mobile phone model or the tablet computer model. When the vehicle controller obtains that the control terminal information used by the user is the mobile phone model, that is, when the user adds a new appointment task plan through the mobile phone, a shorter prompt message "the failure of adding a new appointment task plan" may be generated. The display control information may be "displaying the conflict information in the form of a pop-up window", and the conflict information and the display information are sent to the control terminal, so that the control terminal executes according to the conflict information and the display information. When it is obtained that the control terminal information used by the user is the tablet computer model, that is, when the user adds a new appointment task plan through the tablet computer, a longer prompt message "the configuration information of the new appointment task is unreasonable. Please delete the new appointment task plan after modification and add it again" may be generated. The display control information may be "displaying the conflict information in the form of a pop-up window and displaying the conflict information in the form of voice broadcast", and the conflict information and the display information are sent to the control terminal, so that the control terminal executes according to the conflict information and the display information. After the pop-up window, there may also be a specific button for viewing details for the user to view the reason for the failure of the new appointment task configuration information. After the pop-up window, there may also be a solution button. When the user clicks the solution button, a user adjustment plan may be given. The user adjustment plan may be the specific appointment time range for the user. The above display may also be performed on the vehicle side. In this embodiment, the display methods such as vehicle side display, mobile side display, sound display, voice display, and picture display are not limited.
[0090] In some embodiments, when there is a conflict between the new appointment task configuration information and the existing appointment task configuration information, the conflict needs to be resolved. The controller may adjust the appointment time of the existing appointment task with a lower urgency level according to the urgency level and appointment time of the new appointment task configuration information to ensure that all appointment tasks can be executed and improve the user experience. The specific conflict resolution solution is as follows: The appointment task configuration information includes the urgency level of the appointment task; in response to the conflict between the new appointment task configuration information and the existing appointment task configuration information, determine the urgency level and appointment time of the new appointment task configuration information;
[0091] Sort the new appointment task configuration information and the existing appointment task configuration information according to the urgency level of the appointment task and the appointment time to generate the second appointment task configuration information;
[0092] In the second appointment task configuration information, determine the position information of the new appointment task configuration information;
[0093] Adjust part of the reservation task configuration information in the second reservation task configuration information according to the position information to generate target configuration information.
[0094] Specifically, the reservation task configuration information includes the urgency level of the reservation task, and the urgency level of the reservation task can be divided into three levels: low urgency level, medium urgency level, and high urgency level. In this embodiment, the newly added reservation task is taken as an example of high urgency level, and the reservation time is 00:10 on April 11th. The existing reservation task configuration information includes three reservation tasks, namely: the first reservation task, the urgency level of the reservation task is: medium urgency level, and the reservation time is 20:00 on April 9th; the second reservation task, the urgency level of the reservation task is: low urgency level, and the reservation time is 00:10 on April 11th; the third reservation task, the urgency level of the reservation task is: high urgency level, and the reservation time is 10:00 on April 12th. When there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, it is determined in the newly added reservation task configuration information that the reservation task is of high urgency level and the reservation time is 00:10 on April 11th. According to the urgency level of the reservation task and the reservation time, the newly added reservation task configuration information and the existing reservation task configuration information are sorted, that is, the four reservation task configuration information are sorted. The sorting principle is to sort according to the reservation time first and then according to the urgency level of the reservation task, that is: if the reservation times are the same, the reservation task configuration information with a higher urgency level of the reservation task is arranged in the front position. After sorting, the reservation task configuration information is as follows: 1. The reservation task configuration information includes: the urgency level of the reservation task is: medium urgency level, and the reservation time is 20:00 on April 9th. 2. The reservation task configuration information includes: the urgency level of the reservation task is: high urgency level, and the reservation time is 00:10 on April 11th; 3. The reservation task configuration information includes: the urgency level of the reservation task is: low urgency level, and the reservation time is 00:10 on April 11th; 4. The reservation task configuration information includes: the urgency level of the reservation task is: high urgency level, and the reservation time is 10:00 on April 12th. The sorted reservation task configuration information is used as the second reservation task configuration information. In this way, the second reservation task configuration information includes the sorted newly added reservation task configuration information and the existing reservation task configuration information, and the second reservation task configuration information also includes a position marker, and the position information of the newly added reservation task configuration information in the second reservation task configuration information can be determined according to the position marker. And according to the position information, part of the reservation task configuration information after this position information in the second reservation task configuration information can be adjusted to generate target configuration information, so that the controller can execute the reservation task according to the target configuration information. In this way, the reservation time of the reservation task is adaptively adjusted. Adjusting the reservation time of the reservation task will surely not affect the user's use of the vehicle, and then all tasks can be executed, improving the user experience.
[0095] In some embodiments, in order not to affect the user's use of the vehicle, when adjusting the reservation task configuration information of the reservation task, a small-range adjustment is made. The specific adjustment process is as follows: The location information includes a location marker value;
[0096] Adjusting some of the reservation task configuration information in the second reservation task configuration information according to the location information to generate target configuration information includes:
[0097] Delaying the reservation time of the conflicting reservation task configuration information after the location marker in the second reservation task configuration information by a preset duration for the newly added reservation task configuration information to generate the target configuration information.
[0098] Specifically, taking the specific example of the above embodiment as an example, the location marker of the newly added reservation task configuration information in the second reservation task configuration information is 2. Then, in order to ensure that the reservation tasks do not conflict, for example, the reservation time of the conflicting reservation task configuration information after the location marker 2 is postponed by one hour, and the target configuration information is generated. The target configuration information is as follows: 1. The reservation task configuration information includes: the urgency level of the reservation task is: medium urgency level, and the reservation time is 20:00 on April 9th. 2. The reservation task configuration information includes: the urgency level of the reservation task is: high urgency level, and the reservation time is 00:10 on April 11th; 3. The reservation task configuration information includes: the urgency level of the reservation task is: low urgency level, and the reservation time is 01:10 on April 11th; 4. The reservation task configuration information includes: the urgency level of the reservation task is: high urgency level, and the reservation time is 10:00 on April 12th. For example, if there is a conflict between the location marker 3 and the location marker 4 after adjusting the reservation time, then continue to postpone the reservation time of the location marker 4 by one hour, and so on. In this way, the adaptive adjustment of the reservation time is realized, ensuring that all reservation tasks can be executed and improving the user experience.
[0099] It should be noted that the method of the embodiment of the present application can be executed by a single device, such as a computer or a server. The method of this embodiment can also be applied to a distributed scenario, and multiple devices cooperate with each other to complete it. In this case of a distributed scenario, one of the multiple devices can only execute one or more steps of the method of the embodiment of the present application, and these multiple devices will interact with each other to complete the described method.
[0100] It should be noted that some embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the above embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0101] Based on the same inventive concept, corresponding to any of the above-described method embodiments, the present application further provides a reservation task processing apparatus.
[0102] Referring to Figure 3 , the reservation task processing apparatus includes:
[0103] An acquisition module 302, configured to acquire a newly added reservation task plan input by a user;
[0104] A first determination module 304, configured to determine newly added reservation task configuration information according to the newly added reservation task plan;
[0105] A second determination module 306 calculates the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result; a third determination module 308 is configured to determine whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result;
[0106] A first generation module 310, configured to generate and display conflict information in response to a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.
[0107] Specifically, the acquisition module acquires the newly added reservation task plan input by the user, and the first determination module converts the newly added reservation plan into newly added reservation task configuration information, so that it is convenient to perform conflict detection on the newly added reservation task configuration information and the existing reservation task configuration information. The second determination module calculates the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm, that is, calculates according to the reservation time, and determines whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information according to the conflict calculation result. Through the generation module, when it is detected that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information, the user needs to be reminded, and then conflict information is generated and displayed, so that the user can modify the newly added reservation task plan according to the displayed conflict information to ensure that all reservation tasks do not have conflicts and the vehicle will not be affected when executing the reservation tasks.
[0108] The second determination module 306 is further configured such that the reservation task configuration information includes a numerical string, and the numerical string is determined according to the reservation type and the reservation time;
[0109] Determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information includes:
[0110] Calculating the numerical strings of the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result;
[0111] In response to the conflict calculation result being less than a conflict preset threshold, it is determined that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.
[0112] The second determination module 306 is further configured such that calculating the numerical strings of the newly added reservation task configuration information and the existing reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result includes:
[0113] Sorting the newly added reservation task configuration information and the existing reservation task configuration information in ascending order of the numerical string to form first reservation task configuration information;
[0114] Calculating the numerical strings of all adjacent reservation task configuration information in the first reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result;
[0115] In response to the conflict calculation result being less than a conflict preset threshold, it is determined that there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information.
[0116] The second determination module 306 is further configured such that calculating the numerical strings of all adjacent reservation task configuration information in the first reservation task configuration information based on a preset time conflict algorithm to determine a conflict calculation result includes:
[0117] Determining the date and time corresponding to the reservation time in the numerical string;
[0118] Calculating the time difference between the date and the time in the two numerical strings, and using the time difference as the conflict calculation result.
[0119] The second determination module 306 is further configured such that determining whether there is a conflict between the newly added reservation task configuration information and the existing reservation task configuration information includes:
[0120] Screen the existing appointment task configuration information with the appointment type being non-periodic tasks from the existing appointment task configuration information, and denote it as the non-periodic existing appointment task configuration information;
[0121] Determine whether there is a conflict between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information;
[0122] In response to the conflict between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information, determine that there is a conflict between the newly added appointment task configuration information and the existing configuration information.
[0123] The second determination module 306 is further configured to, in response to the non-existence of a conflict between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information, screen the existing appointment task configuration information with the appointment type being periodic tasks from the existing appointment task configuration information, and denote it as the periodic existing appointment task configuration information;
[0124] Determine whether there is a conflict between the newly added appointment task configuration information and the periodic existing appointment task configuration information;
[0125] In response to the conflict between the newly added appointment task configuration information and the periodic existing appointment task configuration information, determine that there is a conflict between the newly added appointment task configuration information and the existing configuration information.
[0126] It further includes a second generation module 312, which is configured to, in response to the non-existence of a conflict between the newly added appointment task configuration information and the existing appointment task configuration information, generate target configuration information according to the newly added appointment task configuration information and the existing appointment task configuration information.
[0127] For the convenience of description, when describing the above device, various modules are described separately according to their functions. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0128] The device in the above embodiment is used to implement the corresponding appointment task processing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0129] Based on the same inventive concept, corresponding to the method in any of the above embodiments, the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the appointment task processing method described in any of the above embodiments.
[0130] Figure 4FIG. 0 shows a more specific schematic diagram of the hardware structure of the electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. Among them, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other inside the device through the bus 1050.
[0131] The processor 1010 may be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0132] The memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0133] The input / output interface 1030 is used to connect to an input / output module to implement information input and output. The input / output module may be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Among them, the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0134] The communication interface 1040 is used to connect to a communication module (not shown in the figure) to implement communication interaction between this device and other devices. Among them, the communication module may implement communication in a wired manner (such as USB, network cable, etc.) or in a wireless manner (such as mobile network, WIFI, Bluetooth, etc.).
[0135] The bus 1050 includes a path for transmitting information between various components of the device (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0136] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0137] The electronic device of the above embodiment is used to implement the corresponding reservation task processing method in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0138] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute a reservation task processing method as described in any of the foregoing embodiments.
[0139] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, 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 technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0140] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute a reservation task processing method as described in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0141] It can be understood that before using the technical solutions of the various embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner and the user's authorization will be obtained.
[0142] For example, when receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the present disclosure's technical solution based on the prompt message.
[0143] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user may be, for example, in the form of a pop-up window. The prompt message may be presented in text in the pop-up window. In addition, the pop-up window may also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0144] It can be understood that the above processes of notifying and obtaining user authorization are only illustrative and do not limit the implementation manners of the present disclosure. Other manners that comply with relevant laws and regulations can also be applied to the implementation manners of the present disclosure.
[0145] Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the embodiments of the present application as described above. For the sake of brevity, they are not provided in detail.
[0146] In addition, for the sake of simplicity of description and discussion, and in order not to make the embodiments of the present application difficult to understand, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation manners of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be completely within the understanding of those skilled in the art). In the case where specific details (such as circuits) are set forth to describe the exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with variations of these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0147] Although the present application has been described in connection with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0148] Embodiments of the present application are intended to cover all such alternatives, modifications, and variations that fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included within the protection scope of the present application.
Claims
1. A method for processing an appointment task, characterized in that: include: Get the newly added appointment task plan input by the user; Determine the configuration information of the newly added appointment task according to the newly added appointment task plan; Calculate the newly added appointment task configuration information and the existing appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result; According to the conflict calculation result, determine whether the newly added appointment task configuration information conflicts with the existing appointment task configuration information; In response to a conflict between the newly added appointment task configuration information and the existing appointment task configuration information, conflict information is generated and displayed.
2. The method according to claim 1, characterized in that The appointment task configuration information includes a numerical string, and the numerical string is determined according to the appointment type and the appointment time; The newly added appointment task configuration information and the existing appointment task configuration information are calculated based on a preset time conflict algorithm to determine the conflict calculation result; include: The value string of the newly added appointment task configuration information and the value string of the existing appointment task configuration information are calculated based on a preset time conflict algorithm to determine the conflict calculation result.
3. The method according to claim 2, characterized in that The calculating the value string of the newly added appointment task configuration information and the value string of the existing appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result includes: Sort the newly added appointment task configuration information and the existing appointment task configuration information in ascending order of the numerical string to form first appointment task configuration information; Based on a preset time conflict algorithm, the value strings of all adjacent scheduled task configuration information in the first scheduled task configuration information are calculated to determine the conflict calculation result.
4. The method according to claim 3, characterized in that The step of calculating the value strings of all adjacent appointment task configuration information in the first appointment task configuration information based on a preset time conflict algorithm to determine the conflict calculation result includes: Determine the date and time in the numerical string corresponding to the appointment time; The time difference between the date and the time in the two numerical strings is calculated, and the time difference is used as the conflict calculation result.
5. The method according to claim 3, characterized in that: Determining whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information according to the conflict calculation result includes: In response to the conflict calculation result being less than a preset conflict threshold, determining that there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information; In response to the conflict calculation result being greater than or equal to the preset conflict threshold, it is determined that there is no conflict between the newly added reservation task configuration information and the existing reservation task configuration information.
6. The method according to claim 1, characterized in that Determining whether there is a conflict between the newly added appointment task configuration information and the existing appointment task configuration information according to the conflict calculation result includes: Filter the existing appointment task configuration information whose appointment type is a non-periodic task from the existing appointment task configuration information, and record it as the non-periodic existing appointment task configuration information; Determine, based on the conflict calculation result, whether there is a conflict between the newly added appointment task configuration information and the non-periodic existing appointment task configuration information; In response to a conflict between the newly added scheduled task configuration information and the non-periodic existing scheduled task configuration information, it is determined that the newly added scheduled task configuration information conflicts with the existing configuration information.
7. The method according to claim 5, characterized in that Also includes: In response to the new appointment task configuration information not conflicting with the non-periodic existing appointment task configuration information, the existing appointment task configuration information with an appointment type of periodic task is selected from the existing appointment task configuration information and recorded as the periodic existing appointment task configuration information; According to the conflict calculation result, determine whether the newly added appointment task configuration information conflicts with the regularly existing appointment task configuration information; In response to a conflict between the newly added scheduled task configuration information and the regularly existing scheduled task configuration information, it is determined that the newly added scheduled task configuration information conflicts with the existing configuration information.
8. The method according to claim 1, characterized in that The method further comprises: In response to the fact that there is no conflict between the newly added scheduled task configuration information and the existing scheduled task configuration information, target configuration information is generated according to the newly added scheduled task configuration information and the existing scheduled task configuration information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 9.
Citation Information
Cited By
Intelligent reminding task creation method and device, electronic equipment and storage medium
CN121547530A