An electronic timetable determination method, an electronic device, and a storage medium
By pre-storing the timetable in the ATS system and setting modification identifiers, updating and converting the timetable to adapt to special dates, the problem of ATS timetable cannot be flexibly configured is solved, and the flexible configuration and reusability of the ATS timetable is improved.
Patent Information
- Application Number
- CN202011387051.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-01
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2040-12-01
AI Technical Summary
In the prior art, the production of ATS timetables cannot flexibly configure special holiday timetables, resulting in the need to re-create weekly plans when there are special holidays in the middle of the month, resulting in waste of resources and poor reusability.
By pre-storing the first time period timetable, obtaining the current date and setting a modification logo, updating the basic timetable as a modified timetable, looking up and converting it into an electronic timetable based on the current date, supporting flexible configuration of special dates.
It realizes flexible configuration of ATS timetables, reduces the frequency of modification of operators, improves the reusability and flexibility of timetables, and adapts to the operational needs of special holidays.
Smart Images

Figure CN114581025B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of industrial control technology, and particularly relates to a method for determining an electronic timetable, an electronic device, and a storage medium. Background Art
[0002] With the acceleration of the production and living rhythms in cities, people's travel has become increasingly efficient and frequent. Especially during holidays, for the operation staff of rail transit (such as subways, urban rails, cloud rails, etc.), making different Automatic Train Supervision (ATS) timetables that adapt to specific operation plans to meet different demands on weekdays, weekends, special holidays, etc. is a professional, complex, and highly responsible task, which not only involves the operation efficiency of rail transit but also operation safety.
[0003] Currently, when making the ATS timetable, usually according to the demands on weekdays, weekends, special holidays (such as the Spring Festival, the Dragon Boat Festival), etc., the basic timetable made by the offline timetable tool is arranged into a weekly plan. Then, the daily timetable of the current day is automatically generated from the made weekly plan.
[0004] The above scheme of arranging the daily timetable by the weekly plan is arranged according to the demands on weekdays, weekends, special holidays, etc. However, if there is a special holiday in the middle of the month, even if the weekly plans of the two weeks before and after the week containing the special holiday are the same, the weekly plans of these three weeks need to be remade, and the timetable of the special holiday cannot be flexibly configured. Summary of the Invention
[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a method for determining an electronic timetable, an electronic device, and a storage medium.
[0006] In a first aspect, the present invention provides a method for determining an electronic timetable, and the method includes:
[0007] If a first time-period timetable is pre-stored, obtain the current date; the first time-period timetable includes the basic timetable corresponding to each date in the first time period;
[0008] If the current date is a special date, set a first modification flag for the basic timetable corresponding to the current date;
[0009] Update the basic timetable corresponding to the first modification flag in the first time-period timetable to the first modified basic timetable to obtain the first modified first time-period timetable;
[0010] Based on the current date, search for the basic timetable corresponding to the current date in the first modified first time-period timetable;
[0011] Convert the basic timetable into an electronic timetable corresponding to the current date.
[0012] In one embodiment, the method further includes:
[0013] If the current date is a special date, obtain a second time period timetable including the current date, and the total number of days in the first time period is greater than the total number of days in the second time period;
[0014] Set a second modification flag for the second time period timetable;
[0015] Modify the second time period timetable corresponding to the second modification flag to a first modified second time period timetable, and the first modified second time period timetable includes a second modified basic timetable corresponding to each date in the second time period;
[0016] Update the basic timetables corresponding to all dates of the second time period timetable in the first time period timetable to the second modified basic timetables to obtain a second modified first time period timetable;
[0017] Based on the current date, search for the basic timetable corresponding to the current date in the second modified first time period timetable;
[0018] Convert the basic timetable into an electronic timetable corresponding to the current date.
[0019] In one embodiment, the method further includes:
[0020] Obtain a third modification flag, and the third modification flag is used to identify that the first time period timetable is updated to a third modified first time period timetable;
[0021] According to the third modification flag, obtain a third modified first time period timetable, and the third modified first time period timetable includes a modified basic timetable corresponding to each date in the first time period;
[0022] Based on the current date, search for the modified basic timetable corresponding to the current date in the modified first time period timetable;
[0023] Convert the modified basic timetable into an electronic timetable corresponding to the current date.
[0024] In one embodiment, the method further includes:
[0025] If a second time period timetable is pre-stored, obtain a fourth modification flag, and the fourth modification flag is used to identify that the second time period timetable is updated to a modified second time period timetable;
[0026] Obtain the second modified second time period schedule according to the fourth modification identifier. The second modified second time period schedule includes the modified basic schedule corresponding to each date in the second time period;
[0027] Determine whether to update the second modified second time period schedule to the first time period schedule;
[0028] If the second modified second time period schedule is updated to the first time period schedule, obtain the fourth modified first time period schedule. The fourth modified first time period schedule includes the modified basic schedule corresponding to each date in the first time period;
[0029] Based on the current date, search for the modified basic schedule corresponding to the current date in the fourth modified first time period schedule;
[0030] Convert the modified basic schedule to the electronic schedule corresponding to the current date.
[0031] In one embodiment, the method further includes:
[0032] If the second modified second time period schedule is not updated to the first time period schedule, select the date to be updated in the first time period schedule;
[0033] Update the modified basic schedule corresponding to the date to be updated in the second modified second time period schedule to the corresponding date in the first time period schedule, and obtain the fifth modified first time period schedule. The fifth modified first time period schedule includes the modified basic schedule corresponding to each date in the current month;
[0034] Based on the current date, search for the modified basic schedule corresponding to the current date in the fifth modified first time period schedule;
[0035] Convert the modified basic schedule to the electronic schedule corresponding to the current date.
[0036] In one embodiment, the method further includes:
[0037] If the first time period schedule is not stored in advance and the second time period schedule is stored in advance, obtain the fifth modification identifier, which is used to identify that the second time period schedule is updated to the third modified second time period schedule;
[0038] According to the fifth modification identifier, obtain the third modified second time period schedule. The third modified second time period schedule includes the modified basic schedule corresponding to each date in the second time period;
[0039] Based on the current date, find the modified basic timetable corresponding to the current date in the third modified second time period timetable;
[0040] Convert the modified basic timetable into an electronic timetable corresponding to the current date.
[0041] In one embodiment, the method further includes:
[0042] If the first time period timetable and the second time period timetable are not pre-stored, obtain a list of basic timetables;
[0043] Select any basic timetable from the list of basic timetables;
[0044] Convert the basic timetable into an electronic timetable corresponding to the current date.
[0045] In one embodiment, converting the basic timetable into an electronic timetable corresponding to the current date includes:
[0046] Obtain a sixth modification identifier, which is used to identify that the electronic timetable is updated to a modified electronic timetable;
[0047] According to the sixth modification identifier, obtain the modified electronic timetable;
[0048] Use the modified electronic timetable as the final electronic timetable.
[0049] In a second aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the electronic timetable determination method as in the first aspect.
[0050] In a third aspect, the present invention provides a readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the electronic timetable determination method as in the first aspect.
[0051] This embodiment provides an electronic timetable determination method, an electronic device, and a storage medium. In this solution, a first time period timetable is pre-stored. If the current date is a special date, the basic timetable corresponding to the current date in the first time period timetable is updated. Then, find the basic timetable corresponding to the current date in the updated first modified first time timetable, and convert the basic timetable into an electronic timetable corresponding to the current date, so as to flexibly configure the special date timetable in the first time period. Description of the Drawings
[0052] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, objectives, and advantages of the present application will become more obvious:
[0053] Figure 1 Schematic flow chart of the electronic schedule determination method provided by an embodiment of the present invention;
[0054] Figure 2 Schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0055] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. Additionally, it should be noted that for the sake of description, only the parts related to the invention are shown in the drawings.
[0056] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0057] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described can be implemented in an order other than those illustrated or described herein.
[0058] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or modules does not necessarily have to be limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products or devices.
[0059] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0060] In the related art, a scheme of arranging the daily schedule according to the weekly plan is arranged according to the requirements of weekdays, weekends, special holidays, etc. However, if there is a special holiday in the middle of the month, even if the weekly plans of the two weeks before and after the week containing the special holiday are the same, the weekly plans of these three weeks need to be redone, so the previously made weekly plans will be wasted and cannot be reused.
[0061] An embodiment of the present application provides a method for determining an electronic timetable, which can flexibly configure the timetable for special holidays.
[0062] The method for determining an electronic timetable proposed by the embodiment of the present application can be applied to the determination of the electronic timetable in rail transit, and can also be applied to any technical field that needs to determine the electronic timetable, such as garbage cleaning. The following takes the application in the subway as an example.
[0063] It should be noted that for the method for determining an electronic timetable provided by the embodiment of the present invention, the execution subject can be an electronic device or an ATS server. In the following method embodiments, the ATS server is taken as the execution subject for illustration.
[0064] It should be noted that the method for determining an electronic timetable proposed by the embodiment of the present application can be implemented based on a configuration platform, and the configuration platform integrates an online timetable tool. Among them, the configuration platform is a kind of upper computer software, translated from the English SCADA, that is, Supervisory Control and Data Acquisition (Data Acquisition and Monitoring Control). It refers to some special software for data acquisition and process control. They are software platforms and development environments at the monitoring layer of the automatic control system, and use flexible configuration methods to provide users with general-level software tools for quickly building the monitoring functions of industrial automatic control systems.
[0065] Refer to Figure 1 , which shows a schematic flowchart of the method for determining an electronic timetable described according to an embodiment of the present application.
[0066] As Figure 1 shown, a method for determining an electronic timetable may include:
[0067] S110. If a first time period timetable is pre-stored, obtain the current date; the first time period timetable includes a basic timetable corresponding to each date in the first time period;
[0068] S120. If the current date is a special date, set a first modification flag for the basic timetable corresponding to the current date;
[0069] S130. Update the basic timetable corresponding to the first modification flag in the first time period timetable to the first modified basic timetable to obtain the first modified first time period timetable;
[0070] S140. Based on the current date, search for the basic timetable corresponding to the current date in the first modified first time period timetable;
[0071] S150. Convert the basic timetable into the electronic timetable corresponding to the current date.
[0072] Specifically, the first time - period schedule refers to the subway line operation schedule within the first time period in the online schedule tool. It should be noted that the first time period can be set according to actual needs. For example, the first time period can be one month, four weeks, etc., as long as it is greater than one week. The following takes one month as an example to illustrate the first time - period schedule, which is hereinafter referred to as the monthly plan. The first time - period schedule includes the basic schedule corresponding to each date in the first time period. The monthly plan includes the basic schedule corresponding to each day in a month. Among them, the basic schedule refers to the arrival and departure time schedule of each train passing through each station platform in the subway line planned within 24 hours in the offline schedule tool. The basic schedule is the traceable source of the same - day electronic schedule. If the online status of the same - day electronic schedule is not modified, it can be considered that the same - day electronic schedule is equivalent to the basic schedule in terms of plan arrangement.
[0073] It should be noted that the first time - period schedule can be pre - stored in the ATS server or stored in other storage media, and the ATS server can obtain it from other storage media, which is not restricted here.
[0074] After the ATS server obtains the current date from the network or from the server, if the current date is a special date (a special date refers to a legal holiday or other holidays), a first modification flag is set for the basic schedule corresponding to the current date, which is used to modify the basic schedule marked by the first modification flag. After modification, the first modified first time - period schedule is obtained. The basic schedule corresponding to the current date can be found in the first modified first time - period schedule, and the found basic schedule is used as the same - day electronic schedule. The subway operation trains run according to the same - day electronic schedule.
[0075] The basic schedule is the traceable source of the same - day electronic schedule. If the online status of the same - day electronic schedule is not modified, it can be considered that the same - day electronic schedule is equivalent to the basic schedule in terms of plan arrangement.
[0076] In the embodiment of the present application, if the current date is a special date, the basic schedule corresponding to the current date in the first time - period schedule is updated. The basic schedule corresponding to the current date is found in the updated first modified first time schedule, and the basic schedule is converted into the electronic schedule corresponding to the current date, so that the special - date schedule in the first time period can be flexibly configured.
[0077] When the current date is a special date, in addition to modifying the corresponding basic schedule in the first time - period schedule as described in the above embodiment, the second time - period schedule including the special date can also be modified and then updated to the first time - period schedule, as shown in the following embodiment.
[0078] In one embodiment, the method may further include:
[0079] If the current date is a special date, obtain a second time period schedule including the current date, where the total number of days in the first time period is greater than the total number of days in the second time period;
[0080] Set a second modification flag for the second time period schedule;
[0081] Modify the second time period schedule corresponding to the second modification flag to a first modified second time period schedule, where the first modified second time period schedule includes the second modified basic schedule corresponding to each date in the second time period;
[0082] Update the basic schedules corresponding to all dates of the second time period schedule in the first time period schedule to the second modified basic schedules to obtain a second modified first time period schedule;
[0083] Based on the current date, search for the basic schedule corresponding to the current date in the second modified first time period schedule;
[0084] Convert the basic schedule to an electronic schedule corresponding to the current date.
[0085] Specifically, the second time period schedule refers to the subway line operation schedule within the second time period in the online schedule tool. It should be noted that the second time period can be set according to actual needs, as long as the total number of days in the first time period is greater than the total number of days in the second time period. For example, the second time period can be one week. The following second time period is described by taking one week as an example, and the second time period schedule is hereinafter referred to as the weekly plan. The second time period schedule includes the basic schedule corresponding to each date in the second time period, and the weekly plan includes the basic schedule corresponding to each day of the week.
[0086] It should be noted that the second time period schedule can be pre-stored in the ATS server or stored in other storage media, and the ATS server obtains it from other storage media, which is not limited here.
[0087] Set a second modification flag for the weekly plan including the special date for modifying the weekly plan, and a modified weekly plan can be obtained. Replace the weekly plan in the monthly plan at the corresponding position to obtain a new weekly plan (i.e., the second modified first time period schedule), which does not affect the basic schedules corresponding to other dates in the monthly plan. Search for the basic schedule corresponding to the current date in the new weekly plan and convert the found basic schedule to the current electronic schedule.
[0088] In the embodiments of the present application, any weekly plan in the monthly plan can be updated without affecting other weekly plans, which can improve the reusability of the weekly plan. Moreover, when it is a special date, the weekly plan containing the special date can be modified, and then the modified weekly plan can be updated to the corresponding position in the monthly plan, so that the schedule of special holidays can be flexibly configured.
[0089] It should be noted that before the execution of S110 of the electronic schedule determination method in the embodiments of the present application, it is also necessary to satisfy that the offline schedule tool based on the configuration platform has prepared the required basic schedule and uploaded it to the database; and the online schedule can normally access the database storing the basic schedule.
[0090] It should be noted that when the first time period schedule is pre-stored, the second time period schedule can be pre-stored, or the second time period schedule can not be pre-stored. When both schedules are pre-stored at the same time, the ATS server determines the electronic schedule according to the first time period schedule. It is also possible for the operator to arbitrarily select one of them, or use the two schedules alternately. In this way, it not only takes into account the various usage habits of the operator, but also extends the usage period of the plan, that is, from one week to one month, which can reduce the frequency of the operator modifying the plan. When only the first time period schedule is pre-stored, in addition to the ordinary weekday schedule and the ordinary weekend schedule, the special date schedule can also be flexibly configured, which has more schedule configuration flexibility and longer schedule traceability.
[0091] In the embodiments of the present application, the first time period schedule is pre-stored, and the basic schedule corresponding to the current date is found in the first time period schedule, and the basic schedule is converted into the electronic schedule corresponding to the current date. The first time period schedule includes the basic schedule corresponding to each date in the first time period, and the special date schedule in the first time period can be flexibly configured, reducing the frequency of the operator modifying the schedule.
[0092] After the electronic schedule for the current day is determined, the unfinished trips in the electronic schedule for the current day can also be edited and modified online, and the subway operation trains run according to the modified electronic schedule.
[0093] In one embodiment, converting the basic schedule into the electronic schedule corresponding to the current date may include:
[0094] Obtain a sixth modification flag, where the sixth modification flag is used to identify that the electronic schedule is updated to the modified electronic schedule;
[0095] Obtain the modified electronic schedule according to the sixth modification flag;
[0096] Take the modified electronic schedule as the final electronic schedule.
[0097] Specifically, it is possible to obtain a modified electronic timetable after editing and modifying the generated electronic timetable according to the actual situation.
[0098] It should be noted that after determining the electronic timetable in the following embodiments, for the unfinished trips in the electronic timetable, the methods in this embodiment can be used for editing and modification. This will not be elaborated in the following embodiments.
[0099] In one embodiment, the method for determining the electronic timetable may further include:
[0100] Obtain a third modification flag, which is used to identify that the first time period timetable is updated to the third modified first time period timetable;
[0101] According to the third modification flag, obtain the third modified first time period timetable, which includes the modified basic timetables corresponding to each date in the first time period;
[0102] Based on the current date, search for the modified basic timetable corresponding to the current date in the modified first time period timetable;
[0103] Convert the modified basic timetable corresponding to the current date into the electronic timetable corresponding to the current date.
[0104] Specifically, it is possible to obtain a new monthly plan (i.e., the third modified first time period timetable) obtained by modifying the monthly plan according to the actual situation. Editing and modifying the monthly plan does not affect the weekly plan. The ATS server can determine the modified basic timetable corresponding to the current date according to the modified monthly plan, and convert the modified basic timetable into an electronic timetable.
[0105] When both the monthly plan and the weekly plan are pre-stored, if the weekly plan is modified, the weekly plan can be automatically updated to the monthly plan, or the weekly plan can not be automatically updated to the corresponding monthly plan.
[0106] In one embodiment, the method for determining the electronic timetable may further include:
[0107] If a second time period timetable is pre-stored, obtain a fourth modification flag, which is used to identify that the second time period timetable is updated to the modified second time period timetable;
[0108] According to the fourth modification flag, obtain the second modified second time period timetable, which includes the modified basic timetables corresponding to each date in the second time period;
[0109] Judge whether to update the second modified second time period timetable to the first time period timetable;
[0110] If the second modified second time period schedule is updated to the first time period schedule, a fourth modified first time period schedule is obtained, and the fourth modified first time period schedule includes the modified basic schedule corresponding to each date in the first time period;
[0111] Based on the current date, search for the modified basic schedule corresponding to the current date in the fourth modified first time period schedule;
[0112] Convert the modified basic schedule into the electronic schedule corresponding to the current date.
[0113] Specifically, the modified weekly plan is automatically updated to the monthly plan. Assuming that there is a specified special date plan in the monthly plan before modification, it will be overwritten in this update, forming a monthly plan with the same weekly pattern. It can be understood that the monthly plan modified by the operator's secondary editing can be obtained, and the basic schedule is specified for special dates.
[0114] In one embodiment, the method for determining the electronic schedule may further include:
[0115] If the second modified second time period schedule is not updated to the first time period schedule, select the date to be updated in the first time period schedule;
[0116] Update the modified basic schedule corresponding to the date to be updated in the second modified second time period schedule to the corresponding date in the first time period schedule, obtaining a fifth modified first time period schedule, and the fifth modified first time period schedule includes the modified basic schedule corresponding to each date in the current month;
[0117] Based on the current date, search for the modified basic schedule corresponding to the current date in the fifth modified first time period schedule;
[0118] Convert the modified basic schedule into the electronic schedule corresponding to the current date.
[0119] Specifically, the date to be updated in the first time period schedule can be a single day or multiple days, which is determined according to actual needs.
[0120] If the modified weekly plan is not automatically updated to the monthly plan, one or more dates in the monthly plan can be selected, and the monthly plan of the selected dates is updated according to the corresponding dates in the modified weekly plan.
[0121] In the embodiments of the present application, the basic schedule of the special date before modification in the monthly plan can be retained, and the basic schedule of the non-special date can be updated according to the modified weekly plan.
[0122] In one embodiment, the electronic schedule determination method may further include:
[0123] If the first time period schedule is not stored in advance and the second time period schedule is stored in advance, obtain the current date. The second time period schedule includes the basic schedule corresponding to each date in the second time period;
[0124] Based on the current date, search for the basic schedule corresponding to the current date in the second time period schedule;
[0125] Convert the basic schedule into the electronic schedule corresponding to the current date.
[0126] Specifically, if only the weekly plan is stored, the existing technology is used to determine the electronic schedule.
[0127] If only the weekly plan is stored, when determining the electronic schedule after modifying the weekly plan, it may include:
[0128] Obtain a fifth modification flag, which is used to identify that the second time period schedule is updated to the third modified second time period schedule;
[0129] According to the fifth modification flag, obtain the third modified second time period schedule, and the third modified second time period schedule includes the modified basic schedule corresponding to each date in the second time period;
[0130] Based on the current date, search for the modified basic schedule corresponding to the current date in the third modified second time period schedule;
[0131] Convert the modified basic schedule into the electronic schedule corresponding to the current date.
[0132] Specifically, both the fourth modification flag and the fifth modification flag are used to identify that the weekly plan has been modified. However, the fourth modification flag is used for identification when both the weekly plan and the monthly plan are stored in advance, while the fifth modification flag is used for identification when only the weekly plan is stored in advance.
[0133] In one embodiment, the electronic schedule determination method further includes:
[0134] If the first time period schedule is not stored in advance and the second time period schedule is not stored, obtain the current date and the basic schedule list;
[0135] Select any basic schedule from the basic schedule list;
[0136] Convert the basic schedule into the electronic schedule corresponding to the current date.
[0137] Specifically, when the weekly plan and monthly plan are not pre - stored, the AFS server will not automatically generate the electronic schedule for the current day. Instead, it is necessary to select any basic schedule from the pre - stored basic schedule list through the UI (User Interface) operation control of the online schedule tool and convert it into the electronic schedule for the current day.
[0138] Figure 2 FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. As Figure 2 shown, FIG. 5 shows a schematic structural diagram of an electronic device 200 suitable for implementing the embodiments of the present application.
[0139] As Figure 2 shown, the electronic device 200 includes a central processing unit (CPU) 201, which can perform various appropriate actions and processes according to the program stored in the read - only memory (ROM) 202 or the program loaded from the storage section 208 into the random access memory (RAM) 203. In the RAM 203, various programs and data required for the operation of the device 200 are also stored. The CPU 201, ROM 202, and RAM 203 are connected to each other via a bus 204. The input / output (I / O) interface 205 is also connected to the bus 204.
[0140] The following components are connected to the I / O interface 205: an input section 206 including a keyboard, a mouse, etc.; an output section 207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 208 including a hard disk, etc.; and a communication section 209 including a network interface card such as a LAN card, a modem, etc. The communication section 209 performs communication processing via a network such as the Internet. A drive 210 is also connected to the I / O interface 206 as needed. A removable medium 211, such as a magnetic disk, an optical disk, a magneto - optical disk, a semiconductor memory, etc., is installed on the drive 210 as needed so that the computer program read from it can be installed into the storage section 208 as needed.
[0141] Specifically, according to an embodiment of the present disclosure, the process described above with reference to Figure 1 can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly embodied on a machine - readable medium, and the computer program includes program code for performing the above - mentioned electronic schedule determination method. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 209, and / or installed from the removable medium 211.
[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code, and the foregoing module, segment of a program, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0143] The units or modules involved in the embodiments described in this application may be implemented in software or in hardware. The described units or modules may also be provided in a processor. The names of these units or modules do not, in some cases, constitute a limitation on the units or modules themselves.
[0144] As another aspect, this application also provides a storage medium, which may be the storage medium included in the foregoing device in the above embodiments; or it may exist separately and be unassembled into the device. The storage medium stores one or more programs, and the foregoing programs are used by one or more processors to execute the electronic timetable determination method described in this application.
[0145] The above description is only a preferred embodiment of this application and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, a technical solution formed by mutually replacing the above features with technical features having similar functions (but not limited to) disclosed in this application.
Claims
1. An electronic timetable determination method, characterized in that, The method includes: If a first time period schedule is pre - stored, obtain the current date; the first time period schedule includes a basic schedule corresponding to each date in the first time period; If the current date is a special date, set a first modification flag for the basic schedule corresponding to the current date; Update the basic schedule corresponding to the first modification flag in the first time period schedule to a first modified basic schedule, obtaining a first modified first time period schedule; Based on the current date, search for the basic schedule corresponding to the current date in the first modified first time period schedule; Convert the basic schedule to an electronic schedule corresponding to the current date.
2. The method according to claim 1, characterized in that, The method further includes: If the current date is a special date, obtain a second time period schedule including the current date, where the total number of days in the first time period is greater than the total number of days in the second time period; Set a second modification flag for the second time period schedule; Modify the second time period schedule corresponding to the second modification flag to a first modified second time period schedule, where the first modified second time period schedule includes a second modified basic schedule corresponding to each date in the second time period; Update the basic schedules corresponding to all dates of the second time period schedule in the first time period schedule to the second modified basic schedules, obtaining a second modified first time period schedule; Based on the current date, search for the basic schedule corresponding to the current date in the second modified first time period schedule; Convert the basic schedule to an electronic schedule corresponding to the current date.
3. The method according to claim 1, wherein The method further includes: Obtain a third modification flag, where the third modification flag is used to identify that the first time period schedule is updated to a third modified first time period schedule; According to the third modification flag, obtain the third modified first time period schedule, where the third modified first time period schedule includes a modified basic schedule corresponding to each date in the first time period; Based on the current date, search for the modified basic schedule corresponding to the current date in the modified first time period schedule; Convert the modified basic schedule to an electronic schedule corresponding to the current date.
4. The method according to claim 1, wherein The method further includes: If a second time period schedule is pre - stored, obtain a fourth modification flag, where the fourth modification flag is used to identify that the second time period schedule is updated to a modified second time period schedule; According to the fourth modification flag, obtain a second modified second time period schedule, where the second modified second time period schedule includes a modified basic schedule corresponding to each date in the second time period; Judge whether to update the second modified second time period schedule to the first time period schedule. If the second modified second time period schedule is updated to the first time period schedule to obtain a fourth modified first time period schedule, the fourth modified first time period schedule includes a modified basic schedule corresponding to each date in the first time period; Based on the current date, search for the modified basic schedule corresponding to the current date in the fourth modified first time period schedule; Convert the modified basic schedule into an electronic schedule corresponding to the current date.
5. The method according to claim 4, wherein The method further includes: If the second modified second time period schedule is not updated to the first time period schedule, select the date to be updated in the first time period schedule; Update the modified basic schedule corresponding to the date to be updated in the second modified second time period schedule to the corresponding date in the first time period schedule to obtain a fifth modified first time period schedule, the fifth modified first time period schedule includes a modified basic schedule corresponding to each date in the current month; Based on the current date, search for the modified basic schedule corresponding to the current date in the fifth modified first time period schedule; Convert the modified basic schedule into an electronic schedule corresponding to the current date.
6. The method according to claim 1, wherein The method further includes: If the first time period schedule is not stored in advance and the second time period schedule is stored in advance, obtain a fifth modification identifier, the fifth modification identifier is used to identify that the second time period schedule is updated to a third modified second time period schedule; According to the fifth modification identifier, obtain the third modified second time period schedule, the third modified second time period schedule includes a modified basic schedule corresponding to each date in the second time period; Based on the current date, search for the modified basic schedule corresponding to the current date in the third modified second time period schedule; Convert the modified basic schedule into an electronic schedule corresponding to the current date.
7. The method according to claim 1, characterized in that The method further includes: If the first time period schedule is not stored in advance and the second time period schedule is not stored in advance, obtain a list of basic schedules; Select any basic schedule from the list of basic schedules; Convert the basic schedule into an electronic schedule corresponding to the current date.
8. The method according to claim 1 or 2, characterized in that, The converting the basic schedule into an electronic schedule corresponding to the current date includes: Obtain a sixth modification identifier, the sixth modification identifier is used to identify that the electronic schedule is updated to a modified electronic schedule; According to the sixth modification identifier, obtain the modified electronic schedule; Use the modified electronic schedule as the final electronic schedule.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the electronic schedule determination method according to any one of claims 1-8.
10. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the electronic schedule determination method according to any one of claims 1-8.
Citation Information
Patent Citations
Urban rail transit schedule editor and edition method thereof
CN102354309A
Subway scheduling method and system capable of realizing exact second-level station dwell time change
CN104648443A