Train driving path adjusting method and electronic equipment
The method by which the user selects and drags points in the train operation chart to adjust the driving path solves the problem of unintuitive and single adjustment methods in the existing technology, and realizes diversified, convenient and precise adjustment of the train driving path.
Patent Information
- Application Number
- CN202310897080.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, the adjustment method of the train driving route is not intuitive, and the adjustment method is single, and it can only change the stop-stop lane, which lacks diversity and convenience.
Provides a method for adjusting the train's driving path. The user selects and drags points on the train operation chart to adjust the driving path, thereby realizing diversified adjustments to the track. The method includes determining the driving path that needs to be adjusted in response to the user's selection operation, detecting the starting point and end point of the drag operation, and adjusting the driving path according to the track type and ownership relationship.
It realizes intuitive and convenient adjustment of the train's driving path. The diversified adjustment methods improve the accuracy and richness of the adjustment and meet the diverse needs of the driving path in the train operation chart.
Smart Images

Figure CN119329581A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing for rail transit, and in particular to a method for adjusting a train travel path and an electronic device. Background Art
[0002] The train operation diagram can intuitively display the routes of different trains. In order to optimize road traffic, the pre-set routes can be adjusted according to the actual operation conditions of each train.
[0003] In the related art, the data used to represent the driving route is usually adjusted and displayed in a table form, which is not intuitive. In addition, in this method, usually only the stop track can be changed, and the adjustment method is single. Summary of the invention
[0004] In an exemplary embodiment of the present application, a method and electronic device for adjusting a train travel path are provided, wherein the adjustment methods are diversified and intuitive, and the adjustment process is more convenient and accurate.
[0005] According to a first aspect of an exemplary embodiment, a method for adjusting a train travel path is provided, the method comprising:
[0006] In response to a user's selection operation on the first page, a first line segment is determined; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during the train operation, each track represents a station, and the first line segment represents a travel path that requires track adjustment;
[0007] In response to a user's dragging operation on any point on the first line segment, detecting a starting point and an end point of the dragging operation;
[0008] According to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted;
[0009] After detecting that the drag operation is finished, the adjusted first line segment is displayed.
[0010] According to a second aspect of the exemplary implementation, there is provided an electronic device, the electronic device comprising a data transmission unit and a processor;
[0011] The data transfer unit is configured to perform:
[0012] Obtaining a train operation diagram consisting of at least one line segment;
[0013] The processor is configured to execute:
[0014] In response to a user's selection operation on the first page, a first line segment is determined; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during the train operation, each track represents a station, and the first line segment represents a travel path that requires track adjustment;
[0015] In response to a user's dragging operation on any point on the first line segment, detecting a starting point and an end point of the dragging operation;
[0016] According to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted;
[0017] After detecting that the drag operation is finished, the adjusted first line segment is displayed.
[0018] According to a third aspect of an exemplary embodiment, a device for adjusting a train travel path is provided, the device comprising:
[0019] The selection unit is used to: determine a first line segment in response to a user's selection operation on the first page; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during the train operation, each track represents a station, and the first line segment represents a travel path that needs to be adjusted;
[0020] A detection unit, configured to: in response to a user's dragging operation on any point on the first line segment, detect a starting point and an end point of the dragging operation;
[0021] An adjustment unit, configured to adjust a travel path corresponding to the first line segment according to a track type corresponding to the starting point and a relationship between the end point and the first line segment;
[0022] The display unit is used to: after detecting that the drag operation is completed, display the adjusted first line segment.
[0023] According to a fourth aspect of an exemplary implementation, a computer storage medium is provided, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the method for adjusting a train travel path as in the first aspect.
[0024] In an embodiment of the present application, the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during the train operation, and each track represents a station. In response to the user's selection operation on the first page, the first line segment is determined, and the first line segment represents the travel path that needs to be adjusted; in response to the user's drag operation on any point on the first line segment, the starting point and the end point of the drag operation are detected; according to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted; after detecting that the drag operation is over, the adjusted first line segment is displayed. Visual adjustment is achieved, and the adjustment methods are diversified, taking into account the tracks corresponding to the starting position and the end position, respectively, making the adjustment process more convenient and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1 An application scenario diagram of a method for adjusting a train travel path provided in an embodiment of the present application is exemplarily shown;
[0027] Figure 2 A flow chart of a method for adjusting a train travel path provided in an embodiment of the present application is exemplarily shown;
[0028] Figure 3 A flowchart of a method for adjusting a driving path provided in an embodiment of the present application is exemplarily shown;
[0029] Figure 4 A schematic diagram of modifying a shortened path in a starting track provided by an embodiment of the present application is exemplarily shown;
[0030] Figure 5 The present invention provides a method for Figure 4 Schematic diagram of the corresponding train running time;
[0031] Figure 6 A flowchart of a method for adjusting a driving path provided in an embodiment of the present application is exemplarily shown;
[0032] Figure 7 A schematic diagram of modifying a shortened path in a terminal track provided by an embodiment of the present application is exemplarily shown;
[0033] Figure 8The present invention provides a method for Figure 7 Schematic diagram of the corresponding train running time;
[0034] Fig. 9 A schematic diagram of modifying an extended path in a terminal track provided by an embodiment of the present application is exemplarily shown;
[0035] Fig.10 The present invention provides a method for Fig. 9 Schematic diagram of the corresponding train running time;
[0036] Fig.11 A flow chart of a method for modifying a route provided by an embodiment of the present application is exemplarily shown;
[0037] Fig.12 A schematic diagram of a modified extension path in a route track provided by an embodiment of the present application is exemplarily shown;
[0038] Fig.13 The present invention provides a method for Fig.12 Schematic diagram of the corresponding train running time;
[0039] Fig.14 A flowchart of a method for verifying an adjusted driving path provided in an embodiment of the present application is exemplarily shown;
[0040] Fig.15 The following is a schematic diagram showing the structure of a train travel path adjustment device provided in an embodiment of the present application;
[0041] Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0043] For ease of understanding, the terms involved in the embodiments of the present application are explained below:
[0044] (1) Track: refers to the numbered track in the station, which is used to determine the specific location where the train stops. It can be used to determine the specific location where the train stops and the basis for the station dispatcher to issue shunting orders to the driver. In the embodiment of the present application, a circle is used to indicate a track on the visual display interface.
[0045] The train operation diagram can intuitively display the routes of different trains. In order to optimize road traffic, the pre-set routes can be adjusted according to the actual operation conditions of each train.
[0046] (2) Track set, the track set includes multiple tracks, each track includes an allowed running direction attribute (up, down, both up and down); on the first page, the track can be represented by a circular icon, the radius of the circular icon is R, and the position of the center of the circle is the position of the corresponding track; the driving path of the target train is S, and the driving path S contains the running direction attribute (up, down); the position of the mouse click, human touch or stylus click is Ps, and the track at position Ps is the first track, represented by Ks; the position of the mouse click, human touch or stylus click is Pc, and the track at Pc is the second track, represented by Kc. The embodiment of the present application is a visualized processing process, that is, the circular icon used to represent the track in the driving path displayed on the first page is operated to adjust the driving path.
[0047] In the related art, the data used to represent the driving route is usually adjusted and displayed in a table form, which is not intuitive. In addition, in this method, usually only the stop track can be changed, and the adjustment method is single.
[0048] To this end, an embodiment of the present application provides a method for adjusting a train travel path, which provides a visual adjustment method. A train operation diagram consisting of at least one line segment is displayed on the first page, and each line segment represents a travel path. Each line segment consists of at least two points, each point represents a track in the train operation, and each track represents a station, which can be illustrated by an icon (such as a circle). In response to the user's selection operation on the first page, the travel path that needs to be adjusted is determined, that is, the first line segment on the first page. In response to the user's drag operation on any point on the first line segment, the starting point and the end point of the drag operation are detected; according to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted; after detecting that the drag operation is over, the adjusted first line segment is displayed. Such a design visualizes the adjustment process, which is more intuitive, and takes into account the starting point and end point of the drag, thereby improving the richness of the adjustment.
[0049] After introducing the design ideas of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0050] refer to Figure 1, which shows an application scenario diagram of a method for adjusting a train travel path, Figure 1 (a) is the time diagram corresponding to a path. Figure 1 (b) in the figure is a schematic diagram of the path, wherein the filled circular icons are the tracks on the path.
[0051] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.
[0052] Combine the following Figure 1 The application scenario shown is shown in Figure 2 A flow chart of a method for adjusting a train travel path is shown to illustrate the technical solution provided in an embodiment of the present application.
[0053] S201: In response to a user's selection operation on a first page, determining a first line segment.
[0054] The first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track in the train operation, each track represents a station, and the first line segment represents the travel path that requires track adjustment.
[0055] S202: In response to a user dragging operation on any point on the first line segment, detecting a start point and an end point of the dragging operation.
[0056] S203: Adjust the travel path corresponding to the first line segment according to the track type corresponding to the starting point and the relationship between the end point and the first line segment.
[0057] S204: After detecting that the drag operation is finished, displaying the adjusted first line segment.
[0058] In an embodiment of the present application, the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track in the train operation, and each track represents a station. In response to the user's selection operation on the first page, the first line segment is determined, and the first line segment represents the travel path that needs to be adjusted; in response to the user's drag operation on any point on the first line segment, the starting point and the end point of the drag operation are detected; according to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted; after detecting that the drag operation is over, the adjusted first line segment is displayed. Visual adjustment is achieved, and the adjustment methods are diversified, taking into account the tracks corresponding to the starting position and the end position, respectively, making the adjustment process more convenient and accurate.
[0059] In S201, the display content of the first page may include a train operation diagram, which is the travel path of multiple trains. The travel path of each train can be represented by a line segment, the starting point of the line segment is the starting point of the train's travel path, and the end point of the line segment is the end point of the train's travel path. Each point on the line segment can be represented by a circular icon. In the first page, the circular icon can be a control that can respond to user operations. Combined with the concept of track, each station corresponds to a track to indicate the train stop.
[0060] In the embodiment of the present application, the first page includes at least one line segment, and the first line segment is determined in response to the user's selection operation on the first page. With this design, a line segment of the driving path that needs track adjustment can be found among multiple line segments.
[0061] In S202, any point on the first line segment represents any track, and in response to a user's dragging operation on any point on the first line segment, a starting point and an end point of the dragging operation are detected.
[0062] In an embodiment of the present application, the adjustment process of the travel path of a target train is described, assuming that the travel path of the target train includes track S1 (starting track), track S2, track S3, track S4, track S5, track S6, track S7 and track S8 (destination track).
[0063] The user can adjust the driving path by dragging the circular icon representing the track on the first page. During the dragging process, one way is for the user to click the mouse to execute, and another way is for the user to touch the icon on the first page to execute. In a dragging process, including the starting position and the stopping position, it should be noted that as long as the mouse or hand or stylus does not leave the display screen, the dragging operation is not completed, and a dragging operation may include multiple dragging processes. The driving path can be adjusted during each dragging process, and it can also be adjusted after the dragging operation is completed, which is not limited here.
[0064] Since the adjustment process is performed by operating the circular icon on the first page, taking the mouse operation as an example, the electronic device monitors the mouse press event, and when the left button of the mouse is clicked, it is determined whether there is a track icon at the click position. If so, the track is recorded and the original path O is backed up. At this time, it means that the path editing mode has been entered, and the mouse moving event and mouse lifting event will be monitored.
[0065] Exemplarily, during a dragging process, the track corresponding to the starting position Ps is called the first track Ks, and the track corresponding to the ending position Pc is called the second track Kc. That is, during this dragging process, the first track is dragged to the position of the second track.
[0066] In order to determine that the position where the mouse is clicked is the position of the stock track icon, if the stock track icon is represented by a circle, it can be determined by judging whether the position where the mouse is clicked is within the circumscribed rectangle of the circle. Specifically, it can be determined by the following formula:
[0067] The abscissa of the circumscribed rectangle of track i is:
[0068] The abscissa of the circumscribed rectangle of track i is:
[0069] The width of the circumscribed rectangle of track i:
[0070] The height of the circumscribed rectangle of track i:
[0071] in, represents the horizontal coordinate of track i, It represents the vertical coordinate of track i, R is the radius of the circular icon representing track i, and 1 is the width of the circumscribed rectangular line, which can be set flexibly.
[0072] When the following conditions are met, the mouse click position is within the track Ki icon.
[0073]
[0074] Where Px Represents the horizontal coordinate of the mouse position Ps, P y Represents the vertical coordinate of the mouse position Ps.
[0075] In S203, the travel path corresponding to the first line segment is adjusted according to the track type corresponding to the starting point and the relationship between the end point and the first line segment.
[0076] Specifically, the starting point of the dragging operation is the first track, and the end point of the dragging operation is the second track. Adjusting the driving path corresponding to the first line segment can be achieved in the following manner: adjusting the driving path corresponding to the first line segment according to the type of the first track and the relationship between the second track and the driving path corresponding to the first line segment.
[0077] Among them, the types include starting track, passing track and midpoint track; adjustments include modifying the starting track, increasing or decreasing the passing track, and modifying the midpoint track.
[0078] For example, during the process of adjusting the driving route, the following situations are mainly included:
[0079] The first case: the type of the first track is the starting track in the driving path.
[0080] That is to say, during a drag process, the user clicks the icon of the starting track. Figure 3 A flow chart of a method for adjusting a driving path provided in an embodiment of the present application.
[0081] S301: Determine whether the second track is any track in the driving path, if so, execute S302, otherwise execute S303.
[0082] The second track is the position where the dragging stops, and the second track may be any track in the driving path, or may be another track that does not belong to the driving path. Therefore, different processing is performed for different second tracks.
[0083] S302: If the second track is a track that is adjacent to the first track and belongs to the travel path, the starting track in the travel path is deleted, and the second track is used as the starting track in the travel path.
[0084] In this case, the first track is the starting track in the driving path, that is, track S1. When the second track is an adjacent track of the first track, the adjacent track includes two tracks, one of which belongs to the driving path and the other does not belong to the driving path. Here, it refers to the track belonging to the driving path, that is, the second track is track S2. With this design, the result of the dragging operation makes the first track overlap with the second track. Therefore, the starting track in the driving path is deleted, and the second track is used as the starting track in the driving path.
[0085] S303: Determine whether the first track is directly connected to the second track. If so, execute S304; otherwise, execute S305.
[0086] If the second track is not any track in the driving path, at this time, the adjustment strategy for the driving path can be determined according to whether the first track is directly connected to the second track.
[0087] Among them, whether the first track and the second track are directly connected can be determined in the following way:
[0088] The connection result of the first track and the second track is compared with the preset target path. If there is a direct line connecting the two tracks in the target path, it is determined that the two tracks can be directly connected. The target path here refers to the path represented by the directed graph formed by all tracks according to the driving direction. Each track can be regarded as a vertex and each connection relationship as an edge. The DijKstra shortest path algorithm can be used to search for the shortest path from one track to another.
[0089] S304: Set the second track as the starting track in the travel path.
[0090] If the first track is directly connected to the second track, the second track can be inserted before the starting point in the travel path as a new starting track. In other words, the starting point is modified and the travel path is extended.
[0091] S305: Determine whether the adjacent track of the first track is directly connected to the second track. If so, execute S306.
[0092] If the first track is not directly connected to the second track, the direct connection between the adjacent track of the first track (that is, track S2) and the second track is further determined.
[0093] S306: Delete the starting track in the driving path, and use the second track as the starting track in the driving path.
[0094] If the adjacent track of the first track (ie, track S2) is directly connected to the second track, the starting track in the travel path is deleted, and the second track is used as a new starting track in the travel path.
[0095] Figure 4 A schematic diagram of modifying a shortened path in a starting track provided in an embodiment of the present application, Figure 4 (a) means before adjustment. Figure 4 (b) in the figure is after adjustment. Figure 5 A method provided in the embodiment of the present application Figure 4 The corresponding train running time diagram, Figure 5 (a) means before adjustment. Figure 5 (b) in the figure is after adjustment.
[0096] In the second case, the type of the first track is the terminal track in the travel path.
[0097] That is to say, during a drag process, the user clicks the icon of the end track. Figure 6 A flow chart of a method for adjusting a driving path provided in an embodiment of the present application.
[0098] S601: Determine whether the second track is any track in the driving path, if so, execute S602, otherwise execute S606.
[0099] The second track is the position where the dragging stops, and the second track may be any track in the driving path, or may be another track that does not belong to the driving path. Therefore, different processing is performed for different second tracks.
[0100] S602: If the second track is a track that is adjacent to the first track and belongs to the travel path, delete the terminal track in the travel path and use the second track as the terminal track in the travel path.
[0101] In this case, the first track is the terminal track in the travel path, that is, track Sn. When the second track is an adjacent track of the first track, the adjacent track includes two tracks, one of which belongs to the travel path and the other does not belong to the travel path. Here, it refers to the track belonging to the travel path, that is, the second track is track Sn-1. With this design, the result of the dragging operation makes the first track overlap with the second track. Therefore, the terminal track in the travel path is deleted, and the second track is used as the terminal track in the travel path.
[0102] S603: Determine whether the first track is directly connected to the second track. If so, execute S604; otherwise, execute S605.
[0103] If the second track is not any track in the driving path, at this time, the adjustment strategy for the driving path can be determined according to whether the first track is directly connected to the second track.
[0104] S604: Set the second track as the end track in the travel path.
[0105] If the first track is directly connected to the second track, the second track can be inserted before the end point in the travel path as a new end track, that is, the end point is modified and the travel path is extended.
[0106] S605: Determine whether the adjacent track of the first track is directly connected to the second track. If so, execute S606.
[0107] If the first branch track is not directly connected to the second branch track, the direct connection between the adjacent branch track of the first branch track (that is, Sn-1) and the second branch track is further determined.
[0108] S606: Delete the terminal track in the travel path, and use the second track as the terminal track in the travel path.
[0109] If the adjacent track of the first track (ie Sn-1) is directly connected to the second track, the terminal track in the travel path is deleted, and the second track is used as the new terminal track in the travel path.
[0110] Figure 7 A schematic diagram of modifying a shortened path in a terminal track provided in an embodiment of the present application. Figure 8 A method provided in the embodiment of the present application Figure 7 Schematic diagram of the corresponding train running time. Figure 7 (a) means before adjustment. Figure 7 (b) in the table is after adjustment; Figure 8 (a) means before adjustment. Figure 8 (b) in the figure is after adjustment.
[0111] Fig. 9 A schematic diagram of modifying an extension path in a terminal track provided in an embodiment of the present application. Fig.10 A method provided in the embodiment of the present application Fig. 9 Schematic diagram of the corresponding train running time. Fig. 9 (a) means before adjustment. Fig. 9 (b) in the table is after adjustment; Fig.10 (a) means before adjustment. Fig.10 (b) in the figure is after adjustment.
[0112] In a third case, the type of the first track is a passing track in the driving path.
[0113] Fig.11 A flow chart of a method for modifying a route track provided in an embodiment of the present application.
[0114] S1101: Determine that the second track is not any track in the driving path.
[0115] During normal train travel, within the route section, all the stop-type tracks are in the travel route. Therefore, when the second track is not any track in the travel route, the second track is usually a non-stop type track, that is, a track used for train merging and track change.
[0116] S1102: If the first track is directly connected to the second track, and the track below the first track is directly connected to the second track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track below the first track.
[0117] Assume that the first track is represented by Ks and the second track is represented by Kc. If Ks is directly connected to Kc and Ks+1 is directly connected to Kc, Kc is inserted into the driving path and the insertion position is between Ks and Ks+1.
[0118] Optionally, in order to ensure that the adjusted driving path can ensure the precise operation of the train, before the second track is inserted into the driving path according to the first position, the first direction formed by the first track and the second track, and the second direction formed by the second track and the next track of the first track are determined to be consistent with the directions of the driving path respectively.
[0119] That is, the first direction from Ks to Kc and the second direction from Kc to Ks+1 are respectively consistent with the directions of the driving path. Such a design can ensure that the newly added track does not affect the direction of the driving path.
[0120] S1103: If the first track is directly connected to the second track, and the second track is directly connected to the track above the first track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track above the first track.
[0121] If Ks is directly connected to Kc, and Ks-1 is directly connected to Kc, Kc is inserted into the driving path, and the insertion position is between Ks-1 and Ks.
[0122] Optionally, in order to ensure that the adjusted driving path can ensure the precise operation of the train, before inserting the second track into the driving path according to the second position, determine that the third direction formed by the upper track of the first track and the second track, and the fourth direction formed by the second track and the first track are consistent with the directions of the driving path respectively.
[0123] That is to say, the third direction from Ks-1 to Kc and the second direction from Kc to Ks are respectively consistent with the directions of the driving path. Such a design can ensure that the newly added track does not affect the direction of the driving path.
[0124] Fig.12 A schematic diagram of an extended path in a modified route track provided in an embodiment of the present application. Fig.13 A method provided in the embodiment of the present application Fig.12 Schematic diagram of the corresponding train running time. Fig.12 (a) means before adjustment. Fig.12 (b) in the table is after adjustment; Fig.13(a) means before adjustment. Fig.13 (b) in the figure is after adjustment.
[0125] In S204, after detecting that the drag operation is completed, the adjusted first line segment is displayed.
[0126] Among them, if the mouse release operation is detected, or the human hand or touch pen is detected to leave the display screen, it means that the drag operation is ended. At this time, the adjusted first line segment can be displayed in the train operation diagram of the first page.
[0127] In addition, if the newly added track is a stop-type track, the planned arrival time and planned departure time of the newly added track can be determined based on the stop time scale and the interval operation time scale, so as to further improve the adjusted driving route.
[0128] Among them, when the train is running normally, the operation schedule is also an important factor. In order to make the adjusted driving route more perfect, when there is a track change, the type of the newly added track is determined. If it is a non-stop track, no processing is required; if it is a stop track, the planned arrival time and planned departure time of the newly added track can be determined according to the pre-set armistice time scale and the pre-set interval operation time scale. Exemplarily, the planned arrival time and planned departure time can also be displayed on the train operation diagram.
[0129] For example, in a train or subway scenario, for example, if train number 102 is from station A to station F, then the previous train number 101 is from station F to station A, and the next train number is from station F to station A. Therefore, in order to achieve closed-loop operation, the adjusted driving path is verified. Fig.14 A flow chart of a method for verifying an adjusted driving path provided in an embodiment of the present application.
[0130] In addition to adjusting the train number after the mouse is lifted, you can also make a corresponding adjustment to the train number each time a track is adjusted while the mouse is moved, and no further adjustments will be made after the mouse is lifted.
[0131] S1401: After detecting that the dragging operation is completed, determine whether the adjusted driving path conflicts with other paths. If so, execute S1402; otherwise, execute S1403.
[0132] Since there are trains ahead and behind during the running process, in order to ensure the closed loop, it is also necessary to determine whether the adjusted driving path conflicts with other paths. The conflict here means that the paths of the two paths overlap in the same time period.
[0133] Among them, the other paths include the first path of the previous train and the second path of the next train associated with the driving path; the terminal track of the first path is the same track as the starting track of the driving path, and the time when the previous train plans to enter the terminal track of the first path is earlier than the time when the target train plans to exit the terminal track of the driving path; and the stop time is greater than or equal to the stop time of the terminal track of the first path.
[0134] The starting track of the second path and the terminal track of the travel path are the same track, and the time when the subsequent train is scheduled to leave the terminal track of the second path is later than the time when the target train is scheduled to enter the starting track of the travel path; and the stop time is greater than or equal to the stop time of the terminal track of the second path.
[0135] S1402: Keep the first line segment in the train operation diagram unchanged.
[0136] For example, the target train number is train number 102, the starting track of the driving route is track number 5, and the departure time is 9:00; the previous train number is train number 101, the terminal track of the first path is track number 5, the arrival time is earlier than 9:00, and it stops according to the parking schedule planned for the first path, and the stop time is greater than or equal to the stop time of the terminal track of the first path. In this case, if the starting track of the driving route is adjusted, it will conflict with the first path of the previous train, and it is determined that the starting track of the driving route cannot be modified.
[0137] Similarly, there is a situation where the adjusted driving route conflicts with the second route of the next train. In this case, the terminal track of the driving route cannot be modified, which will not be elaborated here.
[0138] S1403: Update the first line segment in the train operation diagram according to the adjusted travel path.
[0139] In the embodiment of the present application, the adjustment process of the travel path of a target train is used as an example for explanation. In the actual application process, the travel path in the train operation diagram can be updated according to the adjusted travel path, so as to display the modified visualized train operation diagram.
[0140] In the embodiment of the present application, the train operation diagram path information is presented through a simple track map, and the path can be modified in various ways by dragging the mouse, so as to achieve the function of adjusting the planned line on the route map. Specifically, by monitoring the mouse event, the mouse dragging can be intuitively and accurately extended or shortened or the stop track can be modified, and the planned line can be modified in reverse according to the modification of the path, so that the planned line can be adjusted through a visual path adjustment method, which is more convenient, accurate and intuitive.
[0141] like Fig.15As shown, based on the same inventive concept, an embodiment of the present application provides a device for adjusting a train travel path, which includes a selection unit 151, a detection unit 152, an adjustment unit 153 and a display unit 154.
[0142] The selection unit 151 is used to: determine a first line segment in response to a user's selection operation on the first page; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track in the train operation, each track represents a station, and the first line segment represents a travel path that needs to be adjusted;
[0143] The detection unit 152 is used to: in response to the user's dragging operation on any point on the first line segment, detect the starting point and the end point of the dragging operation;
[0144] The adjusting unit 153 is used to adjust the travel path corresponding to the first line segment according to the track type corresponding to the starting point and the relationship between the end point and the first line segment;
[0145] The display unit 154 is configured to display the adjusted first line segment after detecting that the drag operation is finished.
[0146] In a possible implementation manner, the starting point of the dragging operation is the first track; the end point of the dragging operation is the second track;
[0147] The adjustment unit 153 is specifically used for:
[0148] According to the type of the first track and the relationship between the second track and the driving path corresponding to the first line segment, the driving path corresponding to the first line segment is adjusted.
[0149] In a possible implementation manner, if the type of the first track is a starting track in the driving path, the adjustment unit 153 is specifically configured to:
[0150] If the second track is a track that is adjacent to the first track and belongs to the travel path, the starting track in the travel path is deleted, and the second track is used as the starting track in the travel path;
[0151] If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the starting track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the starting track in the driving path and use the second track as the starting track in the driving path.
[0152] In a possible implementation manner, if the type of the first track is a terminal track in the driving path, the adjustment unit 153 is specifically configured to:
[0153] If the second track is a track that is adjacent to the first track and belongs to the travel path, the end track in the travel path is deleted, and the second track is used as the end track in the travel path;
[0154] If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the terminal track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the terminal track in the driving path and set the second track as the terminal track in the driving path.
[0155] In a possible implementation manner, if the second track is not any track in the driving path, the adjusting unit 153 is specifically configured to:
[0156] If the first track is directly connected to the second track, and the track below the first track is directly connected to the second track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track below the first track;
[0157] If the first track is directly connected to the second track, and the second track is directly connected to the track above the first track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track above the first track.
[0158] In a possible implementation manner, before inserting the second track into the driving path, the adjustment unit 153 is further used to:
[0159] Determine that a first direction formed by the first track and the second track, and a second direction formed by the second track and the track next to the first track, are respectively consistent with directions of the travel path;
[0160] Determine that a third direction formed by an upper track of the first track and the second track, and a fourth direction formed by the second track and the first track are respectively consistent with the directions of the driving path.
[0161] In a possible implementation, the system further includes a conflict detection unit, which is configured to:
[0162] Determine whether the adjusted driving path conflicts with other paths; wherein the other paths include a first path of a previous train and a second path of a subsequent train associated with the driving path;
[0163] If there is no conflict, the first line segment in the train operation diagram is updated according to the adjusted travel path;
[0164] If there is a conflict, the first line segment in the train operation diagram remains unchanged;
[0165] The terminal track of the first path is the same track as the starting track of the travel path, and the time when the previous train is scheduled to enter the terminal track of the first path is earlier than the time when the target train is scheduled to leave the terminal track of the travel path;
[0166] The starting track of the second path and the terminal track of the travel path are the same track, and the time when the subsequent train is scheduled to leave the terminal track of the second path is later than the time when the target train is scheduled to enter the starting track of the travel path.
[0167] In a possible implementation manner, the conflict detection unit is further configured to:
[0168] If the adjusted driving route conflicts with the first route of the previous train, the starting track of the driving route cannot be modified;
[0169] If the adjusted driving route conflicts with the second route of the next train, the terminal track of the driving route is determined to be unmodifiable.
[0170] In a possible implementation manner, the device further includes a time updating unit, which is used to:
[0171] Based on the stop time scale and section operation time scale, determine the planned arrival time and departure time of the newly added track.
[0172] Since the device is the device in the method in the embodiment of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0173] like Fig.16 As shown, based on the same inventive concept, an embodiment of the present application provides an electronic device, including a data transmission unit 1601 and a processor 1602;
[0174] The data transmission unit 1601 is configured to execute:
[0175] Obtaining a train operation diagram consisting of at least one line segment;
[0176] The processor 1602 is configured to execute:
[0177] In response to a user's selection operation on the first page, a first line segment is determined; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during the train operation, each track represents a station, and the first line segment represents a travel path that requires track adjustment;
[0178] In response to a user's dragging operation on any point on the first line segment, detecting a starting point and an end point of the dragging operation;
[0179] According to the track type corresponding to the starting point and the relationship between the end point and the first line segment, the travel path corresponding to the first line segment is adjusted;
[0180] After detecting that the drag operation is finished, the adjusted first line segment is displayed.
[0181] In a possible implementation manner, the starting point of the dragging operation is the first track; the end point of the dragging operation is the second track;
[0182] The processor 1602 is specifically configured to execute:
[0183] According to the type of the first track and the relationship between the second track and the driving path corresponding to the first line segment, the driving path corresponding to the first line segment is adjusted.
[0184] In a possible implementation manner, if the type of the first track is a starting track in the driving path, the processor 1602 is specifically configured to execute:
[0185] If the second track is a track that is adjacent to the first track and belongs to the travel path, the starting track in the travel path is deleted, and the second track is used as the starting track in the travel path;
[0186] If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the starting track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the starting track in the driving path and use the second track as the starting track in the driving path.
[0187] In a possible implementation manner, if the type of the first track is a terminal track in the driving path, the processor 1602 is specifically configured to execute:
[0188] If the second track is a track that is adjacent to the first track and belongs to the travel path, the end track in the travel path is deleted, and the second track is used as the end track in the travel path;
[0189] If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the terminal track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the terminal track in the driving path and set the second track as the terminal track in the driving path.
[0190] In a possible implementation manner, if the second track is not any track in the driving path, the processor 1602 is specifically configured to execute:
[0191] If the first track is directly connected to the second track, and the track below the first track is directly connected to the second track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track below the first track;
[0192] If the first track is directly connected to the second track, and the second track is directly connected to the track above the first track, the second track is inserted into the driving path, and the insertion position of the second track is between the first track and the track above the first track.
[0193] In a possible implementation, before inserting the second track into the driving path, the processor 1602 is further configured to execute:
[0194] Determine that a first direction formed by the first track and the second track, and a second direction formed by the second track and the track next to the first track, are respectively consistent with directions of the travel path;
[0195] Determine that a third direction formed by an upper track of the first track and the second track, and a fourth direction formed by the second track and the first track are respectively consistent with the directions of the driving path.
[0196] In a possible implementation, after adjusting the travel path according to the first track and the second track, the processor 1602 is further configured to execute:
[0197] Determine whether the adjusted driving path conflicts with other paths; wherein the other paths include a first path of a previous train and a second path of a subsequent train associated with the driving path;
[0198] If there is no conflict, the first line segment in the train operation diagram is updated according to the adjusted travel path;
[0199] If there is a conflict, the first line segment in the train operation diagram remains unchanged;
[0200] The terminal track of the first path is the same track as the starting track of the travel path, and the time when the previous train is scheduled to enter the terminal track of the first path is earlier than the time when the target train is scheduled to leave the terminal track of the travel path;
[0201] The starting track of the second path and the terminal track of the travel path are the same track, and the time when the subsequent train is scheduled to leave the terminal track of the second path is later than the time when the target train is scheduled to enter the starting track of the travel path.
[0202] In a possible implementation, the processor 1602 is further configured to execute:
[0203] If the adjusted driving route conflicts with the first route of the previous train, the starting track of the driving route cannot be modified;
[0204] If the adjusted driving route conflicts with the second route of the next train, the terminal track of the driving route is determined to be unmodifiable.
[0205] In a possible implementation, the processor 1602 is further configured to execute:
[0206] Based on the stop time scale and section operation time scale, determine the planned arrival time and departure time of the newly added track.
[0207] An embodiment of the present application further provides a computer storage medium, in which computer program instructions are stored. When the instructions are executed on a computer, the computer executes the steps of the above-mentioned method for adjusting the train travel path.
[0208] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0209] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0210] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0211] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0212] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for adjusting a train travel path, characterized in that: include: In response to a user's selection operation on the first page, determining a first line segment; The first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track in the train operation, each track represents a station, and the first line segment represents a travel path that requires track adjustment; In response to a user dragging operation on any point on the first line segment, detecting a starting point and an end point of the dragging operation; According to the track type corresponding to the starting point and the relationship between the end point and the first line segment, adjusting the travel path corresponding to the first line segment; After detecting that the dragging operation is finished, the adjusted first line segment is displayed.
2. The method according to claim 1, characterized in that: The starting point of the dragging operation is the first track; the end point of the dragging operation is the second track; The adjusting the travel path corresponding to the first line segment according to the track type corresponding to the starting point and the relationship between the end point and the first line segment includes: The driving path corresponding to the first line segment is adjusted according to the type of the first track and the relationship between the second track and the driving path corresponding to the first line segment.
3. The method according to claim 2, characterized in that If the type of the first track is the starting track in the driving path, adjusting the driving path corresponding to the first line segment according to the track type of the first track and the relationship between the second track and the driving path corresponding to the first line segment includes: If the second track is a track that is adjacent to the first track and belongs to the travel path, then the starting track in the travel path is deleted, and the second track is used as the starting track in the travel path; If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the starting track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the starting track in the driving path and use the second track as the starting track in the driving path.
4. The method according to claim 2, characterized in that: If the type of the first track is the terminal track in the driving path, adjusting the driving path corresponding to the first line segment according to the track type of the first track and the relationship between the second track and the driving path corresponding to the first line segment includes: If the second track is a track that is adjacent to the first track and belongs to the travel path, then deleting the end track in the travel path and using the second track as the end track in the travel path; If the second track is not any track in the driving path, determine whether the first track is directly connected to the second track. If so, set the second track as the terminal track in the driving path. Otherwise, determine whether the adjacent track of the first track is directly connected to the second track. If so, delete the terminal track in the driving path and set the second track as the terminal track in the driving path.
5. The method according to claim 2, characterized in that: If the type of the first track is a passing track in the driving path, and the second track is not any track in the driving path, adjusting the driving path corresponding to the first line segment according to the track type of the first track and the relationship between the second track and the driving path corresponding to the first line segment includes: If the first track is directly connected to the second track, and the track next to the first track is directly connected to the second track, inserting the second track into the travel path according to a first position, and the first position is between the first track and the track next to the first track; If the first track is directly connected to the second track, and the second track is directly connected to the track above the first track, the second track is inserted into the driving path according to a second position, and the second position is between the first track and the track above the first track.
6. The method according to claim 5, characterized in that Before inserting the second track into the travel path according to the first position, the method further includes: Determine that a first direction formed by the first track and the second track, and a second direction formed by the second track and a track next to the first track, are respectively consistent with directions of the travel path; Before inserting the second track into the travel path according to the second position, the method further includes: Determine that a third direction formed by an upper track of the first track and the second track, and a fourth direction formed by the second track and the first track are respectively consistent with the directions of the driving path.
7. The method according to claim 1, characterized in that After detecting that the drag operation is finished, the method further includes: Determine whether the adjusted driving path conflicts with other paths; wherein the other paths include a first path of a previous train and a second path of a subsequent train associated with the driving path; If there is no conflict, updating the first line segment in the train operation diagram according to the adjusted travel path; If there is a conflict, the first line segment in the train operation diagram is kept unchanged; The terminal track of the first path is the same track as the starting track of the travel path, and the time when the previous train is scheduled to enter the terminal track of the first path is earlier than the time when the target train is scheduled to leave the terminal track of the travel path; The starting track of the second path and the terminal track of the travel path are the same track, and the time when the subsequent train is scheduled to leave the terminal track of the second path is later than the time when the target train is scheduled to enter the starting track of the travel path.
8. The method according to claim 7, characterized in that The method further comprises: If the adjusted driving path conflicts with the first path of the previous train, it is determined that the starting track of the driving path cannot be modified; If the adjusted driving path conflicts with the second path of the next train, it is determined that the terminal track of the driving path cannot be modified.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Based on the stop time scale and section operation time scale, determine the planned arrival time and departure time of the newly added track.
10. An electronic device, characterized in that: including a data transmission unit and a processor; The data transmission unit is configured to execute: Obtaining a train operation diagram consisting of at least one line segment; The processor is configured to perform: In response to a user's selection operation on a first page, a first line segment is determined; the first page includes a train operation diagram consisting of at least one line segment, each line segment represents a travel path, each line segment consists of at least two points, each point represents a track during train operation, each track represents a station, and the first line segment represents a travel path that requires track adjustment; In response to a user dragging operation on any point on the first line segment, detecting a starting point and an end point of the dragging operation; According to the track type corresponding to the starting point and the relationship between the end point and the first line segment, adjusting the travel path corresponding to the first line segment; After detecting that the dragging operation is finished, the adjusted first line segment is displayed.