Summary of the invention
The invention provides a kind of section searching method and system, train can be reduced in by potential safety hazard during respective carter circuit.
On the one hand, the invention provides a kind of section searching method, described method comprises:
S0: set up electronic chart according to line description mode in advance;
S1: obtain initial kilometer post to be checked, termination kilometer post to be checked, the direction of search;
S2: the logic block at place, initial kilometer post position to be checked described in searching electronic map, records the logic block identifier of described logic block;
S3: the next logic block searching described current logic section along the described direction of search, records the logic block identifier of described next logic block;
S4: judge whether described next logic block is less than described termination kilometer post to be checked along the terminal kilometer post of the direction of search, if so, then performs S3, otherwise perform S5;
S5: stop search, forms the sequence of logic block identifier, exports the sequence of described logic block identifier according to the sequencing of record by the logic block identifier of record.
Further, described line description mode comprises:
The corresponding logic block identifier of each logic block;
Location section in section with a switch or switches is as a logic block;
Each antiposition section in section with a switch or switches is as a logic block;
Described location section is the section of beginning of turnout to locating terminal;
Described antiposition section is the section that beginning of turnout arrives antiposition terminal.
Further, a described section with a switch or switches comprises: a location section and at least one antiposition section.
Further, the described direction of search comprises:
Branch-cut bridge between section of coming in and going out line, up main track, up side line, descending main track, descending side line, descending side line, descending side line, up-downgoing.
On the other hand, the invention provides a kind of section search system, described system comprises:
Electronic chart sets up module, for setting up electronic chart according to line description mode;
Acquisition module, for obtaining initial kilometer post to be checked, termination kilometer post to be checked, the direction of search;
First search module, for the logic block at the place, to be checked initial kilometer post position that acquisition module in searching electronic map obtains, records the logic block identifier of described logic block;
Second search module, for searching the next logic block of described current logic section along the described direction of search, records the logic block identifier of described next logic block;
Judge module, for judging whether described next logic block is less than described termination kilometer post to be checked along the terminal kilometer post of the direction of search, if so, then sends search signal to described second search module, otherwise sends output signal to output module;
Output module, for the logic block identifier of described first search module and described second search module record to be formed the sequence of logic block identifier according to the sequencing of record, exports the sequence of described logic block identifier.
Further, described line description mode comprises:
The corresponding logic block identifier of each logic block;
Location section in section with a switch or switches is as a logic block;
Each antiposition section in section with a switch or switches is as a logic block;
Described location section is the section of beginning of turnout to locating terminal;
Described antiposition section is the section that beginning of turnout arrives antiposition terminal.
Further, a described section with a switch or switches comprises: a location section and at least one antiposition section.
Further, the described direction of search comprises:
Branch-cut bridge between section of coming in and going out line, up main track, up side line, descending main track, descending side line, descending side line, descending side line, up-downgoing.
By a kind of section searching method provided by the invention and system, electronic chart is set up according to line description mode, by searching electronic map, kilometer post is converted to the sequence of corresponding logic block identifier, ensure operation rationally effectively, be reduced in train by potential safety hazard during respective carter circuit.
Detailed description of the invention
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Embodiments provide a kind of section searching method, see Fig. 1, the method comprises:
S0: set up electronic chart according to line description mode in advance;
S1: obtain initial kilometer post to be checked, termination kilometer post to be checked, the direction of search;
S2: the logic block at place, initial kilometer post position to be checked in searching electronic map, records the logic block identifier of this logic block;
S3: the next logic block searching current logic section along the direction of search, records the logic block identifier of this next logic block;
S4: judge whether next logic block is less than termination kilometer post to be checked along the terminal kilometer post of the direction of search, if so, then performs S3, otherwise perform S5;
S5: stop search, forms the sequence of logic block identifier, exports the sequence of this logic block identifier according to the sequencing of record by the logic block identifier of record.
By a kind of section searching method that the embodiment of the present invention provides, electronic chart is set up according to line description mode, by searching electronic map, kilometer post is converted to the sequence of corresponding logic block identifier, ensure operation rationally effectively, be reduced in train by potential safety hazard during respective carter circuit.
Wherein, line description mode comprises:
The corresponding logic block identifier of each logic block;
Location section in section with a switch or switches is as a logic block;
Each antiposition section in section with a switch or switches is as a logic block;
Location section is the section of beginning of turnout to locating terminal;
Antiposition section is the section that beginning of turnout arrives antiposition terminal.
Comprise at a section with a switch or switches: a location section and at least one antiposition section.
The direction of search comprises:
Branch-cut bridge between section of coming in and going out line, up main track, up side line, descending main track, descending side line, descending side line, descending side line, up-downgoing.
See Fig. 2, it is an actual physics section partition schematic diagram; B is beginning of turnout, and E is locating terminal, and D is antiposition terminal, and C is switch blade.Section FB is physical zone 1, and section BE is physical zone 2, and section EN is physical zone 3.
See Fig. 3, for the actual physics section of Fig. 2, adopt line description mode one that the actual physics section partition of Fig. 2 is become logic block.Be beginning of turnout see Fig. 3, B, E is locating terminal, and D is antiposition terminal, and C is switch blade.Section FB to be divided into two logic blocks be logic block FA and logic block AB, section BE be respectively a logic block BE, section EN is a logic block EN.The logic block identifier that logic block FA is corresponding is 1, and the logic block identifier that logic block AB is corresponding is 2, and the logic block identifier that volume section BE is corresponding is 3, and the logic block identifier that volume section EN is corresponding is 4.
See Fig. 4, for the actual physics section of Fig. 2, adopt line description mode two that the actual physics section partition of Fig. 2 is become logic block.Be beginning of turnout see Fig. 4, B, E is locating terminal, and D is antiposition terminal, and C is switch blade.Section FB being divided into two logic blocks is that to be divided into three logic blocks be logic block BC, logic block CE, logic block CD respectively for logic block FA and logic block AB, section BE respectively, and section EN is a logic block EN.The logic block identifier that logic block FA is corresponding is 1, the logic block identifier that logic block AB is corresponding is 2, the logic block identifier collecting section BC corresponding is 3, the logic block identifier collecting section CE corresponding is 4, the logic block identifier collecting section CD corresponding is 5, and the logic block identifier that volume section EN is corresponding is 6.
See Fig. 5, for the actual physics section of Fig. 2, the actual physics section partition of Fig. 2 is become logic block by a kind of line description mode adopting the embodiment of the present invention to provide.Be beginning of turnout see Fig. 5, B, E is locating terminal, and D is antiposition terminal.Section FB being divided into two logic blocks is that to be divided into two logic blocks be logic block BE, logic block BCD respectively for logic block FA and logic block AB, section BE respectively, and section EN is a logic block EN.The logic block identifier that logic block FA is corresponding is 1, the logic block identifier that logic block AB is corresponding is 2, the logic block identifier collecting section BE corresponding is 3, and the logic block identifier that volume section BCD is corresponding is 4, and the logic block identifier that volume section EN is corresponding is 5.
See Fig. 6, for the actual physics section of Fig. 2, the actual physics section partition of Fig. 2 is become logic block by a kind of line description mode adopting the embodiment of the present invention to provide.Be beginning of turnout see Fig. 6, B, E is locating terminal, and D is antiposition terminal.Section FB being divided into two logic blocks is that to be divided into three logic blocks be logic block BE, logic block BCD, logic block EHG respectively for logic block FA and logic block AB, section BE respectively, and section EN is a logic block EN.The logic block identifier that logic block FA is corresponding is 1, the logic block identifier that logic block AB is corresponding is 2, the logic block identifier collecting section BE corresponding is 3, the logic block identifier collecting section BCD corresponding is 4, the logic block identifier collecting section EHG corresponding is 5, and the logic block identifier that volume section EN is corresponding is 6.
Embodiments provide a kind of section search system, see Fig. 7, this system comprises:
Electronic chart sets up module 701, for setting up electronic chart according to line description mode;
Acquisition module 702, for obtaining initial kilometer post to be checked, termination kilometer post to be checked, the direction of search;
First search module 703, for the logic block at the place, to be checked initial kilometer post position that acquisition module in searching electronic map 702 obtains, records the logic block identifier of this logic block;
Second search module 704, for searching the next logic block of current logic section along the direction of search, records the logic block identifier of this next logic block;
Judge module 705, for judging whether next logic block is less than termination kilometer post to be checked along the terminal kilometer post of the direction of search, if so, then sends search signal to the second search module, otherwise sends output signal to output module;
Output module 706, forms the sequence of logic block identifier, exports the sequence of this logic block identifier according to the sequencing of record for the logic block identifier that the first search module 703 and the second search module 704 recorded.
Line description mode comprises:
The corresponding logic block identifier of each logic block;
Location section in section with a switch or switches is as a logic block;
Each antiposition section in section with a switch or switches is as a logic block;
Location section is the section of beginning of turnout to locating terminal;
Antiposition section is the section that beginning of turnout arrives antiposition terminal.
A section with a switch or switches comprises: a location section and at least one antiposition section.
The direction of search comprises:
Branch-cut bridge between section of coming in and going out line, up main track, up side line, descending main track, descending side line, descending side line, descending side line, up-downgoing.
In addition, alternatively, acquisition module comprises inputting interface, and inputting interface comprises: initial kilometer post to be checked, termination kilometer post to be checked, the direction of search; After input initial kilometer post to be checked, termination kilometer post to be checked on inputting interface, judge the kilometer post numerical value inputted be whether effectively on the occasion of, if, then judge whether the to be checked initial kilometer post inputted is less than termination kilometer post to be checked, if so, then notify that the first search module 703 is searched for, otherwise, initial kilometer post and termination kilometer post are intercoursed numerical value, and then notifies that the first search module 703 is searched for; If the kilometer post numerical value of input be whether effectively on the occasion of, then eject " correct kilometer post please be input, the numeral being greater than 0 need be inputted " prompted dialog frame.
Alternatively, output module 706 comprises output interface, the sequence of logic block identifier is shown.
Visible by foregoing description, embodiment of the present invention beneficial effect specific as follows:
1, a kind of section searching method provided by the embodiment of the present invention and system, electronic chart is set up according to line description mode, logic block identifier sequence corresponding to kilometer post convert to by searching electronic map, ensure operation rationally effectively, be reduced in train by potential safety hazard during respective carter circuit.
2, provide a kind of line description mode by the embodiment of the present invention, give corresponding identifier to the location section of section with a switch or switches and each antiposition section, higher than line description mode one resolving accuracy, more succinct than line description mode two.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.