CN113934743A - Subway data simulation method and device, server and storage medium - Google Patents

Subway data simulation method and device, server and storage medium Download PDF

Info

Publication number
CN113934743A
CN113934743A CN202111376603.8A CN202111376603A CN113934743A CN 113934743 A CN113934743 A CN 113934743A CN 202111376603 A CN202111376603 A CN 202111376603A CN 113934743 A CN113934743 A CN 113934743A
Authority
CN
China
Prior art keywords
data
subway
time
simulated
driving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111376603.8A
Other languages
Chinese (zh)
Inventor
刘浩
杨浩帆
肖中卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Huazhiyuan Information Engineering Co ltd
Guangzhou Huajia Software Co ltd
Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd
PCI Technology Group Co Ltd
PCI Technology and Service Co Ltd
Original Assignee
Guangdong Huazhiyuan Information Engineering Co ltd
Guangzhou Huajia Software Co ltd
Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd
PCI Technology Group Co Ltd
PCI Technology and Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Huazhiyuan Information Engineering Co ltd, Guangzhou Huajia Software Co ltd, Guangzhou Jiadu Urban Rail Intelligent Operation And Maintenance Service Co ltd, PCI Technology Group Co Ltd, PCI Technology and Service Co Ltd filed Critical Guangdong Huazhiyuan Information Engineering Co ltd
Priority to CN202111376603.8A priority Critical patent/CN113934743A/en
Publication of CN113934743A publication Critical patent/CN113934743A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention discloses a subway data simulation method, a subway data simulation device, a subway data simulation server and a storage medium. The method comprises the following steps: generating a driving plan according to the subway basic data and the offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data; updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station, which are contained in the offline driving data, based on the real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and corresponding subway basic data; and acquiring point location data corresponding to each simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data. According to the technical scheme, simulation of subway data with the preset time dimension is achieved, the problems that application development and testing of the subway data are needed are solved, and support of data simulation testing is provided for application online.

Description

Subway data simulation method and device, server and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a subway data simulation method, a subway data simulation device, a subway data simulation server and a storage medium.
Background
Subways play an increasingly important role in modern urban traffic, millions of people select the subways every day, and the complexity of the wire network of the subways is higher and higher. A large amount of subway data is required to be developed and tested before subway application is on line, so that the value of the subway data in application research is continuously improved.
In the prior art, actual subway data can be called to develop and test applications based on the actual subway data. But for subways in different cities, corresponding to different actual subway data. When the application of the subway platform is developed for multiple cities, the required actual subway data volume is large and is not easy to obtain.
Therefore, a subway data simulation method is needed to realize simulation and simulation of subway data.
Disclosure of Invention
The invention provides a subway data simulation method, a subway data simulation device, a server and a storage medium, which are used for flexibly and quickly realizing the simulation and the simulation of subway data.
In a first aspect, an embodiment of the present invention provides a subway data simulation method, including:
generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data;
updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data;
and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data.
The embodiment of the invention provides a subway data simulation method, which comprises the following steps: generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data; updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data; and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data. According to the technical scheme, the off-line driving data are generated according to the driving plan, the off-line driving data are updated to obtain the simulated driving data, the simulated driving data and the point data in the preset time dimension are determined as the simulated subway data, the simulation of the subway data based on the preset time dimension is achieved, the problems of application development and test and the like of the subway data are solved, and the support of data simulation test is provided for the application online.
Further, the offline configuration data includes an originating time, a departure interval, a stopping time, a last shift time and an operating speed, and accordingly, the generating of the driving plan according to the subway basic data and the offline configuration parameters includes:
determining planned arrival time of each shift of subway to a preset station and planned departure time of each shift of subway to leave the preset station according to the subway basic data, the departure time, the departure interval, the parking time and the running speed;
and determining the driving plan according to the starting time, the ending time, the planned arrival time and the planned departure time.
Further, the real-time configuration parameters include arrival delay and stop delay, and accordingly, the real arrival time and the real departure time are obtained by updating the planned arrival time of the subway arriving at each station and the planned departure time of the subway leaving each station, which are included in the offline driving data, based on the real-time configuration parameters, including:
updating the planned arrival time through the arrival time delay to obtain the actual arrival time;
and updating the planned departure time according to the actual arrival time and the stop delay to obtain the actual departure time.
Further, the subway basic data includes line information, station information, sideline information and subway information, correspondingly, according to preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data generate simulation driving data, including:
and determining the line name and the line code contained in the line information in the preset time dimension, the station code, the station name, the platform code and the platform interval name contained in the station information, the sideline code contained in the sideline information, the subway serial number and the subway serial number contained in the subway information, and the actual arrival time and the actual departure time of each station as the simulated driving data.
Further, the point location data includes environmental data including at least one of load weight, temperature, and humidity.
Further, after obtaining point location data corresponding to each of the simulated driving data and determining the simulated driving data and the corresponding point location data as simulated subway data, the method further includes:
and determining whether the data volume and the data state of the simulated subway data are normal or not, and sending alarm information when at least one of the data volume and the data state is abnormal.
Further, after generating offline driving data according to the driving plan and the corresponding subway basic data, the method further includes:
storing the offline driving data based on an offline table;
correspondingly, before the step of updating the planned arrival time and the planned departure time of the subway arriving at each station and leaving each station, which are included in the offline driving data, based on the real-time configuration parameters to obtain the actual arrival time and the actual departure time, the method further includes:
calling the offline driving data based on the offline table;
after generating the simulated driving data according to the preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data, the method further comprises the following steps:
storing the simulated driving data based on a simulation table;
correspondingly, before point location data corresponding to each piece of simulated driving data is obtained and the simulated driving data and the corresponding point location data are determined as simulated subway data, the method further includes:
and calling the simulated driving data based on the simulation table.
In a second aspect, an embodiment of the present invention further provides a subway data simulation apparatus, including:
the off-line driving data generation module is used for generating driving plans according to subway basic data and off-line configuration parameters and then generating off-line driving data according to the driving plans and the corresponding subway basic data;
the simulated driving data generation module is used for updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data;
and the determining module is used for acquiring point location data corresponding to each piece of simulated driving data and determining the simulated driving data and the corresponding point location data as simulated subway data.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the subway data simulation method as set forth in any one of the first aspects.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the subway data simulation method according to any one of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the subway data simulation method as provided in the first aspect.
It should be noted that all or part of the computer instructions may be stored on the computer readable storage medium. The computer-readable storage medium may be packaged together with a processor of the subway data simulation apparatus, or may be packaged separately from the processor of the subway data simulation apparatus, which is not limited in this application.
For the descriptions of the second, third, fourth and fifth aspects in this application, reference may be made to the detailed description of the first aspect; in addition, for the beneficial effects described in the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to the beneficial effect analysis of the first aspect, and details are not repeated here.
In the present application, the names of the above-mentioned subway data simulation apparatuses do not limit the devices or functional modules themselves, and in practical implementation, the devices or functional modules may appear by other names. Insofar as the functions of the respective devices or functional modules are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalents.
These and other aspects of the present application will be more readily apparent from the following description.
Drawings
Fig. 1 is a flowchart of a subway data simulation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a subway data simulation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a subway data simulation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a subway data simulation system according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
Example one
Fig. 1 is a flowchart of a subway data simulation method according to an embodiment of the present invention, where the present embodiment is applicable to flexibly and quickly simulating subway data, and the method may be executed by a subway data simulation apparatus, as shown in fig. 1, the method specifically includes the following steps:
and 110, generating a driving plan according to the subway basic data and the offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data.
The subway data simulation method provided by the embodiment of the invention can be used for simulating the subway data of the preset city, and the preset city can be determined according to actual requirements. For example, if the preset city may be beijing, the subway data simulation method provided by the embodiment of the present invention may be used to simulate the subway data of beijing.
The acquired subway original data can comprise line information, site information and sideline information of a subway, wherein the line information comprises a line name and a line code, the site information comprises a site code, a site name, a site attribution, a site type, a site partition, a next site, a platform code and a platform interval name, and the sideline information comprises a sideline length, a sideline attribution and a sideline code. The subway basic data can be obtained after the subway original data are processed. The subway basic data also comprises line information, station information and sideline information of the subway, wherein the line information comprises line names and line codes, the station information comprises station codes, station names, platform codes and platform interval names, and the sideline information comprises sideline codes. The offline configuration parameters may include an origination time, departure interval, parking time, end time, and operating speed, and the departure interval may include a peak departure interval and a normal departure interval.
Specifically, after determining a city which needs to be subjected to subway data simulation, subway basic data and offline configuration parameters of the city can be obtained, a driving plan of the city is determined according to the subway basic data and the offline configuration parameters, and specifically, planned arrival time of each shift of subway arriving at each station and planned departure time of each station leaving each subway line in the city can be determined.
After the driving plan is determined, the off-line driving data can be generated according to the driving plan and the corresponding subway basic data. The subway basic data can also comprise subway information, and the subway information comprises a subway serial number and a subway code. Therefore, one piece of offline driving data may include line information of a shift subway to which the offline driving data belongs, and specifically may include a line code and a line name; the station information of the route may specifically include a station code, a station name, a station code, and a station interval name; the edge information of the path specifically comprises edge codes; the driven subway information specifically comprises a subway serial number and a subway code; and the planned arrival time of the shift subway to each station in the subway line and the planned departure time of the shift subway from each station.
In the embodiment of the invention, the driving plan of the subway in the city can be determined according to the determined subway basic data and the offline configuration parameters of the city, and the offline driving data can be generated according to the line information, the site information, the sideline information and the subway information of the subways of each shift contained in the driving plan and the driving plan, so that the offline driving data can be generated according to the acquired original data. The system is suitable for subway line network systems of different cities, and has universality.
And step 120, updating planned arrival time when the subway arrives at each station and planned departure time when the subway leaves each station, which are included in the offline driving data, based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data.
The real-time configuration parameters may include: arrival delay and parking delay.
Specifically, in the actual operation process of the subway, due to uncertainty of the environmental state, when the subway arrives at a station, a delay phenomenon or an early arrival phenomenon may occur. Therefore, the arrival delay may be a time range, for example, the arrival delay may be (- α, + α) seconds, and the specific value of α may be set according to actual requirements. Because the stop time of the subway at each station is uncertain, generally speaking, the actual stop time is longer than the planned stop time, the stop delay can be determined to be + beta minutes according to the historical stop time, and the specific value of beta can be set according to the actual requirement. And updating the planned arrival time of the subway arriving at each station and the planned departure time of the subway leaving each station, which are contained in the offline driving data, according to the arrival delay to obtain the actual arrival time and the actual departure time. And determining the planned stop time according to the planned departure time and the planned arrival time, determining the actual stop time according to the planned stop time and the stop delay, and further determining the actual departure time according to the actual arrival time and the actual stop time.
In practical application, because time is consumed for acquiring the offline driving data, the real-time configuration parameters may further include a time interval for acquiring the offline driving data, the time interval may be + γ seconds, and a specific value of γ may be set according to an actual requirement. Further, the time from- α seconds to + α seconds is randomly increased or decreased on the basis of the planned arrival time, and then + γ seconds are increased to obtain the actual arrival time.
Of course, after the actual arrival time and the actual departure time are determined, the simulated driving data can be generated according to the preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data. The preset time dimension is not specifically limited herein, and may be determined according to actual needs, for example, the preset time dimension may be one day, one week, one month, or one year. When the preset time dimension is one month, simulated driving data in one month can be generated according to the actual arrival time, the actual departure time and the corresponding subway basic data.
In the embodiment of the invention, the simulated driving data of the corresponding line can be generated according to the off-line driving data, and then the simulated driving data in the preset time period can be generated according to the preset time dimension, so that the simulation of the driving data in the preset time period in each line is realized.
Step 130, point location data corresponding to each piece of simulated driving data is obtained, and the simulated driving data and the corresponding point location data are determined as simulated subway data.
Wherein the point location data may include at least one of load, temperature, and humidity.
Specifically, each piece of simulated driving data is generated, the subway basic data included in the simulated driving data can be read, and the point location data corresponding to the simulated driving data is obtained according to the subway basic data. When the point location data includes load data, load data for each car may be generated every N seconds. The load data of each carriage in the peak time period can be W kilograms, and the load data in the off-peak time period can be W kilograms. Of course, the payload data may be updated as each station is reached until the destination station for the line is reached. After the point data are determined, the simulated driving data and the point data can be determined as simulated subway data, and the simulation of the subway data is realized.
In the embodiment of the invention, the load data and the simulated driving data can be determined as the simulated subway data, and of course, other point location data and the simulated driving data can also be determined as the simulated subway data.
The embodiment of the invention provides a subway data simulation method, which comprises the following steps: generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data; updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data; and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data. According to the technical scheme, the off-line driving data are generated according to the driving plan, the off-line driving data are updated to obtain the simulated driving data, the simulated driving data and the point data in the preset time dimension are determined as the simulated subway data, the simulation of the subway data based on the preset time dimension is achieved, the problems of application development and test and the like of the subway data are solved, and the support of data simulation test is provided for the application online.
Example two
Fig. 2 is a flowchart of a subway data simulation method according to a second embodiment of the present invention, which is embodied on the basis of the first embodiment. As shown in fig. 2, in this embodiment, the method may further include:
step 210, after a driving plan is generated according to the subway basic data and the offline configuration parameters, offline driving data is generated according to the driving plan and the corresponding subway basic data.
In one embodiment, the offline configuration data includes an originating time, a departure interval, a stopping time, a last shift time and an operating speed, and accordingly, the generating of the driving plan according to the subway basic data and the offline configuration parameters includes:
determining planned arrival time of each shift of subway to a preset station and planned departure time of each shift of subway to leave the preset station according to the subway basic data, the departure time, the departure interval, the parking time and the running speed; and determining the driving plan according to the starting time, the ending time, the planned arrival time and the planned departure time.
In particular, the subway basic data may include distances between stations in the subway line, and thus, planned arrival times and planned departure times of each shift of subways to and from each station may be determined according to the departure time, departure interval, stopping time, and running speed. After the planned arrival time and the planned departure time are determined, the driving plan of the line can be further determined according to the starting time and the last time of the line.
Of course, as described in the first embodiment, after the driving plan of the specific line is determined, the offline driving data may also be generated according to the subway basic data and the driving plan of the line.
In the embodiment of the invention, the driving plan of each line can be generated according to the subway basic data in a specific city, the off-line driving data is generated according to the subway basic data and the driving plan of each line, and the off-line driving data of all subway lines in the city is further generated to form the off-line driving data of the city.
And step 220, storing the offline driving data based on the offline table.
Specifically, after the offline driving data is generated, the offline driving data may be stored based on the offline table. And moreover, the corresponding driving plan can be searched in the offline table based on the subway basic data.
Step 230, retrieving the offline driving data based on the offline table, updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station included in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data.
In one embodiment, the real-time configuration parameters include arrival delay and stop delay, and accordingly, updating the planned arrival time of the subway arriving at each station and the planned departure time of the subway leaving each station, which are included in the offline driving data, based on the real-time configuration parameters to obtain the actual arrival time and the actual departure time, includes:
updating the planned arrival time through the arrival time delay to obtain the actual arrival time; and updating the planned departure time according to the actual arrival time and the stop delay to obtain the actual departure time.
Specifically, the arrival time delay may be (- α, + α) seconds, the stop time delay may be + β minutes, and the time from- α seconds to + α seconds is randomly increased or decreased on the basis of the planned arrival time, so as to obtain the actual arrival time. Of course, the scheduled stop time is determined according to the scheduled departure time and the scheduled arrival time, the actual stop time can be determined according to the scheduled stop time and the stop delay, and the actual departure time can be determined according to the actual arrival time and the actual stop time.
In one embodiment, the generating of the simulated driving data according to the preset time dimension, the actual arrival time, the actual departure time, and the corresponding subway basic data includes:
and determining the line name and the line code contained in the line information in the preset time dimension, the station code, the station name, the platform code and the platform interval name contained in the station information, the sideline code contained in the sideline information, the subway serial number and the subway serial number contained in the subway information, and the actual arrival time and the actual departure time of each station as the simulated driving data.
Specifically, the line name, the line code, the station name, the station code, the station interval name, the sideline code, the subway serial number, the actual arrival time and the actual departure time of each station in the preset time dimension are determined as the simulated driving data.
In practical application, after the simulated driving data is generated, if the simulated driving data is required to be applied to subway line network systems of other cities, only the basic subway data needs to be changed, so that data support is provided for subway line network data of other cities, and data migration is further realized.
In the embodiment of the invention, the off-line driving data can be called based on the off-line table, and then the off-line driving data is updated to obtain the simulated driving data in the preset time dimension.
And 240, storing the simulated driving data based on the simulation table.
Specifically, after the simulated driving data is generated, the simulated driving data may be stored based on the simulation table. In addition, the actual arrival time and the actual departure time of each station in the corresponding subway line can be searched in the simulation table based on the subway basic data.
Step 250, the simulated driving data are called based on the simulation table, point location data corresponding to each simulated driving data are obtained, and the simulated driving data and the corresponding point location data are determined as simulated subway data.
Preferably, the point location data includes environmental data including at least one of load weight, temperature, and humidity.
Specifically, after point location data is obtained, the point location data may be stored based on the point location table.
In the embodiment of the invention, firstly, the simulation driving data is called based on the simulation table, the load data is called based on the point location table, the load data and the simulation driving data are determined as the simulation subway data, and of course, other point location data and the simulation driving data can also be determined as the simulation subway data.
And step 260, determining whether the data volume and the data state of the simulated subway data are normal or not, and sending alarm information when at least one of the data volume and the data state is abnormal.
Specifically, the data amount and the data state of the simulated subway data can be determined based on data monitoring. In the generation process of the simulated subway data, whether errors and omissions exist in the acquisition of original data or not can be determined based on data monitoring, whether errors and omissions exist in the generation of the off-line driving data or not can also be determined, whether errors and omissions exist in the generation of the simulated driving data or not can also be determined, and whether errors and omissions exist in the generation of the simulated subway data or not can also be determined. When at least one of the acquisition of the original data, the generation of the off-line driving data, the generation of the simulated driving data and the generation of the simulated subway data has errors or omissions, alarm information can be sent out to remind a worker to correct the data acquisition or the data generation in time.
In practical application, the acquisition process of the original data and the generation processes of the off-line driving data, the simulated driving data and the simulated subway data can be recorded based on the log. Of course, the detail degree of the record can be determined according to the requirements of the user.
In the embodiment of the invention, when the data is abnormal, an alarm can be given based on the abnormal information to remind a worker to regulate and control the data acquisition process or the data generation process so as to generate more accurate simulated subway data.
The embodiment of the invention provides a subway data simulation method, which comprises the following steps: generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data; updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data; and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data. According to the technical scheme, the off-line driving data are generated according to the driving plan, the off-line driving data are updated to obtain the simulated driving data, the simulated driving data and the point data in the preset time dimension are determined as the simulated subway data, the simulation of the subway data based on the preset time dimension is achieved, the problems of application development and test and the like of the subway data are solved, and the support of data simulation test is provided for the application online.
In addition, when the data are abnormal, an alarm can be given based on the abnormal information so as to remind a worker to regulate and control the data acquisition process or the data generation process, and more accurate simulated subway data can be generated.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a subway data simulation apparatus according to a third embodiment of the present invention, where the apparatus can be adapted to quickly and flexibly simulate subway data. The device can be realized by software and/or hardware and is generally integrated in a subway data simulation system.
As shown in fig. 3, the apparatus includes:
the offline driving data generation module 310 is configured to generate a driving plan according to the subway basic data and the offline configuration parameters, and then generate offline driving data according to the driving plan and the corresponding subway basic data;
the simulated driving data generation module 320 is configured to update planned arrival time when a subway arrives at each station and planned departure time when the subway departs from each station, which are included in the offline driving data, based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generate simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time, and the corresponding subway basic data;
the determining module 330 is configured to obtain point location data corresponding to each piece of simulated driving data, and determine the simulated driving data and the corresponding point location data as simulated subway data.
The subway data simulation device provided by this embodiment generates a driving plan according to subway basic data and offline configuration parameters, and then generates offline driving data according to the driving plan and the corresponding subway basic data; updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data; and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data. According to the technical scheme, the off-line driving data are generated according to the driving plan, the off-line driving data are updated to obtain the simulated driving data, the simulated driving data and the point data in the preset time dimension are determined as the simulated subway data, the simulation of the subway data based on the preset time dimension is achieved, the problems of application development and test and the like of the subway data are solved, and the support of data simulation test is provided for the application online.
On the basis of the foregoing embodiment, the offline configuration data includes an originating time, a departure interval, a stopping time, a last shift time, and an operating speed, and accordingly, the offline driving data generating module 310 is specifically configured to:
determining planned arrival time and planned departure time of each shift of subway to reach a preset station according to the subway basic data, the starting time, the departure interval, the parking time and the running speed;
determining the driving plan according to the starting time, the ending time, the planned arrival time and the planned departure time;
and generating offline driving data according to the driving plan and the corresponding subway basic data.
On the basis of the above embodiment, the real-time configuration parameters include arrival delay and stop delay, the subway basic data includes line information, station information, sideline information, and subway information, and accordingly, the simulated traveling data generating module 320 is specifically configured to:
updating the planned arrival time through the arrival time delay to obtain the actual arrival time;
updating the planned departure time according to the actual arrival time and the stop delay to obtain the actual departure time;
and determining the line name and the line code contained in the line information in the preset time dimension, the station code, the station name, the platform code and the platform interval name contained in the station information, the sideline code contained in the sideline information, the subway serial number and the subway serial number contained in the subway information, and the actual arrival time and the actual departure time of each station as the simulated driving data.
In one embodiment, the point location data includes environmental data including at least one of load weight, temperature, and humidity.
On the basis of the above embodiment, the apparatus further includes:
and the alarm module is used for determining whether the data volume and the data state of the simulated subway data are normal or not and sending alarm information when at least one of the data volume and the data state is abnormal.
On the basis of the above embodiment, the apparatus further includes:
the first storage module is used for storing the offline driving data based on an offline table;
accordingly, the offline driving data generation module 310 is further configured to: and calling the offline driving data based on the offline table.
On the basis of the above embodiment, the apparatus further includes:
the second storage module is used for storing the simulated driving data based on a simulation table;
accordingly, the simulated driving data generating module 320 is further configured to:
and calling the simulated driving data based on the simulation table.
The third storage module is used for storing point location data based on the point location table;
accordingly, the simulated driving data generating module 320 is further configured to:
and calling the point location data based on the point location table.
The subway data simulation device provided by the embodiment of the invention can execute the subway data simulation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention, as shown in fig. 4, the server includes a processor 410 and a memory 420; the number of the processors 410 in the server may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410 and the memory 420 in the server may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The memory 420 serves as a computer-readable storage medium, and may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the subway data simulation method in the embodiment of the present invention (for example, the offline driving data generation module 310, the simulated driving data generation module 320, and the determination module 330 in the subway data simulation apparatus). The processor 410 executes various functional applications of the server and data processing by running software programs, instructions and modules stored in the memory 420, that is, implements the above-described subway data simulation method.
The processor 410 may include one or more Central Processing Units (CPUs), and may also include a plurality of processors 410. Each of the CPUs of the processors 410 may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Processor 410 may refer herein to one or more devices, circuits, and/or processing cores that process data (e.g., computer program instructions).
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The server provided by the embodiment of the invention can execute the subway data simulation method provided by the embodiment of the invention, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a subway data simulation system according to a fifth embodiment of the present invention, and as shown in fig. 5, the system may include a receiving module, an offline processing module, a real-time processing module, a storage module, a data monitoring module, a configuration management module, and a logging module.
The receiving module is used for receiving subway basic data and point data; the offline processing module is used for generating offline driving data according to the subway basic data and the offline configuration parameters; the real-time processing module is used for generating simulated driving data according to the real-time configuration parameters and the off-line driving data; the data monitoring module is used for monitoring the acquisition process of subway basic data and point data and the generation process of off-line driving data and simulated driving data; the configuration management module is used for determining offline configuration parameters and real-time configuration parameters according to configuration information input by a user; the log recording module is used for recording the acquisition process of subway basic data and point data and the generation process of off-line driving data and simulated driving data; the storage module comprises a first storage unit, a second storage unit and a third storage unit, wherein the first storage unit comprises an offline table used for storing offline driving data, the second storage unit comprises an analog table used for storing analog driving data, and the third storage unit comprises a point bit table used for storing point bit data.
The subway data simulation system provided by the embodiment of the invention can execute the subway data simulation method provided by the embodiment, and has corresponding functions and beneficial effects.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a subway data simulation method, including:
generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data;
updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data;
and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, any suitable combination of the foregoing, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the subway data simulation method provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the subway data simulation apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A subway data simulation method, comprising:
generating a driving plan according to subway basic data and offline configuration parameters, and then generating offline driving data according to the driving plan and the corresponding subway basic data;
updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data;
and acquiring point location data corresponding to each piece of simulated driving data, and determining the simulated driving data and the corresponding point location data as simulated subway data.
2. A subway data simulation method as claimed in claim 1, wherein said off-line configuration data includes start time, departure interval, stop time, end time and running speed, and accordingly, the generating of the driving plan according to the subway basic data and the off-line configuration parameters includes:
determining planned arrival time of each shift of subway to a preset station and planned departure time of each shift of subway to leave the preset station according to the subway basic data, the departure time, the departure interval, the parking time and the running speed;
and determining the driving plan according to the starting time, the ending time, the planned arrival time and the planned departure time.
3. A subway data simulation method as claimed in claim 1, wherein said real-time configuration parameters include arrival delay and stop delay, and accordingly, updating planned arrival time and planned departure time of the subway arriving at each station and departing from each station, which are included in said offline driving data, based on the real-time configuration parameters to obtain actual arrival time and actual departure time, includes:
updating the planned arrival time through the arrival time delay to obtain the actual arrival time;
and updating the planned departure time according to the actual arrival time and the stop delay to obtain the actual departure time.
4. A subway data simulation method as claimed in claim 1, wherein said subway basic data includes line information, station information, sideline information and subway information, and accordingly, simulated driving data is generated according to a preset time dimension, said actual arrival time, said actual departure time and said corresponding subway basic data, including:
and determining the line name and the line code contained in the line information in the preset time dimension, the station code, the station name, the platform code and the platform interval name contained in the station information, the sideline code contained in the sideline information, the subway serial number and the subway serial number contained in the subway information, and the actual arrival time and the actual departure time of each station as the simulated driving data.
5. A method as claimed in claim 1, wherein the point location data includes environmental data including at least one of load, temperature and humidity.
6. A method for simulating subway data according to claim 1, wherein after point location data corresponding to each of said simulated driving data is obtained and said simulated driving data and said corresponding point location data are determined as simulated subway data, further comprising:
and determining whether the data volume and the data state of the simulated subway data are normal or not, and sending alarm information when at least one of the data volume and the data state is abnormal.
7. A subway data simulation method as claimed in claim 1, wherein after generating offline driving data according to said driving plan and said corresponding subway basic data, further comprising:
storing the offline driving data based on an offline table;
correspondingly, before the step of updating the planned arrival time and the planned departure time of the subway arriving at each station and leaving each station, which are included in the offline driving data, based on the real-time configuration parameters to obtain the actual arrival time and the actual departure time, the method further includes:
calling the offline driving data based on the offline table;
after generating the simulated driving data according to the preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data, the method further comprises the following steps:
storing the simulated driving data based on a simulation table;
correspondingly, before point location data corresponding to each piece of simulated driving data is obtained and the simulated driving data and the corresponding point location data are determined as simulated subway data, the method further includes:
and calling the simulated driving data based on the simulation table.
8. A subway data simulation apparatus, comprising:
the off-line driving data generation module is used for generating driving plans according to subway basic data and off-line configuration parameters and then generating off-line driving data according to the driving plans and the corresponding subway basic data;
the simulated driving data generation module is used for updating planned arrival time of the subway arriving at each station and planned departure time of the subway leaving each station contained in the offline driving data based on real-time configuration parameters to obtain actual arrival time and actual departure time, and generating simulated driving data according to a preset time dimension, the actual arrival time, the actual departure time and the corresponding subway basic data;
and the determining module is used for acquiring point location data corresponding to each piece of simulated driving data and determining the simulated driving data and the corresponding point location data as simulated subway data.
9. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the subway data simulation method as claimed in any one of claims 1-7.
10. A storage medium containing computer executable instructions for performing the subway data simulation method as claimed in any one of claims 1-7, when executed by a computer processor.
CN202111376603.8A 2021-11-19 2021-11-19 Subway data simulation method and device, server and storage medium Pending CN113934743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111376603.8A CN113934743A (en) 2021-11-19 2021-11-19 Subway data simulation method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111376603.8A CN113934743A (en) 2021-11-19 2021-11-19 Subway data simulation method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113934743A true CN113934743A (en) 2022-01-14

Family

ID=79287108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111376603.8A Pending CN113934743A (en) 2021-11-19 2021-11-19 Subway data simulation method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113934743A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116153166A (en) * 2023-04-21 2023-05-23 西北铁道电子股份有限公司 Vehicle-mounted simulation method, system and equipment for rail car driver before taking out

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116153166A (en) * 2023-04-21 2023-05-23 西北铁道电子股份有限公司 Vehicle-mounted simulation method, system and equipment for rail car driver before taking out

Similar Documents

Publication Publication Date Title
CN107464018B (en) Distribution path optimization method and device, computer equipment and storage medium
WO2020181879A1 (en) Vehicle-related data processing method and system
CN113537584B (en) Patrol task conflict processing method and device, electronic equipment and storage medium
Chromy et al. Erlang c formula and its use in the call centers
CN113934743A (en) Subway data simulation method and device, server and storage medium
CN112686466A (en) Subway passenger path confirmation method and device
CN107463357A (en) Task scheduling system, dispatching method, Simulation of Brake system and emulation mode
CN112669604B (en) Urban traffic scheduling method and device
CN104599161A (en) Method and device for pricing orders based on GPS (global positioning system) coordinate points of client
CN108833165B (en) Automatic channel arranging method and device for optical transmission network wavelength division system
Marković et al. A threshold policy for dispatching vehicles in demand-responsive transit systems
CN113065803A (en) Inter-station driving data processing method and device, electronic equipment and storage medium
CN113807560A (en) Logistics cost prediction method and device, electronic equipment and storage medium
CN103092843A (en) WebGIS (geographic information system) based bus taking guide line information processing method
CN112906253B (en) Railway signal dynamic simulation detection method and system
CN115195829A (en) Driving simulation method and device based on time sequence
CN113393062A (en) Vehicle scheduling method, program product, system, and storage medium
CN111652549A (en) Logistics distribution simulation method and device
CN112116170A (en) Method and device for automatically planning work route
CN109214542A (en) Frequency predictor method and device based on big data
CN113079487B (en) Determination method and device of switching point position and electronic equipment
CN117474191B (en) GIS (geographic information system) inspection management method based on intelligent water meter, internet of things system and device
CN115983613B (en) Flight splicing method and device, electronic equipment and storage medium
CN118036853B (en) Individual travel chain generation method, device and storage medium
Rząsa et al. Event-driven approach to modeling and performance estimation of a distributed control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination