Basic data acquisition method and device for urban rail transit simulation software, and rail transit simulation method and device
By extracting and searching the basic station element and section information in the target station map, the problems of low efficiency and error-prone acquisition of rail transit data in the existing technology are solved, and more efficient and accurate data acquisition is achieved, and the track is improved. Traffic simulation efficiency and accuracy.
Patent Information
- Application Number
- CN202411485331.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, the basic data obtained for urban rail transit simulation software is low efficiency and error-prone.
By obtaining the target site map marked with the basic site elements and their information, extracting the information of the basic site elements, and using each axis count as the search starting point, searching the target site map according to the preset direction, and confirming Information on the axle counting section and the physical section is used as rail transit data.
It realizes more efficient and accurate acquisition of rail transit data, reduces the time and cost of manually obtaining data, and improves the efficiency and accuracy of building rail transit simulation models.
Smart Images

Figure CN119443989A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit technology, and in particular to a basic data acquisition method and a rail transit simulation device for urban rail transit simulation software. Background Art
[0002] Urban rail transit simulation can simulate various operation scenarios and working conditions of urban rail transit systems by constructing mathematical models and simulation environments of urban rail transit systems. As an important technology in the field of urban rail transit, urban rail transit simulation has broad application prospects and important practical significance.
[0003] Before using urban rail transit simulation software to simulate rail transit, a large amount of basic data needs to be collected to build a mathematical model and simulation environment for the rail transit system. In the related art, the basic data for building a mathematical model and simulation environment for the rail transit system is usually obtained manually, which is inefficient and prone to errors.
[0004] Therefore, how to more efficiently and accurately obtain the basic data used for urban rail transit simulation software to perform rail transit simulation is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0005] The present invention provides a rail transit data acquisition and rail transit simulation method and device, which are used to solve the defects of low efficiency and easy error in the prior art in acquiring basic data used for urban rail transit simulation software to perform rail transit simulation, and to achieve more efficient and accurate acquisition of basic data used for urban rail transit simulation software to perform rail transit simulation.
[0006] The present invention provides a rail transit data acquisition method, comprising the following steps.
[0007] Acquire a target station diagram, wherein the target station diagram is annotated with basic station elements and information of the basic station elements, wherein the basic station elements include track sections, switches, signal machines, and axle counters, and the information of the basic station elements includes identification information of the basic station elements; Extracting the information of the basic station field elements from the target station field diagram as rail transit data corresponding to the target station field diagram; Taking each axle counter as a search starting point, searching the target station map in a preset direction, and then determining the axle counting section in the target station map based on the search results, and obtaining information of each axle counting section in the target station map as rail transit data corresponding to the target station map, wherein the information of each axle counting section includes information of the basic station elements included in each axle counting section; Based on the information of each axle counting section, the information of the physical section in the target station field map is obtained as the rail transit data corresponding to the target station field map, and the information of the physical section includes the identification information of the physical section associated with each axle counting section.
[0008] According to a rail transit data acquisition method provided by the present invention, after determining the axle counting section in the target station map and acquiring information of each axle counting section in the target station map, the method further includes: For each signal in the target station diagram, finding the shortest path from each signal to an adjacent signal of each signal through an axle counting section in the target station diagram; When the shortest path from each signal to the adjacent signal of each signal through the axle counting section is found in the target station field diagram, the shortest path is determined as the route between each signal and the adjacent signal of each signal, and the information of the axle counting section included in the shortest path is determined as the information of the route between each signal and the adjacent signal of each signal; The information of the route between each signal and the adjacent signal of each signal is determined as the rail transit data corresponding to the target station diagram.
[0009] According to a rail transit data acquisition method provided by the present invention, taking each axle counter as a search starting point, searching the target station map in a preset direction, and then determining the axle counting section in the target station map based on the search results, and acquiring information of each axle counting section in the target station map, including: In the target station map i The axle counter is recorded as i The axle counting starting point and the search starting point of the axle counting section corresponding to each axle counter; Search the target station field map in a preset direction from the search starting point to obtain the next basic station field element of the search starting point, is a positive integer starting at 1; If the next basic station element of the search starting point is not an axle counter, the information of the next basic station element of the search starting point is added to the i In the basic station element index table of the axle counter section corresponding to the axle counter, the i The next basic station field element of the axle counter is updated as the search starting point, and the step of searching the target station field map in a preset direction from the search starting point to obtain the next basic station field element of the search starting point is returned to.
[0010] In the case where the next basic station element of the search starting point is an axle counter, the axle counter is recorded as the first i The end point of the axle counting section corresponding to each axle counter; judge Whether it is achieved ,exist Not reached In the case of Increase by 1, return to execute the target station map i The axle counter is recorded as i The steps of the starting point of the axle counter section corresponding to each axle counter until achieve , Indicates the total number of axle counters in the target station map.
[0011] According to a rail transit data acquisition method provided by the present invention, the acquisition of the information of the physical section in the target station map based on the information of each axle counting section includes: In the physical section index table corresponding to the target station map, find the i Identification information of the physical segment associated with the axle counting segment corresponding to each axle counter; The physical segment index table was not found. i In the case of the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, based on the i The information of the axle counting section corresponding to the axle counter is used to determine the i Whether the axle counting section corresponding to each axle counter includes a turnout; In determining the i When the axle counting section corresponding to the first axle counter does not include a turnout, a new physical section identification information is generated as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is added to the physical segment index table. i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined in the first i In the case where the axle counter section corresponding to the axle counter includes a turnout, based on the i The information of the axle counter sections corresponding to the axle counters other than the axle counter is used to determine whether the axle counters other than the axle counter i Whether the axle counting sections corresponding to the axle counters other than the axle counter include the turnout, in determining the first j When the axle counting section corresponding to the axle counter includes the turnout, the physical section index table is searched for the first jThe identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is found in the physical segment index table corresponding to the target station field map. j In the case of the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is added to the physical segment index table, and the physical segment index table corresponding to the target station field map is not found. j In the case of the identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, a new physical segment identification information is generated as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, in the physical segment index table i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counter segment corresponding to each axle counter, j represents a positive integer; Determine whether the physical segment index table includes identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map; When it is determined that the physical segment index table does not include identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to the execution of searching the physical section index table corresponding to the target station map for the first i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
[0012] According to a rail transit data acquisition method provided by the present invention, the physical section index table corresponding to the target station map is searched for the first i After obtaining identification information of a physical segment associated with an axle counter segment corresponding to an axle counter, the method further comprises: Find the first i In the case of identifying information of a physical segment associated with an axle counting segment corresponding to an axle counter, determining whether the physical segment index table includes identifying information of a physical segment associated with an axle counting segment corresponding to each axle counter in the target station field map; When it is determined that the physical segment index table does not include identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to the execution of searching the physical section index table corresponding to the target station map for the first i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
[0013] According to a rail transit data acquisition method provided by the present invention, the first axle counter in the target station map is the first axle counter in the target station map in the preset direction.
[0014] The present invention also provides a rail transit simulation method, which comprises the following steps.
[0015] Build a rail transit simulation model based on rail transit data; Based on the rail transit simulation model, performing rail transit simulation; Wherein, the rail transit data is acquired based on any of the rail transit data acquisition methods described above.
[0016] The present invention also provides a rail transit data acquisition device, comprising the following modules: A first acquisition module is used to acquire a target station diagram, wherein the target station diagram is annotated with basic station elements and information of the basic station elements, wherein the basic station elements include line segments, switches, signal machines, and axle counters, and the information of the basic station elements includes identification information of the basic station elements; A second acquisition module is used to extract the information of the basic station field elements from the target station field diagram as the rail transit data corresponding to the target station field diagram; A third acquisition module, taking each axle counter as a search starting point, searches the target station map in a preset direction, and then determines the axle counting section in the target station map based on the search results, and acquires information of each axle counting section in the target station map as rail transit data corresponding to the target station map, wherein the information of each axle counting section includes information of the basic station elements included in each axle counting section; The fourth acquisition module acquires the information of the physical section in the target station map based on the information of each axle counting section as the rail transit data corresponding to the target station map, and the information of the physical section includes the identification information of the physical section associated with each axle counting section.
[0017] The present invention also provides a rail transit data acquisition device, comprising the following modules: Model building module, used to build rail transit simulation model based on rail transit data; A simulation module, used for performing rail transit simulation based on the rail transit simulation model; Wherein, the rail transit data is acquired based on any of the rail transit data acquisition methods described above.
[0018] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements any one of the rail transit data acquisition methods described above, and / or the rail transit simulation method described above.
[0019] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements any of the rail transit data acquisition methods described above, and / or the rail transit simulation method described above.
[0020] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the rail transit data acquisition methods described above, and / or the rail transit simulation method described above.
[0021] The rail transit data acquisition and rail transit simulation method and device provided by the present invention, after acquiring a target station field map marked with basic station field elements and information of the basic station field elements, extract the information of the basic station field elements from the target station field map as the rail transit data corresponding to the target station field map, take each axle counter as the search starting point, search the target station field map in a preset direction, and then determine the axle counting section in the target station field map based on the search results, and obtain the information of each axle counting section in the target station field map as the rail transit data corresponding to the target station field map, and obtain the information of the physical section in the target station field map based on the information of each axle counting section as the rail transit data corresponding to the target station field map, which can more accurately and efficiently obtain the basic data used for urban rail transit simulation software to perform rail transit simulation, can realize the automatic acquisition of rail transit data, can reduce the labor cost and time cost required for acquiring rail transit data, can provide a more accurate data basis for rail transit simulation, can improve the efficiency and accuracy of rail transit simulation model construction, and thus can improve the efficiency and accuracy of rail transit simulation, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a flow chart of the rail transit data acquisition method provided by the present invention.
[0024] Figure 2 It is a data structure diagram of rail transit data in the rail transit data acquisition method provided by the present invention.
[0025] Figure 3 It is a schematic diagram of the process of obtaining the information of the axle counting section in the rail transit data acquisition method provided by the present invention.
[0026] Figure 4 It is a schematic diagram of the process of obtaining information of physical sections in the rail transit data acquisition method provided by the present invention.
[0027] Figure 5 It is a schematic diagram of a flow chart of obtaining information on routes between signal machines in the rail transit data acquisition method provided by the present invention.
[0028] Figure 6 It is a flow chart of the rail transit simulation method provided by the present invention.
[0029] Figure 7 It is a structural schematic diagram of the rail transit data acquisition device provided by the present invention.
[0030] Figure 8 It is a structural schematic diagram of the rail transit simulation device provided by the present invention.
[0031] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] In the description of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, in the description of the present application, "and / or" represents at least one of the connected objects, and the character " / " generally represents that the front and back associated objects are in an "or" relationship.
[0035] It should be noted that with the rapid development of urban rail transit, the demand for training of personnel in key positions in urban rail transit operations is gradually increasing.
[0036] In related technologies, rail transit simulation can be used to improve the efficiency and authenticity of training for personnel in the above-mentioned key positions.
[0037] Before conducting rail transit simulation, it is necessary to digitize the rail transit system and obtain a large amount of basic data such as sections, signals, switches, and routes in the station to build a mathematical model and simulation environment for the rail transit system.
[0038] In the related technology, the basic data for constructing the mathematical model and simulation environment of the rail transit system are usually obtained manually, including: drawing a station map in CAD software, and then the technicians extract the required basic data from the station map and store it in an Excel table, and then convert the data in the Excel table into a data file that can be read by the simulation software.
[0039] In the related art, the process of obtaining the basic data for constructing the mathematical model and simulation environment of the rail transit system is too dependent on manual labor, the efficiency of obtaining data is low, the time required is long, and there is a problem that manual data production is prone to errors, and it takes extra time to correct the data. Therefore, the above-mentioned method of manually obtaining the basic data for constructing the mathematical model and simulation environment of the rail transit system can no longer meet the needs of the rapid development of urban rail transit. How to more efficiently and accurately obtain the basic data for constructing the mathematical model and simulation environment of the rail transit system has become a technical problem that needs to be solved in this field.
[0040] In this regard, the present invention provides a method for acquiring rail transit data. The method for acquiring rail transit data provided by the present invention automatically acquires rail transit data in a station diagram according to the positional relationship and logical relationship between basic station elements in the station diagram, and saves it in a database for direct use in rail transit simulation. The method for acquiring rail transit data provided by the present invention avoids excessive reliance on manual labor in the related art for acquiring basic data for constructing a mathematical model and simulation environment for a rail transit system, can save a lot of time and cost, and ensure the accuracy of data.
[0041] Combine the following Figure 1-Figure 5 The rail transit data acquisition method of the present invention is described.
[0042] Figure 1 is a flow chart of the rail transit data acquisition method provided by the present invention, such as Figure 1 As shown, the method includes: step 101, obtaining a target station yard map, the target station yard map is annotated with basic station yard elements and information of the basic station yard elements, the basic station yard elements include line sections, switches, signal machines and axle counters, and the information of the basic station yard elements includes identification information of the basic station yard elements.
[0043] It should be noted that the execution subject of the embodiment of the present invention is a rail transit data acquisition device. The rail transit data acquisition device can be an electronic device such as a computer or a server.
[0044] Specifically, the target station diagram in the embodiment of the present invention is the object of obtaining the rail transit data provided by the present invention. Based on the rail transit data obtaining method provided by the present invention, the rail transit data in the target station diagram can be obtained.
[0045] It is understandable that the target station map in the embodiment of the present invention may be determined based on actual needs. The target station map in the embodiment of the present invention is not specifically limited.
[0046] It should be noted that the target site map in the embodiment of the present invention is annotated with information of basic site elements and substrate site elements. The target site map in the embodiment of the present invention can be drawn based on CAD software, or can be obtained by annotating an existing site map.
[0047] In the embodiment of the present invention, the target station map can be obtained in various ways. For example, in the embodiment of the present invention, the target station map can be obtained based on user input; or, in the embodiment of the present invention, the target station map sent by other electronic devices can be received.
[0048] Figure 2 It is a data structure diagram of rail transit data in the rail transit data acquisition method provided by the present invention. Figure 2As shown, the rail transit data in the embodiment of the present invention can be divided into two categories, namely information of basic station elements and information of derived station elements.
[0049] Basic station elements include line segments (Link), turnouts, signal machines, and axle counters. Basic station elements in the embodiment of the present invention may also include text, screen doors, and platforms.
[0050] The line segment in the embodiment of the present invention represents a part of the line on which the train travels, and the starting point and the ending point of any line segment are connected to the starting point or the ending point of other line segments, the turnout or the axle counter. The line segment information may include the identification information and position information of the line segment, the type information and identification information of the starting point of the line segment, and the type information and identification information of the ending point of the line segment.
[0051] In the embodiment of the present invention, the positioning and reverse positions of the same turnout in the target station diagram are drawn simultaneously and have the same identification information. The information of the turnout may include identification information, position information and attribute information of the turnout.
[0052] The information of the axle counter may include identification information, position information and attribute information of the axle counter.
[0053] The information of the signal may include identification information, location information, type information and direction information of the signal.
[0054] It should be noted that, in the embodiment of the present invention, information of derived station elements in the target station diagram can be obtained based on information of basic station elements in the target station diagram, wherein the derived station elements can include axle counting sections, physical sections and routes.
[0055] The axle counting section represents a section composed of two axle counters. The information of the axle counting section includes the information of the basic station field elements included in the axle counting section, the identification information of the physical section associated with the axle counting section, the identification information of the starting axle counter of the axle counting section, and the representation information of the ending axle counter of the axle counting section.
[0056] The physical segment represents a closed section surrounded by a plurality of axle counters. The information of the physical segment includes identification information of the axle counter segment associated with the identification information of the physical segment.
[0057] The route represents a passage formed by axle counting sections. The route information includes the identification information of the axle counting sections forming the route.
[0058] Step 102: extract information of basic station yard elements from the target station yard diagram as rail transit data corresponding to the target station yard diagram.
[0059] Specifically, after obtaining the target station map, information on basic station elements in the target station map can be extracted from the target station map by means of data extraction, image recognition, etc., as rail transit data corresponding to the target station map.
[0060] Step 103, taking each axle counter as the search starting point, searching the target station map in a preset direction, and then determining the axle counting section in the target station map based on the search results, and obtaining information of each axle counting section in the target station map as the rail transit data corresponding to the target station map, the information of each axle counting section includes information of basic station elements included in each axle counting section.
[0061] Specifically, after obtaining the target station map, each axle counter in the target station map can be traversed, and each axle counter can be used as the search starting point to search for the next or multiple basic station elements of each axle counter in the target station map in a preset direction. Then, based on the search results, the axle counting section corresponding to each axle counter in the target station map can be determined, and the information of the axle counting section corresponding to each axle counter can be obtained as the rail transit data corresponding to the target station map.
[0062] As an optional embodiment, each axle counter is used as a search starting point, and the target station map is searched in a preset direction, and then based on the search results, the axle counting section in the target station map is determined, and the information of each axle counting section in the target station map is obtained, including: i The axle counter is recorded as i The axle counting starting point and search starting point of the axle counting section corresponding to each axle counter.
[0063] Search the target station map in the preset direction from the search starting point to obtain the next basic station element of the search starting point. It is a positive integer starting from 1.
[0064] If the next basic station element of the search starting point is not an axle counter, the information of the next basic station element of the search starting point is added to the i In the basic station element index table of the axle counter section corresponding to each axle counter, i The next basic station element of the axle counter is updated as the search starting point, and the step of searching the target station map in the preset direction from the search starting point to obtain the next basic station element of the search starting point is returned. If the next basic station element of the search starting point is an axle counter, the axle counter is recorded as the first i The end point of the axle counting section corresponding to each axle counter.
[0065] judge Whether it is achieved ,exist Not reached In the case of Increase by 1, return to execute the target station map i The axle counter is recorded as i The steps of the starting point of the axle counter section corresponding to each axle counter until achieve , Indicates the total number of axle counters in the target station diagram.
[0066] Figure 3 FIG. 1 is a flow chart of obtaining information of axle counting sections in the rail transit data acquisition method provided by the present invention. Figure 3 As shown, the specific steps of determining the axle counting section in the target station field map and obtaining the information of each axle counting section in the target station field map include: step 301, i The axle counter is recorded as i The axle counting starting point of the axle counting section corresponding to the axle counter, and the i An axle counter determines the search starting point; among them, It is a positive integer starting from 1.
[0067] Step 302: Starting from the search starting point, search the target station field map in a preset direction to obtain the next basic station field element of the search starting point.
[0068] Step 303, determine whether the next basic station field element of the search starting point is a line segment, if the next basic station field element of the search starting point is a line segment, execute step 304, if the next basic station field element of the search starting point is not a line segment, execute step 305.
[0069] Step 304: Add the information of the above route segment to the i The route segment index table of the axle counting section corresponding to each axle counter is then updated to the search starting point, and the process returns to step 302.
[0070] Step 305, determine whether the next basic station field element of the search starting point is a turnout. If the next basic station field element of the search starting point is a turnout, execute step 306; if the next basic station field element of the search starting point is not a turnout, execute step 307.
[0071] Step 306: Add the above turnout information to the i The turnout index table of the axle counting section corresponding to each axle counter is then updated as the search starting point, and the process returns to step 302.
[0072] Step 307, determine whether the next basic station field element of the search starting point is an axle counter. If the next basic station field element of the search starting point is an axle counter, execute step 308; if the next basic station field element of the search starting point is not an axle counter, execute step 309.
[0073] Step 308: Record the axle counter as i At the axle counter end point of the axle counter section corresponding to each axle counter, step 302 is executed.
[0074] Step 309: Determination Whether it is achieved ,like Not reached , Increase by 1 and return to step 301. If achieve , ending the process of obtaining information of each axle counting section in the target station map.
[0075] It is understandable that the target station map i The information of the axle counter section corresponding to each axle counter includes i The identification information of the axle counting starting point and the axle counting end point of the axle counting section corresponding to the first axle counter, and the i The basic station element index table of the axle counter section corresponding to each axle counter; i The basic station element index table of the axle counter section corresponding to each axle counter includes i The line segment index table of the axle counter section corresponding to the axle counter and the i The turnout index table of the axle counting section corresponding to each axle counter.
[0076] It should be noted that the preset direction in the embodiment of the present invention may be determined based on prior knowledge and / or actual conditions. For example, the preset direction may be a direction from right to left in the horizontal direction, or a direction from left to right in the horizontal direction.
[0077] As an optional embodiment, the first axle counter in the target station map is the first axle counter in the target station map in a preset direction.
[0078] The embodiment of the present invention uses each axle counter as the search starting point and searches the target station map in a preset direction, so as to more accurately and efficiently determine the axle counting section in the target station map based on the search results, and obtain the information of each axle counting section in the target station map as the rail transit data corresponding to the target station map.
[0079] Step 104: Based on the information of each axle counting section, obtain the information of the physical section in the target station diagram as the rail transit data corresponding to the target station diagram. The information of the physical section includes the identification information of the physical section associated with each axle counting section.
[0080] Specifically, after determining the axle counting sections in the target station yard map and obtaining the information of each axle counting section in the target station yard map, the information of the physical sections in the target station yard map can be obtained through data search, conditional judgment, etc. based on the information of each axle counting section in the target station yard map, as the rail transit data corresponding to the target station yard map.
[0081] As an optional embodiment, based on the information of each axle counting section, obtaining the information of the physical section in the target station field map includes: searching the physical section index table corresponding to the target station field map for the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter.
[0082] The physical segment index table was not found. i In the case of the identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, based on the i The information of the axle counter section corresponding to the axle counter is used to determine the i Whether the axle counting section corresponding to the axle counter includes the turnout.
[0083] In determining the i If the axle counting section corresponding to the first axle counter does not include a turnout, a new physical section identification information is generated as the first i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter is added to the physical segment index table. i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter is used to determine the i When the axle counter section corresponding to the axle counter includes a turnout, based on the i The information of the axle counter sections corresponding to the axle counters other than the first axle counter is used to determine whether the axle counters other than the first i Whether the axle counting section corresponding to the axle counters other than the axle counter includes the turnout is determined in the target station diagram. j When the axle counter section corresponding to the axle counter includes a turnout, look up the first j The identification information of the physical section associated with the axle counting section corresponding to the axle counter is found in the physical section index table corresponding to the target station map. j In the case of the identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined as iThe identification information of the physical segment associated with the axle counter segment corresponding to the axle counter is i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is added to the physical segment index table. The physical segment index table corresponding to the target station map is not found. j In the case of the identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, a new physical segment identification information is generated as the first i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter is in the physical segment index table. i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counter segment corresponding to each axle counter, j Represents a positive integer.
[0084] It is determined whether the physical segment index table includes identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map.
[0085] When it is determined that the physical segment index table does not include the identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to execute the search in the physical section index table corresponding to the target station diagram. i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
[0086] As an optional embodiment, the physical section index table corresponding to the target station map is searched for the first i After obtaining the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, the method further comprises: searching the physical segment index table for the first i In the case of identification information of the physical segment associated with the axle counting segment corresponding to each axle counter, it is determined whether the physical segment index table includes identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map.
[0087] When it is determined that the physical segment index table does not include the identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to execute the search in the physical section index table corresponding to the target station diagram. i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
[0088] Figure 4 FIG. 1 is a flow chart of obtaining information of a physical segment in the rail transit data acquisition method provided by the present invention. Figure 4 As shown, based on the information of each axle counting section, the specific steps of obtaining the information of the physical section in the target station field map include: step 401, searching the physical section index table corresponding to the target station field map for the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter.
[0089] Step 402: Determine whether the physical segment index table has been found. i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter. If the physical segment index table is found, i If the physical segment identification information associated with the axle counter segment corresponding to the axle counter is not found in the physical segment index table, step 410 is executed. i If the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is obtained, step 403 is executed.
[0090] Step 403: Based on i The information of the axle counter section corresponding to the axle counter is used to determine the i Whether the axle counting section corresponding to the axle counter includes the turnout, if it is determined that i If the axle counting section corresponding to the axle counter includes a turnout, then step 405 is executed. i If the axle counting section corresponding to the axle counter does not include a turnout, step 404 is executed.
[0091] Step 404: Generate a new physical segment identification information as the first i The identification information of the physical section associated with the axle counting section corresponding to the axle counter is added to the physical section index table corresponding to the target station map. i The identification information of the physical segment associated with the axle counting segment corresponding to each axle counter is obtained, and then step 406 is executed.
[0092] Step 405: Based on the i The information of the axle counter sections corresponding to the axle counters other than the first axle counter is used to determine whether the axle counters other than the first i Whether the axle counting sections corresponding to the axle counters other than the first axle counter include the above-mentioned turnout, in determining whether the axle counting sections corresponding to the axle counters other than the first axle counter include the above-mentioned turnout, i If the axle counting sections corresponding to the axle counters other than the axle counter do not include the above-mentioned turnout, the process returns to step 404 and determines the first j When the axle counting section corresponding to the axle counter includes the above-mentioned turnout, step 406 is executed.
[0093] Step 406: Search the physical segment index table for the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter.
[0094] Step 407: Determine whether the physical segment index table has been found. j The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter. If the physical segment index table is found, j If the physical segment identification information associated with the axle counting segment corresponding to the axle counter is found in the physical segment index table, step 408 is executed. j If the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is obtained, step 409 is executed.
[0095] Step 408: j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined as i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, and the i The identification information of the physical segment associated with the axle counting segment corresponding to each axle counter is added to the physical segment index table, and then step 410 is executed.
[0096] Step 409: Generate a new physical segment identification information as the first i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter is in the physical segment index table. i The identification information of the physical segment associated with the axle counter segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter.
[0097] Step 410: determine whether the physical segment index table includes identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map; if it is determined that the physical segment index table does not include identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1 and return to step 401; if it is determined that the physical segment index table includes the identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, the process of obtaining the information of the physical segment in the target station field map is terminated.
[0098] It should be noted that in the embodiments of the present invention j The value of can be one or more.
[0099] The embodiment of the present invention can determine each physical section in the target station diagram more accurately and efficiently based on the information of each axle counting section, and obtain the information of the physical section as the rail transit data corresponding to the target station diagram.
[0100] As an optional embodiment, after determining the axle counting section in the target station field diagram and obtaining the information of each axle counting section in the target station field diagram, the above method also includes: for each signal in the target station field diagram, finding the shortest path from each signal to the adjacent signal of each signal through the axle counting section in the target station field diagram.
[0101] When the shortest path from each signal to its adjacent signal through the axle counting section is found in the target station diagram, the shortest path is determined as the route between each signal and its adjacent signal, and the information of the axle counting section included in the shortest path is determined as the information of the route between each signal and its adjacent signal.
[0102] The route information between each signal and the adjacent signal of each signal is determined as the rail transit data corresponding to the target station diagram.
[0103] Figure 5 FIG. 1 is a flow chart of obtaining information about routes between signal machines in the rail transit data acquisition method provided by the present invention. Figure 5 As shown, the specific steps of obtaining the information of the route between the signal machines include: step 501, finding the first k The signal machine passes through the axle counting section and arrives at the k The signal machine t The shortest path between adjacent signals, k and t The starting value is a positive integer of 1.
[0104] It should be noted that in the embodiment of the present invention, the Dijkstra algorithm can be used to search for the first k The signal machine passes through the axle counting section and arrives at the k The signal machine t The shortest path between adjacent traffic lights. Among them, Dijkstra's algorithm is an algorithm for finding the shortest path between nodes in a graph, especially the shortest path from a source point to all other points. Dijkstra's algorithm adopts a greedy strategy, by gradually expanding the set of shortest paths found until the shortest path from the source point to all other nodes is found.
[0105] Step 502: Determine whether the k The signal machine passes through the axle counting section and arrives at the k The signal machine t The shortest path between adjacent signals is found. k The signal machine passes through the axle counting section and arrives at the k The signal machine tIn the case of the shortest path to the adjacent signal, step 503 is executed. k The signal machine passes through the axle counting section and arrives at the k The signal machine t When the shortest path between adjacent signals is found, step 504 is executed.
[0106] Step 503: k The signal machine passes through the axle counting section and arrives at the k The signal machine t The shortest path between adjacent signals is determined as k The signal and k The signal machine t The route between adjacent signal machines is determined by taking the information of the axle counting section included in the above shortest path as the first k The signal and k The signal machine t Information about the routes between adjacent signals
[0107] Step 504: Determine t Whether the maximum value is reached, t When the maximum value is reached, step 505 is executed. t If the maximum value is not reached, t Increase by 1 and return to execute step 501.
[0108] Step 504: Determine k Whether it is achieved K , K Indicates the total number of signals in the target station diagram; k Not reached K In the case of k Increase by 1, t Update to 1, return to step 505, and determine k achieve K In this case, the process of obtaining information on the routes between signals ends.
[0109] It should be noted that after obtaining the rail transit data corresponding to the target station diagram, the rail transit data corresponding to the target station diagram can be classified and stored in the database according to the basic station elements and derived elements for use in rail transit simulation.
[0110] The embodiment of the present invention searches for the shortest path from each signal to the adjacent signal of each signal through the axle counting section in the target station yard diagram. When the shortest path from each signal to the adjacent signal of each signal through the axle counting section is found in the target station yard diagram, the shortest path is determined as the approach between each signal and its adjacent signal, and the information of the axle counting section included in the shortest path is determined as the information of the approach between each signal and its adjacent signal. This can more accurately and efficiently obtain the information of the approach between each signal and its adjacent signal in the target station yard diagram as the rail transit data corresponding to the target station yard diagram.
[0111] The embodiment of the present invention obtains a target station diagram marked with basic station elements and information of the basic station elements, extracts information of the basic station elements from the target station diagram as rail transit data corresponding to the target station diagram, takes each axle counter as a search starting point, searches the target station diagram in a preset direction, and then determines the axle counting section in the target station diagram based on the search results, and obtains information of each axle counting section in the target station diagram as rail transit data corresponding to the target station diagram, and obtains information of the physical section in the target station diagram based on the information of each axle counting section as rail transit data corresponding to the target station diagram. The rail transit data used to construct a mathematical model and a simulation environment of a rail transit system can be obtained more accurately and efficiently, the automatic acquisition of rail transit data can be realized, the labor cost and time cost required for obtaining rail transit data can be reduced, a more accurate data basis can be provided for rail transit simulation, the efficiency and accuracy of rail transit simulation model construction can be improved, and the efficiency and accuracy of rail transit simulation can be improved, and the invention has broad application prospects.
[0112] Figure 6 It is a flow chart of the rail transit simulation method provided by the present invention, such as Figure 6 As shown, the method includes: step 601, constructing a rail transit simulation model based on rail transit data.
[0113] Step 602: Perform rail transit simulation based on the rail transit simulation model.
[0114] The rail transit data is obtained based on any of the rail transit data acquisition methods described above.
[0115] It should be noted that the execution subject of the embodiment of the present invention is a rail transit simulation device. The rail transit simulation device can be an electronic device such as a computer or a server.
[0116] It should be noted that the rail transit data in the embodiment of the present invention is obtained based on the above rail transit data acquisition method. The specific steps of obtaining rail transit data can refer to the contents of the above embodiments, and will not be repeated in the embodiment of the present invention.
[0117] It should be noted that the specific steps of constructing a rail transit simulation model based on rail transit data and performing rail transit simulation based on the above rail transit simulation model can refer to relevant technologies and will not be repeated in the embodiments of the present invention.
[0118] The embodiment of the present invention acquires rail transit data based on the above-mentioned rail transit data acquisition method, constructs a rail transit simulation model based on the above-mentioned rail transit data, and then performs rail transit simulation based on the above-mentioned rail transit simulation model, which can improve the efficiency and accuracy of constructing the rail transit simulation model, and then improve the efficiency and accuracy of rail transit simulation, and has broad application prospects.
[0119] Figure 7 This is a schematic diagram of the structure of the rail transit data acquisition device provided by the present invention. Figure 7 The rail transit data acquisition device provided by the present invention is described. The rail transit data acquisition device described below and the rail transit data acquisition method provided by the present invention described above can be referred to each other. Figure 7 As shown, the device includes: a first acquisition module 701, a second acquisition module 702, a third acquisition module 703 and a fourth acquisition module 704.
[0120] The first acquisition module 701 is used to acquire a target station yard map, where the target station yard map is annotated with basic station yard elements and information of the basic station yard elements. The basic station yard elements include track sections, switches, signal machines and axle counters. The information of the basic station yard elements includes identification information of the basic station yard elements.
[0121] The second acquisition module 702 is used to extract information of basic station yard elements from the target station yard diagram as rail transit data corresponding to the target station yard diagram.
[0122] The third acquisition module 703 takes each axle counter as the search starting point, searches the target station map in a preset direction, and then determines the axle counting section in the target station map based on the search results, and obtains the information of each axle counting section in the target station map as the rail transit data corresponding to the target station map. The information of each axle counting section includes the information of the basic station elements included in each axle counting section.
[0123] The fourth acquisition module 704 acquires the information of the physical section in the target station diagram based on the information of each axle counting section as the rail transit data corresponding to the target station diagram. The information of the physical section includes the identification information of the physical section associated with each axle counting section.
[0124] Specifically, the first acquisition module 701 , the second acquisition module 702 , the third acquisition module 703 and the fourth acquisition module 704 are electrically connected.
[0125] The rail transit data acquisition device in the embodiment of the present invention obtains a target station map marked with basic station elements and information of the basic station elements, extracts information of the basic station elements from the target station map as rail transit data corresponding to the target station map, takes each axle counter as the search starting point, searches the target station map in a preset direction, and then determines the axle counting section in the target station map based on the search results, and obtains information of each axle counting section in the target station map as rail transit data corresponding to the target station map, and obtains information of the physical section in the target station map based on the information of each axle counting section as rail transit data corresponding to the target station map. The device can more accurately and efficiently obtain rail transit data used to construct a mathematical model and simulation environment of a rail transit system, realize automatic acquisition of rail transit data, reduce the labor cost and time cost required to obtain rail transit data, provide a more accurate data basis for rail transit simulation, improve the efficiency and accuracy of rail transit simulation model construction, and thus improve the efficiency and accuracy of rail transit simulation, and has broad application prospects.
[0126] Figure 8 This is a schematic diagram of the structure of the rail transit simulation device provided by the present invention. Figure 8 The rail transit simulation device provided by the present invention is described. The rail transit simulation device described below and the rail transit simulation method provided by the present invention described above can be referred to each other. Figure 8 As shown, the device includes: a model building module 801 and a simulation module 802.
[0127] The model building module 801 is used to build a rail transit simulation model based on rail transit data.
[0128] The simulation module 802 is used to perform rail transit simulation based on the rail transit simulation model.
[0129] The rail transit data is obtained based on any of the rail transit data acquisition methods described above.
[0130] Specifically, the model building module 801 and the simulation module 802 are electrically connected.
[0131] The rail transit simulation device in the embodiment of the present invention acquires rail transit data based on the above-mentioned rail transit data acquisition method, constructs a rail transit simulation model based on the above-mentioned rail transit data, and then performs rail transit simulation based on the above-mentioned rail transit simulation model. This can improve the efficiency and accuracy of constructing the rail transit simulation model, and thus improve the efficiency and accuracy of rail transit simulation, and has broad application prospects.
[0132] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor (processor) 910 , a communication interface (Communications Interface) 920 , a memory (memory) 930 and a communication bus 940 , wherein the processor 910 , the communication interface 920 , and the memory 930 communicate with each other through the communication bus 940 . The processor 910 can call the logic instructions in the memory 930 to execute the rail transit data acquisition method and / or the rail transit simulation method, the rail transit data acquisition method includes: obtaining a target station yard map, the target station yard map is annotated with basic station yard elements and information of the basic station yard elements, the basic station yard elements include line segments, switches, signals and axle counters, and the information of the basic station yard elements includes identification information of the basic station yard elements; extracting the information of the basic station yard elements from the target station yard map as the rail transit data corresponding to the target station yard map; taking each axle counter as the search starting point, searching the target station yard map in a preset direction, and then determining the axle counting section in the target station yard map based on the search results, and obtaining information of each axle counting section in the target station yard map as the rail transit data corresponding to the target station yard map, the information of each axle counting section includes information of the basic station yard elements included in each axle counting section; based on the information of each axle counting section, obtaining information of the physical section in the target station yard map as the rail transit data corresponding to the target station yard map, the information of the physical section includes identification information of the physical section associated with each axle counting section. The rail transit simulation method includes: constructing a rail transit simulation model based on rail transit data; and performing rail transit simulation based on the rail transit simulation model; wherein the rail transit data is acquired based on the above-mentioned rail transit data acquisition method.
[0133] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0134] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the rail transit data acquisition method provided by the above methods, and / or the rail transit simulation method. The rail transit data acquisition method includes: obtaining a target station field map, the target station field map is marked with basic station field elements and information of the basic station field elements, the basic station field elements include line segments, switches, signal machines and axle counters, and the information of the basic station field elements includes identification information of the basic station field elements; extracting the basic station field elements from the target station field map The information of the station yard elements is used as the rail transit data corresponding to the target station yard diagram; each axle counter is used as the search starting point, and the target station yard diagram is searched in a preset direction, and then the axle counting section in the target station yard diagram is determined based on the search results, and the information of each axle counting section in the target station yard diagram is obtained as the rail transit data corresponding to the target station yard diagram, and the information of each axle counting section includes the information of the basic station yard elements included in each axle counting section; based on the information of each axle counting section, the information of the physical section in the target station yard diagram is obtained as the rail transit data corresponding to the target station yard diagram, and the information of the physical section includes the identification information of the physical section associated with each axle counting section. The rail transit simulation method includes: constructing a rail transit simulation model based on the rail transit data; and performing rail transit simulation based on the rail transit simulation model; wherein the rail transit data is obtained based on the above-mentioned rail transit data acquisition method.
[0135] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the rail transit data acquisition method provided by the above methods, and / or the rail transit simulation method, the rail transit data acquisition method comprising: obtaining a target station yard map, the target station yard map is annotated with basic station yard elements and information of the basic station yard elements, the basic station yard elements include line segments, switches, signal machines and axle counters, and the information of the basic station yard elements includes identification information of the basic station yard elements; extracting the information of the basic station yard elements from the target station yard map as the target station yard The rail transit data corresponding to the diagram; taking each axle counter as the search starting point, searching the target station map in a preset direction, and then determining the axle counting section in the target station map based on the search results, and obtaining the information of each axle counting section in the target station map as the rail transit data corresponding to the target station map, the information of each axle counting section includes the information of the basic station elements included in each axle counting section; based on the information of each axle counting section, obtaining the information of the physical section in the target station map as the rail transit data corresponding to the target station map, the information of the physical section includes the identification information of the physical section associated with each axle counting section. The rail transit simulation method includes: constructing a rail transit simulation model based on the rail transit data; performing rail transit simulation based on the rail transit simulation model; wherein the rail transit data is obtained based on the above-mentioned rail transit data acquisition method.
[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A basic data acquisition method for urban rail transit simulation software, characterized in that: include: Acquire a target station diagram, wherein the target station diagram is annotated with basic station elements and information of the basic station elements, wherein the basic station elements include track sections, switches, signal machines, and axle counters, and the information of the basic station elements includes identification information of the basic station elements; Extracting the information of the basic station field elements from the target station field diagram as rail transit data corresponding to the target station field diagram; Taking each axle counter as a search starting point, searching the target station map in a preset direction, and then determining the axle counting section in the target station map based on the search results, and obtaining information of each axle counting section in the target station map as rail transit data corresponding to the target station map, wherein the information of each axle counting section includes information of the basic station elements included in each axle counting section; Based on the information of each axle counting section, the information of the physical section in the target station field map is obtained as the rail transit data corresponding to the target station field map, and the information of the physical section includes the identification information of the physical section associated with each axle counting section.
2. The basic data acquisition method for urban rail transit simulation software according to claim 1 is characterized in that: After determining the axle counting section in the target station field map and obtaining information of each axle counting section in the target station field map, the method further includes: For each signal in the target station diagram, finding the shortest path from each signal to an adjacent signal of each signal through an axle counting section in the target station diagram; When the shortest path from each signal to the adjacent signal of each signal through the axle counting section is found in the target station field diagram, the shortest path is determined as the route between each signal and the adjacent signal of each signal, and the information of the axle counting section included in the shortest path is determined as the information of the route between each signal and the adjacent signal of each signal; The information of the route between each signal and the adjacent signal of each signal is determined as the rail transit data corresponding to the target station diagram.
3. The basic data acquisition method for urban rail transit simulation software according to claim 1 is characterized in that: The method of searching the target station map in a preset direction with each axle counter as the search starting point, and then determining the axle counting section in the target station map based on the search results, and obtaining information of each axle counting section in the target station map includes: In the target station map i The axle counter is recorded as i The axle counting starting point and the search starting point of the axle counting section corresponding to each axle counter; Search the target station field map in a preset direction from the search starting point to obtain the next basic station field element of the search starting point, is a positive integer starting at 1; If the next basic station element of the search starting point is not an axle counter, the information of the next basic station element of the search starting point is added to the i In the basic station element index table of the axle counter section corresponding to the axle counter, the i The next basic station field element of the axle counter is updated as the search starting point, and the step of searching the target station field map in a preset direction from the search starting point to obtain the next basic station field element of the search starting point is returned to. In the case where the next basic station element of the search starting point is an axle counter, the axle counter is recorded as the first i The end point of the axle counting section corresponding to each axle counter; judge Whether it is achieved ,exist Not reached In the case of Increase by 1, return to execute the target station map i The axle counter is recorded as i The steps of the starting point of the axle counter section corresponding to each axle counter until achieve , Indicates the total number of axle counters in the target station map.
4. The basic data acquisition method for urban rail transit simulation software according to claim 3 is characterized in that: The acquiring the information of the physical section in the target station field map based on the information of each axle counting section comprises: In the physical section index table corresponding to the target station map, find the i Identification information of the physical segment associated with the axle counting segment corresponding to each axle counter; The physical segment index table was not found. i In the case of the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, based on the i The information of the axle counting section corresponding to the axle counter is used to determine the i Whether the axle counting section corresponding to each axle counter includes a turnout; In determining the i When the axle counting section corresponding to the first axle counter does not include a turnout, a new physical section identification information is generated as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is added to the physical segment index table. i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined in the first i In the case where the axle counter section corresponding to the axle counter includes a turnout, based on the i The information of the axle counter sections corresponding to the axle counters other than the axle counter is used to determine whether the axle counters other than the axle counter i Whether the axle counting sections corresponding to the axle counters other than the axle counter include the turnout, in determining the first j When the axle counting section corresponding to the axle counter includes the turnout, the physical section index table is searched for the first j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is found in the physical segment index table corresponding to the target station field map. j In the case of the identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is determined as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter is added to the physical segment index table, and the physical segment index table corresponding to the target station field map is not found. j In the case of the identification information of the physical segment associated with the axle counter segment corresponding to the axle counter, a new physical segment identification information is generated as the first i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter, in the physical segment index table i The identification information of the physical segment associated with the axle counting segment corresponding to the axle counter and the j The identification information of the physical segment associated with the axle counter segment corresponding to each axle counter, j represents a positive integer; Determine whether the physical segment index table includes identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map; When it is determined that the physical segment index table does not include identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to the execution of searching the physical section index table corresponding to the target station map for the first i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
5. The basic data acquisition method for urban rail transit simulation software according to claim 4 is characterized in that: The physical section index table corresponding to the target station map is searched for the first i After obtaining identification information of a physical segment associated with an axle counter segment corresponding to an axle counter, the method further comprises: Find the first i In the case of identifying information of a physical segment associated with an axle counting segment corresponding to an axle counter, determining whether the physical segment index table includes identifying information of a physical segment associated with an axle counting segment corresponding to each axle counter in the target station field map; When it is determined that the physical segment index table does not include identification information of the physical segment associated with the axle counting segment corresponding to each axle counter in the target station field map, Increase by 1, return to the execution of searching the physical section index table corresponding to the target station map for the first i The step of obtaining identification information of the physical segment associated with the axle counting segment corresponding to each axle counter.
6. The basic data acquisition method for urban rail transit simulation software according to claim 3 is characterized in that: The first axle counter in the target station map is the first axle counter in the target station map in the preset direction.
7. A rail transit simulation method, characterized in that: include: Build a rail transit simulation model based on rail transit data; Based on the rail transit simulation model, performing rail transit simulation; Wherein, the rail transit data is acquired based on the basic data acquisition method for urban rail transit simulation software as described in any one of claims 1 to 6.
8. A basic data acquisition device for urban rail transit simulation software, characterized in that: include: A first acquisition module is used to acquire a target station diagram, wherein the target station diagram is annotated with basic station elements and information of the basic station elements, wherein the basic station elements include line segments, switches, signal machines, and axle counters, and the information of the basic station elements includes identification information of the basic station elements; A second acquisition module is used to extract the information of the basic station field elements from the target station field diagram as the rail transit data corresponding to the target station field diagram; A third acquisition module, taking each axle counter as a search starting point, searches the target station map in a preset direction, and then determines the axle counting section in the target station map based on the search results, and acquires information of each axle counting section in the target station map as rail transit data corresponding to the target station map, wherein the information of each axle counting section includes information of the basic station elements included in each axle counting section; The fourth acquisition module acquires the information of the physical section in the target station map based on the information of each axle counting section as the rail transit data corresponding to the target station map, and the information of the physical section includes the identification information of the physical section associated with each axle counting section.
9. A rail transit simulation device, characterized in that: include: Model building module, used to build rail transit simulation model based on rail transit data; A simulation module, used for performing rail transit simulation based on the rail transit simulation model; Wherein, the rail transit data is acquired based on the basic data acquisition method for urban rail transit simulation software as described in any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the basic data acquisition method for urban rail transit simulation software as described in any one of claims 1 to 6, and / or the rail transit simulation method as described in claim 7.