Method for simulating train operation in software development process in heavy haul railway freight field
By analyzing the train positioning data table as a key-value pair set, and sending positioning data based on the preset time period, simulating the train operation status, the problem of lack of real-time positioning data in the field of heavy-load railway freight is solved, efficient and accurate simulated train operation is achieved, and more reliable scheduling decision-making and training simulation are supported.
Patent Information
- Application Number
- CN202311784367.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-23
- Publication Date
- 2025-02-25
AI Technical Summary
In the field of heavy-duty railway freight, operating line trains cannot provide train positioning data, resulting in a lack of real-time positioning data during software development, affecting the accuracy and real-time nature of simulated train operations.
By parsing the train positioning data table into a key-value pair set and sending positioning data based on the preset time period, the train's running status is simulated, including the target position, running direction and running speed, and the position of the train icon in the map software is dynamically updated.
It realizes the real-time positioning data sent by real trains during the software and hardware development process, improves the accuracy and real-time data, ensures the accuracy and real-time of train position information, and supports more reliable scheduling decision-making and training simulation.
Smart Images

Figure CN119502988A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of railways, and in particular to a method for simulating train operation in the software development process in the field of heavy-load railway freight. Background Art
[0002] In a complex railway network system, how to formulate a reasonable dispatching plan to maximize the economic benefits and operating efficiency of trains while ensuring safety is a problem that railway transportation managers have always been concerned about. Train operation simulation is one of the keys to solving this problem.
[0003] Since the 1980s, computer-aided train timetable drawing has gained widespread attention from academia and the business community. The main considerations for drawing the optimal train timetable are time cost or energy cost. There are two ways to achieve this: one is to evaluate the quality of the timetable based on the manual preparation of the timetable through discrimination criteria, and the other is to obtain the optimal train timetable by solving multi-objective mathematical optimization problems. In order to solve this multi-objective mathematical optimization problem, some artificial intelligence algorithms have also been widely used in this scenario, but if applied to large-scale complex railway networks, the calculation will take too long, and the results will be too precise and have no practical application value.
[0004] In the field of heavy-duty railway freight, operating trains cannot provide train positioning data. During the software development process, debugging based on train position data is required. There is currently no method on the market to simulate dynamic train positioning. Therefore, during the software and hardware development process, when the trains in the operating line do not have an interface to send real-time positioning data, it is extremely important to simulate the real train to send real-time positioning to facilitate the development of software and hardware. Summary of the invention
[0005] The present application provides a method for simulating train operation during software development in the field of heavy-load railway freight, which can simulate the real train sending real-time positioning during the software and hardware development process, thereby providing convenient conditions for train software and hardware development.
[0006] The present application provides a method for simulating train operation during software development in the field of heavy-haul railway freight, comprising: Parsing a train positioning data table according to a preset rule into a created key-value pair set, wherein the train positioning data table is generated by railway surveying and mapping data, and the train positioning data table is obtained through a set communication interface; Based on the key-value pair set, the train positioning data is sent according to the preset time period to obtain the target positioning data; According to the target positioning data of the train, the simulated running state of the train is obtained, and the simulated running state of the train includes the target position, running direction, and running speed; According to the simulated running status of the train, the position of the train icon in the map software is dynamically updated.
[0007] Preferably, the parsing according to preset rules into a created key-value pair set includes: Based on the train positioning data table, a plurality of unit groups are obtained by grouping according to the train equipment ID, each unit group includes the train equipment ID and the positioning data set corresponding to the train equipment ID, and the positioning data set includes the train positioning data arranged in sequence; Several unit groups are stored in a key-value pair set respectively, the key of the key-value pair set is the train equipment ID, the value of the key-value pair set is the positioning data set corresponding to the train equipment ID, and the key-value pair set is a MAP data structure.
[0008] Preferably, the sending of the train positioning data based on the key-value pair set according to a preset time period to obtain the target positioning data includes: Create an independent thread to simulate the train sending real-time positioning data; In an independent thread, initialize the train's positioning data and set a preset time period; According to a preset time period, the positioning data corresponding to the train equipment ID in the key-value pair set is obtained in sequence, the positioning data of the train is updated and sent, and the updated positioning data is determined as the target positioning data.
[0009] Among them, a preset time period is obtained according to the total mileage of the train running line and the average running speed, and the preset time period is used to represent the frequency of sending the train positioning data.
[0010] Preferably, before dynamically updating the position of the train icon in the map software according to the simulated running state of the train, the method further includes: Draw the target railway freight route in the map software based on the railway surveying and mapping data; Create a train icon object in the map software to represent the train; Based on the railway surveying and mapping data, determine the starting position of the train icon on the target railway freight line.
[0011] Preferably, the method further comprises: Obtaining line characteristics of the railway freight line, the line characteristics include the curve radius, slope, and station location of the railway freight line; According to the line characteristics, the train positioning data in the train positioning data table are respectively assigned deceleration section, acceleration section and stable section labels.
[0012] Preferably, the step of assigning the train positioning data in the train positioning data table with the deceleration section, acceleration section, and stable section labels respectively includes: If the curve radius of the line where the train positioning data is located is less than the radius threshold, or the slope is greater than the upper limit of the slope threshold interval, or the distance to the station location is less than the distance threshold, the train positioning data is assigned a deceleration section label; If the slope of the line where the train positioning data is located is less than the lower limit of the slope threshold interval, the train positioning data is assigned an acceleration section label; Otherwise, the train positioning data is assigned a stable section label.
[0013] Preferably, the sending of the train positioning data according to a preset time period further comprises: According to a preset time period, the positioning data in the positioning data set corresponding to the train equipment ID and the section label assigned to the positioning data are obtained.
[0014] Preferably, the method further comprises: If the acquired segment label is a stable segment label, the positioning data is acquired according to the preset time period; If the acquired section label is a deceleration section label, the preset time period is adjusted to the first time period; If the acquired segment tag is an accelerated segment tag, the preset time period is adjusted to a second time period; The first time period and the second time period are determined according to a preset time period and an adjustment factor respectively.
[0015] Preferably, the method further comprises: Receive the stop request sent by Postman, which includes the stop command and the target train equipment ID; According to the stop request, determine the key and value corresponding to the target train equipment ID in the key-value pair set; Delete the key and value corresponding to the target train equipment ID; Among them, the background service platform is provided with a stop interface, and Postman establishes a communication connection with the background service platform through the stop interface.
[0016] Preferably, the method further comprises: If the train positioning data in the key-value pair set is sent, the train simulation operation route is obtained; Compare the simulated train operation route with the target railway freight route to determine the target retrieval location; According to the target retrieval position, the train positioning data corresponding to the target retrieval position is obtained and determined as the monitoring point; Obtain monitoring data information of the monitoring area to which the monitoring point belongs; Among them, the monitoring data information is obtained through the railway service end that establishes a connection with the background service platform.
[0017] One or more technical solutions provided in this application have at least the following technical effects or advantages: By drawing a two-way railway freight line in the map software according to the railway surveying and mapping data, the visualization of the train simulation operation is realized, and the train positioning data table is parsed into the created MAP data structure according to the train equipment ID. The train positioning data is efficiently managed and accessed through the MAP data structure, which improves the data circulation and processing speed; the train positioning data is sent through a preset time period, which can simulate the actual train running speed and ensure the accuracy and real-time nature of the train location information; the positioning data is sent in the background service platform and the map software based on the TCP communication protocol of the Netty client and the server, which ensures the stability and efficiency of data transmission, simulates the real train to send real-time positioning to realize the combination of software and hardware development, and in the subsequent real train repeating the running process on the railway line, it can provide dispatchers with more reliable decision-making basis based on the simulated operation data, and can simulate and reproduce the real train operation process based on the simulated operation of the train, which can provide staff with simulation scenarios for training, and improve the efficiency and safety of railway freight train transportation training or research.
[0018] According to the line characteristics of the railway freight line, the train positioning data is assigned a section label. When the MAP data structure periodically obtains the positioning data, the preset time period is dynamically adjusted according to the section label, so as to perform simulation operation in the map software in combination with the actual train operation process, so that the simulated train operation is closer to the actual situation; the cycle time is adaptively adjusted according to the characteristics of different sections, which improves the versatility and flexibility of the software and hardware development of train simulation operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flow chart of a method for simulating train operation in a software development process in the field of heavy-haul railway freight according to an embodiment of the present invention; Figure 2 It is a schematic diagram of a process of updating and sending the positioning data of a train according to a preset time period according to an embodiment of the present invention; Figure 3 It is a flowchart of a method for simulating train operation in the process of software development in the field of heavy-haul railway freight transport according to another embodiment of the present invention; Figure 4 It is a flow chart of assigning section labels to the train positioning data in the train positioning data table according to the line characteristics according to an embodiment of the present invention; Figure 5 is a schematic diagram of a process of updating and sending the positioning data of a train according to a preset time period according to another embodiment of the present invention; Figure 6 It is a schematic diagram of a flow chart of comparing train simulation operation routes according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.
[0021] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items. Example
[0023] Figure 1 It is a flow chart of a method for simulating train operation during software development in the field of heavy-haul railway freight transport according to an embodiment of the present invention.
[0024] like Figure 1 As shown, the method for simulating train operation in the software development process in the field of heavy-haul railway freight is applied to the background service platform, including the following steps: S101, parse the train positioning data table according to preset rules and parse it into the created key-value pair set. The train positioning data table is generated by railway surveying and mapping data, including train equipment ID, running line, running direction, kilometer mark, longitude and latitude coordinates, timestamp, average running speed. The train positioning data table is obtained through the set communication interface.
[0025] Furthermore, the train positioning data table parsed according to preset rules is synchronously stored in a cache database, which is a Redis database.
[0026] Therefore, the train positioning data table is stored in the Redis database. When the background service platform fails and restarts, the data in the key-value pair set disappears and can be retrieved from the Redis database to avoid data loss and reduce simulation efficiency.
[0027] Among them, parsing is performed according to preset rules and parsed into the created key-value pair set, specifically including: S201, based on the train positioning data table, grouping is performed according to the train equipment ID to obtain a plurality of unit groups, each unit group includes a train equipment ID and a positioning data set corresponding to the train equipment ID, and the positioning data set includes train positioning data arranged in sequence.
[0028] The positioning data of the train may be longitude and latitude coordinates, which are used to directly reflect the position of the train.
[0029] S202, storing several unit groups into a key-value pair set respectively, wherein the key of the key-value pair set is the train equipment ID, the value of the key-value pair set is the positioning data set corresponding to the train equipment ID, and the key-value pair set is a MAP data structure.
[0030] S102, start an independent thread, periodically update and send the train positioning data according to a preset time period, and obtain target positioning data.
[0031] In some embodiments, Figure 2 As shown, step S102 specifically includes: S301, create an independent thread to simulate the train sending real-time positioning data.
[0032] S302, in an independent thread, initializing parameters in the train positioning data and setting a preset time period.
[0033] Specifically, a preset time period is obtained according to the total mileage of the train running line and the average running speed. The preset time period is used to represent the frequency of sending train positioning data, thereby simulating the actual running speed of the train.
[0034] S303, according to a preset time period, based on the MAP data structure, sequentially obtain the positioning data in the positioning data set corresponding to the train equipment ID, periodically update and send the positioning data of the train, and determine the updated positioning data as the target positioning data.
[0035] Specifically, after starting the independent thread, based on the for loop MAP data structure in the program, the ordered positioning data set list of the train is obtained, the positioning data of the train is sent according to the preset time period, and the sent positioning data is determined as the target positioning data. When the target positioning data is sent successfully, the value of the target positioning data in the MAP data structure is deleted.
[0036] S103, obtaining a simulated running state of the train according to the target positioning data of the train, wherein the simulated running state of the train includes a target position, a running direction, and a running speed.
[0037] Among them, the target position and running direction are determined by the target positioning data of the train, and the running speed is determined by the distance between the target position and the current position of the train and the preset time period.
[0038] S104, dynamically updating the position of the train icon in the map software according to the simulated running status of the train.
[0039] Specifically, the target position is determined in the map software according to the target positioning data of the train, and the train icon is driven to move to the target position according to the simulated operation status of the train.
[0040] In some embodiments, the transmission of positioning data between the background service platform and the map software is based on the TCP communication protocol of the Netty client and the server. The target positioning data of the train is sent to the Netty server through the Netty client, and the Netty server processes the received target positioning data of the train; further, the Netty server updates the position of the train icon in the map software in real time according to the target positioning data of the train.
[0041] In some embodiments, before dynamically updating the position of the train icon in the map software according to the simulated running status of the train, the method further includes: S401, drawing railway freight routes in map software according to railway surveying and mapping data.
[0042] S402, creating a train icon object in the map software to represent the train.
[0043] S403, determining the starting positions of all train icons respectively according to the railway surveying and mapping data.
[0044] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: By drawing a two-way railway freight line in the map software according to the railway surveying and mapping data, the visualization of the train simulation operation is realized, and the train positioning data table is parsed into the created MAP data structure according to the train equipment ID. The train positioning data is efficiently managed and accessed through the MAP data structure, which improves the data circulation and processing speed; the train positioning data is sent through a preset time period, which can simulate the actual train running speed and ensure the accuracy and real-time nature of the train location information; the positioning data is sent in the background service platform and the map software based on the TCP communication protocol of the Netty client and the server, which ensures the stability and efficiency of data transmission, simulates the real train to send real-time positioning to realize the combination of software and hardware development, and in the subsequent real train repeating the running process on the railway line, it can provide dispatchers with more reliable decision-making basis based on the simulated operation data, and can simulate and reproduce the real train operation process based on the simulated operation of the train, which can provide staff with simulation scenarios for training, and improve the efficiency and safety of railway freight train transportation training or research. Example
[0045] In Embodiment 1, taking into account the heavy load of heavy-duty railway freight trains, the slope of railway freight lines, station locations and switches, etc., all of which may affect the actual running speed of the train. When simulating the operation of the train, the simulated running speed is also crucial, which can directly reflect the gap between the simulated train operation and the actual operation of the train. In Embodiment 1, the average speed of the entire train operation and the entire mileage are used to obtain a fixed preset time period, so that a positioning data is sent every time period to simulate the operation of the train. When simulating the operation in a certain section, the simulated running speed of the section is determined according to the preset time period and the mileage of the section, and the actual route of the train operation is not taken into account. It may accelerate or decelerate, making the simulated train operation inaccurate.
[0046] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0047] In some embodiments, a method for simulating train operation during software development in the field of heavy-haul railway freight is provided, such as Figure 3 As shown, it also includes: S501, obtaining line characteristics of the railway freight line, where the line characteristics include curve radius, slope, and station location of the railway freight line.
[0048] S502, according to the line characteristics, the train positioning data in the train positioning data table are respectively assigned deceleration section, acceleration section, and stable section labels.
[0049] like Figure 4 As shown, step S502 specifically includes: S601, if the curve radius of the line where the train positioning data is located is less than the radius threshold, or the slope is greater than the upper limit of the slope threshold interval, or the distance to the station location is less than the distance threshold, assign a deceleration section label to the train positioning data.
[0050] S602: If the slope of the line where the train positioning data is located is less than the lower limit of the slope threshold interval, an acceleration section label is assigned to the train positioning data.
[0051] S603: Otherwise, assign a stable section label to the train positioning data.
[0052] Among them, the radius threshold, slope threshold interval, and distance threshold are set according to actual operating experience.
[0053] In some embodiments, in the above step S102, if Figure 5 As shown, it also includes: S701, according to a preset time period, obtaining positioning data and a section label assigned to the positioning data in a positioning data set corresponding to a train equipment ID.
[0054] S702: If the acquired segment tag is a stable segment tag, acquiring positioning data according to a preset time period.
[0055] S703: If the acquired section label is a deceleration section label, adjust the preset time period to a first time period.
[0056] S704: If the acquired segment tag is an acceleration segment tag, adjust the preset time period to a second time period.
[0057] Specifically, when the acquired train positioning data is in the deceleration section of the line, the preset time period is dynamically adjusted to the first time period, and the first time period is obtained by the preset time period and the adjustment factor, specifically: T1=T*(1-v), where T1 is the first time period, T is the preset time period, and v is the adjustment factor.
[0058] When the acquired train positioning data is in the acceleration section of the line, the preset time period is dynamically adjusted to the second time period, and the second time period is obtained by the preset time period and the adjustment factor, specifically: T2=T*(1+v), where T2 is the second time period, T is the preset time period, and v is the adjustment factor.
[0059] Among them, the adjustment factor can be set specifically according to the slope size and curve radius size.
[0060] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: Taking into account the radius of the line curve and the slope of the line, the actual train may slow down or accelerate during operation, resulting in an error in the pre-set average speed. In addition, railway freight trains may unload or add cargo at fixed stations along the way, and need to slow down in advance before arriving at the station. According to the line characteristics of the railway freight line, the train positioning data is assigned a section label. When the MAP data structure periodically obtains the positioning data, the preset time period is dynamically adjusted according to the section label, so as to perform simulation operation in the map software in combination with the situation during the actual train operation, so that the simulated train operation is closer to the actual situation; the cycle time is adaptively adjusted according to the characteristics of different sections, which improves the versatility and flexibility of the software and hardware development of train simulation operation. Example
[0061] In the above embodiment, when the simulated operation route of a train in the map software deviates seriously, it may be due to a temporary failure in the previous large transmission of positioning data. In this case, if the simulation continues, it may affect the visualization of the simulated operation of other trains, which will bring a poor user experience and easily lead to a waste of resource space for data transmission. Alternatively, according to the user's special needs, only the simulated operation of the train that the user wants to visualize is displayed in the map software.
[0062] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0063] In some embodiments, the background service platform is provided with a stop interface, and the stop interface establishes a communication connection with the user terminal through Postman. The method for simulating train operation in the software development process in the field of heavy-load railway freight further includes: S501, receiving a stop request sent by a user terminal through Postman, where the stop request includes a stop command and a target train equipment ID determined by the user terminal, where the target train equipment ID corresponds to a train for which simulation needs to be stopped.
[0064] For example, the user terminal constructs an HTTP POST request through Postman. The URL of the HTTP POST request points to the stop interface provided by the background service platform. In Postman, the format of the stop request is defined as JSON format. Assuming that the target train device ID is "12345", the stop request is "POST / stop-tracking { "deviceID": "12345"}".
[0065] S802, according to the stop request, determine the key and value corresponding to the target train equipment ID in the MAP data structure.
[0066] S803, delete the key and value corresponding to the target train equipment ID.
[0067] S804: After the deletion is successful, a confirmation message is sent to Postman through the stop interface.
[0068] Specifically, when the deletion is successful, the background service platform will return a confirmation message to Postman to inform the user terminal that the stop operation is successful. The confirmation message can be defined as a JSON response body. For example, the confirmation message is "{"status":"success","message":"Train positioning data sending has stopped"}".
[0069] Furthermore, the background service platform stops sending the positioning data of the target train equipment ID, and the train icon corresponding to the target train equipment ID in the map software stops running.
[0070] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages: By setting up a functional interface to stop sending positioning data, the user sends a stop request through Postman, controls the deletion of the value of the corresponding train equipment ID in the MAP data structure, stops sending positioning data, and avoids continuing to send positioning data when the train deviates seriously in the map software, which wastes background space resources and processing efficiency, and improves the user experience of the map software visualization. Example
[0071] The target railway line is drawn according to the railway surveying data of the freight train, and it is simulated in the map software according to the positioning data of the train to obtain the simulated train operation line. While ensuring the accuracy of the simulated operation line, by comparing the simulated operation line with the target railway line, it is possible to discover positioning data points with large differences. Based on the positioning data points, the operation of freight trains on the same railway line in the future can be focused on observation and monitoring, which can provide dispatchers with planning directions and optimization of railway lines.
[0072] Furthermore, the method of simulating train operation in the software development process in the field of heavy-haul railway freight transport, such as Figure 6 As shown, it also includes: S901, if the train positioning data in the key-value pair set is sent, obtain the train simulation operation line.
[0073] S902, comparing the simulated train operation route with the target railway freight route to determine the target retrieval position.
[0074] S903, according to the target retrieval position, obtain the train positioning data corresponding to the target retrieval position and determine it as the monitoring point.
[0075] S904, obtaining monitoring data information of the monitoring area to which the monitoring point belongs.
[0076] Specifically, the train simulation operation line is compared with the target railway freight line, and the target retrieval position is determined according to the distance between the two lines. If the position of a certain positioning data of the train in the train simulation operation line deviates from the position of the target railway freight line, and the deviation is greater than the deviation threshold, the position of the positioning data in the target railway freight line is determined as the target retrieval position, and the train positioning data corresponding to the target retrieval position is determined as the monitoring point. The deviation threshold is used to assess the degree of deviation between the two lines.
[0077] Furthermore, by establishing a connection with the railway service end of the backend service platform, the monitoring data information of the monitoring area to which the monitoring point belongs is determined, and the monitoring data information near the line where the monitoring point is located is retrieved for platform display, further enhancing the visual scheduling effect of the simulated train operation.
[0078] The above-mentioned railway service terminal stores train surveying data and collected monitoring data information on railway freight lines.
[0079] The target railway freight line is generated based on the acquired railway surveying and mapping data to represent the actual line of the train. When the train passes through the railway freight line again, the actual situation of the monitoring point can be observed in advance by determining the monitoring point to prevent unpredictable special situations in the actual operation of the train. The position of the simulated train operation can also be adjusted according to the monitoring point, providing more decision-making basis for the dispatcher.
[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for simulating train operation in the software development process in the field of heavy-haul railway freight, applied to a background service platform, characterized in that: include: Parsing a train positioning data table according to a preset rule into a created key-value pair set, wherein the train positioning data table is generated by railway surveying and mapping data, and the train positioning data table is obtained through a set communication interface; Based on the key-value pair set, the train positioning data is sent according to the preset time period to obtain the target positioning data; According to the target positioning data of the train, the simulated running state of the train is obtained, and the simulated running state of the train includes the target position, running direction, and running speed; According to the simulated running status of the train, the position of the train icon in the map software is dynamically updated.
2. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 1, characterized in that: The parsing is performed according to preset rules, and the parsing is performed into a created key-value pair set, including: Based on the train positioning data table, a plurality of unit groups are obtained by grouping according to the train equipment ID, each unit group includes the train equipment ID and the positioning data set corresponding to the train equipment ID, and the positioning data set includes the train positioning data arranged in sequence; Several unit groups are stored in a key-value pair set respectively, the key of the key-value pair set is the train equipment ID, the value of the key-value pair set is the positioning data set corresponding to the train equipment ID, and the key-value pair set is a MAP data structure.
3. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 2, characterized in that: The method of sending the train positioning data based on the key-value pair set according to a preset time period to obtain the target positioning data includes: Create an independent thread to simulate the train sending real-time positioning data; In an independent thread, initialize the train's positioning data and set a preset time period; According to a preset time period, sequentially obtain the positioning data corresponding to the train equipment ID in the key-value pair set, update and send the positioning data of the train, and determine the updated positioning data as the target positioning data; Among them, a preset time period is obtained according to the total mileage of the train running line and the average running speed, and the preset time period is used to represent the frequency of sending the train positioning data.
4. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 1, characterized in that: Before dynamically updating the position of the train icon in the map software according to the simulated running status of the train, it also includes: Draw the target railway freight route in the map software based on the railway surveying and mapping data; Create a train icon object in the map software to represent the train; Based on the railway surveying and mapping data, determine the starting position of the train icon on the target railway freight line.
5. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 1, characterized in that: The method further comprises: Obtaining line characteristics of the railway freight line, the line characteristics include the curve radius, slope, and station location of the railway freight line; According to the line characteristics, the train positioning data in the train positioning data table are respectively assigned deceleration section, acceleration section and stable section labels.
6. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 5, characterized in that: The train positioning data in the train positioning data table are respectively assigned deceleration section, acceleration section, and stable section labels, including: If the curve radius of the line where the train positioning data is located is less than the radius threshold, or the slope is greater than the upper limit of the slope threshold interval, or the distance to the station location is less than the distance threshold, the train positioning data is assigned a deceleration section label; If the slope of the line where the train positioning data is located is less than the lower limit of the slope threshold interval, the train positioning data is assigned an acceleration section label; Otherwise, the train positioning data is assigned a stable section label.
7. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 6, characterized in that: The sending of the train positioning data according to the preset time period also includes: According to a preset time period, the positioning data in the positioning data set corresponding to the train equipment ID and the section label assigned to the positioning data are obtained.
8. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 7, characterized in that: The method further comprises: If the acquired segment label is a stable segment label, the positioning data is acquired according to the preset time period; If the acquired section label is a deceleration section label, the preset time period is adjusted to the first time period; If the acquired segment tag is an accelerated segment tag, the preset time period is adjusted to a second time period; The first time period and the second time period are determined according to a preset time period and an adjustment factor.
9. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 1, characterized in that: The method further comprises: Receive the stop request sent by Postman, which includes the stop command and the target train equipment ID; According to the stop request, determine the key and value corresponding to the target train equipment ID in the key-value pair set; Delete the key and value corresponding to the target train equipment ID; Among them, the background service platform is provided with a stop interface, and Postman establishes a communication connection with the background service platform through the stop interface.
10. The method for simulating train operation in the software development process in the field of heavy-haul railway freight according to claim 1, characterized in that: The method further comprises: If the train positioning data in the key-value pair set is sent, the train simulation operation route is obtained; Compare the simulated train operation route with the target railway freight route to determine the target retrieval location; According to the target retrieval position, the train positioning data corresponding to the target retrieval position is obtained and determined as the monitoring point; Obtain monitoring data information of the monitoring area to which the monitoring point belongs; Among them, the monitoring data information is obtained through the railway service end that establishes a connection with the background service platform.