Internal-external structure mapping method and apparatus

CN122965080APending Publication Date: 2026-10-23CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610877095.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-17
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0005]本申请提供一种内外结构映射方法及装置,用以解决现有技术中处理多开道岔时需修改底层仿真系统内核而导致的系统稳定性差及空间拓扑易错位的缺陷,实现复杂多开道岔的无缝接入与精确拓扑映射

Benefits of technology

[0016]本申请提供的一种内外结构映射方法及装置,通过将外部多开道岔映射为多个内部标准二开道岔并设置区段长度,使岔心等效为单个物理点。仿真系统内核无需任何改造,即可识别和处理多开道岔信息,开发工作量小、实施风险低。同时,该方法可适配三开、四开、五开等多种异形道岔,具有良好的通用性和可扩展性,实现了复杂多开道岔的无缝接入与精确拓扑映射。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122965080A_ABST
    Figure CN122965080A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of rail transit signal control, and provides an internal-external structure mapping method and device. The method comprises the following steps: receiving target opening direction information of an external multi-opening turnout, the multi-opening turnout having N train running directions, N being an integer greater than or equal to 3; mapping the external multi-opening turnout into M internal standard double-opening turnouts in a simulation system kernel, and setting the target section length of the M internal standard double-opening turnouts to a preset length value, so that the frog of the M internal standard double-opening turnouts is equivalent to a single physical point in spatial topology, M being an integer greater than or equal to 2; converting the target opening direction information into a positioning and reverse positioning state combination of the M internal standard double-opening turnouts; and outputting the positioning and reverse positioning state combination to the simulation system kernel for calling and performing corresponding simulation logic processing. The internal-external structure mapping method and device provided by the application can realize seamless access and accurate topology mapping of a complex multi-opening turnout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of rail transit signal control and simulation testing technology, and in particular to an internal and external structure mapping method and device. Background Technology

[0002] In the field of rail transit signal simulation, the kernel of existing simulation systems is usually built based on the standard two-turnout model.

[0003] However, real-world engineering projects often involve complex structures with multiple turnouts, such as four-way turnouts. Deeply modifying the existing simulation system kernel to accommodate such multi-turnout devices would not only compromise the kernel's stability and versatility, leading to a surge in development costs, but would also easily cause spatial topology misalignment and state logic conflicts during device assembly, affecting simulation accuracy.

[0004] Therefore, how to achieve seamless access and accurate topology mapping of complex multi-turnouts without modifying the existing simulation system kernel is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] This application provides an internal and external structure mapping method and apparatus to solve the defects of poor system stability and easy spatial topology misalignment caused by the need to modify the underlying simulation system kernel when processing multiple turnouts in the prior art, so as to achieve seamless access and accurate topology mapping of complex multiple turnouts.

[0006] This application provides a method for mapping internal and external structures, including the following steps: Receive target direction information from external multi-turnouts. The multi-turnouts have N train running directions, where N is an integer greater than or equal to 3. The external multi-turnout is mapped to M internal standard two-turnouts in the simulation system kernel, and the target section length of the M internal standard two-turnouts is set to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in the spatial topology, where M is an integer greater than or equal to 2. The target heading information is converted into a combination of the positioning and reversing states of M internal standard two-way turnouts; Output the position and inverted state combination to the simulation system kernel for the simulation system kernel to call and perform corresponding simulation logic processing.

[0007] According to the internal and external structure mapping method provided in this application, the external multi-turnout is a four-turnout with train running direction N=4; the number of internal standard two-turnouts is M=3, namely the first standard turnout, the second standard turnout and the third standard turnout.

[0008] According to the internal and external structure mapping method provided in this application, the target section includes the section before and / or after the internal standard two-turnout; the target section length of M internal standard two-turnouts is set to a preset length value, including: The lengths of the pre-turn section, post-turn positioning section, and post-turn reversing section of the first standard turnout, the pre-turn section of the second standard turnout, and the pre-turn section of the third standard turnout are all set to a preset length value of 1 centimeter.

[0009] According to the internal and external structure mapping method provided in this application, the target orientation information is converted into a combination of the positioning and reversing states of M internal standard two-way turnouts, including: When the target heading information is the first heading, it is converted to the first standard turnout reverse position, the second standard turnout reverse position, and the third standard turnout positioning. When the target heading information is the second heading, it is converted to the first standard turnout reverse position, the second standard turnout position, and the third standard turnout position. If the target heading information is the third heading, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout positioning. When the target direction information is the fourth direction, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout reverse position.

[0010] According to the internal and external structure mapping method provided in this application, the method further includes: Based on the correspondence between the target orientation information and the combination of positioning and reverse positions, the positioning and reverse positions of M internal standard two-way turnouts are reverse-converted into equivalent state acquisition signals of external four-way turnouts.

[0011] According to the internal and external structure mapping method provided in this application, the above method is executed in the interface layer of the simulation system. The interface layer is located between the external system and the simulation system kernel and is used to realize the conversion between the data structure of the external multi-turnout and the data structure of the simulation system kernel.

[0012] This application also provides an internal and external structure mapping device for use in a rail transit signal simulation system. The simulation system kernel is based on a standard two-way turnout and includes the following modules: The receiving module is used to receive the target direction information of the external multi-turnout. The multi-turnout has N train running directions, where N is an integer greater than or equal to 3. The spatial topology mapping module is used to map external multi-turnouts to M internal standard two-turnouts in the simulation system kernel, and set the target section length of the M internal standard two-turnouts to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in the spatial topology, where M is an integer greater than or equal to 2. The state logic mapping module is used to convert the target orientation information into a combination of the positioning and reversing states of M internal standard two-way turnouts; The output module is used to output the position and inverted position combinations to the simulation system kernel, so that the simulation system kernel can call them and perform corresponding simulation logic processing.

[0013] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described internal and external structure mapping methods.

[0014] This application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements any of the above-described internal / external structure mapping methods.

[0015] This application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the internal and external structure mapping methods described above.

[0016] This application provides a method and apparatus for mapping internal and external structures. By mapping external multi-turnouts to multiple internal standard two-turnouts and setting the section length, the turnout center is equivalent to a single physical point. The simulation system kernel requires no modification to identify and process multi-turnout information, resulting in minimal development workload and low implementation risk. Furthermore, this method is adaptable to various irregular turnout shapes such as three-, four-, and five-turnouts, exhibiting good versatility and scalability, and achieving seamless access and accurate topology mapping for complex multi-turnouts. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart illustrating the internal and external structure mapping method provided in this application.

[0019] Figure 2 A schematic diagram illustrating the spatial topological mapping relationship between the external four turnouts and the three internal standard two turnouts provided in this application.

[0020] Figure 3 This is a schematic diagram of the turnout track section division provided in this application.

[0021] Figure 4 A schematic diagram of the internal and external structure mapping device provided in this application.

[0022] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] The internal / external structure mapping method provided in this application is implemented by an interface layer module independent of the simulation system kernel. This interface layer module can be implemented as software, firmware, hardware, or a combination of both, and deployed in the rail transit signaling simulation system. Specifically, this interface layer module logically resides between the external data source and the simulation system kernel built based on a standard two-way turnout, acting as a bidirectional adapter.

[0025] The following is combined Figures 1 to 5 This application describes the method and apparatus for mapping internal and external structures.

[0026] Figure 1 A flowchart illustrating the internal and external structure mapping method provided in this application is shown below. Figure 1 As shown, the method includes the following: Step 101: Receive the target direction information of the external multi-turnout. The multi-turnout has N train running directions, where N is an integer greater than or equal to 3.

[0027] Among them, external multiple turnouts refer to physical turnouts on rail transit lines where one turnout structure corresponds to three or more train running directions.

[0028] Among them, the target direction information refers to the instruction data that indicates which train running direction the external multi-turnout should switch to.

[0029] In this application, the receiving module receives target orientation information from external input through the external interface of the simulation system. The external input includes test scripts, interlocking simulation units, or user configuration interfaces.

[0030] In some embodiments, the external multiple turnouts can be four-way turnouts. Exemplarily, the four-way turnout includes a first direction, a second direction, a third direction, and a fourth direction.

[0031] Step 102: Map the external multi-turnout to M internal standard two-turnouts in the simulation system kernel, and set the target section length of the M internal standard two-turnouts to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in the spatial topology, where M is an integer greater than or equal to 2.

[0032] The simulation system kernel refers to the core logic unit in the rail transit signal simulation system, which is built based on the standard two-way turnout data model and is responsible for path calculation, interlocking logic operation and beacon position calculation.

[0033] Among them, the internal standard two-way turnout refers to the turnout object natively supported by the simulation system kernel. Each standard two-way turnout has only two states: position and reverse.

[0034] The target section length refers to the track length parameter of the section before or after the turnout of a standard two-way turnout.

[0035] The preset length value is a pre-set, extremely small value used to compress the points of multiple turnouts to the same position in spatial coordinates.

[0036] It should be noted that making the points of the M internal standard two-way turnouts equivalent to a single physical point in spatial topology means that the length of the track section directly adjacent to the point of each internal standard two-way turnout is set to a minimum value close to zero. This ensures that when the simulation system performs path search and beacon position calculation, these M points are logically regarded as a single point with the same spatial coordinates. Thus, the existence of multiple points will not affect the continuity of the train running path and the accuracy of the position calculation.

[0037] Specifically, based on the spatial topological correspondence between external multi-turnouts and M internal standard two-turnouts, an external multi-turnout can be logically mapped to M internal standard two-turnouts that can be recognized by the simulation system kernel.

[0038] In some embodiments, the external multiple turnouts are four turnouts, corresponding to N equal to 4. M takes the value 3, which is mapped to three internal standard two turnouts, denoted as the first standard turnout, the second standard turnout, and the third standard turnout, respectively.

[0039] Specifically, the external four-way turnout is divided into four turnout-less units and three turnout units, with the three internal standard two-way turnouts corresponding to the three turnout units respectively.

[0040] Among them, a turnout-free unit refers to a regular track section unit that does not contain turnouts.

[0041] For example, Figure 2 This is a schematic diagram illustrating the spatial topology mapping relationship between the external four-way turnout and the three internal standard two-way turnouts provided in this application. The left rectangle represents the external physical four-way turnout, labeled with positions one through four; the right rectangle includes the first standard turnout PSW01A, the second standard turnout PSW01B, and the third standard turnout PSW01C; connecting lines represent the correspondence of state combinations.

[0042] It should be noted that, in order to make the points of these three standard two-turnouts equivalent to a single physical point in the spatial topology, thus not affecting the continuity of the train path and the calculation of beacon positions, special settings are required for their segment lengths. Specifically, the lengths of at least a portion of the segments related to the physical positions of the turnouts in the aforementioned M internal standard two-turnouts are set to a preset minimum length value.

[0043] For example, the target section length of each of the three standard turnouts is set to 1 centimeter.

[0044] That is, the front section, rear positioning section, and rear reversing section of the first standard turnout, the front section of the second standard turnout, and the front section of the third standard turnout are all set to 1 cm. At the same time, the track section of the external four-way turnout is divided into four no-turnout units and three turnout units, which are identified by the simulation system kernel according to the standard turnout units.

[0045] In some other embodiments, the external multi-turnout is a five-turnout, corresponding to N equal to 5. M is set to 4, which is mapped to four internal standard two-turnouts. The portions of the sections before and after the turnouts of these four standard turnouts that are directly adjacent to the turnout center are all set to a preset length value, which is 0.5 cm or 2 cm.

[0046] When encountering three-section track sections with external non-standard structures such as Zone Controller (ZC) or Automatic Train Protection (ATP), the existing two-section section is converted into a three-section section through internal segmentation. That is, the turnout offset is calculated as the starting point of section B and the end point of section C, thereby adapting to the data structure requirements of the external interface.

[0047] Step 103: Convert the target heading information into a combination of the positioning and reversing states of M internal standard two-way turnouts.

[0048] The combination of "positional" and "reverse" states refers to the set of states of each internal standard two-way turnout. "Positional" is the default position of a standard two-way turnout, and "reverse" is the opposite position. Each internal standard two-way turnout is either in the "positional" or "reverse" state. The states of M turnouts together form a combination, which uniquely corresponds to a target direction of multiple external turnouts.

[0049] Specifically, based on the preset logical correspondence between the opening directions of the external multi-turnout and the positioning / reversal state combinations of the M internal standard two-turnouts, or described as a state logic mapping rule, the single target opening direction received in step 101 can be converted into the specific state of each of the M internal turnouts, namely, positioning or reversal.

[0050] For example, taking N equal to 4 and M equal to 3 as an example, the state logic mapping rules in this application are described in detail as shown in Table 1.

[0051] Table 1. Mapping relationship between the opening direction of external four-way turnouts and the state combination of internal standard turnouts.

[0052] As shown in Table 1, when the target heading information is the first heading, it is converted to the first standard turnout reverse position, the second standard turnout reverse position, and the third standard turnout position. When the target heading information is the second heading, it is converted to the first standard turnout reverse position, the second standard turnout position, and the third standard turnout position. When the target heading information is the third heading, it is converted to the first standard turnout position, the second standard turnout position, and the third standard turnout position. When the target heading information is the fourth heading, it is converted to the first standard turnout position, the second standard turnout position, and the third standard turnout reverse position.

[0053] In other embodiments, taking a five-way turnout as an example, N equals 5 and M equals 4. A mapping relationship is pre-established between the five directions of the five-way turnout and the positioning and reversing state combinations of the four internal standard two-way turnouts. The principle for constructing this mapping relationship is that each external direction corresponds to a unique set of internal state combinations, and the internal state combinations corresponding to different external directions are mutually exclusive.

[0054] Those skilled in the art will understand that the above mapping relationship can be flexibly configured according to actual engineering needs. Configuration factors include the turnout numbering sequence and the definition of the opening direction. Based on the aforementioned mapping rule construction method for four-way turnouts, the mapping table for five-way turnouts can be obtained through the same principle, and will not be elaborated here. It should be ensured that one external opening direction uniquely corresponds to a set of internal turnout state combinations, thereby ensuring the determinism of the mapping relationship.

[0055] Step 104: Output the position and inverted state combination to the simulation system kernel for the simulation system kernel to call and perform corresponding simulation logic processing.

[0056] The simulation logic processing includes path search, interlocking operation, beacon position calculation, and train trajectory generation.

[0057] In some embodiments, the positioning and reversal state combinations of the three internal standard two-way turnouts obtained in step 103 are encapsulated according to the standard data structure of the simulation system kernel and sent to the kernel via function calls or message queues. After receiving the state combination, the kernel executes interlocking logic such as turnout locking, route arrangement, and signal opening, and outputs the train running path and beacon position information to the on-board interface. This state combination is presented externally as a trajectory with four directions, meeting the train operation requirements.

[0058] The internal and external structure mapping method provided in this application maps external multi-turnouts to multiple internal standard two-turnouts and sets the section length, making the turnout center equivalent to a single physical point. The simulation system kernel requires no modification to identify and process multi-turnout information, resulting in minimal development workload and low implementation risk. Furthermore, this method is adaptable to various irregular turnout shapes such as three-, four-, and five-turnouts, exhibiting good versatility and scalability, and achieving seamless access and accurate topology mapping for complex multi-turnouts.

[0059] In some embodiments, in order to fully simulate the interaction with the external interlocking system, the method further includes: based on the correspondence between the target orientation information and the combination of positioning and reversing states, converting the combination of positioning and reversing states of M internal standard two-way turnouts into equivalent state acquisition signals of external four-way turnouts.

[0060] Specifically, the interface layer receives the current states of the three internal standard two-way turnouts output by the simulation system kernel and converts them according to the inverse mapping rule. The equivalent state acquisition signals correspond to the valid or invalid signals of the first acquisition relay, the second acquisition relay, the third acquisition relay, and the fourth acquisition relay. Among them, the first acquisition relay is used to indicate that the external four-way turnout is in the first direction, the second acquisition relay is used to indicate the second direction, and so on.

[0061] For example, if the current state is that the first standard turnout is in reverse, the second standard turnout is in reverse, and the third standard turnout is in position, then it is determined that the external four-way turnout is in the first open direction, and the first acquisition relay is output as an effective signal. If the current state is that the first standard turnout is in reverse, the second standard turnout is in position, and the third standard turnout is in position, then it is determined that the external four-way turnout is in the second open direction, and the second acquisition relay is output as an effective signal.

[0062] If the current status is the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout positioning, then it is determined that the external four-way turnout is in the third open direction, and the third acquisition relay is output as an effective signal.

[0063] If the current state is that the first standard turnout is in position, the second standard turnout is in position, and the third standard turnout is in reverse position, then it is determined that the external four-way turnout is in the fourth open direction, and the fourth acquisition relay is output as an effective signal.

[0064] The internal and external structure mapping method provided in this application achieves closed-loop interaction between the simulation system and the external interlocking system by inversely converting the state combination of the internal standard two-way turnout into the equivalent state acquisition signal of the external four-way turnout. The external interlocking simulation unit can correctly sense the current opening direction of the turnout and complete the state feedback without modifying the existing acquisition interface. Forward drive and reverse acquisition together constitute a complete bidirectional mapping mechanism, ensuring the consistency between the simulation logic and the actual line control flow, and improving the integrity and availability of the system.

[0065] In this embodiment, the internal / external structure mapping method is executed at the interface layer of the simulation system. The interface layer refers to the software adaptation layer located between the external system and the simulation system kernel. The external system includes an interlocking simulation unit, an onboard signal interface, and a track configuration tool. The simulation system kernel is a core logic unit built based on a standard two-way turnout. The interface layer is used to implement bidirectional conversion between the data structure of the external multi-way turnout and the data structure of the simulation system kernel.

[0066] The bidirectional conversion includes at least the conversion from target orientation information to a combination of position and reverse position states, and the conversion from the internal standard two-way turnout status acquisition results to the external multi-way turnout equivalent status signal.

[0067] The internal / external structure mapping method provided in this application decouples the conversion logic from the simulation system kernel by executing the mapping method through the interface layer. This allows the kernel to handle multiple turnout information without any modification. The interface layer is deployed independently, facilitating maintenance and expansion, and significantly reducing development costs and implementation risks.

[0068] The following two specific examples illustrate the general extended application scenarios of the internal and external structure mapping method of this application.

[0069] In some embodiments, the internal / external structure mapping method of this application is also applicable to handling data structure differences between different external systems. For example, Figure 3 This is a schematic diagram illustrating the division of the turnout track sections provided in this application. Figure 3 As shown, the turnout center is marked TSW02. The track is divided from the turnout center into left-side section A, right-side straight section B, and lateral branch section C. The simulation system uses a two-segment division rule to divide the track into AB composite sections and AC composite sections. The AB composite section includes sections A and B, and the AC composite section includes sections A and C.

[0070] The area controller ZC and the automatic train protection system ATP adopt a three-section independent section, requiring each of the sections A, B and C to be an independent track section.

[0071] To achieve compatibility between the two data structures mentioned above, the two-segment structure is converted to a three-segment structure without altering the overall architecture of the simulation system. The specific conversion rules are as follows: the starting offset of segment B is taken from the offset of the bifurcation point in segment AB, and the ending offset of segment B is taken from the ending offset of segment AB. The starting offset of segment C is taken from the offset of the bifurcation point in segment AC, and the ending offset of segment C is taken from the ending offset of segment AC. Through this conversion, the simulation system kernel performs internal calculations in a two-segment structure and presents a three-segment structure to the external interface, satisfying the data requirements of both the ZC and ATP systems.

[0072] In other embodiments, the internal and external structure mapping method of this application is also applicable to data compatibility scenarios of interlocking configuration tools. In the first version of the interlocking configuration tool, due to unclear requirements, an auxiliary table was added, which engineers had to manually fill in, increasing the configuration workload. In the second version, the required data can be automatically obtained from existing engineering tables.

[0073] To ensure compatibility between the two versions, the existing code from the first version is retained unchanged, with conversion logic added to the data reading stage. Specifically, the required data is extracted from the project table, reorganized and populated according to the data structure of the auxiliary table, generating a data structure completely consistent with the auxiliary table format. Subsequent logic processing modules directly use this converted data, without needing to distinguish whether the data source is manually filled in or automatically generated. With the above configuration, the program can simultaneously support the manual form filling method of the first version and the automatic retrieval method of the second version.

[0074] The internal and external structure mapping device provided in this application is described below. The internal and external structure mapping device described below can be referred to in correspondence with the internal and external structure mapping method described above.

[0075] Figure 4 This is a schematic diagram of the internal and external structure mapping device provided in this application. Figure 4 As shown, this application provides an internal and external structure mapping device, which may include: The receiving module 401 is used to receive the target direction information of the external multi-turnout. The multi-turnout has N train running directions, where N is an integer greater than or equal to 3. The spatial topology mapping module 402 is used to map the external multi-turnout to M internal standard two-turnouts in the simulation system kernel, and set the target section length of the M internal standard two-turnouts to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in the spatial topology, where M is an integer greater than or equal to 2. The state logic mapping module 403 is used to convert the target orientation information into a combination of the positioning and reversing states of M internal standard two-way turnouts; Output module 404 is used to output the position and inverted position combination to the simulation system kernel, so that the simulation system kernel can call it and perform corresponding simulation logic processing.

[0076] In some embodiments, the external multi-turnout is a four-turnout, with train running direction N=4; the number of internal standard two-turnouts is M=3, namely the first standard turnout, the second standard turnout, and the third standard turnout.

[0077] In some other embodiments, the spatial topology mapping module 402 is specifically used for: The lengths of the pre-turn section, post-turn positioning section, and post-turn reversing section of the first standard turnout, the pre-turn section of the second standard turnout, and the pre-turn section of the third standard turnout are all set to a preset length value of 1 centimeter.

[0078] In some other embodiments, the state logic mapping module 403 is specifically used for: When the target heading information is the first heading, it is converted to the first standard turnout reverse position, the second standard turnout reverse position, and the third standard turnout positioning. When the target heading information is the second heading, it is converted to the first standard turnout reverse position, the second standard turnout position, and the third standard turnout position. If the target heading information is the third heading, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout positioning. When the target direction information is the fourth direction, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout reverse position.

[0079] In some other embodiments, the state logic mapping module 403 is further configured to: Based on the correspondence between the target orientation information and the combination of positioning and reverse positions, the positioning and reverse positions of M internal standard two-way turnouts are reverse-converted into equivalent state acquisition signals of external four-way turnouts.

[0080] In some other embodiments, the above is executed at the interface layer of the simulation system, which is located between the external system and the simulation system kernel and is used to implement the conversion between the data structure of the external multi-turnout and the data structure of the simulation system kernel.

[0081] Figure 5 A schematic diagram of the structure of the electronic device provided in this application, such as... Figure 5As shown, the electronic device may include: a processor 510, a communications interface 520, a memory 530, and a communications bus 540, wherein the processor 510, the communications interface 520, and the memory 530 communicate with each other through the communications bus 540. The processor 510 can call logic instructions in the memory 530 to execute an internal and external structure mapping method. This method includes: receiving target direction information of external multi-turnouts, where the multi-turnouts have N train running directions, and N is an integer greater than or equal to 3; mapping the external multi-turnouts to M internal standard two-turnouts in the simulation system kernel, and setting the target section length of the M internal standard two-turnouts to a preset length value so that the turnout centers of the M internal standard two-turnouts are equivalent to a single physical point in spatial topology, where M is an integer greater than or equal to 2; converting the target direction information into a combination of the position and reverse positions of the M internal standard two-turnouts; and outputting the position and reverse position combinations to the simulation system kernel for the kernel to call and perform corresponding simulation logic processing.

[0082] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0083] On the other hand, this application also provides a computer program product, which includes a computer program that 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 internal and external structure mapping method provided by the above methods. The method includes: receiving target orientation information of external multi-turnouts, wherein the multi-turnouts have N train running directions, where N is an integer greater than or equal to 3; mapping the external multi-turnouts to M internal standard two-turnouts in the simulation system kernel, and setting the target section length of the M internal standard two-turnouts to a preset length value so that the turnout centers of the M internal standard two-turnouts are equivalent to a single physical point in spatial topology, where M is an integer greater than or equal to 2; converting the target orientation information into a combination of the positioning and reversing states of the M internal standard two-turnouts; and outputting the positioning and reversing state combinations to the simulation system kernel for the simulation system kernel to call and perform corresponding simulation logic processing.

[0084] In another aspect, this application also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the internal and external structure mapping method provided by the above methods. The method includes: receiving target orientation information of external multi-turnouts, wherein the multi-turnouts have N train running directions, where N is an integer greater than or equal to 3; mapping the external multi-turnouts to M internal standard two-turnouts in the simulation system kernel, and setting the target section length of the M internal standard two-turnouts to a preset length value, so that the turnout centers of the M internal standard two-turnouts are equivalent to a single physical point in spatial topology, where M is an integer greater than or equal to 2; converting the target orientation information into a combination of the positioning and reversing states of the M internal standard two-turnouts; and outputting the positioning and reversing state combinations to the simulation system kernel for the simulation system kernel to call and perform corresponding simulation logic processing.

[0085] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An internal and external structure mapping method applied to a rail transit signaling simulation system, wherein the kernel of the simulation system is constructed based on a standard two-way turnout, characterized in that, The method includes: Receive target direction information of multiple turnouts from outside, wherein the multiple turnouts have N train running directions, where N is an integer greater than or equal to 3; The external multi-turnout is mapped to M internal standard two-turnouts in the simulation system kernel, and the target section length of the M internal standard two-turnouts is set to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in spatial topology, where M is an integer greater than or equal to 2. The target heading information is converted into a combination of the positioning and reversing states of the M internal standard two-way turnouts; The positioning and inverted state combinations are output to the simulation system kernel for the simulation system kernel to call and perform corresponding simulation logic processing.

2. The internal and external structure mapping method according to claim 1, characterized in that, The external multi-turnout is a four-turnout, and the train running direction N=4; the number of internal standard two-turnouts M=3, namely the first standard turnout, the second standard turnout, and the third standard turnout.

3. The internal and external structure mapping method according to claim 2, characterized in that, The target section includes the section before and / or after the internal standard two-way turnout; Setting the target section length of the M internal standard two-way turnouts to a preset length value includes: The lengths of the pre-turn section, post-turn positioning section, and post-turn reversing section of the first standard turnout, the pre-turn section of the second standard turnout, and the pre-turn section of the third standard turnout are all set to the preset length value, which is 1 centimeter.

4. The internal and external structure mapping method according to claim 3, characterized in that, The step of converting the target heading information into a combination of the positioning and reversing states of the M internal standard two-way turnouts includes: When the target heading information is the first heading, it is converted to the first standard turnout reverse position, the second standard turnout reverse position, and the third standard turnout positioning. When the target heading information is the second heading, it is converted to the first standard turnout reverse position, the second standard turnout position, and the third standard turnout position. If the target heading information is the third heading, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout positioning. When the target direction information is the fourth direction, it is converted to the first standard turnout positioning, the second standard turnout positioning, and the third standard turnout reverse position.

5. The internal and external structure mapping method according to claim 4, characterized in that, The method further includes: Based on the correspondence between the target orientation information and the combination of the positioning and reversal states, the positioning and reversal state combinations of the M internal standard two-way turnouts are reverse-converted into the equivalent state acquisition signals of the external four-way turnouts.

6. The internal and external structure mapping method according to claim 1, characterized in that, The method is executed at the interface layer of the simulation system, which is located between the external system and the kernel of the simulation system and is used to convert between the data structure of the external multi-turnout and the data structure of the kernel of the simulation system.

7. An internal and external structure mapping device, applied to a rail transit signal simulation system, wherein the core of the simulation system is based on a standard two-way turnout, characterized in that, include: The receiving module is used to receive the target direction information of the external multi-turnout, wherein the multi-turnout has N train running directions, where N is an integer greater than or equal to 3; The spatial topology mapping module is used to map the external multi-turnout to M internal standard two-turnouts in the simulation system kernel, and set the target section length of the M internal standard two-turnouts to a preset length value so that the turnout center of the M internal standard two-turnouts is equivalent to a single physical point in the spatial topology, where M is an integer greater than or equal to 2. The state logic mapping module is used to convert the target orientation information into a combination of the positioning and reversal states of the M internal standard two-way turnouts; The output module is used to output the position and inverted position combination to the simulation system kernel, so that the simulation system kernel can call it and perform corresponding simulation logic processing.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the internal and external structure mapping method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the internal and external structure mapping method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the internal and external structure mapping method as described in any one of claims 1 to 6.