CN115858869A - Automatic generation method and system for station yard graph - Google Patents
Automatic generation method and system for station yard graph Download PDFInfo
- Publication number
- CN115858869A CN115858869A CN202211560675.2A CN202211560675A CN115858869A CN 115858869 A CN115858869 A CN 115858869A CN 202211560675 A CN202211560675 A CN 202211560675A CN 115858869 A CN115858869 A CN 115858869A
- Authority
- CN
- China
- Prior art keywords
- node
- data
- nodes
- station yard
- equipment
- 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.)
- Pending
Links
Images
Landscapes
- Train Traffic Observation, Control, And Security (AREA)
Abstract
The invention discloses a method and a system for automatically generating a station yard graph, wherein the method comprises the steps of acquiring station yard data of a computer interlocking system; analyzing the station yard data of the computer interlocking system to acquire equipment information and an interlocking route table of the station yard; defining each device of the station yard as a node, and acquiring a connection relation corresponding to the node according to the device information; acquiring position data corresponding to the node according to the interlocking route table and the equipment information; and generating a station yard graph according to the connection relation and the position data of the nodes. The invention can automatically generate the station yard graph with uniform format and simple data structure, thereby improving the generation speed of the station yard graph, reducing the manual workload and improving the reuse rate of the station yard graph.
Description
Technical Field
The invention relates to the technical field of rail transit, in particular to a method and a system for automatically generating a station yard graph.
Background
In a rail transit signal system, a plurality of subsystems (such as a traffic dispatching command system, a central control system, a monitoring and maintenance system, a dispatcher maintenance terminal, an interlocking system control display machine and the like) are required to display a circuit plan. For the same station on the same line, the fact that different subsystems need to display the same station yard graph means that the same station yard graph is displayed; in the railway signal system, in the same interlocking station, the interlocking system, the CTC system and the microcomputer monitoring system need to display a station map of the same station; in a subway signal system, an interlocking system, a local ATS system, a central ATS system and an MSS system need to display the same station yard graph and the layout requirements of equipment are consistent.
In the whole rail transit signal system, different subsystems bear different train operation support functions, engineering data required by the operation of each subsystem is usually designed and completed independently by different teams, so that display terminals of different subsystems in the signal system need to repeatedly produce the same station yard drawing, and tools for producing, editing and checking station yard data are provided by different subsystems, which leads to the following problems: (1) The station yard data design tool provided by each subsystem is generally specific to each signal system and has no universality; because the data design of each subsystem station yard is greatly different in structure and mode, the function difference between systems can cause inconsistent station plane diagram display, and the user interface experience is not friendly. (2) The station yard graph needs to be drawn manually according to a station signal plane graph provided by a design institute, the drawing tool can only be a semi-automatic tool, the probability that errors are caused by operation can be reduced to a certain extent, but the drawing tool still depends on a large number of manual checks and tests, and manpower and time are consumed very much. (3) Because the station yard data is designed by different subsystems, the station yard data of the same station is repeatedly designed for many times, and the transplantation and repeated utilization rate of the data is low.
Disclosure of Invention
The invention aims to provide a method and a system for automatically generating a station yard graph, which are used for automatically generating the station yard graph with a uniform format and a simple data structure, improving the generation speed of the station yard graph, reducing the manual workload and improving the reuse rate of the station yard graph.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a method for automatically generating a station yard graph comprises the following steps:
obtaining computer interlocks system yard data;
parsing the computer interlock system yard data, to obtain the equipment information of the station yard and the interlocking route table;
defining each device of the station yard as a node, and acquiring a connection relation corresponding to the node according to the device information;
acquiring position data corresponding to the node according to the interlocking route table and the equipment information; and
and generating a station yard graph according to the connection relation and the position data of the nodes.
Optionally, the device information includes a name, a type, a coordinate, an uplink connection relationship, and a downlink connection relationship of the device; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
Optionally, the step of obtaining the connection relationship corresponding to the node according to the device information includes:
correspondingly defining the type of the node according to the type of the equipment to obtain node data;
acquiring a connection relation corresponding to the node according to the uplink connection relation and the downlink connection relation of the equipment; and
and acquiring connection relation data among the nodes according to the types and the connection relations of the nodes.
Optionally, the types of the nodes include: the node comprises end nodes, channel nodes, turnout nodes, cross nodes and insulating node nodes; the end node is provided with one phase, the channel node is provided with two phases, the turnout node is provided with three phases, the cross node is provided with four phases, and the insulating node is provided with two phases.
Alternatively to this, the first and second parts may, the step of correspondingly defining the type of the node according to the type of the equipment comprises the following steps:
defining devices with types of semaphores, sections and checkpoints as the channel nodes;
defining equipment with the type of a turnout as a turnout node;
defining equipment with the type of a cross crossover line as the cross node;
defining equipment with the type of the insulation joint as an insulation joint node;
defining devices located at the yard boundaries as the end nodes.
Optionally, the step of obtaining connection relationship data between nodes according to the type and connection relationship of the node includes: and correspondingly connecting the phase of one node with the phase of another node according to the connection relation of the nodes to obtain the data of the connection relation between the nodes.
Optionally, the step of obtaining the location data corresponding to the node according to the interlock routing table and the device information includes:
generating path data corresponding to each route according to the interlocking route table and the data of the connection relation between the nodes;
and acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes.
Optionally, the step of generating the station yard graph according to the connection relationship and the position data of the nodes includes:
generating regional data according to the node data and the relationship data between the nodes;
and generating the station and yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
On the other hand, the invention also provides an automatic generation system of the station yard graph, which comprises the following components:
the station field data acquisition module is used for acquiring station field data of the computer interlocking system;
the station yard data analysis module is connected with the station yard data acquisition module and used for analyzing the station yard data of the computer interlocking system so as to acquire equipment information and an interlocking route table of the station yard;
the connection relation generation module is connected with the station yard data analysis module and used for defining each device of the station yard as a node and acquiring the connection relation corresponding to the node according to the device information;
a position data generating module respectively connected with the station yard data analyzing module and the connection relation generating module, the interlocking routing table is used for acquiring position data corresponding to the node according to the equipment information; and
and the station yard graph generating module is respectively connected with the connection relation generating module and the position generating module according to a generating module and is used for generating the station yard graph according to the connection relation and the position data of the nodes.
Optionally, the device information includes a name, a type, a coordinate, an uplink connection relationship, and a downlink connection relationship of the device; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
Optionally, the connection relationship generating module is specifically configured to correspondingly define the type of the node according to the type of the device, so as to obtain node data;
acquiring a connection relation corresponding to the node according to the uplink connection relation and the downlink connection relation of the equipment; and
and acquiring connection relation data between the nodes according to the types and the connection relations of the nodes.
Optionally, the types of the nodes include: the node comprises end nodes, channel nodes, turnout nodes, cross nodes and insulating node nodes; the end node is provided with a phase, the channel node is provided with two phases, the turnout node is provided with three phases, the cross node is provided with four phases, and the insulating node is provided with two phases.
Optionally, the devices with types of semaphores, segments and checkpoints are defined as the channel nodes; defining the equipment with the type of double-opening turnout as the turnout node; defining the equipment with the type of the cross crossover line as the cross node; defining the equipment with the type of the insulating joint as the insulating joint node; devices located at the yard boundaries are defined as the end nodes.
Optionally, according to the connection relationship of the nodes, the phase of one node is correspondingly connected with the phase of another node, so as to obtain the connection relationship data between the nodes.
Optionally, the location data generating module is specifically configured to generate path data corresponding to each route according to the interlocking route table and the data of the connection relationship between the nodes; and
and acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes.
Optionally, the station yard graph generating module is specifically configured to generate regional data according to the node data and the relationship data between nodes; and
and generating the station and yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
Compared with the prior art, the invention has at least one of the following advantages:
the invention provides a method and a system for automatically generating a station yard graph.A computer interlocking system station yard data is analyzed to obtain equipment information and an interlocking route table of the station yard, each equipment of the station yard is defined as a node, and the connection relation of the corresponding node can be obtained according to the equipment information; position data of the corresponding node can be obtained according to the interlocking route table and the equipment information; and automatically generating a station yard graph according to the connection relation and the position data of the nodes.
The station yard graph generated based on the interlocking station yard data can be used for multiple times only by once design, can be reused by different systems, improves the generation speed of the station yard graph, reduces the manual workload and improves the reuse rate of the station yard graph.
The station yard graph generated by the invention has uniform format, simple data structure, strong universality and wide application range, and can be directly read and used by different systems.
The station yard graph generated in the invention is based on a strict data theory description mode, the station yard equipment is abstracted into a geometric figure, the phase connection relation is clearly defined, and the expandability is strong.
In the invention, two automatic station yard graph generating systems can be adopted to generate the station yard graphs of the same station, and the station yard graphs are formally output only when the two generated station yard graphs are consistent, so that the accuracy and the reliability of the station yard graphs are ensured. In addition, in consideration of failure in the system development process, the two automatic station yard graph generation systems can be developed by using different programming languages (namely back-to-back development in a heterogeneous mode) but need to have the same function, so that errors caused by system failure are effectively avoided, and the accuracy of the generated station yard graph is further ensured.
Drawings
Fig. 1 is a flowchart of a method for automatically generating a station yard graph according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a cross-over line in an automatic station yard graph generation method according to an embodiment of the present invention;
fig. 3 (a) and fig. 3 (b) are phase structure diagrams of end nodes in an automatic generation method of a station yard graph according to an embodiment of the present invention;
fig. 4 is a phase structure diagram of a channel node in the automatic station yard graph generation method according to an embodiment of the present invention;
fig. 5 (a) is a phase structure diagram of a first type of switch node in the automatic station yard graph generation method according to an embodiment of the present invention;
fig. 5 (b) is a phase structure diagram of a second type of switch node in the automatic station yard graph generation method according to an embodiment of the present invention;
fig. 5 (c) is a phase structure diagram of a third type of switch node in the automatic station yard graph generation method according to an embodiment of the present invention;
fig. 5 (d) is a phase structure diagram of a fourth type of switch node in the automatic station yard graph generation method according to an embodiment of the present invention;
fig. 6 is a phase structure diagram of a cross node in an automatic station yard graph generation method according to an embodiment of the present invention;
fig. 7 (a), fig. 7 (b) and fig. 7 (c) are phase structure diagrams of end nodes in an automatic generation method of a station yard graph according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of two connected switches located in a switch section in an automatic station yard diagram generation method according to an embodiment of the present invention.
Detailed Description
The method and system for automatically generating a station yard graph according to the present invention will be described in detail with reference to the accompanying drawings and embodiments. The advantages and features of the present invention will become more apparent from the following description. It is to be noted that the drawings are in a very simplified form and are all used in a non-precise scale for the purpose of facilitating and distinctly aiding in the description of the embodiments of the present invention. To make the objects, features and advantages of the present invention comprehensible, reference is made to the accompanying drawings. It should be understood that the structures, ratios, sizes, and the like shown in the drawings and described in the specification are only used for matching with the disclosure of the specification, so as to be understood and read by those skilled in the art, and are not used to limit the implementation conditions of the present invention, so that the present invention has no technical significance, and any structural modification, ratio relationship change or size adjustment should still fall within the scope of the present invention without affecting the efficacy and the achievable purpose of the present invention.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
As shown in fig. 1 to 8, this embodiment provides an automatic generation method of a station yard graph, including: step S110, acquiring station yard data of a computer interlocking system; step S120, analyzing the station yard data of the computer interlocking system to obtain equipment information and an interlocking route table of the station yard; step S130, abstractly defining each device of the station yard as a single node, and acquiring a connection relation corresponding to the node according to the device information; step S140, corresponding to the position data of the node according to the interlocking route table and the equipment information; and step S150, generating a station yard graph according to the connection relation and the position data of the nodes.
It can be understood that the device information includes a name, a type, coordinates, an index number, an uplink connection relationship, and a downlink connection relationship of the device; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
Specifically, in this embodiment, the computer interlock system is a key system for ensuring train driving safety in the rail transit signal system, and in the engineering design of the whole rail transit signal system, the computer interlock system is first opened and applied, that is, the data of the computer interlock system is first designed and produced; station yard data (namely computer interlocking system station yard data) in the interlocking data is a carrier and a reflected form for realizing a specific station interlocking logic function, a station yard graph can be displayed by depending on the computer interlocking system station yard data, so that dispatchers can operate and supervise the state of station signal equipment, and operation functions such as route arrangement, unlocking, turnout position conversion and the like are provided according to operation requirements. More specifically, the station yard data of the computer interlocking system is tle data, which includes device information such as signal machines, switches, sections, check points, crossing lines, buttons, indication lamps, train number frames, route delay unlocking frames, and insulation joints, connection relationships between devices (such as uplink connection relationships and downlink connection relationships), and interlocking relationships between interlocking devices (i.e., an interlocking route table), but the invention is not limited thereto.
Specifically, in this embodiment, the computer interlocking system yard data records general attributes (for example, the type, name, direction, index number Index, coordinates, DIMS number, control area, throat area, etc.) and specific attributes (for example, up-down connection relationship, direction, input/output interface, operation button, delay time, whether it is a switch with a large number, etc.) of each device, and these attributes can be used to assist in automatically generating the station yard graph. More specifically, by performing operation and analysis on station yard data of the computer interlocking system, attribute information such as the name of each device in the interlocking station yard, the name of the located section, the index number index, the type maintype, the direction (i.e., uplink or downlink), the throat area throat, the index number previdex of the front connection device, the index number nextindex of the rear connection device, another dynamic name of a double-acting turnout, another group of turnout names of cross-over lines, and the like can be identified. When the types of the equipment are signal, section track, check point check and switch, the index number of the equipment is usually numerical type. When the equipment type is an insulating joint deim, because the insulating joint is usually arranged between two connected turnouts, the index number of the equipment is defined by the index numbers of the turnouts on two sides of the equipment, the index number of the equipment is character type, and the format is a shift _ index _ deim _ turn _ index, wherein the shift _ index is the index number of the turnout on the left side, and the shift _ index is the index number of the turnout on the right side; for example, the switches on both sides of an insulating section have index numbers 71 and 72, respectively, where 72 is to the left of 71, and the insulating section has index number 72 \\\ u deim \ u 71. When the device type is cross transition line cross, four turnout names of the cross transition line are spliced to form an index number, double-acting turnouts are connected by using a minus, double-acting turnouts are connected by using a left-to-right, and the double-acting turnouts are sorted according to ASCII; for example, as shown in fig. 2, the names of the four switches related to the crossing line are 1, 3, 5, and 7, where switch 1 and switch 3 are double-acting and the index number of switch 1 is 35, the index number of switch 3 is 36, switch 5 and switch 7 are double-acting and the index number of switch 5 is 33, and the index number of switch 7 is 34, so that switches 1 and 3 are sorted to form 1-3, switches 5 and 7 are sorted to form 5-7, and 1-3 and 5-7 are sorted to form 1-3 and 5-7, and the index number of the crossing line is 1-3 and 5-7, but the present invention is not limited thereto.
With continued reference to fig. 1 to 8, the step S130 includes: correspondingly defining the type of the node according to the type of the equipment to obtain node data; acquiring a connection relation corresponding to the node (namely abstract equipment) according to the uplink connection relation and the downlink connection relation of the equipment; and acquiring connection relation data between the nodes according to the types and the connection relations of the nodes.
It is understood that the type nodetype of the node includes: end node EndNode (can define the end equipment of the line), passage node (can define the section, signal machine, check point and other equipment), switch node SwitchNode, cross node CrossingNode and insulating node DelimNode; the end node is provided with one phase, the channel node is provided with two phases, the turnout node is provided with three phases, the cross node is provided with four phases, and the insulating node is provided with two phases.
It is to be understood that the step of correspondingly defining the type of the node according to the type of the device includes: defining devices with types of semaphores, sections and checkpoints as the channel nodes; defining equipment with the type of a turnout as a turnout node; defining equipment with the type of a cross crossover line as the cross node; defining equipment with the type of the insulation joint as an insulation joint node; devices located at the yard boundaries (i.e., the ends of the line) are defined as the end nodes.
It is to be understood that the step of obtaining the connection relationship data between the nodes according to the types and the connection relationships of the nodes includes: and correspondingly connecting the phase of one node with the phase of another node according to the connection relation of the nodes to obtain the data of the connection relation between the nodes.
Specifically, in this embodiment, each device abstraction may be defined as a Node, and a connection phase of each Node may be determined, so as to represent devices and a composition relationship of the devices in the computer interlocking system yard data. More specifically, the application principle of the type nodetype of the node is as follows: as shown in fig. 3 (a) and 3 (b), the end nodes EndNode are adapted for station yard equipment connection terminals or stubs, representing yard boundaries; if no equipment is at the end of the yard line, an end node can be added directly to also represent the boundary. The end node EndNode is provided with a phase, and the phase can be marked as 0 or 1 in order to distinguish a right boundary from a left boundary; if the end node is set to have a phase of 0, as shown in fig. 3 (a), corresponding to the left boundary, it indicates that the right node can connect to another device (i.e., another phase of the node). If the end node is provided with a phase of 1, as shown in fig. 3 (b), corresponding to the right boundary, it indicates that the left node can be connected to other devices (i.e. another phase of the node).
As shown in fig. 4, the passage node is suitable for signal machines, sections, check points and other devices of the station yard equipment, that is, the other station yard equipment except for the devices located at the station yard boundary and the devices of the type of switch, cross-over and insulation node can be represented by the passage node; the passagennodeon is provided with two phases, respectively denoted 0 and 1, where phase 0 is located to the left of phase 1, and each phase can be connected to other devices (i.e. the phase of another of the nodes).
As shown in fig. 5 (a) to 5 (d), the switch node is suitable for the switch devices of the yard devices, and the switch nodes may be divided into 4 types according to the opening direction of the switch devices, and are respectively recorded as: the opening direction of the first type of turnout node is in an upper right opening direction; the opening direction of the second type turnout node is downward right; the opening direction of the third type turnout node is left-up; and the opening direction of the fourth type turnout node is left open. The turnout node is provided with three phases which are respectively marked as 0, 1 and 2, and each phase can be connected with other equipment (namely the phase of the other node); and for the first type of switch node, as shown in fig. 5 (a), the phase 0 and the phase 2 are located on the main section and the phase 0 is located at the left side of the phase 2; for the second type of switch node, as shown in fig. 5 (b), phase 0 and phase 1 are located on the main section and phase 0 is located on the left side of phase 1; for the switch nodes of the third type, as shown in fig. 5 (c), phase 0 and phase 1 are located on the main section and phase 0 is located on the right side of phase 1; for the fourth type switch node, as shown in fig. 5 (d), its phase 0 and phase 2 are located on the main section and phase 0 is located on the right side of phase 2.
As shown in fig. 6, the cross node CrossingNode is suitable for a cross crossover of a station yard device; the cross node crossbar node is provided with four phases which are respectively marked as 0, 1, 2 and 3 in the clockwise direction, and each phase can be connected with other equipment (namely the phase of another node).
As shown in fig. 7 (a) to 7 (c), the insulation node delirnode is used for recording an insulation node in a station facility, and the insulation node is used for separating sections and non-physical signal equipment. The insulated node delimNode has two phases, respectively 0 and 1, where phase 0 is located at the lower side of phase 1 and each phase can be connected to a switch on the corresponding side (i.e. the phase of the other node). Further, the insulating node delimpnode is not generated in the following case: (1) Insulation node nodes do not need to be generated among four turnouts related to the cross crossover; (2) As shown in fig. 8, if two connected switches are located in the same section name, i.e. they are located in one switch section, there is no need to generate an insulation node, but the invention is not limited thereto.
Specifically, in this embodiment, the structure of the node data includes two attributes, which are a node id and a node-type, respectively, where the node id may be determined according to an index number index corresponding to the device, and the node id is obtained by adding "node" to the index number index of the device; and further searching for a corresponding device type according to the index number index of the device, and determining the node type nodetype according to the searched device type. More specifically, if the index number index of the device is a numerical type, the device type is an annunciator signal, a segment track, a check point check or a switch, and the node type nodetype corresponds to a channel node PassageNode or a switch node; if the index number index of the equipment is a character type and the character string contains 'deim', the corresponding node type is an insulating node deimnode; and if the index number index of the equipment contains 'x', the node type corresponding to the node type is a cross node crossbar node. More specifically, each attribute in each of the node data is "recorded" with a quotation mark, different attributes are "separated" with a comma mark, and each node data is recorded with a brace "{ }", and all node data is recorded with a brace "[ ]", in the following format:
“nodes”:[
{"id":"node101",
"node-type":"PassageNode"},
{"id":"node1-3*5-7",
"node-type":"CrossingNode"},
{"id":"node123",
"node-type":"SwitchNode"},
{"id":"node123_delim_node124",
"node-type":"DelimNode"},
{"id":"node124",
"node-type":"SwitchNode"},
{"id":"node250",
"node-type":"EndNode"},……
]
specifically, in this embodiment, the inter-Node connection relationship edge represents a connection relationship between two nodes, that is, between two devices, and the structure of the inter-Node connection relationship edge data includes two attributes, which are a connection id and a connection relationship edge; wherein, the connection id is formed by combining edges, and the format is' node + index: edgeNumber-node + index: edgeNumber ", and the edgeNumber represents the phase of the corresponding node, the connection order, and the arrangement order of the median and the end connection number in the data structure of the same side; the connection relationship edge is also formed by combining edges, and has the format of [ [ "node + index", edge number ], [ "node + index", edge number ] ] ", and the order is the same as the arrangement order in the edge data structure: the nodes on the left side of the relative position are output firstly, and then the nodes on the right side of the relative position are output. More specifically, each attribute in the inter-node connection relationship data is recorded by a quotation mark, different attributes are separated by a comma, each inter-node connection relationship data is recorded by a brace, and all the inter-node connection relationship edges data are recorded by a brace, and the format is as follows:
“edges”:[
{"id":"node101:1-node4:0",
"edge":[["node101",1],["node4",0]]},
{"id":"node18:2-node101:0",
"edge":[["node18",2],["node101",0]]},
{"id":"node1-3*5-7:1-node34:1",
"edge":[["node1-3*5-7",1],["node34",1]]},
{"id":"node1-3*5-7:2-node36:2",
"edge":[["node1-3*5-7",2],["node36",2]]},
{"id":"node33:1-node1-3*5-7:3",
"edge":[["node33",1],["node1-3*5-7",3]]},
{"id":"node35:2-node1-3*5-7:0",
"edge":[["node35",2],["node1-3*5-7",0]]},
{"id":"node211:1-node123:0",
"edge":[["node211",1],["node123",0]]},
{"id":"node123:1-node123_delim_node124:0",
"edge":[["node123",1],["node123_delim_node124",0]]},
{"id":"node123:2-node212:0",
"edge":[["node123",2],["node212",0]]},
{"id":"node123_delim_node124:1-node124:1",
"edge":[["node123_delim_node124",1],["node124",1]]},
{"id":"node124:0-node125:0",
"edge":[["node124",0],["node125",0]]},
{"id":"node200:1-node124:2",
"edge":[["node200",1],["node124",2]]},
{"id":"node250:0-node72:0",
"edge":[["node250",0],["node72",0]]},
……
]
with continued reference to fig. 1, the step S140 includes: generating path data corresponding to each route according to the interlocking route table and the data of the connection relation between the nodes; acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes; wherein the path data and the coordinate data of the node may constitute position data of the node.
It is understood that, in some embodiments, before performing step S140, the method further includes: and naming the node according to a preset rule and the type of the equipment to obtain target data of the node.
Specifically, in this embodiment, the preset rule may be a general naming rule when the station yard graph is drawn, for example, for a device with a type of traffic signal, a name after naming a corresponding node may be a letter + value/letter, if the name is a shunting traffic signal, the name is a D + value, if the name is an uplink traffic signal, the name is an X + letter, if the name is an uplink outbound signal, the name is an X + value, if the name is a downlink inbound signal, the name is an S + letter, and if the name is a downlink outbound signal, the name is an X + value; for a device with the type of turnout, the name of the named corresponding node can be a numerical value. The named names of the nodes can be names displayed in a station yard graph, so that workers can distinguish and classify the nodes (or equipment) conveniently. More specifically, target object data of the nodes are generated according to the device type sequence, and the structure of the target object data comprises four attributes which are respectively a target id, a target type user-type, a node and attrs; the target id is a name named after the node is corresponding to, the target type user-type corresponds to the equipment type and comprises a direction, a signal machine, a check point, a turnout, a button, a display lamp, an insulating section, a cross transition line, a section and the like, molecular attributes of the attrs attribute region are included, and subtypes in the attrs attribute can be divided into 'Positive', 'DirectionLeg' and null according to the target type user-type. Each attribute in each object data is recorded with a quote, the different attributes are separated by commas, each object data is recorded with a brace, all object data is recorded with a brace, and the format is as follows:
“objects”:[
{"id":"D43",
"user-type":"signal",
"node":"node101",
"attrs":{"DirectionLeg":"0"}},
{"id":"1-3*5-7",
"user-type":"cross",
"node":"node1-3*5-7",
"attrs":{}},
{"id":"44",
"user-type":"switch",
"node":"node123",
"attrs":{"BentLeg":"1"}},
{"id":"40",
"user-type":"switch",
"node":"node124",
"attrs":{"BentLeg":"1"}},
……
]
specifically, in this embodiment, according to the interlock route table, the path data of each route may be generated one by one, and one path data corresponds to one route. The structure of the path data comprises 5 attributes which are respectively route id, route type user-type, attrs, start and edges; the route id includes a section name (e.g., D43-D1) and a section type (e.g., C), and the section name may be composed of names after the node is named, and the start is a node id corresponding to the route start end signal. More specifically, each attribute in the path data is recorded with a quotation mark, different attributes are separated by commas, each path data is recorded with a brace, and all path data is recorded with a brace, and the format is as follows:
“paths”:[
{"id":"D43-D1:C",
"user-type":"g_long_shunting_route",
"attrs":{},
"start":"node101",
"edges":["node18:2-node101:0","node715:1-node18:0","node19:1-node715:0","node97:1-node19:0","node21:0-node97:0","node20_delim_node21:1-node21:1","node20:1-node20_delim_node21:0","node23:0-node20:0","node24:1-node23:2","node86:1-node24:0","node31:0-node86:0","node30_delim_node31:1-node31:1","node30:1-node30_delim_node31:0","node87:1-node30:0","node34:0-node87:0","node1-3*5-7:1-node34:1","node33:1-node1-3*5-7:3","node89:1-node33:0"]},
……
]
specifically, in this embodiment, the devices correspond to the nodes one to one, coordinates of all the devices can be reduced in an equal proportion through a preset scale, and then, according to the connection relationship between the nodes, coordinate data of the nodes meeting the preset scale can be obtained, and the coordinate data format of the nodes is as follows:
{
"nodes":[
{"id":"node101",
"x":2290,
"y":683},
{"id":"node1-3*5-7",
"x":1071,
"y":980},
{"id":"node123",
"x":3407,
"y":1208},
{"id":"node123_delim_node124",
"x":3388,
"y":1161},
{"id":"node124",
"x":3369,
"y":1115},
{"id":"node250",
"x":1066,
"y":760}
……
]
}
with continuing reference to fig. 1, the step S150 includes: generating region data according to the node data and the relationship data between the nodes; and generating the station and yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
Specifically, in this embodiment, the station yard needs to define a station yard area in addition to the physical device and the auxiliary device, and different areas may include different devices. According to different contained devices, the areas can be defined as turnout areas (containing turnout nodes SwitchNode and insulated node DelimNode), cross crossover areas (containing cross nodes CrossingNode and insulated node DelimNode), section areas (containing insulated node DelimNode and channel node passage Node) and station areas (containing all node type), and the corresponding area type user-type is as follows: g _ cross _ area, g _ track _ circuit, and g _ location. Each of the area data structures contains 5 attributes, which are area id, area type user-type, attrs, nodes, and edges, respectively. More specifically, each attribute in each of the area data is recorded with a quotation mark, different attributes are separated by a comma, each of the area data is recorded with a brace, and all the area data is recorded with a brace, and the format is as follows:
"areas":[
{"id":"69DG",
"user-type":"g_track_circuit",
"attrs":{},
"nodes":["node101","node18","node715","node98"],
"edges":["node18:1-node98:0","node18:2-node101:0","node715:1-node18:0"]},
{"id":"3-5DG",
"user-type":"g_track_circuit",
"attrs":{},
"nodes":["node1-3*5-7","node34","node35","node87","node88"],
"edges":["node1-3*5-7:1-node34:1","node34:0-node87:0","node35:1-node34:2","node35:2-node1-3*5-7:0","node88:1-node35:0"]},
{"id":"5-7",
"user-type":"g_crossover",
"attrs":{},
"nodes":["node1-3*5-7","node35","node36"],
"edges":["node1-3*5-7:2-node36:2","node35:2-node1-3*5-7:0"]},
{"id":"1-3*5-7",
"user-type":"g_crossing_area",
"attrs":{},
"nodes":["node1-3*5-7","node33","node34","node35","node36"],
"edges":["node1-3*5-7:1-node34:1","node1-3*5-7:2-node36:2","node33:1-node1-3*5-7:3","node35:2-node1-3*5-7:0"]},
……
]
specifically, in this embodiment, the yard graph cache data may be generated according to all the node data, all the inter-node connection relationship data, all the target data of the nodes, all the path data, and all the area data formats, and the yard graph may be output, but the present invention is not limited thereto.
Based on the same inventive concept, the embodiment further provides an automatic generation system of a station yard graph, which comprises: the station field data acquisition module is used for acquiring station field data of the computer interlocking system; the station yard data analysis module is connected with the station yard data acquisition module and used for analyzing the station yard data of the computer interlocking system so as to acquire equipment information and an interlocking route table of the station yard; the connection relation generation module is connected with the station yard data analysis module and used for defining each device of the station yard as a node and acquiring the connection relation corresponding to the node according to the device information; the position data generating module is respectively connected with the station yard data analyzing module and the connection relation generating module and is used for acquiring position data corresponding to the nodes according to the interlocking route table and the equipment information; and the station yard graph generating module is respectively connected with the connection relation generating module and the position generating module and is used for generating the station yard graph according to the connection relation and the position data of the set nodes.
It can be understood that the device information includes a name, a type, coordinates, an index number, an uplink connection relationship, and a downlink connection relationship of the device; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
It can be understood that the connection relationship generation module is specifically configured to correspondingly define the type of the node according to the type of the device, so as to obtain node data; acquiring a connection relation corresponding to the node according to the uplink connection relation and the downlink connection relation of the equipment; and acquiring connection relation data between the nodes according to the types and the connection relations of the nodes.
The types of the nodes include: the node comprises end nodes, channel nodes, turnout nodes, cross nodes and insulating node nodes; defining equipment with types of signalers, sections and check points as the channel nodes; defining the equipment with the type of double-opening turnout as a turnout node; defining the equipment with the type of the cross crossover line as the cross node; defining equipment with the type of the insulation joint as an insulation joint node; devices located at the yard boundaries are defined as the end nodes.
The end node is provided with 1 phase, the channel node is provided with 2 phases, the turnout node is provided with 3 phases, the cross node is provided with 4 phases, and the insulating node is not provided with a phase; and according to the connection relation of the nodes, the phase of one node is correspondingly connected with the phase of the other node so as to obtain the connection relation data between the nodes.
It can be understood that the location data generating module is specifically configured to generate path data corresponding to each route according to the interlocking route table and the data of the connection relationship between the nodes; and acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes.
Specifically, in this embodiment, the automatic station yard graph generating system further includes: and the target data generation module and the station yard data analysis module are used for naming the nodes according to preset rules and the types of the equipment so as to obtain the target data of the nodes. However, the present invention is not limited thereto.
It is to be understood that the site map generating module is specifically configured to generate area data according to the node data and the relationship data between the nodes; and generating the station yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
Specifically, in this embodiment, the yard graph generating module is further connected to the target data generating module, so as to generate yard graph cache data according to all the node data, all the inter-node connection relationship data, all the target data of the nodes, all the path data, and all the area data formats, and output the yard graph, but the invention is not limited thereto.
In addition, in this embodiment, two automatic station yard map generation systems may be adopted to generate station yard maps of the same station, and the station yard maps are formally output only when the two generated station yard maps are consistent, so as to ensure the accuracy and reliability of the station yard maps. In addition, in consideration of failure in the system development process, the two automatic station yard graph generation systems may be developed using different programming languages (i.e., back-to-back development in a heterogeneous manner) but need to have the same function, so as to effectively avoid errors caused by system failure, thereby further ensuring the accuracy of the generated station yard graph, but the invention is not limited thereto.
In summary, this embodiment provides a method and a system for automatically generating a station yard graph, which can obtain device information and an interlocking route table of a station yard by analyzing station yard data of a computer interlocking system, define each device of the station yard as a node, and obtain a connection relationship of the corresponding node according to the device information; position data of the corresponding node can be obtained according to the interlocking route table and the equipment information; and automatically generating a station yard graph according to the connection relation and the position data of the nodes. The station yard graph generated based on the interlocking station yard data can be used for multiple times only by once design, can be reused by different systems, improves the generation speed of the station yard graph, reduces the manual workload and improves the reuse rate of the station yard graph. The station and yard graphs generated in the embodiment have uniform format, simple data structure, strong universality and wide application range, and can be directly read and used by different systems; in addition, the generated station yard graph abstracts station yard equipment into a geometric figure based on a strict data theory description mode, the phase connection relation is clearly defined, and the expandability is strong.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.
Claims (16)
1. A method for automatically generating a station yard graph is characterized by comprising the following steps:
acquiring station yard data of a computer interlocking system;
analyzing the station yard data of the computer interlocking system to obtain equipment information and an interlocking route table of the station yard;
defining each device of the station yard as a node, and acquiring a connection relation corresponding to the node according to the device information;
acquiring position data corresponding to the node according to the interlocking route table and the equipment information; and
and generating a station yard graph according to the connection relation and the position data of the nodes.
2. The method according to claim 1, wherein the device information includes a name, a type, coordinates, an uplink connection relationship, and a downlink connection relationship of the device; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
3. The method for automatically generating a station yard graph according to claim 2, wherein the step of obtaining the connection relationship corresponding to the node according to the device information includes:
correspondingly defining the type of the node according to the type of the equipment to obtain node data;
acquiring a connection relation corresponding to the node according to the uplink connection relation and the downlink connection relation of the equipment; and
and acquiring connection relation data between the nodes according to the types and the connection relations of the nodes.
4. The method for automatically generating a station yard graph as claimed in claim 3, wherein the types of the nodes include: the node comprises end nodes, channel nodes, turnout nodes, cross nodes and insulating node nodes; the end node is provided with one phase, the channel node is provided with two phases, the turnout node is provided with three phases, the cross node is provided with four phases, and the insulating node is provided with two phases.
5. The method as claimed in claim 4, wherein the step of defining the type of the node according to the type correspondence of the device comprises:
defining devices with types of semaphores, sections and checkpoints as the channel nodes;
defining equipment with the type of a turnout as a turnout node;
defining the equipment with the type of a cross crossover line as the cross node;
defining equipment with the type of the insulation joint as an insulation joint node;
defining devices located at the yard boundaries as the end nodes.
6. The method for automatically generating a station yard graph as claimed in claim 5, wherein the step of obtaining the data of the connection relationship between the nodes according to the types and the connection relationship of the nodes comprises: and correspondingly connecting the phase of one node with the phase of another node according to the connection relation of the nodes to obtain the data of the connection relation between the nodes.
7. The method for automatically generating a station yard graph according to claim 3, wherein the step of acquiring the position data corresponding to the node based on the interlocking route table and the device information includes:
generating path data corresponding to each route according to the interlocking route table and the data of the connection relation between the nodes;
and acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes.
8. The method for automatically generating a station yard graph according to claim 7, wherein the step of generating a station yard graph according to the connection relationship of the nodes and the position data comprises:
generating regional data according to the node data and the relationship data between the nodes;
and generating the station and yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
9. An automatic station yard graph generation system is characterized by comprising:
the station field data acquisition module is used for acquiring station field data of the computer interlocking system;
the station yard data analysis module is connected with the station yard data acquisition module and used for analyzing the station yard data of the computer interlocking system so as to acquire equipment information and an interlocking route table of the station yard;
the connection relation generation module is connected with the station yard data analysis module and used for defining each device of the station yard as a node and acquiring the connection relation corresponding to the node according to the device information;
the position data generating module is respectively connected with the station yard data analyzing module and the connection relation generating module and is used for acquiring position data corresponding to the nodes according to the interlocking route table and the equipment information; and
and the station yard graph generating module is respectively connected with the connection relation generating module and the position generating module according to a generating module and is used for generating the station yard graph according to the connection relation and the position data of the nodes.
10. The system for automatically generating a station yard graph according to claim 9, wherein the equipment information includes a name, a type, coordinates, an uplink connection relationship, and a downlink connection relationship of the equipment; and the types of equipment include semaphores, switches, insulation sections, crossover lines, sections, and checkpoints.
11. The system for automatically generating a station yard graph according to claim 10, wherein the connection relationship generation module is specifically configured to define the type of the node according to the type of the device, so as to obtain node data;
acquiring a connection relation corresponding to the node according to the uplink connection relation and the downlink connection relation of the equipment; and
and acquiring connection relation data between the nodes according to the types and the connection relations of the nodes.
12. The system for automatically generating a station yard graph according to claim 11, wherein the types of the nodes include: the node comprises end nodes, channel nodes, turnout nodes, cross nodes and insulating node nodes; the end node is provided with a phase, the channel node is provided with two phases, the turnout node is provided with three phases, the cross node is provided with four phases, and the insulating node is provided with two phases.
13. The automatic generation system of station yard graph according to claim 12, characterized in that devices of the types semaphores, segments, and checkpoints are defined as the channel nodes; defining the equipment with the type of double-opening turnout as a turnout node; defining the equipment with the type of the cross crossover line as the cross node; defining equipment with the type of the insulation joint as an insulation joint node; devices located at the yard boundaries are defined as the end nodes.
14. The system according to claim 13, wherein the phase of one node is correspondingly connected to the phase of another node according to the connection relationship of the nodes, so as to obtain the data of the connection relationship between the nodes.
15. The system according to claim 11, wherein the location data generation module is specifically configured to generate path data corresponding to each route according to the interlocking route table and the data of the connection relationship between the nodes; and
and acquiring coordinate data of the nodes according to the coordinates of the equipment and the data of the connection relation between the nodes.
16. The system as claimed in claim 15, wherein the yard graph generating module is specifically configured to generate area data according to the node data and the relationship data between nodes; and
and generating the station and yard graph according to the node data, the relationship data among the nodes, the path data and the area data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211560675.2A CN115858869A (en) | 2022-12-07 | 2022-12-07 | Automatic generation method and system for station yard graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211560675.2A CN115858869A (en) | 2022-12-07 | 2022-12-07 | Automatic generation method and system for station yard graph |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115858869A true CN115858869A (en) | 2023-03-28 |
Family
ID=85670501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211560675.2A Pending CN115858869A (en) | 2022-12-07 | 2022-12-07 | Automatic generation method and system for station yard graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115858869A (en) |
-
2022
- 2022-12-07 CN CN202211560675.2A patent/CN115858869A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101509783B (en) | Data checking method and device applying to navigation electronic map production | |
CN112208586B (en) | Interlocking table generation method and device and readable storage medium | |
CN105303001A (en) | Method for automatically drawing railway yard graph | |
CN110674191B (en) | Universal interlocking logic searching method and device | |
CN109760720B (en) | Method and device for automatically generating interface code bit table based on signal plane layout diagram | |
CN105539521A (en) | Automatic basic data generating method and system of CBTC (Communication Based Train Control) system circuit | |
CN106335526B (en) | Based on patterned Locomotive Running Monitor System station yard data production method and system | |
CN110516354A (en) | A kind of method, apparatus automatically generating yards design and computer-readable medium | |
WO2023124576A1 (en) | Visual modeling method for train operation basic environment, medium, and electronic device | |
CN109088864A (en) | Transponder data generates and management system | |
CN101593226A (en) | The method that a kind of general station data generate | |
CN113177096B (en) | Electronic map data generation method and system based on forward sequence calculation and reverse sequence check | |
CN106294294A (en) | The consistency desired result method of rail traffic signal system consolidation form data file | |
CN115858869A (en) | Automatic generation method and system for station yard graph | |
CN112829800A (en) | Absolute infringement section identification method and device, storage medium and electronic equipment | |
CN116691786A (en) | Verification method and device for railway station computer interlocking system and computer equipment | |
Han et al. | Safety requirements specification and verification for railway interlocking systems | |
CN114519217A (en) | Automatic wiring method and system for rail transit line | |
CN114398475A (en) | Data processing method, data processing device, electronic equipment and storage medium | |
JPH1078981A (en) | Traffic guide device and instruction storage medium | |
JP3301503B2 (en) | Electronic interlocking device | |
CN114954578B (en) | Automatic generation method and system of foldback route table | |
Zhang et al. | Research on the method and tool for automatic generation of application data for interlocking simulation system | |
CN114516353B (en) | Method, system and device for generating air line operation map base map based on GIS platform | |
CN115946742B (en) | Method and device for automatically generating running route crossing data of train monitoring system |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40084322 Country of ref document: HK |