CN111209448B - Automatic generation method of train number graph of rail transit station yard graph display system - Google Patents
Automatic generation method of train number graph of rail transit station yard graph display system Download PDFInfo
- Publication number
- CN111209448B CN111209448B CN201911319026.1A CN201911319026A CN111209448B CN 111209448 B CN111209448 B CN 111209448B CN 201911319026 A CN201911319026 A CN 201911319026A CN 111209448 B CN111209448 B CN 111209448B
- Authority
- CN
- China
- Prior art keywords
- train
- state
- station
- site
- graph
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
The invention relates to an automatic generation method of train number graphs of a rail transit station yard graph display system, which comprises the following steps: step 1, a field client receives a state character string of a current station train passing through a station track and a turnout; step 2, the station yard graph display module positions the relevant station tracks and turnouts according to the obtained state character strings, and analyzes the values of the state character strings according to a set transmission protocol; step 3, automatically drawing train line graphs on the station yard graph by the station yard graph display module according to the state character strings sent by the on-site client and a designed algorithm; and 4, when the on-site train runs, the real-time state of the on-site train is continuously sent to the on-site client, the on-site client sends the state value of the on-site client through the control interface, and the on-site client display module draws the semitransparent train graph by receiving the continuous state value. Compared with the prior art, the method has the advantages that the peripheral patterns cannot be obviously shielded in the process of train pattern advancing, and the like.
Description
Technical Field
The invention relates to a rail transit station map display system, in particular to an automatic generation method of train number graphs of the rail transit station map display system.
Background
In the current rail transportation industry, no matter whether a subway, a high-speed rail or other operation scenes, various driving dispatching client sides mostly have a station yard graph display module, and are required to have a good operation display interface, wherein the interface displays the operation conditions of various devices in the current field, such as the occupation and locking display states of a station track, the on-off display states of signal lights, the positioning and reversing states of turnouts and the like, which need to be acquired in real time through the field and then displayed on the operation interface, so that the station yard graph display system of a driving control room is very important, various signal state values generated by the related devices in the driving process of a field train are transmitted to a corresponding software client side after being acquired by a field signal system, and the station yard graph display client side transmits the states to the station yard graph display module after receiving information sent by the signal system, the module analyzes the code bit value according to a certain protocol, then displays the current various devices (turnouts, station tracks, signal machines and the like) and the real-time state of running vehicles on site on a site map according to a related drawing algorithm, and simulates the running situation of the whole site train by driving each device to display through the state, so that the train scheduling commander needs to accurately know the running condition of the train on site, and further executes related commands according to the instructions, so that the accurate tracking and good display of the train from the site running to the site map are particularly critical.
When the traditional train tracking display mode tracks the train advancing state in some sections, no matter the design of a transmission state protocol or the processing after receiving a state value is not well optimized, the method for accurately calculating the track position of the current train and occupying equipment according to the sections is simple, so that the display mode is not visual when the simulated train runs, and drawn simulated train graphs and train number window graphs possibly shield some peripheral identification graphs when passing through the equipment along the way, such as characters, a signal machine and the like, so that trouble can be brought to a user, the working efficiency of train scheduling commanders is influenced, and meanwhile, the increasingly developed customer requirements cannot be met.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide an automatic generation method of train number graphs of a rail transit station yard graph display system.
The purpose of the invention can be realized by the following technical scheme:
a method for automatically generating train number graphs of a rail transit station yard graph display system comprises the following steps:
step 1, a field client receives a state character string (the state character string comprises a state value) of a current station train passing through a station track and a turnout, and the state character string is collected in real time and is subjected to state packaging by adopting an agreed protocol;
step 2, the station yard graph display module provides an interface for receiving the state character string for the client to call, positions the related station tracks and turnouts according to the state character string obtained by the interface, and analyzes the value of the state character string according to a set transmission protocol;
step 3, automatically drawing a train line graph on the station yard graph by the station yard graph display module according to a state character string sent by the on-site client and a designed algorithm, wherein the train line graph can be drawn as a transparent or semitransparent line, and the drawn initial position is calculated according to a proportion value of occupied equipment;
and 4, when the on-site train runs, the real-time state of the on-site train is continuously sent to the on-site client, the on-site client sends the state value of the on-site train to the on-site client through the control interface, and the station yard graph display client draws the semitransparent train graph by receiving the continuous state value.
Preferably, the step 1 specifically comprises the following steps:
step 1.1, describing a plurality of devices by the received status character string, and forming a status character string structure by the device type, the device number, the current train occupation starting position and the occupation percentage information;
and 1.2, sending all the equipment detail information occupied by the current train as a state additional character string to a station yard graph display module through an interface of a calling station yard graph display control.
Preferably, the status string structure is in xml format.
Preferably, the step 2 specifically comprises the following steps:
step 2.1, the station yard graph display module enters the logic for analyzing the character strings in the step 1 through response events, a plurality of train variables are constructed by reading in the xml character strings, and the train variables are primitive list objects formed after the xml character strings are analyzed;
and 2.2, after the processing of the step 2.1, constructing a drawn train number line list variable, wherein the variable stores a trolley line graph to be drawn.
Preferably, the primitive list object includes a station number, a device type, a device number, a starting coordinate, an ending coordinate, and a starting and ending percentage of occupancy.
Preferably, the trolley line graph is a plurality of broken lines.
Preferably, the step 3 specifically includes the following steps:
3.1, analyzing the current station number, equipment type and equipment number, the occupied initial position point of the equipment and the occupied percentage position by the station yard graph control according to the analyzed state character string, and calling a GDI drawing related function to draw a train graph, wherein the train graph can be in a semitransparent display mode;
step 3.2, constructing a bitmap through a CreateDIBSelection function, attaching the bitmap to a temporary bitmap, and protecting an alpha channel;
3.3, mixing the data of the reconstructed temporary bitmap with the original bitmap, and keeping the value of an alpha channel of the hollow-out part of the original bitmap unchanged;
step 3.4, alpha mixing the RGB value of the color-changing point with a target;
and 3.5, performing negation processing on the alpha value in the temporary bitmap, changing the alpha value of the point modified by the GDI function into 255, changing the alpha value of the point needing hollowing into 0, calling the alpha blend to mix at the moment, and finally achieving the semitransparent effect.
Preferably, the alpha value of step 3.4 is varied by external configuration to control varying degrees of transparency.
Compared with the prior art, the invention has the following advantages:
1. the invention adopts a special semitransparent drawing display scheme, ensures that the peripheral graph cannot be obviously shielded in the process of the train graph advancing, and has better user experience because the translucency can be changed through the configuration file.
2. According to the invention, the occupied position points of the train pattern are accurate, the occupied proportion is optimized according to the equipment with different lengths, and the current occupied position of the train is calculated more accurately, so that the train number pattern on the station yard graph can smoothly advance when the train runs, and the visual effect is closer to the actual situation;
3. the invention designs a unique station yard graph equipment state transmission protocol, and constructs state transmission messages more simply, thereby improving the transmission efficiency on one hand and increasing the drawing flexibility of a client UI on the other hand;
drawings
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a diagram of a field implementation of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
As shown in fig. 1, a method for automatically generating a train number graph of a rail transit station yard graph display system includes the following steps:
step 1, a field client receives state values (including tracks and turnouts) of a current station train passing through some equipment of a certain type, wherein the states can be collected in real time and packaged by adopting an agreed protocol;
step 2, the station yard graph display module provides an interface for receiving the state for the client to call, positions the relevant station tracks and turnouts according to the state value obtained by the interface, and analyzes the value of the state character string according to the established transmission protocol;
step 3, the station yard graph display module draws a train line graph on the station yard graph according to a designed algorithm according to the detailed state value sent by the client, wherein the train line graph can be drawn as a transparent or semitransparent line, and the initial drawing position is calculated according to the proportion value of occupied equipment;
and 4, when the on-site train runs, the real-time state of the on-site train is continuously sent to the on-site client, the client sends the state value of the on-site train through the control interface, and the on-site client display module draws the semitransparent train graph by receiving the continuous state value.
The step 1 specifically comprises the following steps:
step 1.1, the received status character string can describe a plurality of devices, and the device type, the device number, the current train occupation starting position and the occupation percentage information form an xml status character string structure;
and 1.2, sending all the equipment detail information occupied by the current train as a state additional character string to a station yard graph display module through an interface of a calling station yard graph display control.
The step 2 specifically comprises the following steps:
step 2.1, the station yard graph display module enters the logic of analyzing the state value in the step 1 through a response event, a plurality of train variables are constructed by reading in the xml character string, and the train variables use primitive list objects (including station numbers, equipment types, equipment numbers, initial coordinates, ending coordinates and occupied initial and ending percentages) formed after the xml character string is analyzed;
and 2.2, constructing a drawn train number line list variable after the processing of the step 2.1, wherein the variable stores a trolley line graph to be drawn, and the line can be a plurality of broken lines.
The step 3 specifically comprises the following steps:
3.1, analyzing the current station number, equipment type and equipment number, and occupied initial position point and occupied percentage position of the equipment by the station yard graph control according to the analyzed state value and the state character string, and calling a GDI drawing related function to draw a train graph, wherein the train graph can be in a semitransparent display mode;
step 3.2, constructing a bitmap through a createdibselection function, attaching the bitmap to a temporary bitmap, and protecting an alpha channel;
3.3, mixing the data of the reconstructed temporary bitmap with the original bitmap, wherein the value of an alpha channel of the hollow-out part original bitmap cannot be changed;
step 3.4, performing alpha mixing on the RGB value of the color-changing point and a target (the alpha value can be changed through external configuration so as to control the transparency of different degrees);
and 3.5, performing negation processing on the alpha value in the temporary bitmap, wherein the alpha value of the point modified by the GDI function is changed to 255, the alpha of the point needing to be hollowed is changed to 0, and calling the AlphaBlend to perform mixing. For those points changed by GDI function, because the alpha values all become 255, and the RGB parts of the points, AlphaBlend will be mixed with the original values according to the alpha values specified in BLENDENCTION, and the alpha parts are modified to be 255, and finally the semitransparent effect is achieved.
As shown in fig. 2, a screenshot of the present invention taken from a site at a station at shandong university, a train number graphic with a train number of 082006 can be seen on a purple section (current station number 5, equipment type side track, equipment number 3).
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (7)
1. A method for automatically generating train number graphs of a rail transit station yard graph display system is characterized by comprising the following steps:
step 1, a field client receives a state character string of a current station train passing through a station track and a turnout, wherein the state character string is collected in real time and is packaged by adopting an agreed protocol;
step 2, the station yard graph display module provides an interface for receiving the state character string for the client to call, positions the related stock track and the turnout according to the state character string obtained by the interface, and analyzes the value of the state character string according to a set transmission protocol;
step 3, automatically drawing a train line graph on the station yard graph according to a designed algorithm and a state character string sent by the on-site client by the station yard graph display module, drawing a transparent or semitransparent line, and calculating the drawn initial position according to the proportion value of occupied equipment;
step 4, when the on-site train runs, the real-time state of the on-site train is continuously sent to the on-site client, the on-site client sends the state value of the on-site train to the on-site client through the control interface, and the on-site client draws a semitransparent train graph by receiving the continuous state value;
the step 3 specifically comprises the following steps:
3.1, the yard graph control analyzes the current station number, the equipment type and the equipment number, and the occupied equipment starting position point and the occupied percentage position according to the analyzed state character string, and calls a GDI drawing related function to draw a train graph, wherein the train graph is in a semitransparent display mode;
step 3.2, constructing a bitmap through a createdibselection function, attaching the bitmap to a temporary bitmap, and protecting an alpha channel;
3.3, mixing the data of the reconstructed temporary bitmap with the original bitmap, and keeping the value of an alpha channel of the hollow-out part of the original bitmap unchanged;
step 3.4, alpha mixing the RGB value of the color-changing point with a target;
and 3.5, performing negation processing on the alpha value in the temporary bitmap, changing the alpha value of the point modified by the GDI function into 255, changing the alpha value of the point needing hollowing into 0, and calling the alpha blend to mix at the moment to finally achieve the semitransparent effect.
2. The method for automatically generating the train number graph of the rail transit station yard graph display system according to claim 1, wherein the step 1 specifically comprises the following steps:
step 1.1, describing a plurality of devices by the received status character string, and forming a status character string structure by the device type, the device number, the current train occupation starting position and the occupation percentage information;
and step 1.2, sending all the equipment detail information occupied by the current train as a state additional character string to a station yard graph display module through an interface of a calling station yard graph display control.
3. The method as claimed in claim 2, wherein the status string structure is in xml format.
4. The method for automatically generating the train number graph of the rail transit station yard graph display system according to claim 1, wherein the step 2 specifically comprises the following steps:
step 2.1, the station yard graph display module enters the logic for analyzing the character strings in the step 1 through response events, a plurality of train variables are constructed by reading in the xml character strings, and the train variables are primitive list objects formed after the xml character strings are analyzed;
and 2.2, after the processing in the step 2.1, starting to construct a drawn train number line list variable, wherein the variable stores a trolley line graph to be drawn.
5. The method as claimed in claim 4, wherein the primitive list objects include a station number, a device type, a device number, a start coordinate, an end coordinate, and a start and end percentage of occupancy.
6. The method as claimed in claim 4, wherein the car line pattern is a plurality of broken lines.
7. The method as claimed in claim 1, wherein the alpha value of step 3.4 is changed by external configuration to control the transparency of different degrees.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319026.1A CN111209448B (en) | 2019-12-19 | 2019-12-19 | Automatic generation method of train number graph of rail transit station yard graph display system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319026.1A CN111209448B (en) | 2019-12-19 | 2019-12-19 | Automatic generation method of train number graph of rail transit station yard graph display system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111209448A CN111209448A (en) | 2020-05-29 |
CN111209448B true CN111209448B (en) | 2022-07-15 |
Family
ID=70787087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911319026.1A Active CN111209448B (en) | 2019-12-19 | 2019-12-19 | Automatic generation method of train number graph of rail transit station yard graph display system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209448B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114379615A (en) * | 2021-12-30 | 2022-04-22 | 卡斯柯信号有限公司 | Method, device and medium for displaying train position in configuration human-computer interface |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011230537A (en) * | 2010-04-23 | 2011-11-17 | Hitachi Ltd | Train diagram display processing method, train diagram display processing system, and train diagram display processing program |
CN107856704A (en) * | 2017-11-15 | 2018-03-30 | 卡斯柯信号有限公司 | A kind of street railway yards design display methods at driver visual angle |
-
2019
- 2019-12-19 CN CN201911319026.1A patent/CN111209448B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011230537A (en) * | 2010-04-23 | 2011-11-17 | Hitachi Ltd | Train diagram display processing method, train diagram display processing system, and train diagram display processing program |
CN107856704A (en) * | 2017-11-15 | 2018-03-30 | 卡斯柯信号有限公司 | A kind of street railway yards design display methods at driver visual angle |
Non-Patent Citations (2)
Title |
---|
Designing a Self-reversing Track Layout with TrackMaster Tracks;Breanna M. Struss et al.;《FALL INTERDISCIPLINARY RESEARCH SYMPOSIUM》;20161101;全文 * |
基于CBTC的ATS的站场图设计与实现;余光亮;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20101015;第2010年卷(第10期);第C033-150页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111209448A (en) | 2020-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103097227B (en) | For the method for visual display track occupation | |
CN105383522B (en) | A kind of preparation method and system of navigation-type train operation pathway figure | |
CN104750477B (en) | A kind of SCD version comparison methods based on standard pilot process file | |
CN111209448B (en) | Automatic generation method of train number graph of rail transit station yard graph display system | |
CN110104036B (en) | Tramcar simulation operation system and tramcar simulation operation method | |
CN112874588B (en) | Test system of rail transit interconnection intercommunication signal system | |
CN112560130A (en) | H5 drawing display method based on CAD (computer-aided design) drawing data of track traffic trackside equipment | |
CN112529459A (en) | Train simulation task configuration method, device, equipment and storage medium | |
CN112365113A (en) | BIM-based four-power-station-group design simulation and resource dynamic adjustment method and system | |
CN104691580A (en) | Method based on CTC (centralized traffic control) station yard graph graphic elements and used for setting temporary speed restriction of high-speed railway | |
CN112863285A (en) | Railway train operation scheduling simulation method and system | |
KR102351979B1 (en) | System for scheduling management of raiload car | |
CN110920697B (en) | Automatic generation method and device for ATS station yard graph | |
JP5156664B2 (en) | Driving arrangement support system | |
CN113838157A (en) | Track traffic map drawing system, method, electronic device and storage medium | |
CN102074142A (en) | Method and system for simulating coal mine safety operation process | |
CN114056390B (en) | Method, device and storage medium for conflict display of train operation diagram | |
CN111196292B (en) | Train position drawing method, device, equipment and computer readable storage medium | |
CN106127169A (en) | Train running information analyzes system and method | |
CN113978513A (en) | Display optimization method and device for rail transit real-time operation diagram | |
CN113362430A (en) | Industrial production line model animation digital twin method | |
CN112395201A (en) | ATS test method and device | |
JP2016006555A (en) | Planning business support method and system | |
CN114379615A (en) | Method, device and medium for displaying train position in configuration human-computer interface | |
CN110992860B (en) | Station passenger flow dynamic guiding system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |