Automatic generation method and device of railway yard graph, equipment and medium
The method of generating railway station maps through automated coding and using artificial intelligence technology to obtain and process data solves the problem of low efficiency of traditional manual drawing and coding, and improves the efficiency and accuracy of railway station map generation.
Patent Information
- Application Number
- CN202411123592.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-29
AI Technical Summary
In traditional railway operation management, the generation of railway station diagrams relies on manual drawing and coding, resulting in low efficiency and high error rates, making it difficult to quickly process complex relationships and large amounts of data.
By obtaining the elements and the relationships between elements in the initial railway yard map, automatic coding generates interlocking code bit data and code bit associated data to form the final railway yard map, using artificial intelligence technology to improve coding efficiency and accuracy. .
It reduces the error rate of element coding, improves the efficiency of railway station map generation, and reduces the time and cost of manual operations.
Smart Images

Figure CN118864640A_ABST
Abstract
Description
Technical Field
[0001] The present application is applicable to the field of rail transit, and in particular relates to a method, device, equipment and medium for automatically generating a railway station map. Background Art
[0002] In the traditional railway operation management system, the drawing and design of railway yard maps mainly rely on manual work. This process usually requires relevant operators to manually plan the layout of tracks according to the actual situation of the station, write the description code of each element in the station map (such as tracks, switches, signals, etc.) and the interlocking relationship code between them, and further manually design and fill in the description code and interlocking relationship code of these elements. The entire drawing process is completely dependent on manual work, from planning to coding, and then to the filling of coding. Each step takes a lot of time and manpower costs, and when dealing with large amounts of data and complex relationships, manual operation is very likely to introduce errors. Once an error occurs, it takes extra time to identify and correct the error. Therefore, how to improve the efficiency of generating railway yard maps has become an urgent problem to be solved. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a method, device, equipment and medium for automatically generating a railway yard map to solve the problem of how to improve the generation efficiency of the railway yard map.
[0004] In a first aspect, an embodiment of the present application provides a method for automatically generating a railway yard diagram, the method comprising:
[0005] Acquire an initial railway yard diagram, and determine elements in the initial railway yard diagram, corresponding element states, and association relationships between elements;
[0006] According to the element state, encoding the element to obtain interlocking code bit data of the element;
[0007] Encoding the element according to the element state and the association relationship to obtain code position association data of the element;
[0008] A final railway yard map is obtained according to the initial railway yard map, the interlocking code position data and the code position associated data.
[0009] In a second aspect, an embodiment of the present application provides an automatic generation device for a railway yard map, the automatic generation device comprising:
[0010] A first determination module is used to obtain an initial railway yard diagram, determine elements in the initial railway yard diagram, corresponding element states, and association relationships between elements;
[0011] A first encoding module, used for encoding the element according to the element state to obtain interlocking code position data of the element;
[0012] A second encoding module, used for encoding the element according to the element state and the association relationship to obtain code position association data of the element;
[0013] The combination module is used to obtain a final railway yard map according to the initial railway yard map, the interlocking code position data and the code position associated data.
[0014] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for automatically generating a railway yard map as described in the first aspect is implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for automatically generating a railway yard diagram as described in the first aspect is implemented.
[0016] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application obtains the initial railway yard map, determines the elements in the initial railway yard map, the corresponding element states and the associations between the elements, encodes the elements according to the element states, obtains the interlocking code position data of the elements, encodes the elements according to the element states and the associations, obtains the code position association data of the elements, and obtains the final railway yard map according to the initial railway yard map, the interlocking code position data and the code position association data. Among them, the interlocking code position data and the code position association data of the elements in the initial railway yard map are encoded in an automated manner to obtain the final railway yard map, which reduces the error rate of element encoding and improves the encoding efficiency of the elements in the initial railway yard map compared to the existing manual production method, thereby improving the generation efficiency of the final railway yard map. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 This is a schematic diagram of an application environment of a method for automatically generating a railway yard map provided in Embodiment 1 of the present application;
[0019] Figure 2 It is a flow chart of a method for automatically generating a railway yard map provided in Embodiment 2 of the present application;
[0020] Figure 3 It is a schematic diagram of an initial railway yard map provided in Example 2 of the present application;
[0021] Figure 4 It is a flow chart of a method for automatically generating a railway yard map provided in Embodiment 3 of the present application;
[0022] Figure 5 It is a flow chart of a method for automatically generating a railway yard map provided in Embodiment 4 of the present application;
[0023] Figure 6 It is a flowchart of a method for automatically generating a railway yard map provided in Embodiment 5 of the present application;
[0024] Figure 7 It is a flow chart of a method for automatically generating a railway yard map provided in Example 6 of the present application;
[0025] Figure 8 It is a flow chart of a method for automatically generating a railway yard map provided in Embodiment 7 of the present application;
[0026] Fig. 9 It is a structural schematic diagram of an automatic generation device for a railway yard map provided in Embodiment 8 of the present application;
[0027] Fig.10 It is a structural diagram of a computer device provided in Example 9 of the present application. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0029] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0030] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0031] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0032] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0033] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0034] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0035] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0036] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0037] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0038] The method for automatically generating a railway yard map provided in the first embodiment of the present application can be applied in the following aspects: Figure 1 In the application environment, the server communicates with the client, the server provides the automatic generation service of the railway yard map, and the client triggers the automatic generation task to the server. The client includes but is not limited to PDA, desktop computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, cloud computer equipment, personal digital assistant (PDA) and other devices. The computer equipment corresponding to the server can be implemented by an independent server or a server cluster composed of multiple servers.
[0039] See also Figure 2 , is a flow chart of a method for automatically generating a railway yard diagram provided in Example 2 of the present application. The automatic generation method is applied to Figure 1 The server in the example connects to the client to obtain the initial railway yard map sent by the client. Figure 2 As shown, the automatic generation method may include the following steps:
[0040] Step S201, obtaining an initial railway yard diagram, determining elements in the initial railway yard diagram, corresponding element states, and association relationships between elements.
[0041] In an embodiment of the present application, the initial railway yard map may refer to a diagram including the layout and structure of railway station facilities, the elements may refer to various types of equipment such as tracks, switches, and signal machines depicted in the railway yard map, and the element state may refer to the state of the element itself set according to the actual function and operation of the element. For example, for the signal machine element, the corresponding element state may be an open state or a closed state. In the open state, the signal machine is a green light or a white light, and in the closed state, the signal machine is a red light or a blue light. The association between elements may refer to the mutual association relationship determined based on the physical layout and signal control logic. For example, whether tracks and switches are allowed to be opened is not only restricted by their own open state, but also affected by the state of other switches connected to them.
[0042] For example, see Figure 3 , is a schematic diagram of an initial railway station diagram provided in Example 2 of the present application. Figure 3As shown, the elements in the initial railway yard diagram include signals, switches and tracks, which are signal A, signal B, signal C, signal D, switch A, switch B, track A, track B, track C and track D respectively.
[0043] Step S202, encoding the element according to the element state to obtain the interlocking code position data of the element.
[0044] Step S203, encoding the element according to the element state and the association relationship to obtain the code position association data of the element.
[0045] Step S204, obtaining a final railway yard map according to the initial railway yard map, the interlocking code position data and the code position associated data.
[0046] In an embodiment of the present application, interlocking code position data may refer to coded data used to describe the state of an element itself, code position association data may refer to coded data used to describe the association relationship between elements, and the final railway station diagram may refer to a diagram including the layout and structure of railway station facilities and the interlocking code position data and code position association data of each element in the railway station.
[0047] Specifically, for any element in the initial railway yard diagram, the code bit stream can be used to encode the interlocking code bit data and code bit associated data of the element. Each bit in the code bit stream can represent the state of one or more elements, and the encoded interlocking code bit data and code bit associated data are associated with the element to obtain the final railway yard diagram.
[0048] In the embodiment of the present application, the interlocking code position data and the code position associated data of the elements in the initial railway yard diagram are encoded in an automated manner to obtain a final railway yard diagram. Compared with the existing manual production method, the error rate of element encoding is reduced, the encoding efficiency of the elements in the initial railway yard diagram is improved, and thus the generation efficiency of the final railway yard diagram is improved.
[0049] See also Figure 4 , is a flow chart of a method for automatically generating a railway yard map provided in Example 3 of the present application. Figure 4 As shown, the element is a signal element, and the element state includes an allowed state and a prohibited state. In the above step S202, encoding the element according to the element state to obtain the interlocking code position data of the element may include the following steps:
[0050] Step S401, assigning a first coding bit to the permission state of the signal element, encoding the first coding bit to obtain a first code, assigning a second coding bit to the prohibition state of the signal element, encoding the second coding bit to obtain a second code.
[0051] Step S402, writing the first code and the second code into the interlocking code position data of the signal element.
[0052] In an embodiment of the present application, the first coding bit may refer to the bit allocated for the allowed state of the signal element, the first coding may refer to the data after encoding the first coding bit, the second coding bit may refer to the bit allocated for the prohibited state of the signal element, and the second coding may refer to the data after encoding the second coding bit.
[0053] For example, Figure 3 For any signal, two bits are allocated to the signal A~D in the initial railway yard diagram, indicating the permission state and the prohibition state respectively. Signals A~D occupy a total of 8 bits. When the permission bit is 1, it indicates that the signal is open; when the prohibition bit is 1, it indicates that the signal is closed; if both bits are 0, it indicates that the signal is faulty and the signal is off; the permission bit and the prohibition bit cannot be 1 at the same time. For any signal, the coded data of its permission bit and prohibition bit are written into its interlocking code data.
[0054] In the embodiment of the present application, the coding bits of the element states of the signal elements are allocated and encoded in an automated manner to obtain the interlocking code bit data of the signal elements, thereby improving the coding efficiency of the signal elements in the initial railway yard diagram, thereby improving the generation efficiency of the final railway yard diagram.
[0055] See also Figure 5 , is a flow chart of a method for automatically generating a railway yard map provided in Example 4 of the present application. Figure 5 As shown, the element is a turnout element, and the element state includes an allowed state, a prohibited state, a positioned state, and a reversed state. In the above step S202, encoding the element according to the element state to obtain the interlocking code position data of the element may include the following steps:
[0056] Step S501, assigning a third coding bit to the allowed state of the switch element, encoding the third coding bit to obtain a third code, assigning a fourth coding bit to the prohibited state of the switch element, encoding the fourth coding bit to obtain a fourth code.
[0057] Step S502, allocating a fifth coding bit to the positioning state of the turnout element, encoding the fifth coding bit to obtain a fifth code, allocating a sixth coding bit to the inversion state of the turnout element, encoding the sixth coding bit to obtain a sixth code.
[0058] Step S503, writing the third code, the fourth code, the fifth code and the sixth code into the interlocking code position data of the turnout element.
[0059] In an embodiment of the present application, the third coding bit may refer to the bit allocated for the allowed state of the switch element, the third coding may refer to the data after encoding the third coding bit, the fourth coding bit may refer to the bit allocated for the prohibited state of the switch element, the fourth coding may refer to the data after encoding the fourth coding bit, the fifth coding bit may refer to the bit allocated for the positioning state of the switch element, the fifth coding may refer to the data after encoding the fifth coding bit, the sixth coding bit may refer to the bit allocated for the inverted state of the switch element, and the sixth coding may refer to the data after encoding the sixth coding bit.
[0060] For example, Figure 3 For the turnouts A~B in the initial railway yard diagram shown, for any turnout, 4 bits are allocated in the code bit stream, which respectively represent the allowed state, prohibited state, positioning state and reverse state. Turnouts A~B occupy 8 bits in total. When the allowed bit is 1, it means that the turnout is open; when the prohibited bit is 1, it means that the turnout is occupied; when the allowed bit and the prohibited bit are both 0, it means that the turnout is forbidden; the allowed bit and the prohibited bit cannot be 1 at the same time; when the positioning bit is 1, it means that the train can travel along the straight track; when the reverse bit is 1, it means that the train can travel along the curved track; when the positioning bit and the reverse bit are both 0 or 1 at the same time, it means that the turnout is faulty. For any turnout, the coded data of its allowed bit, prohibited bit, positioning bit and reverse bit are written into its interlocking code bit data.
[0061] In the embodiment of the present application, the coding bits of the element states of the turnout elements are allocated and encoded in an automated manner to obtain the interlocking code bit data of the turnout elements, thereby improving the coding efficiency of the turnout elements in the initial railway yard diagram, thereby improving the generation efficiency of the final railway yard diagram.
[0062] See also Figure 6 , is a flow chart of a method for automatically generating a railway yard diagram provided in Embodiment 5 of the present application, such as Figure 6 As shown, in the above step S203, encoding the element according to the element state and the association relationship to obtain the code position association data of the element may include the following steps:
[0063] Step S601, for any turnout element, determine the straight strand position corresponding to the locating state of the turnout element, the side strand position corresponding to the reverse state of the turnout element, and the pre-locating position corresponding to before entering the locating state or reverse state of the turnout element.
[0064] Step S602: If the pre-positioning position of the turnout element is connected to the straight position of any adjacent turnout element other than the turnout element, the code corresponding to the positioning state of the adjacent turnout element is written into the code position associated data of the turnout element.
[0065] Step S603: if the pre-fixed position of the turnout element is connected to the side strand position of any adjacent turnout element other than the turnout element, the code corresponding to the inverted state of the adjacent turnout element is written into the code position associated data of the turnout element.
[0066] In an embodiment of the present application, the straight strand position may refer to the position of a train running along a straight track at a switch, the side strand position may refer to the position of a train running along a curved track at a switch, the front position may refer to the position before the train passes the switch, and the adjacent switch element may refer to another switch element directly or indirectly connected to the switch element.
[0067] Specifically, the railway yard diagram is divided into different areas with each signal element as the boundary. Within the scope of each area, according to the connection relationship between the elements in the railway yard diagram, it is checked whether the pre-fixed position of each turnout is "directly" connected to the straight position or side position of the adjacent turnout within the scope. If this is the case, the code corresponding to the positioning state or reverse state of the adjacent turnout is written into the code position associated data of the turnout; it is checked whether the pre-fixed position of each turnout is "indirectly" connected to the straight position or side position of the adjacent turnout within the scope. If this is the case, the code corresponding to the positioning state or reverse state of the adjacent turnout is also written into the code position associated data of the turnout.
[0068] For example, Figure 3 The turnout B in the initial railway yard diagram shown has its pre-fixed position "directly" connected to the side position of turnout A, so the code corresponding to the reverse position state of turnout A is written into the code position associated data of turnout B.
[0069] In the embodiment of the present application, the association relationship of the turnout elements is encoded in an automated manner to obtain code position association data of the turnout elements, thereby improving the encoding efficiency of the turnout elements in the initial railway yard diagram, thereby improving the generation efficiency of the final railway yard diagram.
[0070] See also Figure 7 , is a flow chart of a method for automatically generating a railway yard map provided in Example 6 of the present application. Figure 7 As shown, the element is a track element, and the element state includes an allowed state and a prohibited state. In the above step S203, encoding the element according to the element state to obtain the interlocking code position data of the element may include the following steps:
[0071] Step S701, allocate the seventh coding bit to the allowed state of the track element, encode the seventh coding bit to obtain the seventh code, allocate the eighth coding bit to the prohibited state of the track element, encode the eighth coding bit to obtain the eighth code.
[0072] Step S702, write the seventh code and the eighth code into the interlocking code position data of the track element.
[0073] In an embodiment of the present application, the seventh coding bit may refer to the bit allocated for the allowed state of the track element, the seventh coding may refer to the data after encoding the seventh coding bit, the eighth coding bit may refer to the bit allocated for the prohibited state of the track element, and the eighth coding may refer to the data after encoding the eighth coding bit.
[0074] For example, Figure 3 In the initial railway yard diagram shown, for any track A~D, 2 bits are allocated in the code bit stream to indicate the allowed state and the prohibited state respectively. Tracks A~D occupy 8 bits in total. When the allowed bit is 1, it indicates that the track is open; when the prohibited bit is 1, it indicates that the track is occupied; when the allowed bit and the prohibited bit are both 0, it indicates that the track is forbidden; the allowed bit and the prohibited bit cannot be 1 at the same time. For any track, the coded data of its allowed bit and prohibited bit are written into its interlocking code bit data.
[0075] In the embodiment of the present application, coding bits of the element states of track elements are allocated and encoded in an automated manner to obtain interlocking code bit data of the track elements, thereby improving the coding efficiency of the track elements in the initial railway yard diagram, thereby improving the generation efficiency of the final railway yard diagram.
[0076] See also Figure 8 , is a flow chart of a method for automatically generating a railway yard map provided in Embodiment 7 of the present application. Figure 8 As shown, in the above step S203, encoding the element according to the element state and the association relationship to obtain the code position association data of the element may include the following steps:
[0077] Step S801, for any track element, if the track element is connected to the straight position of any switch element, the code corresponding to the positioning state of the switch element is written into the code position associated data of the track element.
[0078] Step S802: If the track element is connected to the side track position of any switch element, the code corresponding to the inverted state of the switch element is written into the code position associated data of the track element.
[0079] Specifically, the railway yard diagram is divided into different areas with each signal element as the boundary. Within the scope of each area, according to the connection relationship between the elements in the railway yard diagram, it is checked whether each track is "directly" connected to the straight position or side position of the turnout within the scope. If this is the case, the code corresponding to the positioning state or range state of the turnout is written into the code position associated data of the track; it is checked whether each track is "indirectly" connected to the straight position or side position of the turnout within the scope. If this is the case, the code corresponding to the positioning state or range state of the turnout is also written into the code position associated data of the track.
[0080] For example, Figure 3 In the initial railway yard diagram shown, track A is "directly" connected to the straight position of turnout A, and the code corresponding to the positioning state of turnout A is written into the code-related data of track A. Only when the positioning bit of turnout A is 1, track A is in an open state; for track B, track B is "directly" connected to the straight position of turnout B, and the code corresponding to the positioning state of turnout B is written into the code-related data of track B; accordingly, the code corresponding to the reverse position of turnout B is written into the code-related data of tracks C and D.
[0081] Furthermore, for tracks B to D, tracks B to D are "indirectly" connected to the side track position of switch A through switch B, and the code corresponding to the reverse position state of switch A is also written into the code position associated data of tracks A to D.
[0082] In the embodiment of the present application, the association relationship of track elements is encoded in an automated manner to obtain code position association data of the track elements, thereby improving the encoding efficiency of the track elements in the initial railway yard diagram, thereby improving the generation efficiency of the final railway yard diagram.
[0083] Corresponding to the automatic generation method of the railway yard diagram in the above embodiment, Fig. 9 The structure block diagram of the automatic generation device of the railway yard map provided in the eighth embodiment of the present application is shown. The automatic generation device of the railway yard map is applied to Figure 1 The server in the embodiment of the present invention is connected to the client to obtain the initial railway yard map sent by the client. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0084] See also Fig. 9 , the automatic generation device of the railway yard map comprises:
[0085] A first determination module 91 is used to obtain an initial railway yard diagram, determine the elements in the initial railway yard diagram, the corresponding element states and the association relationships between the elements;
[0086] A first encoding module 92, configured to encode the element according to the element state to obtain interlocking code bit data of the element;
[0087] A second encoding module 93, configured to encode the element according to the element state and the association relationship to obtain code position association data of the element;
[0088] The combination module 94 is used to obtain a final railway yard map according to the initial railway yard map, the interlocking code position data and the code position associated data.
[0089] Optionally, the first encoding module 92 includes:
[0090] a first allocating unit, configured to allocate a first coding bit to the permitted state of the signal element, encode the first coding bit to obtain a first code, allocate a second coding bit to the prohibited state of the signal element, encode the second coding bit to obtain a second code;
[0091] The first writing unit is used to write the first code and the second code into the interlocking code position data of the signal element.
[0092] Optionally, the first encoding module 92 includes:
[0093] a second allocating unit, configured to allocate a third coding bit to the allowed state of the switch element, encode the third coding bit to obtain a third code, allocate a fourth coding bit to the prohibited state of the switch element, encode the fourth coding bit to obtain a fourth code;
[0094] a third allocating unit, configured to allocate a fifth coding bit to the positioning state of the turnout element, encode the fifth coding bit to obtain a fifth code, allocate a sixth coding bit to the inversion state of the turnout element, encode the sixth coding bit to obtain a sixth code;
[0095] The second writing unit is used to write the third code, the fourth code, the fifth code and the sixth code into the interlocking code position data of the turnout element.
[0096] Optionally, the second encoding module 93 includes:
[0097] A second determination unit is used to determine, for any turnout element, a straight strand position corresponding to a positioning state of the turnout element, a side strand position corresponding to a reverse position of the turnout element, and a pre-position corresponding to a positioning state or reverse position of the turnout element;
[0098] A first association unit is used for writing the code corresponding to the positioning state of the adjacent turnout element into the code position association data of the turnout element if the pre-positioning position of the turnout element is connected to the straight position of any adjacent turnout element other than the turnout element;
[0099] The second association unit is used to write the code corresponding to the inverted state of the adjacent turnout element into the code position association data of the turnout element if the pre-fixed position of the turnout element is connected to the side branch position of any adjacent turnout element other than the turnout element.
[0100] Optionally, the first encoding module 92 includes:
[0101] a fourth allocating unit, configured to allocate a seventh coding bit to the permitted state of the track element, encode the seventh coding bit to obtain a seventh code, allocate an eighth coding bit to the prohibited state of the track element, encode the eighth coding bit to obtain an eighth code;
[0102] The third writing unit is used to write the seventh code and the eighth code into the interlocking code position data of the track element.
[0103] Optionally, the second encoding module 93 includes:
[0104] A third association unit is used for writing the code corresponding to the positioning state of any track element into the code position association data of the track element if the track element is connected to the straight position of any turnout element;
[0105] The fourth association unit is used to write the code corresponding to the inverted state of the switch element into the code position association data of the track element if the track element is connected to the side position of any switch element.
[0106] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0107] Fig.10 This is a schematic diagram of the structure of a computer device provided in Example 9 of the present application. Fig.10 As shown, the computer device of this embodiment includes: at least one processor ( Fig.10 Only one is shown), a memory, and a computer program stored in the memory and executable on at least one processor, wherein when the processor executes the computer program, the steps in any of the above-mentioned embodiments of the method for automatically generating a railway yard diagram are implemented.
[0108] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Fig.10 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, it may also include a network interface, a display screen, and an input device.
[0109] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0110] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0111] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0112] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing the computer program product.
[0113] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0114] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0115] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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. 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 application, and should all be included in the protection scope of the present application.
Claims
1. A method for automatically generating a railway yard diagram. It is characterized in that The automatic generation method comprises: Acquire an initial railway yard diagram, and determine elements in the initial railway yard diagram, corresponding element states, and association relationships between elements; According to the element state, encoding the element to obtain interlocking code bit data of the element; Encoding the element according to the element state and the association relationship to obtain code position association data of the element; A final railway yard map is obtained according to the initial railway yard map, the interlocking code position data and the code position associated data.
2. The method for automatically generating a railway station diagram according to claim 1, It is characterized in that The element is a signal element, the element state includes an allowed state and a prohibited state, and encoding the element according to the element state to obtain the interlocking code position data of the element includes: Assigning a first coding bit to the permission state of the signal element, encoding the first coding bit to obtain a first code, assigning a second coding bit to the prohibition state of the signal element, encoding the second coding bit to obtain a second code; The first code and the second code are written into the interlocking code position data of the signal element.
3. The method for automatically generating a railway station diagram according to claim 1, It is characterized in that The element is a turnout element, and the element state includes an allowed state, a prohibited state, a positioned state, and an inverted state. According to the element state, the element is encoded to obtain the interlocking code position data of the element, including: Assigning a third coding bit to the allowed state of the switch element, encoding the third coding bit to obtain a third code, assigning a fourth coding bit to the prohibited state of the switch element, encoding the fourth coding bit to obtain a fourth code; Allocating a fifth coding bit to the positioning state of the turnout element, encoding the fifth coding bit to obtain a fifth code, and allocating a sixth coding bit to the inversion state of the turnout element, encoding the sixth coding bit to obtain a sixth code; The third code, the fourth code, the fifth code and the sixth code are written into the interlocking code position data of the turnout element.
4. The method for automatically generating a railway station diagram according to claim 3, It is characterized in that The step of encoding the element according to the element state and the association relationship to obtain the code position association data of the element includes: For any turnout element, determine the straight strand position corresponding to the positioning state of the turnout element, the side strand position corresponding to the reverse position of the turnout element, and the pre-position position corresponding to before entering the positioning state or reverse position of the turnout element; If the pre-positioning position of the turnout element is connected to the straight position of any adjacent turnout element other than the turnout element, the code corresponding to the positioning state of the adjacent turnout element is written into the code position associated data of the turnout element; If the pre-fixed position of the switch element is connected to the side branch position of any adjacent switch element other than the switch element, the code corresponding to the inverted state of the adjacent switch element is written into the code position associated data of the switch element.
5. The method for automatically generating a railway yard diagram according to claim 4, It is characterized in that The element is a track element, the element state includes an allowed state and a prohibited state, and encoding the element according to the element state to obtain interlocking code position data of the element includes: Allocating a seventh coding bit to the permitted state of the track element, encoding the seventh coding bit to obtain a seventh code, and allocating an eighth coding bit to the prohibited state of the track element, encoding the eighth coding bit to obtain an eighth code; The seventh code and the eighth code are written into the interlocking code position data of the track element.
6. The method for automatically generating a railway yard diagram according to claim 5, It is characterized in that The step of encoding the element according to the element state and the association relationship to obtain the code position association data of the element includes: For any track element, if the track element is connected to the straight position of any turnout element, the code corresponding to the positioning state of the turnout element is written into the code position associated data of the track element; If the track element is connected to the side track position of any switch element, the code corresponding to the inverted state of the switch element is written into the code position associated data of the track element.
7. An automatic generation device for railway station diagram, It is characterized in that The automatic generation device comprises: A first determination module is used to obtain an initial railway yard diagram, determine elements in the initial railway yard diagram, corresponding element states, and association relationships between elements; A first encoding module, used for encoding the element according to the element state to obtain interlocking code position data of the element; A second encoding module, used for encoding the element according to the element state and the association relationship to obtain code position association data of the element; The combination module is used to obtain a final railway yard map according to the initial railway yard map, the interlocking code position data and the code position associated data.
8. The automatic generation device for railway station diagram according to claim 7, It is characterized in that The element is a signal element, the element state includes an allowed state and a prohibited state, and the first encoding module includes: a first allocating unit, configured to allocate a first coding bit to the permitted state of the signal element, encode the first coding bit to obtain a first code, allocate a second coding bit to the prohibited state of the signal element, encode the second coding bit to obtain a second code; The first writing unit is used to write the first code and the second code into the interlocking code position data of the signal element.
9. A computer device, It is characterized in that The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for automatically generating a railway yard map according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method for automatically generating a railway yard diagram according to any one of claims 1 to 6 is implemented.
