Method for checking train count in section, medium, and system

By configuring inspection rules and using virtual platform interpolation, the problem of insufficient limitation on the number of trains in a section in the existing technology has been solved, and accurate inspection of the number of trains in a section and improvement of operating efficiency have been achieved.

WO2026137958A1PCT designated stage Publication Date: 2026-07-02CASCO SIGNAL LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
CASCO SIGNAL LTD
Filing Date
2025-09-03
Publication Date
2026-07-02

AI Technical Summary

Technical Problem

Existing technologies cannot effectively limit the number of trains in a given section based on a timetable, leading to traffic congestion and failing to meet transportation efficiency requirements.

Method used

By configuring inspection rules, the system iterates through the single-journey sections in the timetable, records entry and exit information, uses a counter to count the number of trains within a section, and records alarm information when the upper limit is exceeded. Combined with virtual platform interpolation processing, the timetable compilation is refined.

Benefits of technology

It enables precise monitoring of the number of trains in a given section, avoiding traffic congestion, improving operational efficiency, and providing a graphical display for easy adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025118718_02072026_PF_FP_ABST
    Figure CN2025118718_02072026_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to a method for checking a train count in a section, a medium, and a system. The method comprises the following steps: configuring check rules, and reading all the check rules from a configuration file by means of OGT software; traversing one-way trips of all trains on the basis of a timetable, and when the one-way trips match any section in the check rules, storing section entering and leaving records into a section entering and leaving record list; when traversal has been completed, sorting the section entering and leaving record list in chronological order of time points to obtain section entering and leaving information of all the trains along the time axis; traversing the section entering and leaving information, and obtaining a total train count in each section by means of a counter; and when the total train count in the section is greater than or equal to a train count upper limit, recording one piece of alarm information upon each change of the counter. Compared with the prior art, the present invention can achieve refinement of timetable compilation by checking counts of trains simultaneously present in sections, thereby improving operation efficiency and ensuring safety.
Need to check novelty before this filing date? Find Prior Art

Description

A method, medium, and system for checking the number of trains in a section. Technical Field

[0001] This invention relates to the field of rail transit technology, and in particular to a method, medium, and system for checking the number of trains in a section. Background Technology

[0002] As a crucial component of urban public transportation, rail transit effectively improves travel efficiency, alleviates urban congestion, improves air quality, and promotes urban development. It also serves as a significant indicator of a city's transportation infrastructure development level. The timetable, an indispensable part of rail transit, specifies the arrival and departure times of trains at various stations, as well as the travel time within a given section. A standardized and efficient timetable greatly enhances the operational efficiency and safety of rail transit. Creating timetables for multi-train, complex lines also significantly tests the skills of the timetable editors. Timetable editing software often provides validity checks to aid the editors. Common checks include, but are not limited to:

[0003] 1. Platform conflict check: By checking the arrival and departure times of the platform, it controls that at most one train can exist on a certain platform at the same time;

[0004] 2. Departure interval control: By checking the departure interval of the terminal platform, a prompt will be given when it exceeds the upper limit or falls below the lower limit;

[0005] 3. Uniqueness check: Check the service number or one-way number to ensure global uniqueness;

[0006] These checks can help drafters avoid basic errors. However, when faced with checks on some complex scenarios, drafters often still need to perform manual analysis and checks, using experience to set safe time intervals.

[0007] The number of trains per section is a key concern in rail transit, as it often requires limiting the number of trains simultaneously operating within a specific section. While signaling systems typically provide real-time section number limits during train operation, this often falls short of operational efficiency. For example, patent application CN118917102A discloses a method for calculating the number of trains assigned to a line in an intelligent rail transit system. This method comprehensively considers constraints such as the charging requirements and turnaround / preparation time of intelligent rail trains, combining an inverse difference function model and a mathematical programming model to more accurately determine the number of trains assigned to a line in an intelligent rail transit system. However, this method cannot limit the number of trains per section based on the timetable, and therefore cannot avoid operational congestion caused by limiting the number of trains per section during actual operation. Summary of the Invention

[0008] The purpose of this invention is to overcome the shortcomings of the prior art by providing a method, medium, and system for checking the number of trains in a section. By checking the number of trains existing simultaneously in a section, the timetable can be refined, operational efficiency can be improved, and safety can be ensured.

[0009] The objective of this invention can be achieved through the following technical solutions:

[0010] A method for checking the number of trains in a section includes the following steps:

[0011] Configure inspection rules and read all the inspection rules from the configuration file through OGT software. The inspection rules include section description, train number limit and section.

[0012] According to the timetable, all train journeys are iterated through one by one. When the one by one match any of the intervals in the inspection rules, the entry and exit interval record is stored in the entry and exit interval record table.

[0013] After the traversal is completed, the entry and exit interval record table is sorted from morning to night according to the time point to obtain the entry and exit interval information of all trains on the time axis;

[0014] The entry and exit interval information is traversed, and the total number of trains in each interval is obtained by using a counter.

[0015] When the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules, an alarm message is recorded whenever the counter changes.

[0016] Furthermore, the interval is the track between two connected points on the train running line, and it has directionality.

[0017] Furthermore, the timetable includes train arrival times and train departure times at the platforms.

[0018] Furthermore, the entry and exit interval record includes: time point, entry and exit interval attributes, the track entered or left, and the current one-way pointer.

[0019] Furthermore, when traversing the entry and exit interval information, the counter is incremented by 1 when the entry and exit interval attribute of the entry and exit interval record is an entry interval attribute, and the counter is decremented by 1 when the entry and exit interval attribute of the entry and exit interval record is an exit interval attribute.

[0020] Furthermore, when different trains enter or leave the section at the same time, the counter is incremented and then decremented based on the principle of first-in, last-out.

[0021] Furthermore, the alarm information includes a one-way description, a section description, the track entered or left, the time point, and the number of trains within the section.

[0022] Furthermore, the alarm information is printed sequentially into the alarm dialog box. Based on the single-trip description, the OGT software automatically positions and displays the graphical timetable of the alarm information at the corresponding single-trip location.

[0023] Furthermore, when the inspection rules are configured, if the two intervals intersect, the intervals are decoupled using the OGT software.

[0024] Furthermore, when the endpoint of the interval is any track, the arbitrary track is used as a virtual station. The virtual station is interpolated and fitted based on the track length or the time value obtained by simulating the train, and the train arrival time and departure time of the virtual station are obtained. The train arrival time and departure time of the virtual station are recorded as the same time point.

[0025] Furthermore, if two of the aforementioned intervals are connected end-to-end and the endpoint of the connecting interval is the virtual station, the OGT software will delete the two entry and exit interval records at the connecting point.

[0026] Furthermore, the number of trains per section can be checked under different application scenarios by configuring a combination of the section and the upper limit of the number of trains.

[0027] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, can implement the aforementioned method for checking the number of trains in a given section.

[0028] According to another aspect of the present invention, a system for checking the number of trains in a section is provided, comprising:

[0029] The inspection rule configuration module is used to configure inspection rules, and reads all the inspection rules from the configuration file through the OGT software;

[0030] The train single-trip traversal module is used to traverse all train single-trips according to the timetable. When the single-trip matches any of the intervals in the inspection rules, the entry and exit interval records are stored in the entry and exit interval record table.

[0031] The entry and exit section information acquisition module is used to sort the entry and exit section record table from morning to evening according to the time point after the traversal is completed, so as to obtain the entry and exit section information of all trains on the time axis.

[0032] The interval train quantity acquisition module is used to traverse the entry and exit interval information and obtain the total number of trains in each interval through a counter;

[0033] The alarm information recording module is used to record alarm information whenever the counter changes when the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] 1. This invention obtains the entry and exit information of all trains on the timeline by traversing the one-way trips of all trains according to the timetable and recording the entry and exit intervals that match any interval in the inspection rules. Based on the entry and exit interval information, a counter is used to obtain the real-time number of trains in any interval of the timetable. The number of trains in each interval is compared with the upper limit of the number of trains in the interval, and alarm information is recorded. This enables the inspection of the number of trains in the intervals that are of great concern to the line operation, effectively avoiding the operation congestion caused by the limitation of the number of trains in the intervals during the actual operation phase.

[0036] 2. This invention addresses the sparse nature of timetables, which only contain the arrival and departure times of trains at platforms. By introducing virtual platforms and performing interpolation based on typical values, the grid is refined, providing timetable creators with accurate references to optimize train operation diagrams.

[0037] 3. This invention allows for flexible configuration of intervals and train quantity limits, creating a variety of application scenarios. Combined with a graphically displayed timetable, it enables quick location of key positions, facilitating user checks and adjustments. Attached Figure Description

[0038] Figure 1 is a flowchart illustrating the method for checking the number of trains in a section proposed in this invention;

[0039] Figure 2 illustrates the intention of graphically displaying the time indication;

[0040] Figure 3 is a schematic diagram of the virtual platform train arrival and departure point interpolation method;

[0041] Figure 4 is a schematic diagram of the interval configuration decoupling method;

[0042] Figure 5 is a schematic diagram of the platform layout;

[0043] Figure 6 is a schematic diagram of the multi-section inspection process;

[0044] Figure 7 is a schematic diagram of the multi-section platform layout;

[0045] Figure 8 illustrates the intention of graphically displaying time across multiple intervals. Detailed Implementation

[0046] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.

[0047] The following English abbreviations are involved:

[0048] Offline Graphical Timetable (OGT)

[0049] Example 1

[0050] This embodiment provides a method for checking the number of trains in a section, as shown in Figure 1, including the following steps:

[0051] S1. Configure the inspection rules and read all inspection rules from the configuration file using the OGT software.

[0052] When the timetable editing software OGT (offline graphical timetable) starts, it reads all the check rule configurations from the configuration file and stores them as a rule list in memory. During the operation of the OGT software, based on the opened timetable file, or after creating a new timetable and completing its editing, it checks the number of trains in a section. A check rule includes: section description, maximum number of trains, and one or more sections.

[0053] Users perform a Valid Check within the OGT software, check the Track Section Limit Check option, and click OK to confirm the check.

[0054] Regarding the configuration of inspection rules, when two configured intervals intersect, the software will decouple the intervals, as shown in Figure 3. The decoupling process of interval configuration is explained in conjunction with the platform layout shown in Figure 4. The inspection intervals are abcde and gcdf.

[0055] The specific steps of the decoupling process include:

[0056] Initialize variables;

[0057] Traverse the intervals abcde:

[0058] Point a: Insert point a {a} into the temporary subinterval;

[0059] Point b: Insert point b {ab} into the temporary subinterval;

[0060] Point c: Insert point c {abc} into a temporary subinterval. Point c has two upper connections. Store the temporary subinterval in the list {{abc}}. Clear the temporary subinterval and insert point c {c}.

[0061] Point d: Insert point d {cd} into the temporary subinterval. Point d has two lower connections, which are stored in the list {{abc}, {cd}}. Clear the temporary subinterval and insert point d {d}.

[0062] Point e: Insert point e {de} into the temporary sub-interval and store it in the list {{abc}, {cd}, {de}};

[0063] Traversing the interval GCDF:

[0064] g point: Insert point g {g} into the temporary subinterval;

[0065] Point C: Insert point C {gc}. Point C has two upper connections. Store the temporary sub-interval to the list {{abc}, {cd}, {de}, {gc}}. Clear the temporary sub-interval and insert point C {c}.

[0066] Point d: Insert point d{cd}. Point d has 2 lower connections. Check that {cd} already exists in the list, clear the temporary sub-interval, and insert point d{d}.

[0067] Insert point f into the list {df} and store it in the list {{abc}, {cd}, {de}, {gc}, {df}}.

[0068] This completes the decoupling of the interval configuration by splitting it into abc, cd, de, gc, and df. Decoupling greatly simplifies the complexity of data configuration and avoids unnecessary waste of computational resources.

[0069] S2. According to the timetable, iterate through all trains' one-way trips. When a one-way trip matches any interval in the inspection rules, store the entry and exit interval record in the entry and exit interval record table.

[0070] A section corresponds to two connected points on a train running line and the track between them, where the endpoints are also tracks. For example, the section from track A to track B is AcdeB. Sections also have directionality; for example, AcdeB corresponds to the up direction, while BedcA corresponds to the down direction. By configuring a combination of sections and train quantity limits, different application scenarios can be used to check the number of trains within a section. These scenarios include: checking the total number of trains on the up and down tracks on bridges or in tunnels in real time; checking the number of trains in a section during peak hours; checking the number of trains stopped at all or some platforms at a certain time; and checking the number of all trains running within a section.

[0071] The timetable includes train arrival and departure times at the platforms. The OGT software iterates through all train routes and all one-way trips according to the timetable, checking if a portion of the train's path matches any of the intervals specified in the check rules. Taking the AcdeB interval as an example, for the departure time of point A (indicating entry into the interval) and the arrival time of point B (indicating exit from the interval), two entry / exit records are stored in the entry / exit interval record table. The entry / exit interval record structure includes: one time point (nTime), one entry / exit interval attribute (bType), one track entered or left (nNodeId), and the current one-way trip pointer (pTrip).

[0072] Figure 2 shows a graphical timetable, with the horizontal axis representing time and the vertical axis representing platforms. In this embodiment, three trains, 001, 002, and 003, run sequentially from platform F to platform G, passing through points A and B. The maximum number of trains in the AB section is configured to 2 for inspection.

[0073] Iterate through the routes of the three trains and determine whether they pass through section AB.

[0074] For car 001, record 2 CheckItems into CheckItemList:

[0075] {nTime=08:00:00, bType=1, nNodeId=1, pTrip=001}

[0076] {nTime=08:05:00, bType=0, nNodeId=2, pTrip=001}

[0077] For car 002, record 2 CheckItems into CheckItemList:

[0078] {nTime=08:03:00, bType=1, nNodeId=1, pTrip=002}

[0079] {nTime=08:08:00, bType=0, nNodeId=2, pTrip=002}

[0080] For car 003, record 2 CheckItems into CheckItemList:

[0081] {nTime=08:06:00, bType=1, nNodeId=1, pTrip=003}

[0082] {nTime=08:11:00, bType=0, nNodeId=2, pTrip=003}

[0083] In the formula, nTime is the time point, bType is the entry / exit interval attribute. When bType=0, it is the exit interval attribute, and when bType=1, it is the entry interval attribute. nNodeId is the track to enter or leave, and pTrip is the current one-way pointer.

[0084] Since the timetable only contains train arrival and departure times at each platform, for flexible interval endpoints, such as when the interval endpoints are configured with arbitrary tracks, the concept of virtual platforms is introduced: OGT interpolates and fits these virtual platforms based on track length or time values ​​obtained from simulated train runs, recording the arrival and departure times as the same point in time. Taking the actual train running path FabEcdG as an example, where F, E, and G are real platforms with arrival and departure times in the timetable, and a, b, c, and d are virtual platform nodes in the path that need to be interpolated. The interpolation and fitting steps include:

[0085] Traverse all nodes in the path and determine whether the current platform is a virtual platform:

[0086] If node F is a real station and the list of virtual stations is empty at this time, then only the departure time of station F with the base time is recorded.

[0087] Continue iterating. For point a, which is a virtual station, insert it into the virtual station list {a}.

[0088] Continue iterating. For point b, which is a virtual station, insert it into the virtual station list {a, b}.

[0089] Continuing the iteration, for point E, which is a real platform, and the list of virtual platforms is not empty at this point, we calculate the interpolation value for the platforms in the list:

[0090] Calculate the time difference between the current arrival time at the platform and the reference time: tInterval = tArrival - tBegin

[0091] In the formula, tInterval is the time difference, tArrival is the arrival time, and tBegin is the base time.

[0092] Calculate the arrival times of points a and b based on the configuration file:

[0093] In the formula, tArrival_a is the arrival time of point a, tArrival_b is the arrival time of point b, distance_F_a is the distance between point F and point a, distance_a_b is the distance between point a and point b, and distance_b_E is the distance between point b and point E.

[0094] Clear the virtual station list and record the base time as the departure time of the current point E;

[0095] When traversing to point G, repeat the above steps to interpolate points c and d, and complete all interpolations.

[0096] S3. After completing the traversal, sort the entry and exit interval record table according to the time point from morning to night to obtain the entry and exit interval information of all trains on the time axis.

[0097] The entry and exit interval record table is sorted by time point to obtain the entry and exit interval information as follows:

[0098] {{nTime=08:00:00, bType=1, nNodeId=1, pTrip=001},

[0099] {nTime=08:03:00, bType=1, nNodeId=1, pTrip=002},

[0100] {nTime=08:05:00, bType=0, nNodeId=2, pTrip=001},

[0101] {nTime=08:06:00, bType=1, nNodeId=1, pTrip=003},

[0102] {nTime=08:08:00, bType=0, nNodeId=2, pTrip=002},

[0103] {nTime=08:11:00, bType=0, nNodeId=2, pTrip=003}}

[0104] S4. Traverse the entry and exit section record table, and obtain the total number of trains in each section using a counter based on the entry and exit section information.

[0105] A new counter is set to 0. The entry / exit record table is traversed. When an entry / exit record has an entry / exit attribute of 1, the counter is incremented by 1; when it has an exit / exit attribute, the counter is decremented by 1, thus obtaining the number of trains within the interval. When different trains enter or leave the interval at the same time, the counter is incremented first and then decremented based on the last-in, first-out (LIFO) principle. If two intervals are configured to be connected end-to-end, such as Ac and cB, where point c is a virtual platform (i.e., arrival time equals departure time), the counter will decrement and then increment for the same train, leading to false alarms. In this scenario, the OGT software will delete the two entry / exit records at the connection point.

[0106] S5. When the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules, an alarm message is recorded whenever the counter changes.

[0107] When the number of trains in a section is greater than or equal to the maximum number of trains configured in the inspection rules, an alarm message is recorded. The alarm message includes a one-way description, a section description, the track entered or exited, the time point, and the number of trains in the section, as shown below:

[0108] "Limit Exceeded, When train %s (single-trip description) entering / leaving zone %s (interval description Desc) from node: %s (track entering or leaving nNodeId) at time: %s (time point nTime), Train count: %d (number of trains in the interval at this time nCount)."

[0109] The entry and exit record table is continuously traversed until the end. When the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules, an alarm message is recorded every time the counter changes.

[0110] In this embodiment, the counter obtained by traversing the entry and exit interval record table is:

[0111] bType = 1: nCount = 1

[0112] bType = 1: nCount = 2,

[0113] nCount>=MaxNumOfTrain

[0114] Alarm recorded: "Limit Exceeded, When train 002 entered zone %s from node:1 at time:08:03:00, Train count: 2."

[0115] bType = 0: nCount = 1

[0116] bType = 1: nCount = 2,

[0117] nCount>=MaxNumOfTrain

[0118] Alarm recorded: "Limit Exceeded, When train 003 entered zone %s from node:1 at time:08:06:00, Train count: 2."

[0119] bType = 0: nCount = 1

[0120] bType=0: nCount=0

[0121] In the formula, bType is the entry / exit interval attribute, nCount is the number of trains in the interval, and MaxNumOfTrain is the upper limit of the number of trains in the interval.

[0122] According to the alarm records, when train 002 entered the AB section from track 1 at 08:03:00, the total number of trains in the section was equal to the maximum number of trains; when train 003 entered the AB section from track 1 at 08:06:00, the total number of trains in the section was equal to the maximum number of trains.

[0123] The alarm information is printed sequentially to the alarm dialog box. When the user double-clicks an alarm, the OGT software will automatically locate and display the graphical timetable at the position of that single trip based on the one-way description recorded in the alarm, making it convenient for the user to view and adjust.

[0124] Example 2

[0125] This embodiment provides a method for checking the number of trains in multiple sections, as shown in Figure 6. The check of multiple sections involves performing a basic check on the decoupled sections. The platform layout of the multiple sections in this embodiment is shown in Figure 7, where A1 and A2 represent the up and down platforms of station A.

[0126] Figure 8 shows the timetable to be checked. Trains 001 and 002 are trains traveling in the up direction, with a route of A1-B1-C1-D1-E1. Trains 003 and 004 are trains traveling in the down direction, with a route of E2-D2-C2-B2-A2. Trains 005 and 006 are trains traveling in the up direction, with a route of f-C1-D1-g.

[0127] The inspection rules include two inspection sections: A1-B1-C1-D1-E1 and E2-D2-C2-B2-A2. The maximum number of trains allowed in each section is set to 4. The inspection steps are as follows:

[0128] Iterate through all single-journey routes, recording the entries and exits within and outside the intervals:

[0129] For train 001, there are 3 matching intervals: {A1-B1-C1}, {C1-D1}, and {D1-E1}. A total of 6 entry and exit interval records are recorded. The entry and exit at C1 and D1 at adjacent intervals need to be ignored. Finally, only 2 entry and exit interval records are recorded.

[0130] {nTime=08:00:00, bType=1, nNodeId=A1, pTrip=001}

[0131] {nTime=08:20:00, bType=0, nNodeId=E1, pTrip=001}

[0132] Inspect all trains in sequence:

[0133] Train 002:

[0134] {nTime=08:05:00, bType=1, nNodeId=A1, pTrip=002}

[0135] {nTime=08:23:00, bType=0, nNodeId=E1, pTrip=002}

[0136] Train 003:

[0137] {nTime=08:08:00, bType=1, nNodeId=E2, pTrip=003}

[0138] {nTime=08:27:00, bType=0, nNodeId=A2, pTrip=003}

[0139] Train 004:

[0140] {nTime=08:13:00, bType=1, nNodeId=E2, pTrip=004}

[0141] {nTime=08:32:00, bType=0, nNodeId=A2, pTrip=004}

[0142] Train 005:

[0143] {nTime=08:06:00, bType=1, nNodeId=C1, pTrip=005}

[0144] {nTime=08:11:00, bType=0, nNodeId=D1, pTrip=005}

[0145] Train 006:

[0146] {nTime=08:21:00, bType=1, nNodeId=C1, pTrip=006}

[0147] {nTime=08:26:00, bType=0, nNodeId=D1, pTrip=006}

[0148] Sort the entry and exit interval records by time, iterate through them, and generate the following alarm information:

[0149] "Limit Exceeded, When train 003entering zone%s from node:E2 at time:08:08:00, Train count:4."

[0150] "Limit Exceeded, When train 004entering zone%s from node:E2 at time:08:13:00, Train count:4."

[0151] "Limit Exceeded, When train 006entering zone%s from node:C1 at time:08:21:00, Train count:4."

[0152] As can be seen from the above alarm information, when train 003 enters the section from the downlink platform E2 at 08:08:00, the total number of trains in the section is equal to the maximum number of trains; when train 004 enters the section from the downlink platform E2 at 08:13:00, the total number of trains in the section is equal to the maximum number of trains; when train 006 enters the section from the uplink platform C1 at 08:21:00, the total number of trains in the section is equal to the maximum number of trains.

[0153] The rest is the same as in Example 1.

[0154] Example 3

[0155] This embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the interval train quantity checking method proposed in Embodiment 1.

[0156] The rest is the same as in Example 1.

[0157] Example 4

[0158] This embodiment provides a system for checking the number of trains in a section, including:

[0159] The inspection rule configuration module is used to configure inspection rules and reads all inspection rules from the configuration file through the OGT software;

[0160] The train single-trip traversal module is used to traverse all train single trips according to the timetable. When a single trip matches any interval in the inspection rules, the entry and exit interval record is stored in the entry and exit interval record table.

[0161] The entry and exit section information acquisition module is used to sort the entry and exit section record table from morning to night according to the time point after the traversal is completed, so as to obtain the entry and exit section information of all trains on the time axis.

[0162] The section train quantity acquisition module is used to traverse the entry and exit information of the section and obtain the total number of trains in each section through a counter;

[0163] The alarm information recording module is used to record alarm information whenever the counter changes when the total number of trains in the section is greater than or equal to the upper limit of the number of trains configured in the inspection rules.

[0164] The rest is the same as in Example 1.

[0165] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.

Claims

1. A method for checking the number of trains in a section, characterized in that, Includes the following steps: Configure inspection rules and read all the inspection rules from the configuration file using OGT software. The inspection rules include section description, train quantity limit, and section. According to the timetable, all train journeys are iterated through. When the journey matches any of the intervals in the inspection rules, the entry and exit interval record is stored in the entry and exit interval record table. After the traversal is completed, the entry and exit interval record table is sorted from morning to night according to the time point to obtain the entry and exit interval information of all trains on the time axis; The entry and exit interval information is traversed, and the total number of trains in each interval is obtained by using a counter. When the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules, an alarm message is recorded whenever the counter changes.

2. The method for checking the number of trains in a section according to claim 1, characterized in that, The section refers to the track between two connected points on the train's running line, and it has directionality.

3. The method for checking the number of trains in a section according to claim 1, characterized in that, The timetable includes train arrival and departure times at the platforms.

4. The method for checking the number of trains in a section according to claim 1, characterized in that, The entry and exit interval records include: time point, entry and exit interval attributes, the track entered or left, and the current one-way pointer.

5. The method for checking the number of trains in a section according to claim 4, characterized in that, When traversing the entry and exit interval information, the counter is incremented by 1 when the entry and exit interval attribute of the entry and exit interval record is an entry interval attribute, and the counter is decremented by 1 when the entry and exit interval attribute of the entry and exit interval record is an exit interval attribute.

6. The method for checking the number of trains in a section according to claim 1, characterized in that, When different trains enter or leave the section at the same time, the counter is incremented and then decremented based on the principle of first-in, last-out.

7. The method for checking the number of trains in a section according to claim 1, characterized in that, The alarm information includes a one-way description, a section description, the track entered or left, the time point, and the number of trains in the section.

8. The method for checking the number of trains in a section according to claim 7, characterized in that, The alarm information is printed sequentially into the alarm dialog box. Based on the single-trip description, the OGT software automatically positions and displays the graphical timetable of the alarm information at the corresponding single-trip location.

9. The method for checking the number of trains in a section according to claim 1, characterized in that, When the inspection rules are configured, the two intervals intersect, and the intervals are decoupled by the OGT software.

10. The method for checking the number of trains in a section according to claim 1, characterized in that, When the endpoint of the interval is any track, the arbitrary track is used as a virtual station. The virtual station is interpolated and fitted according to the track length or the time value obtained by the simulated train to obtain the train arrival time and departure time of the virtual station. The train arrival time and departure time of the virtual station are recorded as the same time point.

11. The method for checking the number of trains in a section according to claim 10, characterized in that, If two of the aforementioned intervals are connected end-to-end and the endpoint of the connecting interval is the virtual station, the OGT software will delete the two entry and exit interval records at the connecting point.

12. The method for checking the number of trains in a section according to claim 1, characterized in that, By configuring the combination of the section and the upper limit of the number of trains, the number of trains in the section can be checked under different application scenarios.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, enables the method for checking the number of trains in a section as described in any one of claims 1 to 12.

14. A system for checking the number of trains in a section, characterized in that, include: The inspection rule configuration module is used to configure inspection rules, and reads all the inspection rules from the configuration file through the OGT software; The train single-trip traversal module is used to traverse all train single-trips according to the timetable. When the single-trip matches any of the intervals in the inspection rules, the entry and exit interval records are stored in the entry and exit interval record table. The entry and exit section information acquisition module is used to sort the entry and exit section record table from morning to evening according to the time point after the traversal is completed, so as to obtain the entry and exit section information of all trains on the time axis. The interval train quantity acquisition module is used to traverse the entry and exit interval information and obtain the total number of trains in each interval through a counter; The alarm information recording module is used to record alarm information whenever the counter changes when the total number of trains in the interval is greater than or equal to the upper limit of the number of trains configured in the inspection rules.