Vehicle distribution processing method, device and equipment

By combining batch storage and variable storage methods in the railway vehicle management system, the problems of large amount of data and low query efficiency in the prior art are solved, and accurate playback of vehicle distribution information and resource conservation are achieved.

CN118626023BActive Publication Date: 2024-11-19YANTAI PORT GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110416.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-19
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

In the prior art, the railway vehicle management system stores historical station data at all times, resulting in too much data stored, occupying large storage resources, and unable to effectively query the historical distribution of station lane vehicles.

Method used

Using a historical record storage method combining batch storage and variable storage for trench tracks, the batch storage node and variable storage node are determined in the pre-stored trench track data, and the corresponding nodes are determined according to the types of start and end times, so as to realize the vehicle. Playback of distributed information reduces the consumption of storage and computing resources.

Benefits of technology

It realizes accurate playback of the historical distribution of vehicles on the station lane, improves query efficiency, saves storage and computing resources, and solves the problem of large resource occupancy of vehicle storage data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626023B_ABST
    Figure CN118626023B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and equipment for processing vehicle distribution, which relates to data processing technology. The method includes: obtaining a playback request; the playback request includes a start time and an end time. Determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; determine the first vehicle distribution information based on the batch storage node and / or variable storage node corresponding to the start time; and determine the second vehicle distribution information based on the batch storage node and / or variable storage node corresponding to the end time. Based on the first distribution information and the second distribution information, replay the target storage nodes between the start time and the end time to obtain playback data. The method of the present application solves the technical problem that vehicle storage data occupies a large amount of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and in particular to a vehicle distribution processing method, device and equipment. Background Art

[0002] At present, there are many vehicle management systems on the market that have the function of railway vehicle management. The basic solution of the vehicle management system is to be able to display the real-time distribution of vehicles in the station tracks, and provide data support for the station's daily tasks such as loading and unloading vehicles, receiving and sending vehicles, and disassembly and assembly. At the same time, the station has the need to trace and review the distribution of tracks and vehicles in the station at historical moments. Therefore, the vehicle management system's ability to record vehicle distribution needs to be further improved.

[0003] In the prior art, the main aspect storage method used in the current vehicle management system is to store historical station data according to time. Aspect storage refers to recording the overall situation of the station in batches at fixed intervals on the time axis as archive points. When the station initiates a query on the historical track distribution, the archive point closest to the historical time is selected to obtain the archive information.

[0004] However, in the prior art, since historical station data is stored according to time, it is necessary to store station data of countless time periods, and the amount of stored data is too large, which requires a large amount of storage resources. Summary of the invention

[0005] The present application provides a vehicle distribution processing method, device and equipment to solve the technical problem that vehicle storage data occupies a large amount of resources.

[0006] In a first aspect, the present application provides a method for processing vehicle distribution, comprising:

[0007] Obtain a playback request; wherein the playback request includes a start time and an end time;

[0008] Determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes of multiple preset times, and multiple variable storage nodes exist between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes;

[0009] Determine the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time; and determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time;

[0010] Based on the first distribution information and the second distribution information, the target storage nodes between the start time and the end time are replayed to obtain playback data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes.

[0011] Further, the determining of the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and the determining of the batch storage node and / or variable storage node corresponding to the end time in the track data, comprises:

[0012] Determine the time type of the start time and the time type of the end time according to the preset track time rule information;

[0013] According to the moment type of the start moment, a batch storage node and / or a variable storage node corresponding to the start moment is determined in the pre-stored track data, and according to the moment type of the end moment, a batch storage node and / or a variable storage node corresponding to the end moment is determined in the track data.

[0014] Further, the determining of the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data according to the time type of the start time includes:

[0015] If it is determined that the time type of the start time is a batch storage type, determining a first target preset time corresponding to the start time;

[0016] Determine the batch storage node corresponding to the first target preset time in the pre-stored track data; determine the batch storage node corresponding to the first target preset time as the batch storage node corresponding to the start time;

[0017] Alternatively, if it is determined that the moment type of the start time is a variable storage type, then based on the start time, in the pre-stored track data, the last batch storage node before the start time and multiple variable storage nodes between the moment of the last batch storage node and the start time are determined.

[0018] Further, the determining, in the track data, a batch storage node and / or a variable storage node corresponding to the end time according to the time type of the end time includes:

[0019] If it is determined that the time type of the end time is a batch storage type, determining a second target preset time corresponding to the end time;

[0020] Determine the batch storage node corresponding to the second target preset time in the pre-stored track data; determine the batch storage node corresponding to the second target preset time as the batch storage node corresponding to the end time;

[0021] Alternatively, if it is determined that the moment type of the end time is a variable storage type, then based on the end time, in the pre-stored track data, the last batch storage node before the end time and multiple variable storage nodes between the moment of the last batch storage node and the end time are determined.

[0022] Further, determining the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time includes:

[0023] If the moment type of the starting moment is a change storage type, based on the order of the multiple variable storage nodes adjacent to the last batch storage node, taking the first variable storage node close to the last batch storage node as the starting point, the vehicle data in the last batch storage node is replaced in turn according to the vehicle change data in each variable storage node to obtain the first vehicle distribution information.

[0024] Further, the replaying the target storage nodes between the start time and the end time based on the first distribution information and the second distribution information to obtain the replay data includes:

[0025] Based on the first distribution information and the second distribution information, a plurality of variable storage nodes are determined in the target storage node; wherein the plurality of variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located;

[0026] Based on the order of the plurality of variable storage nodes, starting from the first variable storage node close to the node where the first distribution information is located, the first distribution information is replaced in turn according to the vehicle change data in each variable storage node to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second distribution information is located, the playback is stopped and the playback data is determined;

[0027] The playback information includes the first distribution information, the second distribution information, and vehicle distribution information of each batch storage node between the node where the first distribution information is located and the node where the second distribution information is located.

[0028] In a second aspect, the present application provides a vehicle distribution processing device, comprising:

[0029] An acquisition module, used to acquire a playback request; wherein the playback request includes a start time and an end time;

[0030] A first determination module is used to determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes of multiple preset times, and multiple variable storage nodes exist between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes;

[0031] A second determination module, configured to determine the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time;

[0032] A third determination module, used to determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time;

[0033] A playback module is used to play back the target storage nodes between the start time and the end time based on the first distribution information and the second distribution information to obtain playback data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes.

[0034] Furthermore, the first determining module includes:

[0035] A first determining unit, configured to determine the time type of the start time and the time type of the end time according to preset track time rule information;

[0036] A second determining unit, configured to determine, according to a time type of the starting time, a batch storage node and / or a variable storage node corresponding to the starting time in pre-stored track data;

[0037] A third determining unit is used to determine, in the track data, a batch storage node and / or a variable storage node corresponding to the end time according to the time type of the end time.

[0038] Furthermore, the second determining unit is specifically configured to:

[0039] If it is determined that the time type of the start time is a batch storage type, then determine a first target preset time corresponding to the start time; determine a batch storage node corresponding to the first target preset time in the pre-stored track data; determine that the batch storage node corresponding to the first target preset time is the batch storage node corresponding to the start time;

[0040] Alternatively, if it is determined that the moment type of the start time is a variable storage type, then based on the start time, in the pre-stored track data, the last batch storage node before the start time and multiple variable storage nodes between the moment of the last batch storage node and the start time are determined.

[0041] Furthermore, the third determining unit is specifically configured to:

[0042] If it is determined that the time type of the end time is a batch storage type, then determining a second target preset time corresponding to the end time; determining a batch storage node corresponding to the second target preset time in the pre-stored track data; determining that the batch storage node corresponding to the second target preset time is the batch storage node corresponding to the end time;

[0043] Alternatively, if it is determined that the moment type of the end time is a variable storage type, then based on the end time, in the pre-stored track data, the last batch storage node before the end time and multiple variable storage nodes between the moment of the last batch storage node and the end time are determined.

[0044] Furthermore, the second determining module is specifically configured to:

[0045] If the moment type of the starting moment is a change storage type, based on the order of the multiple variable storage nodes adjacent to the last batch storage node, taking the first variable storage node close to the last batch storage node as the starting point, the vehicle data in the last batch storage node is replaced in turn according to the vehicle change data in each variable storage node to obtain the first vehicle distribution information.

[0046] Furthermore, the playback module includes:

[0047] a fourth determining unit, configured to determine, in the target storage node, a plurality of variable storage nodes based on the first distribution information and the second distribution information; wherein the plurality of variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located;

[0048] A playback unit is used to replace the first distribution information according to the vehicle change data in each variable storage node in turn based on the order of the plurality of variable storage nodes, starting from the first variable storage node close to the node where the first distribution information is located, to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second distribution information is located, stop playback and determine playback data;

[0049] The playback information includes the first distribution information, the second distribution information, and vehicle distribution information of each batch storage node between the node where the first distribution information is located and the node where the second distribution information is located.

[0050] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0051] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0052] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0053] The present application provides a method, device and equipment for processing vehicle distribution, obtaining a playback request; wherein the playback request includes a start time and an end time. Determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes of multiple preset times, and there are multiple variable storage nodes between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes. Determine the first vehicle distribution information according to the batch storage node and / or variable storage node corresponding to the start time; and determine the second vehicle distribution information according to the batch storage node and / or variable storage node corresponding to the end time. Based on the first distribution information and the second distribution information, replay the target storage nodes between the start time and the end time to obtain playback data; wherein the target storage node is multiple batch storage nodes and / or multiple variable storage nodes. In this solution, the first vehicle distribution information is determined according to the batch storage node and / or variable storage node corresponding to the start time, and the second vehicle distribution information is determined according to the batch storage node and / or variable storage node corresponding to the end time. Based on the first distribution information and the second distribution information, the target storage node between the start time and the end time is played back and read to obtain playback data. Therefore, compared with the prior art, the present application uses a historical record storage method that combines track-oriented batch storage with variable storage to store batch storage nodes and variable storage nodes, and plays back and reads the vehicle historical distribution records of the station track in the batch storage nodes and variable storage nodes, thereby realizing the function of replaying the historical distribution of station track vehicles. The playback mechanism is simple to calculate and consumes less resources, and can ensure the integrity and accuracy of the stored data and vehicle historical distribution records, thereby improving the efficiency of queries, saving storage and computing resources, and solving the technical problem that vehicle storage data occupies a large amount of resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0055] Figure 1 A flow chart of a method for processing vehicle distribution provided in an embodiment of the present application;

[0056] Figure 2 A schematic diagram of a scenario of a method for processing vehicle distribution provided in an embodiment of the present application;

[0057] Figure 3 A flowchart of another method for processing vehicle distribution provided in an embodiment of the present application;

[0058] Figure 4 A schematic diagram of another method for processing vehicle distribution provided in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of a scenario of another method for processing vehicle distribution provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of another method for processing vehicle distribution provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of the architecture of a vehicle distribution processing method provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of the structure of a vehicle distribution processing device provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of the structure of another vehicle distribution processing device provided in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0065] Fig.11 A block diagram of an electronic device provided in an embodiment of the present application.

[0066] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0067] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0068] At present, there are many vehicle management systems on the market that have the function of railway vehicle management. The basic solution of the vehicle management system is to be able to display the real-time distribution of vehicles in the station tracks, and provide data support for the station's daily tasks such as loading and unloading vehicles, receiving and sending vehicles, and disassembly and assembly. At the same time, the station has the need to trace and review the distribution of tracks and vehicles in the station at historical moments. Therefore, the vehicle management system's ability to record vehicle distribution needs to be further improved.

[0069] There are roughly two types of changes in vehicles in the station. One is the change in vehicle status. For example, operations such as loading, unloading, and maintenance will cause changes in the current vehicle status. The second is the change in vehicle position. For example, using a shunting machine to move a vehicle from A to B, receiving a vehicle, and sending a vehicle will cause the vehicle position to change. The historical review of the station vehicle distribution requires that at any historical moment, the location and status of all vehicles in the station at that moment can be queried. Therefore, there are two main points to solve this problem. One is the storage of history. The other is the reading of history. There are two ways to store the historical distribution of station track vehicles. One is to store according to the change amount, and the other is to store according to the section.

[0070] In one example, the main aspect storage method used in the current vehicle management system is to store historical station data according to time. Aspect storage refers to recording the overall situation of the station in batches at fixed intervals on the time axis as archive points. When the station initiates a query on the historical track distribution, the archive point closest to the historical moment is selected to obtain the archive information. However, in the prior art, since historical station data is stored according to time, it is necessary to store station data at countless times, and the amount of stored data is too large, which requires a large amount of storage resources.

[0071] In one example, the main method used in the current vehicle management system is to store historical station data according to time, perform matrix compression and encoding on the station data, and then store it in time periods.

[0072] However, this method sacrifices data accuracy in order to save storage space, and in actual applications it is impossible to restore historical situations 100%.

[0073] In one example, the main change storage method used in the current vehicle management system is to use vehicles as the object. When the status and position of each vehicle in the station change, the changes are recorded. From the perspective of the station, when initiating a query on the historical track distribution, it is necessary to simultaneously consider the status and position changes of hundreds of vehicles in the station from the historical moment to the present, and then roll back one by one according to the changes until the historical moment. However, this method can only check the actions of a certain vehicle at a historical moment, and cannot obtain a distribution slice of all tracks and vehicles in the entire station.

[0074] The present application provides a vehicle distribution processing method, device and equipment, which are intended to solve the above technical problems in the prior art.

[0075] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0076] Figure 1 A flow chart of a method for processing vehicle distribution provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:

[0077] Step 101: Get a playback request; wherein the playback request includes a start time and an end time.

[0078] For example, the execution subject of this embodiment may be an electronic device, or a terminal device, or a processing device or device distributed in a vehicle, or other devices or equipment that can execute this embodiment, and there is no limitation on this. In this embodiment, the execution subject is introduced as an electronic device.

[0079] First, the electronic device obtains a playback request, wherein the playback request includes a start time and an end time, and the playback request is used to determine the playback data between the start time and the end time.

[0080] Step 102: determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes for multiple preset times, and there are multiple variable storage nodes between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes.

[0081] For example, the track data is recorded as track pairs, recording the change information of all tracks on the time axis. Figure 2 A schematic diagram of a scenario of a method for processing vehicle distribution provided in an embodiment of the present application, such as Figure 2As shown, the track data includes batch storage nodes of multiple preset moments (t0, t1, t2...), and there are multiple change moments between two adjacent preset moments, for example, the preset moment t0 corresponds to batch storage node 0, the preset moment t1 corresponds to batch storage node 1, and the preset moment t2 corresponds to batch storage node 2; the change moments between t0 and t1 include t01, t02...t05..., the change moment t01 corresponds to variable storage node 1, the change moment t02 corresponds to variable storage node 2, and the change moment t05 corresponds to variable storage node 5; the change moments between t1 and t2 include..., t10, and the change moment t10 corresponds to variable storage node 10. Among them, the preset moment is determined according to the preset time interval, the batch storage node includes the vehicle data of all vehicles on the track stored at the preset moment, for example, the vehicle data includes the identity of the vehicle on each track and the identity of the shunting machine used to move the vehicle; the variable storage node includes the vehicle change data stored when the vehicle data on the track changes, for example, the vehicle change data includes the data of the vehicle state change and the data of the vehicle position change.

[0082] For example, at a preset time, the vehicles and shunting machines on each track are scanned to obtain the vehicle data of all vehicles and all shunting machines on the track at that time, and store them to obtain a batch storage node. Moreover, in the station, if the vehicle status changes or the vehicle position changes, the vehicle change data is stored according to the change time, that is, a variable storage node is obtained. Further, the method of obtaining the variable storage node can be a manual triggering method or an automatic triggering method, etc., which is not limited. Specifically, if it is a manual triggering method, it can be in the station. If the vehicle undergoes operations such as loading, unloading, and maintenance, the vehicle status changes. At this time, the worker will click on the corresponding operation content on the preset system after the operation is completed, and the electronic device can obtain which vehicles have changed status and the vehicle change data; if in the station, the shunting machine moves the vehicle from A to B, receives the vehicle, and sends the vehicle, the vehicle position changes. At this time, the worker will click on the corresponding operation content on the preset system after the operation is completed, and the electronic device can obtain which vehicles and shunting machine positions have changed, as well as the vehicle change data, that is, the variable storage node. If it is an automatic triggering method, the vehicle data of the vehicle entering the station can be scanned, and the vehicle data of the vehicle leaving the station can be scanned when the vehicle enters the station, that is, the order of the identity identification of the vehicle data entering the station and the order of the identity identification of the vehicle data leaving the station can be determined according to the scanning order. According to the order, the vehicle data entering the station and the vehicle data leaving the station are compared to determine whether the position of the vehicle has changed. If it is determined that it has changed, the variable storage node is stored at the current moment; or, the vehicle is weighed when entering and leaving the station respectively to determine whether the vehicle status has changed. If it is determined that it has changed, the variable storage node is stored at the current moment.

[0083] In this step, first search for the moment corresponding to the start moment and the moment corresponding to the end moment on the time axis of the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the start moment based on the moment corresponding to the start moment, and determine the batch storage node and / or variable storage node corresponding to the end moment based on the moment corresponding to the end moment.

[0084] Step 103: Determine the first vehicle distribution information according to the batch storage node and / or variable storage node corresponding to the start time; and determine the second vehicle distribution information according to the batch storage node and / or variable storage node corresponding to the end time.

[0085] Exemplarily, for the start time, if the start time corresponds to a preset time on the time axis of the track data, the preset time corresponds to a batch storage node, and the vehicle data in the batch storage node is the vehicle distribution information at the corresponding preset time, then the vehicle data in the corresponding batch storage node is directly determined as the first vehicle distribution information. Alternatively, if the start time corresponds to a change time on the time axis of the track data, the preset time corresponds to a variable storage node, the last batch storage node before the start time, and multiple variable storage nodes between the time when the last batch storage node is located and the start time are determined, and the first vehicle distribution information is determined based on the last batch storage node and multiple variable storage nodes between the time when the last batch storage node is located and the start time.

[0086] Similarly, for the end time, if the end time corresponds to a preset time on the time axis of the track data, the preset time corresponds to a batch storage node, and the vehicle data in the batch storage node is the vehicle distribution information at the corresponding preset time, then the vehicle data in the corresponding batch storage node is directly determined as the first vehicle distribution information. Alternatively, if the end time corresponds to a change time on the time axis of the track data, the preset time corresponds to a variable storage node, the last batch storage node before the end time, and multiple variable storage nodes between the time when the last batch storage node is located and the end time are determined, and the second vehicle distribution information is determined based on the last batch storage node and multiple variable storage nodes between the time when the last batch storage node is located and the end time.

[0087] Step 104: Based on the first distribution information and the second distribution information, replay the target storage nodes between the start time and the end time to obtain replay data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes.

[0088] Exemplarily, the target storage nodes between the start time and the end time include multiple batch storage nodes, and multiple variable storage nodes exist between two adjacent batch storage nodes. Based on the first distribution information and the second distribution information, the target storage nodes between the start time and the end time are replayed to obtain replay data, and the replay data includes the first distribution information, the second distribution information, and the vehicle distribution information of each storage node between the node where the first distribution information is located and the node where the second distribution information is located.

[0089] In an embodiment of the present application, a playback request is obtained; wherein the playback request includes a start time and an end time. A batch storage node and / or a variable storage node corresponding to the start time is determined in the pre-stored track data, and a batch storage node and / or a variable storage node corresponding to the end time is determined in the track data; wherein the track data includes batch storage nodes of multiple preset times, and multiple variable storage nodes exist between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes. According to the batch storage node and / or the variable storage node corresponding to the start time, the first vehicle distribution information is determined; and according to the batch storage node and / or the variable storage node corresponding to the end time, the second vehicle distribution information is determined. Based on the first distribution information and the second distribution information, the target storage nodes between the start time and the end time are replayed to obtain playback data; wherein the target storage node is a plurality of batch storage nodes and / or a plurality of variable storage nodes. In this solution, the first vehicle distribution information is determined according to the batch storage node and / or variable storage node corresponding to the start time, and the second vehicle distribution information is determined according to the batch storage node and / or variable storage node corresponding to the end time. Based on the first distribution information and the second distribution information, the target storage node between the start time and the end time is played back and read to obtain playback data. Therefore, compared with the prior art, the present application uses a historical record storage method that combines track-oriented batch storage with variable storage to store batch storage nodes and variable storage nodes, and plays back and reads the vehicle historical distribution records of the station track in the batch storage nodes and variable storage nodes, thereby realizing the function of replaying the historical distribution of station track vehicles. The playback mechanism is simple to calculate and consumes less resources, and can ensure the integrity and accuracy of the stored data and vehicle historical distribution records, thereby improving the efficiency of queries, saving storage and computing resources, and solving the technical problem that vehicle storage data occupies a large amount of resources.

[0090] Figure 3 A flow chart of another method for processing vehicle distribution provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method includes:

[0091] Step 201: Get a playback request; wherein the playback request includes a start time and an end time.

[0092] For example, this step can be referred to Figure 1 Step 101 in the above is not described in detail.

[0093] Step 202: Determine the time type of the start time and the time type of the end time according to the preset track time rule information.

[0094] Exemplarily, the preset track time rule information is rule information for determining the time type according to the preset time interval for generating the preset time. According to the preset track time rule information, the time type of the start time and the time type of the end time can be determined, and the time type includes a batch storage type and a variable storage type.

[0095] Step 203: According to the time type of the start time, determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and according to the time type of the end time, determine the batch storage node and / or variable storage node corresponding to the end time in the track data.

[0096] In one example, "determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data according to the moment type of the start time", including: if it is determined that the moment type of the start time is a batch storage type, determine the first target preset moment corresponding to the start time; determine the batch storage node corresponding to the first target preset moment in the pre-stored track data; determine the batch storage node corresponding to the first target preset moment as the batch storage node corresponding to the start time; or, if it is determined that the moment type of the start time is a variable storage type, then according to the start time, determine in the pre-stored track data the last batch storage node before the start time and multiple variable storage nodes between the moment of the last batch storage node and the start time.

[0097] In one example, "determine the batch storage node and / or variable storage node corresponding to the end time in the track data according to the moment type of the end time", includes: if the moment type of the end time is determined to be a batch storage type, determine the second target preset time corresponding to the end time; determine the batch storage node corresponding to the second target preset time in the pre-stored track data; determine the batch storage node corresponding to the second target preset time as the batch storage node corresponding to the end time; or, if the moment type of the end time is determined to be a variable storage type, then according to the end time, determine in the pre-stored track data the last batch storage node before the end time and multiple variable storage nodes between the moment of the last batch storage node and the end time.

[0098] Exemplarily, for the start time t_start, Figure 4 A schematic diagram of another method for processing vehicle distribution provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the position of the starting time t_start on the time axis is as follows Figure 4As shown, if the time type of the start time t_start is determined to be a batch storage type, it means that the start time is the same as a preset time t0 on the time axis of the track data, and the first target preset time corresponding to the start time is determined, and the first target preset time is the same preset time t0 on the time axis. In the pre-stored track data, the batch storage node 0 corresponding to the first target preset time is determined, and the batch storage node 0 corresponding to the first target preset time is directly determined as the batch storage node corresponding to the start time. Or, Figure 5 A schematic diagram of a scenario of another method for processing vehicle distribution provided in an embodiment of the present application, such as Figure 5 As shown, the position of the starting time t_start on the time axis is as follows Figure 5 As shown, if the time type of the start time t_start is determined to be a change storage type, it means that the start time is the same as a change time t05 on the time axis of the track data. Since the transformation storage node 5 of the same change time t05 only contains the vehicle change data at that time, the vehicle data of all vehicles at that time cannot be directly determined based on the vehicle change data. Therefore, based on the start time t_start, in the pre-stored track data, the last batch storage node 0 before the start time t_start and multiple variable storage nodes (t01, t02...t05) between the time t0 where the last batch storage node 0 is located and the start time t_start are determined.

[0099] For the end time t_end, Figure 4 As shown, the position of the end time t_end on the time axis is as follows Figure 4 As shown, if the time type of the end time t_end is determined to be a batch storage type, it means that the end time is the same as a preset time t1 on the time axis of the track data, then the second target preset time corresponding to the end time is determined, and the second target preset time is the same preset time t1 on the time axis. In the pre-stored track data, the batch storage node 1 corresponding to the second target preset time is determined, and the batch storage node 1 corresponding to the second target preset time is directly determined as the batch storage node corresponding to the end time. Or, Figure 5 As shown, the position of the end time t_end on the time axis is as follows Figure 5As shown, if the moment type of the end moment t_end is determined to be a change storage type, it means that the end moment is the same as a certain change moment t10 on the time axis of the track data. Since the transformation storage node of the same change moment t10 only contains the vehicle change data at that moment, it is impossible to directly determine the vehicle data of all vehicles at that moment based on the vehicle change data. Therefore, based on the end moment, in the pre-stored track data, determine the last batch storage node 1 before the end moment, and multiple variable storage nodes (…, variable storage node 10) between the moment t1 where the last batch storage node 1 is located and the end moment t_end.

[0100] Step 204: If the moment type at the start time is a change storage type, based on the order of multiple variable storage nodes adjacent to the last batch storage node, taking the first variable storage node close to the last batch storage node as the starting point, replace the vehicle data in the last batch storage node according to the vehicle change data in each variable storage node in turn to obtain the first vehicle distribution information.

[0101] For example, Figure 5 As shown, if the time type of the start time t_start is a change storage type, based on the order of multiple variable storage nodes (1, 2...5) adjacent to the last batch storage node 0, the first variable storage node 1 close to the last batch storage node 0 is used as the starting point, and the vehicle data in the last batch storage node 0 is replaced according to the vehicle change data in the first variable storage node 1 to obtain the replaced vehicle data. Then, according to the order of multiple variable storage nodes (1, 2...5), the replaced vehicle data is replaced again according to the vehicle change data in the second variable storage node 2, and the replaced vehicle data is obtained, and so on, until the replaced vehicle data is repeatedly replaced according to the vehicle change data in the last variable storage node 5, and finally the first vehicle distribution information is obtained.

[0102] Or, if Figure 4 As shown, if the moment type of the starting moment t_start is a batch storage type, since the batch storage node 0 corresponding to the first target preset moment is the batch storage node corresponding to the starting moment, the vehicle data in the batch storage node 0 corresponding to the first target preset moment can be directly determined as the first vehicle distribution information.

[0103] Step 205: Determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time.

[0104] For example, Figure 5As shown, if the time type of the end time t_end is a change storage type, based on the order of multiple variable storage nodes (…, 10) adjacent to the last batch storage node 1, starting from the first variable storage node close to the last batch storage node 1, first replace the vehicle data in the last batch storage node 1 according to the vehicle change data in the first variable storage node to obtain the replaced vehicle data. Then, according to the order of multiple variable storage nodes (…, 10), the replaced vehicle data is replaced again according to the vehicle change data in the second variable storage node in turn to obtain the replaced vehicle data, and so on, until the replaced vehicle data is repeatedly replaced according to the vehicle change data in the last variable storage node 10, and finally the second vehicle distribution information is obtained.

[0105] Or, if Figure 4 As shown, if the moment type of the end time t_end is a batch storage type, since the batch storage node 1 corresponding to the second target preset time is the batch storage node corresponding to the end time, the vehicle data in the batch storage node 1 corresponding to the second target preset time can be directly determined as the second vehicle distribution information.

[0106] Step 206: Based on the first distribution information and the second distribution information, determine multiple variable storage nodes in the target storage node; wherein the multiple variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located.

[0107] Exemplarily, the target storage node between the start time and the end time includes a plurality of batch storage nodes, and a plurality of variable storage nodes exist between two adjacent batch storage nodes. Based on the first distribution information and the second distribution information, a plurality of variable storage nodes are determined in the target storage node, and the plurality of variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located.

[0108] Step 207, based on the order of multiple variable storage nodes, taking the first variable storage node close to the node where the first distribution information is located as the starting point, replace the first distribution information according to the vehicle change data in each variable storage node in turn to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second distribution information is located, stop playback and determine the playback data.

[0109] The playback information includes the first distribution information, the second distribution information, and the vehicle distribution information of each batch storage node between the node where the first distribution information is located and the node where the second distribution information is located.

[0110] For example, Figure 6A schematic diagram of another method for processing vehicle distribution provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, firstly, the multiple variable storage nodes (1, 2…5…) between the node where the first distribution information is located (i.e., batch storage node 0) and the next batch storage node 1 adjacent to the node where the first distribution information is located are replayed, that is, the multiple variable storage nodes (1, 2…5…) between batch storage node 0 and batch storage node 1 are replayed to determine the vehicle distribution information of the next batch storage node 1. Specifically, based on the order of the multiple variable storage nodes, the first variable storage node 1 close to the node where the first distribution information is located is used as the starting point, and the first distribution information is replaced according to the vehicle change data in the first variable storage node 1 to obtain the replaced first distribution information. Then, according to the order of the multiple variable storage nodes, the replaced first distribution information is replaced again according to the vehicle change data in the second variable storage node 2 in turn to obtain the replaced first distribution information, and so on, until the replaced first distribution information is repeatedly replaced according to the vehicle change data in the last variable storage node among the multiple variable storage nodes, and finally the vehicle distribution information of the next batch storage node 1 adjacent to the node where the first distribution information is located is obtained.

[0111] Since the target storage nodes between the start time t_start and the end time t_end include multiple batch storage nodes, after determining the vehicle distribution information of the next batch storage node 1, the next batch storage node 1 is taken as the starting point and the node where the second distribution information is located is taken as the end point, and the vehicle distribution information of the next batch storage node adjacent to the starting point is determined based on the starting point and multiple variable storage nodes, where the multiple variable storage nodes are variable storage nodes located between the starting point and the next batch storage node adjacent to the starting point. The determination method refers to the method of "determining the vehicle distribution information of the next batch storage node 1" in the previous paragraph, which will not be repeated here. By analogy, until the next batch storage node is a node adjacent to the node where the second distribution information is located, the playback is stopped and the playback data is determined. The playback information includes the first distribution information, the second distribution information, and the vehicle distribution information of each batch storage node between the node where the first distribution information is located and the node where the second distribution information is located. It should be noted that the above process of determining the playback data ends at the node where the second distribution information is located, and the vehicle distribution information of each batch storage node is obtained in sequence by replacement. It can also end at the node where the first distribution information is located, and the vehicle distribution information of each batch storage node is obtained in sequence by replacement. There is no limitation on this.

[0112] In an embodiment of the present application, a playback request is obtained; wherein the playback request includes a start time and an end time. According to the preset track time rule information, the time type of the start time and the time type of the end time are determined. According to the time type of the start time, the batch storage node and / or variable storage node corresponding to the start time are determined in the pre-stored track data, and according to the time type of the end time, the batch storage node and / or variable storage node corresponding to the end time are determined in the track data. If the time type of the start time is a change storage type, based on the order of multiple variable storage nodes adjacent to the last batch storage node, starting from the first variable storage node close to the last batch storage node, the vehicle data in the last batch storage node is replaced in turn according to the vehicle change data in each variable storage node, and the first vehicle distribution information is obtained. According to the batch storage node and / or variable storage node corresponding to the end time, the second vehicle distribution information is determined. Based on the first distribution information and the second distribution information, multiple variable storage nodes are determined in the target storage node; wherein the multiple variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located. Based on the order of multiple variable storage nodes, starting from the first variable storage node close to the node where the first distribution information is located, the first distribution information is replaced in turn according to the vehicle change data in each variable storage node to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second distribution information is located, the playback is stopped and the playback data is determined. Therefore, compared with the prior art, the present application uses a historical record storage method that combines track-oriented batch storage with variable storage to store batch storage nodes and variable storage nodes, and playbacks and reads the vehicle historical distribution records of the station track in the batch storage nodes and variable storage nodes, realizing the function of playback of the historical distribution of vehicles in the station track. The playback mechanism is simple to calculate and consumes less resources, and can ensure the integrity and accuracy of the stored data and the vehicle historical distribution records, thereby improving the efficiency of queries, saving storage and computing resources, and solving the technical problem that vehicle storage data occupies a large amount of resources.

[0113] In one example, Figure 7 A schematic diagram of the architecture of a vehicle distribution processing method provided in an embodiment of the present application, such as Figure 7 As shown, it includes a station, tracks in the station, shunting locomotives, vehicles, and a database. The station can perform vehicle operations, shunting operations, and receiving and dispatching operations. According to various operations, the vehicle data on the tracks and the vehicle connection change data are stored in batches and variables, and finally stored in the database. According to the playback request, the stored data is played back to obtain the playback data.

[0114] From the business needs, we know that the playback of track vehicle historical distribution is similar to the playback function of surveillance video, which needs to record the changes that occur in the information system at every moment. However, if the information system records frame by frame like a video, it will require huge storage resources and data omissions may occur. However, this application can store such data in a structured database and ensure that there are no logical omissions, thereby ensuring the accuracy of the data.

[0115] Therefore, in order to improve the speed and accuracy of the historical playback of the distribution of vehicles on the station tracks and railway tracks, this application adopts a storage method that combines track-oriented batch storage and variable storage. Batch storage is stored once at a preset time interval, and variable storage is stored once when the vehicle changes due to operations within the station. When a playback request is initiated, the playback request includes a start time and an end time. First, the nearest batch storage node before the start time is queried to obtain the distribution of all tracks and vehicles on shunting locomotives in the station at that node. Then query all variable storage nodes between the time when the batch storage node is located and the end time, execute them one by one, and replace the changed tracks and shunting locomotives one by one according to the variable storage nodes, and finally obtain the distribution of vehicles on all tracks and shunting locomotives at the query time.

[0116] Figure 8 A schematic diagram of a vehicle distribution processing device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the device comprises:

[0117] The acquisition module 31 is used to acquire a playback request; wherein the playback request includes a start time and an end time.

[0118] The first determination module 32 is used to determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes for multiple preset times, and there are multiple variable storage nodes between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes.

[0119] The second determination module 33 is used to determine the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time.

[0120] The third determination module 34 is used to determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time.

[0121] The playback module 35 is used to play back the target storage nodes between the start time and the end time based on the first distribution information and the second distribution information to obtain playback data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes.

[0122] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0123] Fig. 9 A schematic diagram of the structure of another vehicle distribution processing device provided in an embodiment of the present application, in Figure 8 Based on the embodiment shown, Fig. 9 As shown, the first determination module 32 includes:

[0124] The first determining unit 321 is used to determine the time type of the start time and the time type of the end time according to the preset track time rule information.

[0125] The second determining unit 322 is used to determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data according to the time type of the start time.

[0126] The third determining unit 323 is used to determine the batch storage node and / or variable storage node corresponding to the end time in the track data according to the time type of the end time.

[0127] In one example, the second determining unit 322 is specifically configured to:

[0128] If the time type of the start time is determined to be a batch storage type, then determine the first target preset time corresponding to the start time; determine the batch storage node corresponding to the first target preset time in the pre-stored track data; determine the batch storage node corresponding to the first target preset time to be the batch storage node corresponding to the start time.

[0129] Alternatively, if the time type of the start time is determined to be a variable storage type, then based on the start time, in the pre-stored track data, the last batch storage node before the start time and multiple variable storage nodes between the time of the last batch storage node and the start time are determined.

[0130] In one example, the third determining unit 323 is specifically configured to:

[0131] If the time type of the end time is determined to be a batch storage type, then determine the second target preset time corresponding to the end time; determine the batch storage node corresponding to the second target preset time in the pre-stored track data; determine the batch storage node corresponding to the second target preset time, which is the batch storage node corresponding to the end time.

[0132] Alternatively, if the time type of the end time is determined to be a variable storage type, then based on the end time, in the pre-stored track data, determine the last batch storage node before the end time and multiple variable storage nodes between the time of the last batch storage node and the end time.

[0133] In one example, the second determining module 33 is specifically configured to:

[0134] If the moment type at the start time is a change storage type, based on the order of multiple variable storage nodes adjacent to the last batch storage node, taking the first variable storage node close to the last batch storage node as the starting point, the vehicle change data in each variable storage node is used to replace the vehicle data in the last batch storage node to obtain the first vehicle distribution information.

[0135] In one example, the playback module 35 includes:

[0136] The fourth determination unit 351 is used to determine multiple variable storage nodes in the target storage node based on the first distribution information and the second distribution information; wherein the multiple variable storage nodes are located between the node where the first distribution information is located and the next batch storage node adjacent to the node where the first distribution information is located.

[0137] The playback unit 352 is used to replace the first distribution information based on the order of multiple variable storage nodes, starting from the first variable storage node close to the node where the first distribution information is located, according to the vehicle change data in each variable storage node in turn, to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second distribution information is located, stop playback and determine the playback data.

[0138] The playback information includes the first distribution information, the second distribution information, and the vehicle distribution information of each batch storage node between the node where the first distribution information is located and the node where the second distribution information is located.

[0139] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0140] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10As shown, the electronic device includes: a memory 51 and a processor 52.

[0141] The memory 51 stores a computer program that can be executed on the processor 52 .

[0142] The processor 52 is configured to execute the method provided in the above embodiment.

[0143] The electronic device further includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by an external device, and the transmitter 54 is used to send instructions and data to the external device.

[0144] Fig.11 This is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0145] The apparatus 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0146] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0147] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0148] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.

[0149] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0150] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0151] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0152] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600 and the temperature change of the device 600. The sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0153] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0154] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0156] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method provided by the above embodiment.

[0157] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0158] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0159] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for processing vehicle distribution, characterized in that: include: Obtain a playback request; wherein the playback request includes a start time and an end time; Determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes of multiple preset times, and multiple variable storage nodes exist between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes; the track data records the change information of all tracks on the time axis based on the track pair recording object; Determine the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time; and determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time; Based on the first vehicle distribution information and the second vehicle distribution information, replay the target storage nodes between the start time and the end time to obtain replay data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes; The step of replaying the target storage node between the start time and the end time based on the first vehicle distribution information and the second vehicle distribution information to obtain replay data includes: Based on the first vehicle distribution information and the second vehicle distribution information, a plurality of variable storage nodes are determined in the target storage node; wherein the plurality of variable storage nodes are located between the node where the first vehicle distribution information is located and the next batch storage node adjacent to the node where the first vehicle distribution information is located; Based on the order of the plurality of variable storage nodes, starting from the first variable storage node close to the node where the first vehicle distribution information is located, the first vehicle distribution information is replaced in turn according to the vehicle change data in each variable storage node to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second vehicle distribution information is located, the playback is stopped and the playback data is determined; The playback information includes the first vehicle distribution information, the second vehicle distribution information, and the vehicle distribution information of each batch storage node between the node where the first vehicle distribution information is located and the node where the second vehicle distribution information is located.

2. The method according to claim 1, characterized in that The step of determining the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determining the batch storage node and / or variable storage node corresponding to the end time in the track data, comprises: Determine the time type of the start time and the time type of the end time according to the preset track time rule information; According to the moment type of the start moment, a batch storage node and / or a variable storage node corresponding to the start moment is determined in the pre-stored track data, and according to the moment type of the end moment, a batch storage node and / or a variable storage node corresponding to the end moment is determined in the track data.

3. The method according to claim 2, characterized in that The step of determining, according to the time type of the start time, a batch storage node and / or a variable storage node corresponding to the start time in pre-stored track data includes: If it is determined that the time type of the start time is a batch storage type, determining a first target preset time corresponding to the start time; Determine the batch storage node corresponding to the first target preset time in the pre-stored track data; determine the batch storage node corresponding to the first target preset time as the batch storage node corresponding to the start time; Alternatively, if it is determined that the moment type of the start time is a variable storage type, then based on the start time, in the pre-stored track data, the last batch storage node before the start time and multiple variable storage nodes between the moment of the last batch storage node and the start time are determined.

4. The method according to claim 2, characterized in that: The step of determining, in the track data, a batch storage node and / or a variable storage node corresponding to the end time according to the time type of the end time comprises: If it is determined that the time type of the end time is a batch storage type, determining a second target preset time corresponding to the end time; Determine the batch storage node corresponding to the second target preset time in the pre-stored track data; determine the batch storage node corresponding to the second target preset time as the batch storage node corresponding to the end time; Alternatively, if it is determined that the moment type of the end time is a variable storage type, then based on the end time, in the pre-stored track data, the last batch storage node before the end time and multiple variable storage nodes between the moment of the last batch storage node and the end time are determined.

5. The method according to claim 3, characterized in that: The determining the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time includes: If the moment type of the starting moment is a change storage type, based on the order of the multiple variable storage nodes adjacent to the last batch storage node, taking the first variable storage node close to the last batch storage node as the starting point, the vehicle data in the last batch storage node is replaced in turn according to the vehicle change data in each variable storage node to obtain the first vehicle distribution information.

6. A vehicle distribution processing device, characterized in that: include: An acquisition module, used to acquire a playback request; wherein the playback request includes a start time and an end time; A first determination module is used to determine the batch storage node and / or variable storage node corresponding to the start time in the pre-stored track data, and determine the batch storage node and / or variable storage node corresponding to the end time in the track data; wherein the track data includes batch storage nodes of multiple preset times, and multiple variable storage nodes exist between two adjacent preset times; the batch storage node includes vehicle data of all vehicles on the track stored at the preset time, and the variable storage node includes vehicle change data stored when the vehicle data on the track changes; the track data records the change information of all tracks on the time axis based on the track pair recording object; A second determination module is used to determine the first vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the start time; A third determination module, used to determine the second vehicle distribution information according to the batch storage node and / or the variable storage node corresponding to the end time; A playback module, configured to play back the target storage nodes between the start time and the end time based on the first vehicle distribution information and the second vehicle distribution information to obtain playback data; wherein the target storage nodes are multiple batch storage nodes and / or multiple variable storage nodes; The playback module is specifically used to determine multiple variable storage nodes in the target storage node based on the first vehicle distribution information and the second vehicle distribution information; wherein the multiple variable storage nodes are located between the node where the first vehicle distribution information is located and the next batch storage node adjacent to the node where the first vehicle distribution information is located; based on the order of the multiple variable storage nodes, starting from the first variable storage node close to the node where the first vehicle distribution information is located, the first vehicle distribution information is replaced in turn according to the vehicle change data in each variable storage node to obtain the vehicle distribution information of the next batch storage node; until the next batch storage node is a node adjacent to the node where the second vehicle distribution information is located, stop playback and determine playback data; wherein the playback information includes the first vehicle distribution information, the second vehicle distribution information, and the vehicle distribution information of each batch storage node between the node where the first vehicle distribution information is located and the node where the second vehicle distribution information is located.

7. The device according to claim 6, characterized in that The first determining module includes: A first determining unit, configured to determine the time type of the start time and the time type of the end time according to preset track time rule information; A second determining unit, configured to determine, according to a time type of the starting time, a batch storage node and / or a variable storage node corresponding to the starting time in pre-stored track data; A third determining unit is used to determine, in the track data, a batch storage node and / or a variable storage node corresponding to the end time according to the time type of the end time.

8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method according to any one of claims 1 to 5 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.