Guide screen train number combination sorting display method based on self-adaptive strategy
Through adaptive strategy scoring and sorting algorithms, the train display sequence is dynamically adjusted, which solves the problem of information flooding in peak periods of traditional sorting algorithms, realizes user-friendly information display and efficient resource utilization, and adapts to changes in the transportation system.
Patent Information
- Application Number
- CN202411000748.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional vehicle sorting algorithms are difficult to meet diverse and personalized needs, especially during peak hours, important vehicle information may be overwhelmed by conventional vehicle information, affecting passengers to quickly obtain key information.
The train combination sorting method based on adaptive strategy is adopted. By automatically collecting train data, rating according to time urgency and status priority, combining the display screen display capability and the number of trains to station, the display sequence is dynamically adjusted to achieve custom sorting.
Improve user experience, ensure that passengers quickly locate car information of car information, maximize screen space, improve information display efficiency, have flexibility and real-time response capabilities, and adapt to dynamic changes in the transportation system.
Smart Images

Figure CN118991874A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information display, and in particular to a method for displaying train combination sorting on a guide screen based on an adaptive strategy. Background Art
[0002] With the increasing complexity of urban transportation systems, how to efficiently and orderly display multiple train information within the limited guidance screen space has become one of the key factors in improving passengers' travel experience. Traditional sorting algorithms are often based on fixed rules, such as arranging in order of departure time, which is difficult to meet diverse and personalized needs. Especially during peak hours, important train information may be overwhelmed by a large amount of regular train information, affecting passengers' ability to quickly and accurately obtain key information. Therefore, it is particularly important to develop a custom sorting algorithm that can dynamically adjust the display sequence and combine user needs with system constraints.
[0003] Therefore, people need a guide screen train combination sorting display method based on adaptive strategy to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to provide a guide screen train combination sorting display method based on an adaptive strategy to solve the problems raised in the above background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for displaying train combination sorting on a guide screen based on an adaptive strategy, comprising the following steps:
[0006] S1: Automatically collect train data. When a train is delayed, it collects the delay information in real time and automatically corrects the collected train data.
[0007] S2: Score the train data according to time urgency and status priority respectively; derive the train data guidance priority score by combining the urgency and status priority, and sort the train data according to the guidance priority; derive the train data top method according to the train data score;
[0008] S3: Determine the method of placing the top display according to the actual display capacity of the display screen and the number of trains currently arriving at the station;
[0009] S4: Determine the display content of the display screen based on the train data, the number of top pins and the number of display pages.
[0010] Furthermore, in step S1: the train data includes: train number, real-time train distance to the station time, and train punctuality, delay, suspension and arrival status.
[0011] Further, in step S2: the time urgency of any train indicates the time from any train to the station, which is divided into {0}, (0, N1), [N1, N2), [N2, N3), [N3, N4), [N4, +∞), where {0} indicates that any train has arrived at the station; {N1, N2, N3, N4} are the established time thresholds, N4>N3>N2>N1; according to any train G t Distance to station time D t For G t Rating, when D t = 0, G t Time urgency scorea t =a0; when 0<D t When ≤N1, G t Time urgency scorea t =a1; when N1<D t When ≤N2, G t Time urgency scorea t =a2; when N2<D x When ≤N3, G t Time urgency scorea t =a3; when N3<n t When ≤N4, G t Time urgency scorea t =a4; when D x When ≥N4, G t Time urgency scorea t =a5; where G t For any train number, {a0, a1, a2, a3, a4} is the time urgency score of the given train number, a0>a1>a2>a3>a4; the time priority method tops the train number data, that is, the train number data is selected from high to low according to the time urgency score of the train number;
[0012] Any train number G t The status is divided into: arrival status S1, suspension status S2, delay status S3 and on-time status S4; according to any train number G t Status score S t For G t Rating, when any train G t Status S t =S1, G t Status priority score b t =b1; when any train number G t Status S t = S2, G t Status priority score b t = b2; when any train number G t Status S t= S3, G t Status priority score b t = b3; when any train number G t Status S t = S4, G t Status priority score b t =b4; wherein {b1, b2, b3, b4} are the established train status priority scores, b1>b2>b3>b4; the status priority method tops the train data, i.e., the train data is selected from high to low according to the train status priority scores.
[0013] For any train number G t Time urgency scorea p and status priority score b q Set the weights, set the time urgency weight to K1, and the status priority weight to K2, and you can get the guidance priority score W t :
[0014] W t =K1*a t +K2*b t ;
[0015] Guidance priority sorting is based on the guidance priority score W of the train data t Sort the train data from high to low.
[0016] Further, in step S3: the current number of arriving trains is C1, the number of rows of train data that can be displayed on each display screen is C2, the display screen resource occupancy factor Q=C1 / C2 is calculated, and the resource occupancy factor thresholds Q1 and Q2 are set; when Q<Q1, the train data score is L3 according to the time priority method, the train data score is L1 according to the fixed number of rows method, and the train data score is L2 according to the state priority method; when Q1≤Q≤Q2, the train data score is L2 according to the time priority method, the train data score is L2 according to the fixed number of rows method, and the train data score is L1 according to the state priority method; when Q>Q2, the train data score is L1 according to the time priority method, the train data score is L3 according to the fixed number of rows method, and the train data score is L2 according to the state priority method. The status priority method has a score of L3 for the top train data; among them, {L1, L2, L3} are preset and L1>L2>L3; a weight coefficient k1 is set for the time priority method, a weight coefficient k2 is set for the status priority method, and a weight coefficient k3 is set for the fixed number of rows method. When Q<Q1, the weighted scores of the three methods {k1*L3, k2*L1, k3*L2} are compared, and the method with the highest weighted score is selected to be placed at the top of the train data; when Q1≤Q≤Q2, the weighted scores of the three methods {k1*L2, k2*L2, k3*L1} are compared, and the method with the highest weighted score is selected to be placed at the top of the train data; when Q>Q2, the weighted scores of the three methods {k1*L1, k2*L3, k3*L3} are compared, and the method with the highest weighted score is selected to be placed at the top of the train data.
[0017] Further, in step S4: when the train data is not pinned, the total number of train data to be displayed is n, the number of sections displayed on each page of the display screen is set to k, and the number of rows of train data displayed on each page is r; the maximum number of train data that can be displayed on each page of the display screen is calculated as gc:
[0018] gc = r*k;
[0019] The number of display screen pages that need to display train data is gp, which is the smallest integer that satisfies gp≥α. The number of display screens that are fully occupied by train data is calculated as:
[0020] α = n / gc;
[0021] The i-th train data R that needs to be displayed i Displayed on the display screen, ranked in the cgth page, the yth section, the Ith i Row, calculate I i :
[0022] I i =i-(y-1)*r-(cg-1)*gc;
[0023] Among them, i=1, 2, 3,..., n, y=1, 2, 3,..., k, substitute {i=1, i=2, i=3,..., i=n} to calculate I i , when {I i =1, 2, 3, ..., r} to determine the value of i, that is, the train number data R i Ranked on page cg, section y, item I i row; when there is no {i=1, i=2, i=3, …, i=n} satisfying {I i =1, 2, 3, ..., r}, the yth section of the cgth page is the ith i The line does not display train data;
[0024] Substitute the values of i one by one, sort the train data preliminarily and put them into a new queue in the order of {R1, R2, …, R n}; This sorting is the sorting of train data by the adaptive non-top strategy combination sorting mode.
[0025] The total number of train data to be displayed is n, the number of sections displayed on each page of the display screen is set to k, the number of train data rows displayed on each page is r, the top train data is tc, the section is ranked x among all sections contained in all pages of the display screen, and the current page number is cg; the number of train data that can be displayed on the display screen until section x is pc:
[0026] pc = r * x;
[0027] When tc≥pc, the display screen has 1 page and all the train data displayed are at the top. The actual serial number I0 of the train data is:
[0028] I0=i-(x-1)*r;
[0029] i=1,2,3,…,n,substitute {i=1,i=2,i=3,…,i=n},when tc≥I0>0,store the i-th train data R i Enter a new sorting queue; when tc≥I0>0 is not satisfied, delete the i-th train data;
[0030] When tc<pc, some trains are placed on the top, and combined sorting is required. First, the number of non-top train data on each page, oc, is calculated to meet the following conditions:
[0031] oc = r*x-tC;
[0032] When oc<r, obtain the top train data and perform the first screening on the train data to meet the following conditions:
[0033] I0=i-(x-1)*r;
[0034] When tc≥I0>0 is satisfied, the I0th train data is stored in a new sorting queue; when tc≥I0>0 is not satisfied, the I0th train data is deleted;
[0035] When oc>r, the maximum number of non-top train data that can be displayed on each page of the display screen is:
[0036] ntc = r*k-tc;
[0037] The last non-top train data that can be displayed on the display screen until the xth section of page cg is:
[0038] max = x*r+ntc*(cg-1);
[0039] The last non-top train data that can be displayed on the display screen until the xth section of page {cg-1} is:
[0040] min = max-oc;
[0041] When {i=1, 2, 3, ..., n} satisfies min<i≤max, the i-th train data is added to the combined sorting queue according to the i value from small to large; when min<i≤max is not satisfied, the i-th train data is ignored; the combined sorting queue refers to a queue that sorts the top train data first and then sorts the non-top train data.
[0042] The train data is sorted using an adaptive top-ranking strategy and a combined sorting mode. The algorithm adjusts the layout of the train numbers on the screen in real time under different top-ranking modes and optimizes the sorting mode of the train data according to actual needs.
[0043] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0044] The present invention improves the user experience: through customized pinning and intelligent sorting, it ensures that passengers can quickly locate the train information they are concerned about and reduce the searching time; the present invention makes efficient use of resources: dynamically adjusts the starting sequence number of each page, maximizes the use of screen space and improves the efficiency of information display; the present invention is flexible and scalable: the algorithm design takes into account a variety of factors and sections, and is easy to adjust and expand according to different scenarios and needs; the present invention has real-time response capability: the adaptive strategy can effectively cope with the dynamic changes of the transportation system and ensure the timeliness and accuracy of the information.
[0045] The custom sorting algorithm proposed in the present invention provides an efficient and intelligent solution for displaying train information on the guidance screen, which helps to improve the operating efficiency and service quality of the public transportation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0047] Figure 1 It is a flow chart of a method for displaying train number combination sorting on a guide screen based on an adaptive strategy of the present invention;
[0048] Figure 2 It is a schematic diagram of the existing sorting method;
[0049] Figure 3 It is a schematic diagram of the existing top sorting method;
[0050] Figure 4 It is a schematic diagram of the adaptive strategy-free combination sorting mode;
[0051] Figure 5 It is a schematic diagram of the adaptive top strategy combination sorting mode. DETAILED DESCRIPTION
[0052] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0053] See also Figure 1 The present invention provides a technical solution: a method for displaying train combination sorting on a guide screen based on an adaptive strategy, comprising the following steps:
[0054] S1: Automatically collect train data. When a train is delayed, it collects the delay information in real time and automatically corrects the collected train data.
[0055] S2: Score the train data according to time urgency and status priority respectively; derive the train data guidance priority score by combining the urgency and status priority, and sort the train data according to the guidance priority; derive the train data top method according to the train data score;
[0056] S3: Determine the method of placing the top display according to the actual display capacity of the display screen and the number of trains currently arriving at the station;
[0057] S4: Determine the display content of the display screen based on the train data, the number of top pins and the number of display pages.
[0058] In step S1: the train data includes: train number, real-time train distance to the station time and train punctuality, delay, suspension and arrival status.
[0059] In step S2: the time urgency of any train indicates the time from any train to the station, which is divided into {0}, (0, N1), [N1, N2), [N2, N3), [N3, N4), [N4, +∞), where {0} indicates that any train has arrived; {N1, N2, N3, N4} are the established time thresholds, N4>N3>N2>N1; according to any train G t Distance to station time D t For G t Rating, when D t = 0, G t Time urgency scorea t =a0; when 0<D t When ≤N1, G t Time urgency scorea t =a1; when N1<D t When ≤N2, G t Time urgency scorea t =a2; when N2<D x When ≤N3, G t Time urgency scorea t =a3; when N3<n t When ≤N4, G t Time urgency scorea t =a4; when D x When ≥N4, G t Time urgency scorea t =a5; where G t For any train number, {a0, a1, a2, a3, a4} is the time urgency score of the given train number, a0>a1>a2>a3>a4; the time priority method tops the train number data, that is, the train number data is selected from high to low according to the time urgency score of the train number;
[0060] Any train number G t The status is divided into: arrival status S1, suspension status S2, delay status S3 and on-time status S4; according to any train number G t Status score S t For G t Rating, when any train G t Status S t =S1, G t Status priority score b t =b1; when any train number G t Status S t = S2, G t Status priority score b t = b2; when any train number G t Status S t = S3, Gt Status priority score b t = b3; when any train number G t Status S t = S4, G t Status priority score b t =b4; wherein {b1, b2, b3, b4} are the established train status priority scores, b1>b2>b3>b4; the status priority method tops the train data, i.e., the train data is selected from high to low according to the train status priority scores.
[0061] For any train number G t Time urgency scorea p and status priority score b q Set the weights, set the time urgency weight to K1, and the status priority weight to K2, and you can get the guidance priority score W t :
[0062] W t =K1*a t +K2*b t ;
[0063] Guidance priority sorting is based on the guidance priority score W of the train data t Sort the train data from high to low.
[0064] In step S3: the number of trains currently arriving at the station is C1, the number of rows of train data that can be displayed on each page of the display screen is C2, the display screen resource occupancy factor Q=C1 / C2 is calculated, and the resource occupancy factor thresholds Q1 and Q2 are set; when Q<Q1, the train data score is L3 according to the time priority method, the train data score is L1 according to the fixed number of rows method, and the train data score is L2 according to the state priority method; when Q1≤Q≤Q2, the train data score is L2 according to the time priority method, the train data score is L2 according to the fixed number of rows method, and the train data score is L1 according to the state priority method; when Q>Q2, the train data score is L1 according to the time priority method, the train data score is L3 according to the fixed number of rows method, and the train data score is L2 according to the state priority method The first method sets the train data to the top with a score of L3; among which {L1, L2, L3} are pre-set and L1>L2>L3; set a weight coefficient k1 for the time priority method, set a weight coefficient k2 for the state priority method, and set a weight coefficient k3 for the fixed number of rows method; compare the weighted scores {k1*L3, k2*L1, k3*L2} of the three methods when Q<Q1, and select the method with the highest weighted score to set the train data to the top; compare the weighted scores {k1*L2, k2*L2, k3*L1} of the three methods when Q1≤Q≤Q2, and select the method with the highest weighted score to set the train data to the top; compare the weighted scores {k1*L1, k2*L3, k3*L3} of the three methods when Q>Q2, and select the method with the highest weighted score to set the train data to the top.
[0065] In step S4: when the train data is not pinned, the total number of train data to be displayed is n, the number of sections displayed on each page of the display screen is set to k, and the number of rows of train data displayed on each page is r; the maximum number of train data that can be displayed on each page of the display screen is calculated as gc:
[0066] gc = r*k;
[0067] The number of display screen pages that need to display train data is gp, which is the smallest integer that satisfies gp≥α. The number of display screens that are fully occupied by train data is calculated as:
[0068] α = n / gc;
[0069] The i-th train data R that needs to be displayed i Displayed on the display screen, ranked in the cgth page, the yth section, the Ith i Row, calculate I i :
[0070] I i =i-(y-1)*r-(cg-1)*gc;
[0071] Among them, i=1, 2, 3,..., n, y=1, 2, 3,..., k, substitute {i=1, i=2, i=3,..., i=n} to calculate I i , when {I i =1, 2, 3, ..., r}, determine the value of i, that is, the train number data Ri is ranked in the cgth page, the yth section, the ith i row; when there is no {i=1, i=2, i=3, …, i=n} that satisfies {Ii=1, 2, 3, …, r}, the yth section of the cgth page is ranked as the ith i The line does not display train data;
[0072] Substitute the values of i one by one, sort the train data preliminarily and put them into a new queue in the order of {R1, R2, …, R n}; This type of sorting is to sort the train data using an adaptive non-top strategy combination sorting mode.
[0073] The total number of train data to be displayed is n, the number of sections displayed on each page of the display screen is set to k, the number of train data rows displayed on each page is r, the top train data is tc, the section is ranked x among all sections contained in all pages of the display screen, and the current page number is cg; the number of train data that can be displayed on the display screen until section x is pc:
[0074] pc = r * x;
[0075] When tc≥pc, the display screen has 1 page and all the train data displayed are at the top. The actual serial number I0 of the train data is:
[0076] I0=i-(x-1)*r;
[0077] i=1,2,3,…,n,substitute {i=1,i=2,i=3,…,i=n},when tc≥I0>0,store the i-th train data R i Enter a new sorting queue; when tc≥I0>0 is not satisfied, delete the i-th train data;
[0078] When tc<pc, some trains are placed on the top, and combined sorting is required. First, the number of non-top train data on each page, oc, is calculated to meet the following conditions:
[0079] oc = r*x-tc;
[0080] When oc<r, obtain the top train data and perform the first screening on the train data to meet the following conditions:
[0081] I0=i-(x-1)*r;
[0082] When tc≥I0>0 is satisfied, the I0th train data is stored in a new sorting queue; when tc≥I0>0 is not satisfied, the I0th train data is deleted;
[0083] When oc>r, the maximum number of non-top train data that can be displayed on each page of the display screen is:
[0084] ntc = r*k-tc;
[0085] The last non-top train data that can be displayed on the display screen until the xth section of page cg is:
[0086] max = x*r+ntc*(cg-1);
[0087] The last non-top train data that can be displayed on the display screen until the xth section of page {cg-1} is:
[0088] min = max-oc;
[0089] When {i=1, 2, 3, ..., n} satisfies min<i≤max, the i-th train data is added to the combined sorting queue according to the i value from small to large; when min<i≤max is not satisfied, the i-th train data is ignored; the combined sorting queue refers to a queue that sorts the top train data first and then sorts the non-top train data.
[0090] Example 1: The train data is sorted according to the adaptive non-top strategy combination sorting mode proposed by the present invention. The total number of train data is n=18, the display screen has k=3 blocks per page, and the display screen has r=5 rows. The train data of the y=1 block on the first page is retrieved according to the method proposed by the present invention, and the calculation is performed:
[0091] gc=r*k=5*3=15;
[0092]
[0093] gp=2;
[0094] Substitute {i=1, i=2, i=3,…, i=18}:
[0095] I i =i-(y-1)*r-(cg-1)*gc;
[0096] The results show that when i = {1, 2, 3, 4, 5}, {I i =1,2,3,4,5}, in Figure 2In the page turning mode of the existing sorting diagram, adaptive combination sorting is adopted. The three different layouts will be linked to turn pages as a whole, and the mode layout will be restored in only one page turning interval, which improves the display efficiency by 4 times. The actual effect is as follows Figure 4 shown.
[0097] Example 2: Sort the train data according to the adaptive top strategy combination sorting mode proposed by the present invention, the total number of train data n = 18, the display screen blocks k = 3 per page, the display screen rows r = 5, and the top number tc = 4. According to the method proposed by the present invention, call out the train data of the x = 2 block on the cg = 2 page; the calculation steps are:
[0098] pc = r * x = 5 * 2 = 10;
[0099] If the condition tc≤pc is met, that is, the train number data is placed at the top, calculate oc:
[0100] oc = r*x-tc = 5*2-4 = 6;
[0101] If oc>r is satisfied, the maximum number of non-top train data that can be displayed on each page of the display screen, ntc, is:
[0102] ntc=r*k-tc=11;
[0103] The last non-top train data that can be displayed on the display screen until the xth section of page cg is:
[0104] max = x*r + ntc*(cg-1) = 21;
[0105] The last non-top train data that can be displayed on the display screen until the xth section of page (cg-1) is:
[0106] min=max-oc=16;
[0107] i satisfies {i=1,2,3,…,18} and 21≥i>16, so the second section of page 2 displays {17,18}. The section displays Figure 5 To solve Figure 3 The existing top-ranking sorting diagram has the problems of repeated top-ranking and low layout utilization. First, the layouts are combined, and the top-ranking sorting algorithm is first executed on the combined layouts to obtain the serial numbers of all top-ranking plans, and then the non-top-ranking train plans are re-combined and sorted, thereby improving the display efficiency of the display screen.
[0108] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for displaying train number combinations on a guide screen based on an adaptive strategy, characterized in that: It includes the following steps: S1: Automatically collect train number data. When the train is on or behind schedule, collect the on-schedule or behind-schedule information in real time and automatically correct the collected train number data; S2: Score the train number data according to the time urgency and status priority respectively; Combine the urgency and status priority to obtain the guiding priority score of the train number data, and sort the train number data according to the guiding priority; Obtain the method of pinning the train number data according to the score of the train number data; S3: Determine the pinning method according to the actual display capacity of the display screen and the number of currently arriving trains; S4: Synthesize the train number data, the number of pinned items and the number of display pages to determine the display content of the display screen.
2. According to the method of claim 1, the method is characterized by: In step S1: The train number data includes: train number, train time urgency and train status.
3. According to the method of claim 1, the method is characterized by: In step S2: the time urgency of any train indicates the time from any train to the station, which is divided into {0}, (0, N1), [N1, N2), [N2, N3), [N3, N4), [N4, +∞), where {0} indicates that any train has arrived; {N1, N2, N3, N4} are the established time thresholds, N4>N3>N2>N1; according to any train G t Distance to station time D t For G t Rating, when D t = 0, G t Time urgency scorea t =a0; when 0 <D t When ≤N1, G t Time urgency scorea t =a1; when N1<D t When ≤N2, G t Time urgency scorea t =a2; when N2<D x When ≤N3, G t Time urgency scorea t =a3; when N3 <n t When ≤N4, G t Time urgency scorea t =a4; when D x When ≥N4, G t Time urgency scorea t =a5; where G t For any train number, {a0, a1, a2, a3, a4} is the time urgency score of the given train number, a0>a1>a2>a3>a4.
4. According to the method of claim 3, the method is characterized by: In step S2: any train number G t The status is divided into: arrival status S1, suspension status S2, delay status S3 and on-time status S4; according to any train number G t Status score S t For G t Rating, when any train G t Status S t =S1, G t Status priority score b t = b1; when any train number G t Status S t = S2, G t Status priority score b t = b2; when any train number G t Status S t = S3, G t Status priority score b t = b3; when any train number G t Status S t = S4, G t Status priority score b t =b4; where {b1, b2, b3, b4} is the established train status priority score, b1>b2>b3>b4.
5. According to the method of claim 4, the method is characterized by: In step S2: for any train number G t Time urgency scorea p and status priority score b q Set the weights, set the time urgency weight to K1, and the status priority weight to K2, and you can get the guidance priority score W t : IN t =K1*a t +K2*b t 。 6. The method for displaying train number combinations on a guide screen based on an adaptive strategy according to claim 1 is characterized by: In step S3: The number of currently arriving trains is C1, and the number of rows of train number data that can be displayed on each page of the display screen is C2. Calculate the display screen resource occupancy factor Q = C1 / C2, and set the resource occupancy factor thresholds Q1 and Q2; When Q < Q1, the score for pinning train number data by the time priority method is L3, the score for pinning train number data by the fixed number of rows method is L1, and the score for pinning train number data by the status priority method is L2; When Q1 ≤ Q ≤ Q2, the score for pinning train number data by the time priority method is L2, the score for pinning train number data by the fixed number of rows method is L2, and the score for pinning train number data by the status priority method is L1; When Q > Q2, the score for pinning train number data by the time priority method is L1, the score for pinning train number data by the fixed number of rows method is L3, and the score for pinning train number data by the status priority method is L3; where {L1, L2, L3} are pre-set and L1 > L2 > L3; Set the weight coefficient k1 for the time priority method, the weight coefficient k2 for the status priority method, and the weight coefficient k3 for the fixed number of rows method. Compare the weighted scores {k1*L3, k2*L1, k3*L2} of the three methods when Q < Q1, and select the method with the highest weighted score to pin the train number data; Compare the weighted scores {k1*L2, k2*L2, k3*L1} of the three methods when Q1 ≤ Q ≤ Q2, and select the method with the highest weighted score to pin the train number data; Compare the weighted scores {k1*L1, k2*L3, k3*L3} of the three methods when Q > Q2, and select the method with the highest weighted score to pin the train number data.
7. The method for displaying train number combinations on a guide screen based on an adaptive strategy according to claim 1 is characterized by: In step S4: When no train number data is pinned, the total number of planned display train number data is n, the number of sections displayed on each page of the display screen is set to k, and the number of rows of train number data displayed on each page is r; Calculate the maximum number gc of train number data that can be displayed on each page of the display screen: gc = r*k; The number of display screen pages gp required to display the train number data is the smallest integer that satisfies gp ≥ α; Calculate the number of display screens occupied by the train number data as: α = n / gc; The i-th train data R that needs to be displayed i Displayed on the display screen, ranked in the cgth page, the yth section, the Ith i Row, calculate I i : I i =i-(y-1)*r-(cg-1)*gc; Among them, i=1, 2, 3,..., n, y=1, 2, 3,..., k, substitute {i=1, i=2, i=3,..., i=n} to calculate I i , when {I i =1, 2, 3, ..., r} to determine the value of i, that is, the train number data R i Ranked on page cg, section y, item I i row; when there is no {i=1, i=2, i=3, …, i=n} satisfying {I i =1, 2, 3, ..., r}, the yth section of the cgth page is the ith i The line does not display train data; Substitute the values of i one by one, sort the train data preliminarily and put them into a new queue in the order of {R1, R2, …, R n }.
8. The method for displaying train number combinations on a guide screen based on an adaptive strategy according to claim 7 is characterized by: In step S4: The total number of train trip data planned to be displayed is n, the number of sections displayed on each page of the display screen is set to k, the number of rows of train trip data displayed on each page is r, the top - pinned train trip data is tc, the section is sorted as x among all sections included in all pages of the display screen, and the current page number is cg; The number of train trip data pc that can be shown until section x on the display screen is: pc = r * x; When tc ≥ pc, there is 1 page on the display screen and all the displayed train trip data is top - pinned. The actual serial number I0 of the train trip data is: I0 = i - (x - 1) * r; i=1,2,3,…,n,substitute {i=1,i=2,i=3,…,i=n},when tc≥I0>0,store the i-th train data R i Enter a new sorting queue; when tc≥I0>0 is not satisfied, delete the i-th train data.
9. The method for displaying train number combinations on a guide screen based on an adaptive strategy according to claim 8 is characterized by: In step S4: When tc < pc, partial top - pinning is satisfied and combined sorting is required. First, calculate the number of non - top - pinned train trip data oc on each page, which satisfies: oC = r * x - tC; When oc < r, obtain the top - pinned train trip data and perform the first screening of the train trip data, which satisfies: I0 = i - (x - 1) * r; When tc ≥ I0 > 0 is satisfied, store the I0 - th train trip data into a new sorting queue; when tc ≥ I0 > 0 is not satisfied, delete the I0 - th train trip data; When oc > r, the maximum number of non - top - pinned train trip data ntc that can be displayed on each page of the display screen is: ntc = r * k - tc; The last non - top - pinned train trip data that can be displayed until the x - th section on the cg - th page of the display screen is: max = x * r + ntc * (cg - 1); The last non - top - pinned train trip data that can be displayed until the x - th section on the (cg - 1) - th page of the display screen is: mmin = max - ocμ When there exists {i = 1, 2, 3,..., n} that satisfies min < i ≤ max, add the i - th train trip data to the combined sorting queue in ascending order of the i value; when min < i ≤ max is not satisfied, ignore the i - th train trip data.
