Train path information display method and device, electronic equipment and storage medium

文档序号:1914628 发布日期:2021-12-03 浏览:45次 中文

阅读说明:本技术 列车路径信息的显示方法、装置、电子设备与存储介质 (Train path information display method and device, electronic equipment and storage medium ) 是由 何富君 李卓林 孙凯迪 李金壑 王中林 徐硕 张旭 孙鹏远 于 2021-08-31 设计创作,主要内容包括:本发明提供一种列车路径信息的显示方法、装置、电子设备与存储介质,所述方法应用于ATS系统,所述方法包括:基于待显示列车的相关状态信息,构建待显示列车的组态参数;相关状态信息包括待显示列车的路径信息,路径信息为移动授权或列车位置;基于组态参数包括的偏移参数,对预先建立的组态文件中对应的直线图元进行偏移,并对偏移后的直线图元进行显示;其中,偏移参数用于指示路径信息的两个端点在组态文件中对应的轨道图元上的位置,轨道图元与直线图元对应设置,直线图元表征对应的轨道图元上的路径信息。本发明提供的方法、装置、电子设备与存储介质,采用组态方式实现了列车的移动授权及列车位置的精确显示,提高了显示的可配置性。(The invention provides a method and a device for displaying train path information, electronic equipment and a storage medium, wherein the method is applied to an ATS system and comprises the following steps: constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train; based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives; the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives. The method, the device, the electronic equipment and the storage medium provided by the invention realize the movement authorization of the train and the accurate display of the position of the train by adopting a configuration mode, and improve the configurability of the display.)

1. A method for displaying train path information is applied to an ATS system, and comprises the following steps:

constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the related state information comprises the path information of the train to be displayed, and the path information is movement authorization or train position;

based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the line primitives are correspondingly arranged, and the line primitives represent the path information on the corresponding track primitives.

2. The method for displaying train path information according to claim 1, wherein the track primitives are switch primitives or turnout-free track primitives;

if the track primitive is the turnout primitive, the track primitive corresponds to three straight line primitives, namely a straight line primitive before turnout, a positioning straight line primitive and a reverse straight line primitive;

and if the track primitive is the turnout-free track primitive, the track primitive only corresponds to one straight line primitive.

3. The method for displaying train route information according to claim 2, wherein the relevant status information further includes a running direction of the train to be displayed;

if any end point of the path information is on the turnout primitive, the related state information further comprises the turnout direction of the turnout primitive;

the offset parameter is determined based on the positions of both end points of the path information, and the travel direction or the travel direction and the switch direction.

4. The method for displaying train path information according to claim 2, wherein the shifting the corresponding straight line primitive in the pre-established configuration file based on the shifting parameter included in the configuration parameter further comprises:

and if any end point of the path information is on the turnout primitive, hiding a straight line primitive irrelevant to the position of any end point in the three straight line primitives based on the display parameters included by the configuration parameters.

5. The method for displaying train route information according to claim 1, wherein the relevant status information is sent to the ATS system by a train-mounted system of the train to be displayed.

6. The method for displaying train route information according to any one of claims 1 to 5, wherein the configuration file is created based on the following steps:

constructing a track primitive and a corresponding straight line primitive;

and configuring the style, the state matching rule and the layout of each graphic element, and storing all configured contents into the configuration file.

7. A display device of train path information, which is applied to an ATS system, the device comprising:

the building module is used for building the configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the related state information comprises the path information of the train to be displayed, and the path information is movement authorization or train position;

the offset module is used for offsetting a corresponding linear graphic element in a pre-established configuration file based on the offset parameter included by the configuration parameter and displaying the offset linear graphic element;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the line primitives are correspondingly arranged, and the line primitives represent the path information on the corresponding track primitives.

8. An electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the program implements the steps of the method of displaying train path information according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the method for displaying train path information according to any one of claims 1 to 6.

10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method for displaying train path information according to any one of claims 1 to 6.

Technical Field

The present invention relates to the field of rail transit technologies, and in particular, to a method and an apparatus for displaying train route information, an electronic device, and a storage medium.

Background

In order to facilitate the dispatcher to analyze and adjust the driving operation in time, an Automatic Train Supervision (ATS) system needs to display the movement authorization and the Train position of the Train in real time. The movement authorization means that the maximum distance allowed by a certain train to move in a real-time running state can be displayed as the distance between the train head and a movement authorization point on a track. The train position refers to a specific position of the train on the track, and the distance between the front end and the rear end of the train can be displayed on the track. The movement authorization has obvious similarity with the display of the train position, and can be abstracted into the display between two end points on the track.

Currently, existing ATS systems generally rely on code implementation for displaying between two endpoints on a track. Such a display mode is generally rough, a situation that the movement authorization of one train conflicts with the train position of another train easily occurs, and when the display accuracy of the movement authorization or the train position needs to be changed, the code needs to be changed, so that the operation is very troublesome.

Disclosure of Invention

The invention provides a method and a device for displaying train path information, electronic equipment and a storage medium, which are used for solving the defect that the display mode is difficult to modify in the prior art and realizing the improvement of configurability of train path information display.

The invention provides a method for displaying train path information, which is applied to an ATS system and comprises the following steps:

constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the related state information comprises the path information of the train to be displayed, and the path information is movement authorization or train position;

based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the line primitives are correspondingly arranged, and the line primitives represent the path information on the corresponding track primitives.

According to the method for displaying the train path information, provided by the invention, the track primitives are turnout primitives or turnout-free track primitives;

if the track primitive is the turnout primitive, the track primitive corresponds to three straight line primitives, namely a straight line primitive before turnout, a positioning straight line primitive and a reverse straight line primitive;

and if the track primitive is the turnout-free track primitive, the track primitive only corresponds to one straight line primitive.

According to the display method of the train path information provided by the invention, the related state information also comprises the running direction of the train to be displayed;

if any end point of the path information is on the turnout primitive, the related state information further comprises the turnout direction of the turnout primitive;

the offset parameter is determined based on the positions of both end points of the path information, and the travel direction or the travel direction and the switch direction.

According to the method for displaying train path information provided by the invention, the method for shifting the corresponding straight line graphic element in the pre-established configuration file based on the shifting parameter included in the configuration parameter comprises the following steps:

and if any end point of the path information is on the turnout primitive, hiding a straight line primitive irrelevant to the position of any end point in the three straight line primitives based on the display parameters included by the configuration parameters.

According to the method for displaying the train path information, the relevant state information is sent to the ATS system by the vehicle-mounted system of the train to be displayed.

According to the method for displaying the train path information, the configuration file is established based on the following steps:

constructing a track primitive and a corresponding straight line primitive;

and configuring the style, the state matching rule and the layout of each graphic element, and storing all configured contents into the configuration file.

The present invention also provides a display device of train path information, which is applied to an ATS system, the device comprising:

the building module is used for building the configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the related state information comprises the path information of the train to be displayed, and the path information is movement authorization or train position;

the offset module is used for offsetting a corresponding linear graphic element in a pre-established configuration file based on the offset parameter included by the configuration parameter and displaying the offset linear graphic element;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the line primitives are correspondingly arranged, and the line primitives represent the path information on the corresponding track primitives.

The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the method for displaying the train path information.

The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of displaying train path information as described in any one of the above.

The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method for displaying train path information as described in any one of the above.

According to the train path information display method, the train path information display device, the train path information display electronic equipment and the train path information storage medium, the track graphic elements and the linear graphic elements in the configuration file are constructed in advance, the display between two end points on the track is realized in a configuration mode, the display is configurable, when the display needs to be modified, the configuration file only needs to be modified through a configuration tool, the display is convenient and quick, and the linear graphic elements used for representing the path information are accurately offset through the offset parameters included based on the configuration parameters, so that the movement authorization and the train position of a train can be accurately displayed.

Drawings

In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic flow chart of a display method of train path information provided by the present invention;

fig. 2 is a data flow diagram of a display method of train path information provided in the prior art;

fig. 3 is a data flow diagram of a display method of train path information provided by the present invention;

FIG. 4 is a flowchart illustrating a configuration file creating method according to the present invention;

FIG. 5 is an exemplary diagram of a layout provided by the present invention;

fig. 6 is a second schematic flow chart of the method for displaying train route information according to the present invention;

FIG. 7 is one of the exemplary diagrams of track primitive creation provided by the present invention;

FIG. 8 is a second exemplary diagram of track primitive creation provided by the present invention;

FIG. 9 is one of the exemplary diagrams of straight line primitive creation provided by the present invention;

FIG. 10 is a second exemplary diagram of the creation of a straight-line primitive provided by the present invention;

fig. 11 is a schematic structural view of a display device of train route information provided by the present invention;

fig. 12 is a schematic structural diagram of an electronic device provided in the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The movement authorization has obvious similarity with the display of the train position, and can be abstracted into the display between two end points on the track. Currently, existing ATS systems generally rely on code implementation for displaying between two endpoints on a track. This display mode lacks interface configurability, and when the display accuracy of the movement authorization or train position needs to be changed, the operation is very troublesome because the code needs to be changed.

The configuration is used as an interface building mode, the interface can be configured in a configuration mode, and the method has the advantages of easiness in learning and use, universality, continuity, expandability and the like. In contrast, the embodiment of the invention provides a method for displaying train route information by adopting a configuration mode. Fig. 1 is a schematic flow diagram of a method for displaying train route information, the method being implemented by an ATS system, as shown in fig. 1, the method including:

step 110, constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train;

step 120, shifting a corresponding linear graphic element in a pre-established configuration file based on the shift parameter included by the configuration parameter, and displaying the shifted linear graphic element;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives.

Here, the train to be displayed is a train that needs to display the route information on the ATS system, and the related status information, that is, the status information related to the train operation to be displayed, may include the route information of the train to be displayed, and may also include other status information, such as a track status, and the like. The route information of the train to be displayed refers to information related to the train running route and having an end point characteristic, and may be, for example, a movement authorization of the train or a train position of the train.

It should be noted that the train position herein refers to the precise position of the train on the track, and the train position can be displayed as the distance between the front end and the rear end of the train on the track. The track primitive may be a switch primitive established for a switch, or may be a turnout-free track primitive established for a common track, which is not specifically limited in this embodiment of the present invention.

Specifically, in order to implement real-time display of path information on a track by using a configuration mode, in the embodiment of the present invention, a track primitive is constructed in advance by using a configuration tool to represent track information, then a corresponding straight line primitive is added on the basis of the track primitive, the path information on the corresponding track primitive is represented by using the straight line primitive, information such as a state and a display rule of each primitive is configured in advance, a configuration file is constructed by using the method, and on the basis, an ATS system can start an actual display process of train path information:

firstly, loading a pre-constructed configuration file, and constructing configuration parameters of a train to be displayed according to related state information of the train to be displayed, wherein the configuration parameters comprise offset parameters for indicating the positions of two endpoints of path information on corresponding track primitives; then, according to the offset parameter, the linear graphics primitives needing to be offset are searched in the configuration file, then the two end points of the linear graphics primitives are accurately offset, and the offset linear graphics primitives are displayed, so that the accurate display of the specific position of the path information is realized, and the problem that the path information of two trains is easy to conflict due to rough display is avoided.

For example, one end point of the indicated path information in the offset parameter is located at a position close to an end point a on a certain non-branching track primitive (two ends are represented by A, B, respectively), the other end point is located at a position close to an end point B on the track primitive, and the distances from the two end points to the end points a and B are both 1/3 of AB-segment distances, so that only one straight line primitive to be offset at this time, that is, a straight line primitive drawn by using A, B as an end point, may offset both end points of the straight line primitive towards the middle direction by 1/3 of the AB-segment distance, and finally, the offset straight line primitive may be obtained and displayed, so as to facilitate the user to view the position where the path information of the train is to be displayed.

According to the method provided by the embodiment of the invention, the display between two end points on the track is realized by pre-constructing the track pixel and the linear pixel in the configuration file and adopting the configuration mode, so that the display can be configured, when the display needs to be modified, the configuration file only needs to be modified by a configuration tool, the convenience and the rapidness are realized, and the linear pixel used for representing the path information is accurately offset by the offset parameter based on the configuration parameter, so that the movement authorization and the train position of the train can be accurately displayed.

Based on any one of the embodiments, the track primitives are turnout primitives or turnout-free track primitives;

if the track primitive is a turnout primitive, the track primitive corresponds to three straight line primitives, namely a straight line primitive before turnout, a positioning straight line primitive and a reverse straight line primitive;

and if the track primitive is a turnout-free track primitive, the track primitive only corresponds to one straight line primitive.

Specifically, considering that the track primitive may be a switch primitive or a turnout-free track primitive, when the existing ATS system displays two end points on a track, if an end point of the path information falls on the switch, the specific position of the end point on the switch is not finely distinguished, but the whole switch is fully paved. The mode is particularly rough to display at the turnout, which can cause that in the limit operation state, if one train is in front of the turnout, the subsequent train sets the movement authorization terminal to the position of the current turnout, and the movement authorization of one train is overlapped with the train position of another train.

Aiming at the problem, the embodiment of the invention provides a method for accurately displaying the position of train path information on a turnout, namely, according to the turnout position, three conditions of front turnout, positioning and reverse positioning exist in advance, three corresponding straight line primitives are constructed for each turnout primitive in a configuration file, namely, the straight line primitive before the turnout, the positioning straight line primitive and the reverse positioning straight line primitive are respectively constructed, on the basis, if the position of any end point of the path information indicated in an offset parameter on the turnout primitive is front turnout, positioning or reverse positioning, the corresponding straight line primitive before the turnout, the positioning straight line primitive or the reverse positioning straight line primitive can be offset, and therefore, the accurate display of the position of the path information on the turnout is realized.

In addition, if the track primitive is a turnout-free track primitive, only a corresponding straight line primitive needs to be constructed for the turnout-free track primitive in the configuration file, that is, the straight line primitive drawn by taking two endpoints of the turnout-free track primitive as endpoints, and at this time, if any one endpoint of the path information in the offset parameter indicates the position of the turnout-free track primitive, the straight line primitive can be directly offset.

Based on any of the above embodiments, the relevant state information further includes the running direction of the train to be displayed;

if any end point of the path information is on the turnout primitive, the related state information also comprises the turnout direction of the turnout primitive;

the offset parameter is determined based on the positions of the two end points of the path information, and the direction of travel or the direction of travel and the direction of the switch.

Specifically, considering that the switch primitives have different switch directions, if any one of the two end points of the path information exists on the switch primitive, the related state information of the train to be displayed may further include the switch direction of the switch primitive where the end point is located, and on this basis, the offset parameter in the configuration parameter may be determined according to the positions of the two end points of the path information included in the related state information, the running direction of the train to be displayed, and the switch direction of the switch primitive, so as to offset the straight line primitive subsequently based on the offset parameter.

In addition, if the two endpoints of the path information are both on the turnout-free track primitive, only the offset parameter in the configuration parameters needs to be determined according to the positions of the two endpoints of the path information included in the relevant state information and the running direction of the train to be displayed.

Based on any of the above embodiments, step 120 further includes:

and if any end point of the path information is on the turnout primitive, hiding a straight line primitive irrelevant to the position of the end point in the three straight line primitives based on the display parameters included by the configuration parameters.

Specifically, considering that one turnout primitive corresponds to three straight line primitives, path information of one train only occupies two straight line primitives at most. In order to make the display of the path information clearer and avoid the occupation of other trains so as to generate train conflict, after determining that any end point of the path information exists on the turnout primitive, according to the display parameters included by the configuration parameters, the embodiment of the invention firstly hides the straight line primitive irrelevant to the position of the end point in the three straight line primitives corresponding to the turnout primitive, and then according to the offset parameters included by the configuration parameters, offsets the remaining straight line primitives in the three straight line primitives, namely the straight line primitive where the end point is located.

For example, if one end point of the path information of the train to be displayed is located before the turnout of the turnout primitive, and the other end point is located at the position of the turnout primitive, the reverse straight line primitive corresponding to the turnout primitive can be hidden according to the display parameters, then the positioning straight line primitive corresponding to the turnout primitive and the straight line primitive before the turnout are shifted according to the shift parameters, and finally the two shifted straight line primitives can form the straight line primitive for displaying the complete path information.

Based on any embodiment, the relevant state information is sent to the ATS system by the train-mounted system of the train to be displayed.

Specifically, in consideration of the fact that the existing ATS system needs to acquire data from the ground system and the vehicle-mounted system respectively when displaying between two end points on a track, fig. 2 is a data flow diagram of a display method of train path information provided in the prior art, and as shown in fig. 2, movement authorization and track states (such as switch location and inversion) are acquired from the ground system, and train positions are acquired from the vehicle-mounted system.

To solve the problem, in the embodiment of the present invention, a data flow structure is changed, information that needs to be obtained originally through the ground is completely transferred to a vehicle-mounted system, fig. 3 is a data flow diagram of the display method of train path information provided by the present invention, as shown in fig. 3, an ATS system only needs to obtain relevant state information from the vehicle-mounted system of a train to be displayed, where the relevant state information may include movement authorization, a train position, and a track state related to the movement authorization and the train position, etc. of the train to be displayed, and on this basis, the train path information may be displayed, so that the display method can meet the requirement of a "train-vehicle communication" architecture by adjusting a data obtaining flow.

Based on any of the above embodiments, the configuration file is created based on the following steps:

constructing a track primitive and a corresponding straight line primitive;

and configuring the style, the state matching rule and the layout of each graphic element, and storing all configured contents into a configuration file.

Specifically, in order to implement real-time display of path information on a track by using a configuration mode, an embodiment of the present invention obtains a configuration file by configuration of a configuration tool in advance, fig. 4 is a flow diagram of a configuration file establishing method provided by the present invention, and as shown in fig. 4, a track primitive is established to represent track information, and a corresponding straight line primitive is added on the basis of the track primitive; then configuring the style, state matching rule and layout of each graphic primitive; and finally, storing all the configured contents into a configuration file to obtain a complete configuration file for displaying subsequent train path information.

Here, the state matching rule is a corresponding matching rule set according to the state of the primitive, and may include, for example, a color display rule, a hiding and shifting rule of a straight line primitive, and the like, which is not specifically limited in this embodiment of the present invention.

Based on any of the above embodiments, since the end a and the end B are defined in the drawing parameters, after the layout of each primitive is configured and the layout diagram is obtained, the end a and the end B of each primitive can be defined in the layout diagram. Fig. 5 is an exemplary diagram of a layout diagram provided by the present invention, and as shown in fig. 5, the layout of the a terminal and the B terminal in the layout diagram is as follows:

1. for the graphics primitive without turnout tracks, the left end is an A end, and the right end is a B end;

2. for the turnout primitive, the front turnout part, the positioning turnout part and the reverse turnout part all take the end close to the turnout core as the end A and the end far away from the turnout core as the end B.

Then, the ID (Identity document) of each primitive may be set in units of primitives, and the ID configuration mode may be arbitrarily set according to the user requirement, which is not specifically limited in the embodiment of the present invention. For example, the ID of the straight line primitive corresponding to the turnout-free TRACK primitive may be defined as ID _ TRACK, and ID _ TRACK is set to 2; the IDs of the three linear primitives corresponding to the SWITCH primitive are respectively, before-SWITCH linear primitive ID _ SWITCH _ FRONT ═ 4, positioning linear primitive ID _ SWITCH _ NORMAL ═ 5, and inversion linear primitive ID _ SWITCH _ REVERSE ═ 6. If the front of the train falls at a position where the 1-TRACK primitive is at distance A endpoint 1/3, it is necessary that the straight line primitive with ID _ TRACK corresponding to that TRACK primitive be shifted 1/3 toward the middle at the A endpoint.

Based on any of the above embodiments, fig. 6 is a second schematic flow chart of the method for displaying train path information according to the present invention, as shown in fig. 6, after a configuration file is pre-established, the ATS system may start a display program of train path information, load the configuration file through the configuration file loading library and store the configuration file in a memory, a background module of the system constructs a configuration parameter of a train to be displayed according to related state information of the train to be displayed, which is acquired in real time, and sends the configuration parameter to a foreground interface, the foreground interface finds a corresponding primitive according to the configuration parameter received in real time and a pre-configured state matching rule, and displays a corresponding state, thereby finally realizing display of train path information. In addition, when the display state is abnormal, the configuration parameters are obtained again.

Here, the configuration parameters may be generated according to the position distribution of the two end points of the path information, and the running direction of the train and the switch direction of the switch related to the path information. As shown in fig. 5, the direction of the arrow in the figure is the running direction of the train, and is defined as descending from left to right and ascending from right to left. The direction of the turnout is the direction from the back of the turnout (positioning or reverse) to the front of the turnout, as shown in fig. 5, the direction of 1-turnout is an upward direction, the direction of 2-turnout is an upward direction, the direction of 3-turnout is a downward direction, and the direction of 4-turnout is a downward direction.

The configuration parameter construction table can be pre-established according to all the conditions of the position distribution of the two end points of the path information, and on the basis, after the two specific positions of the path information of the train to be displayed are determined, the configuration parameter of the train to be displayed can be directly constructed by searching the configuration parameter construction table.

The configuration parameter construction table may include the following:

1. the starting end (i.e. the starting end in the train running direction) and the terminal end (i.e. the terminal end in the train running direction) of the path information are on the same track primitive:

a. the starting end and the rear end are both in front of the turnout element: for example, before the 1-switch primitive in fig. 5 is switched, the positioning straight line primitive and the inverted straight line primitive of the 1-switch primitive need to be hidden, the offset ratio of the a end of the straight line primitive before the switch is the starting end offset ratio, and the offset ratio of the B end is the 1-terminal end offset ratio (the starting end offset ratio and the terminal end offset ratio are both calculated relative to the a end point);

the moving direction is upward, the switch direction is downward, for example, before the switch of the 3-switch primitive in fig. 5, the positioning straight line primitive and the inverted straight line primitive of the 3-switch primitive need to be hidden, the offset ratio of the end a of the straight line primitive before the switch is the terminal offset ratio, and the offset ratio of the end B is the starting offset ratio;

the moving direction is downward, the switch direction is upward, for example, before the switch of the 2-switch primitive in fig. 5, the positioning straight line primitive and the inverted straight line primitive of the 2-switch primitive need to be hidden, the offset ratio of the end a of the straight line primitive before the switch is the terminal offset ratio, and the offset ratio of the end B is the starting offset ratio;

for example, before the 4-switch primitive in fig. 5 is switched, the positioning straight line primitive and the inverted straight line primitive of the 4-switch primitive need to be hidden, the offset ratio of the end a of the straight line primitive before the switch is the starting offset ratio, and the offset ratio of the end B of the straight line primitive before the switch is the terminal offset ratio of 1.

b. The starting end and the rear end are positioned or reversed on the turnout primitive, similar to the situation of a, and similar reasoning can be carried out.

c. The starting end and the rear end are positioned at different positions (positions) of the turnout primitive, and the turnout state is positioned at the moment: for example, the start end is positioned in the 1-switch primitive in fig. 5, and the end is before the switch, the reverse straight line primitive of the 1-switch primitive needs to be hidden, the offset ratio of the end a of the straight line primitive before the switch is 0, the offset ratio of the end B of the straight line primitive before the switch is 1-end offset ratio, the offset ratio of the end a of the positioning straight line primitive is 0, and the offset ratio of the end B of the positioning straight line primitive is 1-start end offset ratio;

the moving direction is upward, the switch direction is downward, for example, the start end is before the switch of the 3-switch primitive in fig. 5, and the end is positioned, then the reverse straight line primitive of the 3-switch primitive needs to be hidden, the a-end offset ratio of the straight line primitive before the switch is 0, the B-end offset ratio is 1-start-end offset ratio, the a-end offset ratio of the positioning straight line primitive is 0, and the B-end offset ratio is 1-end offset ratio;

the moving direction is downward, and the switch direction is upward, for example, the start end is before the switch of the 2-switch primitive in fig. 5, and the end is positioned, then the reverse straight line primitive of the 2-switch primitive needs to be hidden, the a-end offset ratio of the straight line primitive before the switch is 0, the B-end offset ratio is 1-start-end offset ratio, the a-end offset ratio of the positioning straight line primitive is 0, and the B-end offset ratio is 1-end offset ratio;

for example, the start end is positioned in the 4-switch primitive in fig. 5, and the end is before the switch, the reverse straight line primitive of the 4-switch primitive needs to be hidden, the a-end offset ratio of the straight line primitive before the switch is 0, the B-end offset ratio of the straight line primitive before the switch is 1-end offset ratio, the a-end offset ratio of the positioning straight line primitive is 0, and the B-end offset ratio of the positioning straight line primitive is 1-start end offset ratio.

d. The starting end and the rear end are at different positions (reverse positions) of the turnout primitive, the turnout state is reverse position at the moment, and similar reasoning can be carried out as the situation of c.

e. The starting end and the rear end are on the turnout-free track primitive: the running direction is an upward direction, for example, in the 1-track primitive or the 3-track primitive in fig. 5, the a-end offset ratio of the straight line primitive corresponding to the 1-track primitive or the 3-track primitive is equal to the terminal offset ratio, and the B-end offset ratio is equal to the 1-start offset ratio;

for example, in the 2-track primitive or the 4-track primitive in fig. 5, the a-end offset ratio of the linear primitive corresponding to the 2-track primitive or the 4-track primitive is equal to the start-end offset ratio, and the B-end offset ratio is equal to the 1-end offset ratio.

2. The starting end and the terminal end of the path information are in different track primitives:

a. the starting end is in front of the turnout primitive: the moving direction and the turnout direction are both upward, for example, if the starting end is before the turnout of the 1-turnout primitive in fig. 5, then no matter the turnout state is positioning or inverted, the positioning straight line primitive and the inverted straight line primitive of the 1-turnout primitive need to be hidden, the offset ratio of the end a of the straight line primitive before the turnout is equal to the offset ratio of the starting end, and the offset ratio of the end B is equal to 0;

the moving direction is upward, the turnout direction is downward, for example, the starting end is before the turnout of the 3-turnout primitive in fig. 5, if the turnout state is positioning, the reverse position straight line primitive of the 3-turnout primitive needs to be hidden, the offset ratio of the end a of the straight line primitive before the turnout is 0, the offset ratio of the end B is 1-the starting end offset ratio, and the offset ratio of the end a and the offset ratio of the end B of the positioning straight line primitive are both 0; if the turnout state is inverted, the 3-turnout primitive positioning straight line primitive needs to be hidden, the offset ratio of the A end of the straight line primitive before the turnout is 0, the offset ratio of the B end is 1-the offset ratio of the initial end, and the offset ratio of the A end and the offset ratio of the B end of the inverted straight line primitive are both 0;

the running direction is downward, the turnout direction is upward, for example, the starting end is before the turnout of the 2-turnout element in fig. 5, the same as the situation before the turnout of the 3-turnout element is carried out, and the description is not repeated;

the running direction and the switch direction are both downward, for example, the starting end is before the switch of the 4-switch element in fig. 5, which is the same as the situation before the switch of the 1-switch element, and will not be described again.

b. The positioning or inversion of the starting end at the switch primitive is similar to the situation of a, and similar reasoning can be carried out.

c. The starting end is on the non-turnout track primitive: the running direction is an upward direction, for example, in the 1-track primitive or the 3-track primitive in fig. 5, the a-end offset ratio of the straight line primitive corresponding to the 1-track primitive or the 3-track primitive is equal to 0, and the B-end offset ratio is equal to 1-start offset ratio;

for example, in the 2-track primitive or the 4-track primitive in fig. 5, the a-end offset ratio and the B-end offset ratio of the linear primitive corresponding to the 2-track primitive or the 4-track primitive are equal to 0, respectively.

d. The terminal is arranged before the turnout of the turnout primitive: the running direction and the turnout direction are both upward, for example, if the terminal is before the turnout of the 1-turnout primitive in fig. 5, if the turnout state is positioning, the reverse position straight line primitive of the 1-turnout primitive needs to be hidden, the offset ratio of the end a of the straight line primitive before the turnout is 0, the offset ratio of the end B of the straight line primitive before the turnout is 1-terminal offset ratio, and the offset ratio of the end a and the offset ratio of the end B of the positioning straight line primitive are both 0; if the turnout state is inverted, the positioning straight line primitive of the 1-turnout primitive needs to be hidden, the offset ratio of the A end of the straight line primitive before the turnout is 0, the offset ratio of the B end of the straight line primitive is 1-terminal offset ratio, and the offset ratio of the A end and the offset ratio of the B end of the inverted straight line primitive are both 0;

the moving direction is upward, the switch direction is downward, for example, the terminal is before the switch of the 3-switch primitive in fig. 5, then no matter the switch state is positioning or inverted, the positioning straight line primitive and the inverted straight line primitive of the 3-switch primitive need to be hidden, the offset ratio of the end a of the straight line primitive before the switch is equal to the terminal offset ratio, and the offset ratio of the end B is equal to 0;

the running direction is downward, the turnout direction is upward, for example, the terminal is before the turnout of the 2-turnout element in fig. 5, the same as the situation before the turnout of the 3-turnout element is carried out, and the description is omitted;

the operation direction and the switch direction are both downward, for example, the terminal is before the switch of the 4-switch element in fig. 5, which is the same as the above-mentioned situation before the switch of the 1-switch element, and is not described again.

e. And (4) positioning or inverting the terminal at the turnout primitive, and performing similar reasoning as the situation of d.

f. And the terminal can perform similar reasoning on the turnout-free track primitive similar to the situation of c.

g. The middle graphic elements passed by the path information are turnout graphic elements: the turnout state is positioning, the reverse straight line primitive of the turnout primitive needs to be hidden, and the A-end offset ratio and the B-end offset ratio of the straight line primitive before the turnout and the positioning straight line primitive are both 0; the turnout state is reverse position, the positioning straight line primitive of the turnout primitive needs to be hidden, and the A end offset ratio and the B end offset ratio of the straight line primitive before the turnout and the reverse position straight line primitive are both 0.

h. And if the middle primitive passed by the path information is a turnout-free track primitive, the A-end offset ratio and the B-end offset ratio of the straight line primitive corresponding to the turnout-free track primitive are both 0.

The configuration parameters of the train to be displayed may include the following:

1. track primitive ID-for positioning track primitives;

2. straight line primitive ID(s);

3. offset parameters (offset ratio at A end/offset ratio at B end) corresponding to the ID of the straight line primitive;

4. display parameters (which need to be hidden before, during and after the fork, and during the positioning and the reverse position) corresponding to the ID of the straight line graphic primitive;

based on the configuration parameters, the state matching rules may include the following:

1. hiding the corresponding straight line graphic elements according to the straight line graphic element ID and the display parameters;

2. and carrying out the offset of the corresponding straight line primitive according to the straight line primitive ID and the offset parameter.

Based on any of the above embodiments, the configuration parameters may be established as follows:

1. track primitive creation: the track primitive is represented by a thicker line, the basic states of the track primitive include an initialization state, a CBTC (Communication Based Train Control System) occupation state, a fault state, and the like, and the state of the track primitive is configured by a configuration tool, fig. 7 and 8 are exemplary diagrams created by the track primitive provided by the present invention, and as shown in the drawings, the track primitive can be configured with different colors to display in different states.

2. Adding a straight line graphic element to represent the movement authorization or the train position: adding a thinner straight line primitive above the basic lines of the track primitive, wherein if the track primitive is a turnout primitive, the thinner straight line primitive needs to be added above three basic lines of the turnout primitive respectively; fig. 9 and 10 are exemplary diagrams created by the straight line primitive provided by the present invention, and as shown in the drawings, the straight line primitive may be added with configuration parameters to be injected, and states such as hidden state without display, train movement authorization overlapping fault (alarm state), and the like, and in addition, different color displays may be configured in different states.

3. And configuring the layout of the pixels by taking the pixels as units, and storing all configuration contents into a configuration file.

4. And loading a configuration file by a program, displaying track information on an interface at the moment, enabling the state of each pixel to be an initialization state, waiting for background pushing of configuration parameters, starting to modify the state of each pixel after receiving the configuration parameters, hiding and offsetting the corresponding pixels, and displaying different colors according to different states.

The following describes a display device of train route information provided by the present invention, and the display device of train route information described below and the display method of train route information described above may be referred to in correspondence with each other.

Based on any one of the above embodiments, an embodiment of the present invention provides a display device for train path information. Fig. 11 is a schematic structural diagram of a display device for train route information according to the present invention, which is applied to an ATS system, and includes:

the building module 1110 is configured to build configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train;

an offset module 1120, configured to offset a corresponding linear primitive in a pre-established configuration file based on an offset parameter included in the configuration parameter, and display the offset linear primitive;

the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives.

The device provided by the embodiment of the invention realizes the display between two end points on the track by pre-constructing the track pixel and the linear pixel in the configuration file and adopting the configuration mode, so that the display can be configured, when the display needs to be modified, the configuration file only needs to be modified by a configuration tool, the convenience and the rapidness are realized, and the linear pixel used for representing the path information is accurately offset by the offset parameter based on the configuration parameter, so that the movement authorization and the train position of the train can be accurately displayed.

Based on any one of the embodiments, the track primitives are turnout primitives or turnout-free track primitives;

if the track primitive is a turnout primitive, the track primitive corresponds to three straight line primitives, namely a straight line primitive before turnout, a positioning straight line primitive and a reverse straight line primitive;

and if the track primitive is a turnout-free track primitive, the track primitive only corresponds to one straight line primitive.

Based on any of the above embodiments, the relevant state information further includes the running direction of the train to be displayed;

if any end point of the path information is on the turnout primitive, the related state information also comprises the turnout direction of the turnout primitive;

the offset parameter is determined based on the positions of the two end points of the path information, and the direction of travel or the direction of travel and the direction of the switch.

Based on any of the above embodiments, the apparatus further comprises a hiding module configured to:

and if any end point of the path information is on the turnout primitive, hiding a straight line primitive irrelevant to the position of the end point in the three straight line primitives based on the display parameters included by the configuration parameters.

Based on any embodiment, the relevant state information is sent to the ATS system by the train-mounted system of the train to be displayed.

Based on any of the above embodiments, the configuration file is created based on the following steps:

constructing a track primitive and a corresponding straight line primitive;

and configuring the style, the state matching rule and the layout of each graphic element, and storing all configured contents into a configuration file.

Fig. 12 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 12: a processor (processor)1210, a communication Interface (Communications Interface)1220, a memory (memory)1230, and a communication bus 1240, wherein the processor 1210, the communication Interface 1220, and the memory 1230 communicate with each other via the communication bus 1240. The processor 1210 may call logic instructions in the memory 1230 to perform a method of displaying train path information, which is applied to the ATS system, the method including: constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train; based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives; the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives.

In addition, the logic instructions in the memory 1230 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method for displaying train path information provided by the above methods, the method being applied to an ATS system, the method comprising: constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train; based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives; the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives.

In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method for displaying train path information provided by the above methods, the method being applied to an ATS system, the method including: constructing configuration parameters of the train to be displayed based on the relevant state information of the train to be displayed; the relevant state information comprises the path information of the train to be displayed, and the path information is movement authorization or the position of the train; based on the offset parameters included by the configuration parameters, offsetting the corresponding linear graphics primitives in the pre-established configuration file, and displaying the offset linear graphics primitives; the offset parameter is used for indicating positions of two endpoints of the path information on corresponding track primitives in the configuration file, the track primitives and the straight line primitives are correspondingly arranged, and the straight line primitives represent the path information on the corresponding track primitives.

The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于确定车辆轮径的方法、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!