Vehicle operating drawing drawing method and system
Technical field
The present invention relates to technical field of data processing, particularly a kind of vehicle operating figure side of draftingMethod and system.
Background technology
Along with economic development, urban population sharply expands, and the passenger traffic volume in city expands rapidly, hands overLogical crowded, block and chaotic phenomenon day by day serious, urban track traffic is to overcome the above problemsPreferred plan.
Automatic train monitor (AutomaticTrainSupervision, ATS) is as railOne of most important link in pipeline transportation system, it is the reasonable operation of responsible vehicle not only, andAnd also needing that vehicle actual motion information exchange is crossed to display interface presents to bookkeeping personnelCome, for bookkeeping personnel's various operational processes provide foundation accurately and reliably.
As the important component part of ATS system, service chart be one taking the time as transverse axis, linePosition, road be the longitudinal axis coordinate system draw two-dimentional broken line graph, it by the operation information of vehicle with twoThe mode of dimension broken line shows, to facilitate bookkeeping personnel reading comprehension. According to real-timeDivide, service chart can be divided into static service chart and real time execution figure, and static service chart is operationThe broken line form of plan timetable shows, is about to the operational plan timetable of artificial establishment with operationThe mode of figure shows, and planned train graph, primary train diagram, history run figure all belong to quietState service chart; Real time execution figure is system Real-time Obtaining information of vehicles, and by the information gettingReal-time rendering is to service chart, and real mark service chart belongs to real time execution figure.
Because operational plan timetable is mainly to work out (in planned train graph with table number and running numberThere is no the information of car group number, train of car group number unique identification). Table number one coastiongComplete operational plan, such as: from the starting station → terminus → starting station → terminus → startStanding, is exactly a table number, a similar W type broken line (turnover in the corresponding planned train graph of table numberPlace be generally the starting station or terminus). Follow to terminal, calculate a train number, then fromTerminal is returned, and is exactly another train number. A table number is made up of several running numbers, running numberIn planned train graph corresponding from the starting station to terminal station (or terminal station is to starting station) oneBar broken line.
The method for drafting of current real mark service chart is the same with the method for drafting of static service chart,Also be to draw a broken line taking table number and running number as reference mark, a corresponding broken line of running numberA unique broken line in section. In the time drawing static service chart, this method for drafting is no problem,But real mark service chart is different with static service chart, first it is Real-time Obtaining vehicle letterOn service chart, there is not the plan fortune as static service chart in breath real-time renderingRow timetable can be for contrast reference, and therefore the distortion of real mark service chart must cause real mark service chartReadability decline; Secondly running number likely changes in actual moving process, works as carWhile change for inferior number, will there is following lacking in the real mark service chart that current method for drafting is drawn outFall into, cause real mark service chart distortion (as shown in Figure 1). Such as: 2 cars (car group number 2) ifMoving according to plan the plan of 1 table number, should be such: first go to chemical industry with 1001 train numberStand, then return with 2001 train numbers, then go to chemical industry with 1006 train numbers, then return with 2006,Going to coke-oven plant with 1011 train numbers again finishes. When actual motion, the running number of train is can be byPeople for a change, such as, in the time that 2 cars run 1001 train number, operator is 1006 running numberGiven 3 cars, when No. 2 cars run back, then when going back, 1006 train numbers have been divided,2 cars may be by point 1011 continuation operations. So according to original method for drafting, can be by 1001,2001,1006,2006,1,011 five broken lines that train number is corresponding couple together and draw this operationFigure, so now, 2 and 3 cars, simultaneously in operation, will inevitably cause two broken lines to have and intersect and returnFolding. While drawing real mark service chart according to original method for drafting, may go out real mark service chartIntersect or inflection. As shown in Figure 2,1004 train numbers that table number is 2 are assigned to 10, and (car group number is10) car operation, nearly 1004 runs to while end, and 2004 train numbers that table number is 2 are assigned to17 cars, because 10 cars and 17 cars have running time and space separately, therefore cause at 15:30Between dividing to 15:33,1004 train numbers and 2004 train numbers that table number is 2 appear at service chart simultaneouslyIn, and original drawing practice can be by broken line corresponding 1004 train numbers and folding corresponding to 2004 train numbersLine connects, and has therefore caused the inflection crossover phenomenon that as above figure occurs.
The problems referred to above cause real mark service chart to lose its readability, logicality, are originally used forFacilitate the service chart of the demonstration directly perceived of bookkeeping personnel understanding to become indigestion more.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is: how to avoid train number to change and cause real mark service chartDistortion.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of vehicle operating drawing drawing method,Comprise:
Obtain the real time execution information of all vehicles, described real time execution information comprises: all carsCorresponding table number, running number, positional information, temporal information and car group number;
For each table number, calculate all broken lines that each running number is corresponding, and will belong toTwo broken lines corresponding to running number of identical car group number splice, first fold line segment when splicingAfterbody all identical with the corresponding positional information of head and the temporal information of the second broken line;
Draw all broken lines, to form the broken line that described table number is corresponding, and running number is shownOn the broken line of its all correspondences, in the time that running number occurs to change, on corresponding broken linePoint out out the modification information of running number.
Wherein, calculating all broken lines that each running number is corresponding specifically comprises: according to ATSThe time of entering the station of the train that system is informed and departures time, will enter the station time position, departuresPoint corresponding to time position connects one by one, obtains the broken line that described running number is corresponding.
Wherein, on the broken line of drawing, show described car group number information.
The present invention also provides a kind of vehicle operating figure drawing system, comprising:
Acquisition of information module, for obtaining the real time execution information of all vehicles, described real-time fortuneRow information comprises: table number that all vehicles are corresponding, running number, positional information, temporal information andCar group number;
Splicing computing module, for for each table number, calculates the institute that each running number is correspondingThere is broken line, and two the; corresponding running number that belongs to identical car group number broken lines are spelledConnect, when splicing, the afterbody of first fold line segment is with the corresponding positional information of head of the second broken lineAll identical with temporal information;
Real mark drafting module, for drawing all broken lines, to form the folding that described table number is correspondingLine, and running number is presented on the broken line of its all correspondences, in the time that running number occurs to change,On corresponding broken line, point out out the modification information of running number.
Wherein, splicing computing module comprises: computing module, and for informing according to ATS systemThe time of entering the station and departures time of train, the time position of entering the station, departures time placePoint corresponding to position connects one by one, obtains the broken line that described running number is corresponding.
Wherein, also comprise: car group number drafting module, for showing institute on the broken line drawingState car group number information.
(3) beneficial effect
The present invention draws service chart taking the constant car group number of run duration as reference mark, has abandonedOriginal service chart taking the running number that may change as reference mark is drawn mode, not only thoroughEfficiently solve in real mark service chart drawing process, in the time running into the train number alternation of signs, operationThe problem of dtmf distortion DTMFs such as figure there will be discontinuous, inflection, the modification information of running number also clearly simultaneouslyBe presented on service chart, therefore this method has greatly promoted readability, the logic of service chartProperty.
Brief description of the drawings
Fig. 1 is that in prior art, running number changes the real mark service chart that causes distortion;
Fig. 2 is the partial enlarged drawing at dotted line frame place in Fig. 1;
Fig. 3 is the real mark service chart that the method for the embodiment of the present invention is drawn.
Detailed description of the invention
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is done further in detailDescribe. Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
Obtain the real time execution information of all vehicles, described real time execution information comprises: all carsCorresponding table number, running number, positional information, temporal information and car group number;
For each table number, calculate all broken lines that each running number is corresponding, concrete basisThe time of entering the station of the train that ATS system is informed and departures time, the time position of entering the station,Point corresponding to departures time position connects one by one, obtains the broken line that described running number is correspondingSection. In the time that running number does not change, a corresponding broken line of running number, when running number becomesMore time, may corresponding many broken lines of running number.
The splicing of broken line, by end to end two broken lines that meet following condition:
A) afterbody of first fold line segment is (vertical with the corresponding positional information of head of the second broken lineAxle) identical;
B) afterbody of first fold line segment is with the corresponding temporal information (horizontal stroke of head of the second broken lineAxle) identical;
C) the car group number that two broken lines are corresponding is identical.
Draw service chart: all broken lines are drawn out, corresponding to form described table numberBroken line, the real mark service chart that the present embodiment is drawn out as shown in Figure 3, does not occur that broken line intersectsSituation with inflection. And running number is presented on the broken line of its all correspondences to convenient managementOperating personnel's reading.
In the time that the running number of real mark service chart occurs to change, train number can be pointed out out by corresponding broken line placeAlternation of signs information.
Further, improve the readability of real mark service chart, on the broken line of drawing, show instituteState car group number information. In Fig. 3 the 011001 (2): the 01st, table number, the 1001st, running number, (2)It is car group number.
The present invention also provides a kind of vehicle operating figure drawing system, comprising:
Acquisition of information module, for obtaining the real time execution information of all vehicles, described real-time fortuneRow information comprises: table number that all vehicles are corresponding, running number, positional information, temporal information andCar group number.
Splicing computing module, for for each table number, calculates the institute that each running number is correspondingThere is broken line, and two the; corresponding running number that belongs to identical car group number broken lines are spelledConnect, when splicing, the afterbody of first fold line segment is with the corresponding positional information of head of the second broken lineAll identical with temporal information.
Real mark drafting module, for drawing all broken lines, to form the folding that described table number is correspondingLine, and running number is presented on the broken line of its all correspondences, in the time that running number occurs to change,On corresponding broken line, point out out the modification information of running number.
Wherein, splicing computing module comprises: computing module, and for informing according to ATS systemThe time of entering the station and departures time of train, the time position of entering the station, departures time placePoint corresponding to position connects one by one, obtains the broken line that described running number is corresponding.
Wherein, also comprise: car group number drafting module, for showing institute on the broken line drawingState car group number information.
Above embodiment is only for the present invention is described, and limitation of the present invention is not relevantThe those of ordinary skill of technical field, without departing from the spirit and scope of the present invention,Can also make a variety of changes and modification, therefore all technical schemes that are equal to also belong to the present inventionCategory, scope of patent protection of the present invention should be defined by the claims.