CN114715227B - Train simulation running chart generation method and device - Google Patents

Train simulation running chart generation method and device Download PDF

Info

Publication number
CN114715227B
CN114715227B CN202210220223.3A CN202210220223A CN114715227B CN 114715227 B CN114715227 B CN 114715227B CN 202210220223 A CN202210220223 A CN 202210220223A CN 114715227 B CN114715227 B CN 114715227B
Authority
CN
China
Prior art keywords
entity
information
simulation running
equipment
graphical component
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
Application number
CN202210220223.3A
Other languages
Chinese (zh)
Other versions
CN114715227A (en
Inventor
叶伟
骆正新
杨艳京
于磊
许玲玲
马苗苗
程瑾锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202210220223.3A priority Critical patent/CN114715227B/en
Publication of CN114715227A publication Critical patent/CN114715227A/en
Application granted granted Critical
Publication of CN114715227B publication Critical patent/CN114715227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a train simulation running chart generation method and device, wherein the method comprises the following steps: acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan; under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity; and generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity. The invention improves the generation efficiency of the simulation running diagram, has higher degree of automation and can greatly reduce the labor cost.

Description

Train simulation running chart generation method and device
Technical Field
The invention relates to the technical field of rail transit, in particular to a train simulation running chart generation method and device.
Background
In the prior art, an integrated drawing tool product is generally adopted to generate a train running chart; in general, an integrated drawing tool adopts an AutoCAD (Auto Computer AIDED DESIGN) secondary development technology based on ObjectARX, which is used for providing various subway equipment primitives and related auxiliary functions for drawing for users, and forming a signal plane CAD drawing with rich information through logic calculation according to the inherent association information of the primitives.
However, at present, the drawing tool product cannot automatically generate a simulation running chart according to the position information of the CAD plan, and a data configurator of a simulation system needs to manually reconfigure the coordinate data of the running chart according to the CAD plan so as to generate a corresponding simulation running chart.
Therefore, the input of the coordinate data of the running diagram of the current simulation system is manually completed by a data configurator, and entity diagrams need to be drawn one by using a specified drawing tool and then stored as the coordinate data to be used as the input of the running diagram of the simulation system. In the data configuration process, since the data volume is large, configuration personnel are required to configure each data one by one, and the CAD plan comprises a large number of repeated devices, a large number of repeated works exist, time and labor are wasted, and the degree of automation is low.
Disclosure of Invention
The invention provides a train simulation running diagram generation method and device, which are used for solving the defects of time and labor waste and low automation degree of manually configuring the coordinate data of a running diagram in the prior art and realizing automatic and accurate generation of the train running diagram.
The invention provides a train simulation running chart generation method, which comprises the following steps:
Acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan;
Under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity;
and generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
According to the train simulation running chart generation method provided by the invention, the data conversion strategy comprises a coordinate conversion strategy and/or a preset size of the graphical component.
According to the method for generating the train simulation running diagram provided by the invention, the position information of the graphical component in the entity information of each equipment entity is converted according to the data conversion strategy corresponding to each equipment entity to obtain the coordinate data of the simulation running diagram corresponding to each equipment entity, and the method comprises the following steps:
For a graphical component in the entity information of each equipment entity, under the condition that the graphical component is of a block type or a text type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component to obtain coordinate data of a simulation running diagram corresponding to each equipment entity;
And under the condition that the graphical component is of a line segment type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity.
According to the train simulation running diagram generation method provided by the invention, after the entity information of each equipment entity is extracted from the CAD plan, the method further comprises the following steps:
serializing the entity information of each equipment entity, and storing the serialized entity information of each equipment entity in a database;
and under the condition that the generation instruction is received, reading entity information of each equipment entity from the database in a deserialized form.
According to the train simulation running diagram generation method provided by the invention, after the entity information of each equipment entity is extracted from the CAD plan, the method further comprises the following steps:
And searching the data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
The train simulation running chart generation method provided by the invention further comprises the following steps:
under the condition that an expansion instruction is received, searching a new data conversion strategy in the expansion instruction in the data conversion list;
returning prompt information existing in the new data conversion strategy under the condition that the new data conversion strategy is searched;
And adding the new data conversion strategy to the data conversion list under the condition that the new data conversion strategy is not found.
According to the train simulation running chart generation method provided by the invention, the entity information comprises entity names, entity type information, stations to which the entities belong, entity insertion points, entity rotation angles, and type information and position information of graphical components.
The invention also comprises a train simulation running chart generating device, which comprises:
The extraction module is used for acquiring a CAD plan of the target station and extracting entity information of each equipment entity from the CAD plan;
the conversion module is used for converting the position information of the graphical component in the entity information of each equipment entity according to the data conversion strategy corresponding to each equipment entity under the condition of receiving the generation instruction, so as to obtain the coordinate data of the simulation running chart corresponding to each equipment entity;
and the generation module is used for generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the steps of the train simulation running diagram generating method according to any one of the above are realized when the processor executes the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the train simulation running map generation method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements the steps of a train simulation running map generation method as described in any one of the above.
According to the train simulation running diagram generation method and device, after the CAD plan of the target station is obtained, entity information of each equipment entity is automatically extracted from the CAD plan, then position information of graphical components in the entity information of each equipment entity is automatically converted into coordinate data suitable for a simulation running diagram, and then the simulation running diagram of the target station is automatically generated in a simulation mode according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information, so that the coordinate data of the simulation running diagram corresponding to the equipment entity can be automatically and efficiently generated, and the generation efficiency of the simulation running diagram is improved; and the whole simulation running diagram generation process is automatically completed, so that the automation degree is high, and the labor cost can be greatly reduced.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is one of the flow diagrams of the train simulation running diagram generating method provided by the invention;
FIG. 2 is a second flow chart of the train simulation running chart generating method provided by the invention;
FIG. 3 is a third flow chart of the train simulation running chart generating method provided by the invention;
fig. 4 is a schematic structural diagram of a train simulation running diagram generating device provided by the invention;
Fig. 5 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the prior art, a configurator needs to manually reconfigure coordinate data of an operation diagram according to a CAD plan to generate a corresponding simulation operation diagram; while manual configuration involves a large number of repetitive devices and thus many repetitive tasks; and the data volume is large, each data is configured one by one, a great amount of working time and energy of data configuration personnel are consumed, the automation degree is low, and the generation efficiency of the simulation running diagram is low.
Aiming at the problems, in the embodiment, the position information of the equipment entity is converted according to the data conversion strategy corresponding to the equipment entity so as to automatically and efficiently generate the coordinate data of the simulation running diagram corresponding to the equipment entity, so that the method is applicable to the simulation running diagram generation scenes of different projects, has high degree of automation, can improve the working efficiency and greatly reduces the labor cost.
The train simulation running diagram generating method of the present invention is described below with reference to fig. 1, and the execution subject of the method may be a controller in a simulation system, including but not limited to a server, a terminal device, a cloud end, etc., which is not specifically limited in this embodiment. The method comprises the following steps: step 101, acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan;
The target platform is a platform to be subjected to simulation running diagram generation in rail traffic, may be a platform in a subway running line, may be a platform in a high-speed rail running line, and the like, and the embodiment is not limited in particular.
Optionally, when a simulation running diagram of the target station needs to be generated, firstly acquiring a CAD plan of the target station;
The obtaining manner of the CAD plan of the target station includes searching and obtaining from a database, or may be obtained by receiving and obtaining the CAD plan sent by the plotter in real time, which is not limited in this embodiment.
Then, based on entity information extraction rules, extracting the digital dictionary information of each equipment entity from the CAD plan one by one, and storing the digital dictionary information to an object instance to obtain entity information of each equipment entity;
The entity information at least includes location information of a graphical component included in the entity device, attribute information of the device entity, and the like, which is not specifically limited in this embodiment.
After the entity information of each equipment entity is obtained, the entity information of each equipment entity can be stored in a database, so that when a generation instruction issued by a user is received, a simulation running diagram can be automatically generated according to the entity information of each equipment entity.
Step 102, under the condition of receiving a generation instruction, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain the coordinate data of a simulation running chart corresponding to each equipment entity;
Wherein, each device corresponds to each data conversion strategy one by one; the data conversion strategy can be configured and generated according to the data configuration requirement of the simulation running diagram, and is used for converting the position information of the graphical component in the entity information of each equipment entity in the CAD plan into coordinate data applicable to the simulation running diagram, such as the coordinate data formed by adjusting the size of the graphical component to be applicable to the simulation running diagram.
Optionally, before the user generates the instruction, logging in a Web site of a Web (World Wide Web) end service; the Web service website is used for accessing an interface of a running chart simulation system developed in the company;
Because the Web-side service website is required to be connected with the company intranet, for a user working at the company, the Web-side service website can be directly logged in; for a foreign office, a corporate VPN (Virtual Private Networks, virtual private network) may be selected for login.
After successful login, generating an instruction under the Web service website;
the instruction for generating the simulation running chart may be issued in the form of text or physical keys, for example, clicking a button for generating the simulation running chart or directly inputting the instruction for generating the simulation running chart into a command box, which is not limited in particular in this embodiment.
Under the condition that the controller receives the generation instruction, the entity information of each equipment entity is used as input data, and the position information of the graphical component in the entity information of each equipment entity is converted into coordinate data suitable for a simulation running chart by combining the data conversion strategy corresponding to each equipment entity.
The graphical component is a component representing an equipment entity in a CAD plan, for example, the graphical component of the emergency shutdown button in the CAD plan includes a rectangular pattern, etc., which is not specifically limited in this embodiment.
And step 103, generating a simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
Optionally, after the coordinate data of the simulation running diagram corresponding to each device entity is obtained, the coordinate data of the simulation running diagram corresponding to each device entity is used as the position of each entity device in the simulation running diagram, and other information except the position information in the entity information of each device entity is used as the attribute information of each device entity, so as to generate the simulation running diagram of the target station.
The coordinate data and other information of the simulation running diagrams corresponding to the equipment entities which are automatically generated can be stored in the local path, so that the coordinate data and other information corresponding to the target station can be directly called from the local path when the simulation running diagrams of the target station are required to be generated next time, the simulation running diagrams of the target station can be quickly and accurately generated, and the coordinate data and other information of the equipment entities in the target station can be conveniently checked in real time.
The data storage mode may be that a XSSFWorkbook public library is adopted to write coordinate data and other information corresponding to the target station into an Excel file; or directly write the coordinate data and other information corresponding to the target station into a document, etc., which is not particularly limited in this embodiment.
According to the embodiment, after the CAD plan of the target station is obtained, entity information of each equipment entity is automatically extracted from the CAD plan, then the position information of a graphical component in the entity information of each equipment entity is automatically converted into coordinate data suitable for a simulation running chart, and then the simulation running chart of the target station is automatically simulated and generated according to the coordinate data of the simulation running chart corresponding to each equipment entity and other information except the position information, so that the coordinate data of the simulation running chart corresponding to the equipment entity can be automatically and efficiently generated, and the generation efficiency of the simulation running chart is improved; and the whole simulation running diagram generation process is automatically completed, so that the automation degree is high, and the labor cost can be greatly reduced.
On the basis of the above embodiment, the data conversion policy in this embodiment includes a coordinate conversion policy and/or a preset size of the graphic assembly.
The coordinate conversion strategy is used for acquiring coordinate data suitable for the simulation running diagram based on the position information of the graphical component in the CAD plan according to a preset rule;
the preset size of the graphic assembly is used for limiting the size of the graphic assembly included in each equipment entity in the simulation running chart, and can be specifically set according to actual requirements, which is not specifically limited in this embodiment.
Alternatively, the data conversion policy may be generated directly according to the coordinate conversion policy, or may be generated according to the coordinate conversion policy and a preset size of the graphic assembly, etc., which is not specifically limited in this embodiment.
According to the coordinate conversion strategy and/or the preset size of the graphical component, the embodiment can generate the coordinate data acquisition suitable for the simulation running diagram and/or can limit the coordinate conversion strategy of the size of the graphical component.
Based on the above embodiment, in this embodiment, the converting, according to the data conversion policy corresponding to each device entity, the position information of the graphic component in the entity information of each device entity to obtain the coordinate data of the simulation running chart corresponding to each device entity includes: for a graphical component in the entity information of each equipment entity, under the condition that the graphical component is of a block type or a text type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component to obtain coordinate data of a simulation running diagram corresponding to each equipment entity; and under the condition that the graphical component is of a line segment type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity.
Wherein the types of the graphic components include a plurality of types including block type, line type and text type; block types and line types are used to characterize the graphical components of different device entities in a CAD plan; the text type is used to characterize entity information of different device entities.
The equipment entities include emergency shutdown buttons, screen doors, transponders, car station names, axle gauges, annunciators, insulated joints, switches, track units, SPKS (Staff Protection KEY SWITCH, personnel protection switches) and car washes, which are not specifically limited in this embodiment.
Alternatively, since both block type and text type are block diagrams in nature in CAD plan, they belong to the same type as one type and to a different type than line type; therefore, different data conversion strategies need to be adopted to perform data conversion.
For example, the position information of the block type and text type graphic assembly includes the insertion point of the graphic assembly, that is, the coordinate data of the center point of the graphic assembly on the CAD plan; the position information of the line type graphical component comprises the starting point and the ending point of the graphical component in the CAD plan, and/or the coordinates of the turning point and the like; thus, the block type and text type are different from the location information of the line type graphic component.
Optionally, the specific step of obtaining the coordinate data of the simulation running chart corresponding to each device entity in step 102 includes: firstly, after graphic components in entity information of each equipment entity are acquired, determining the type of each graphic component;
Under the condition that the graphical component is of a block type or a text type, the position information of the graphical component only comprises the coordinate of an insertion point of the graphical component, the position information of the graphical component can be converted according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component, and coordinate data of a simulation running chart corresponding to each equipment entity is obtained, for example, the coordinate data comprises one or more combinations of the left upper corner coordinate, the left lower corner coordinate, the right lower corner coordinate and the right upper corner coordinate of the graphical component.
Under the condition that the graphical component is of a line segment type, because the position information of the graphical component comprises the starting point and the ending point of the graphical component and/or the coordinates of the turning point, the starting point and the ending point of the graphical component in the simulation running diagram and/or the coordinates of the turning point can be obtained according to the coordinate conversion strategy corresponding to each equipment entity so as to obtain the coordinate data of the simulation running diagram.
The coordinate data of the simulation run chart in this embodiment will be described below with specific examples.
Wherein, (X1, Y1) and (X2, Y2) are coordinate data formed by coordinate conversion; after the coordinate conversion, the different device entities form exemplary representations of the coordinate data as follows,
(1) Emergency off button: a rectangular graph drawn beside the platform rail, wherein (X1, Y1) is the upper left corner coordinate; (X2, Y2) is the lower right corner coordinate, and the length and the width are 20 unit scales;
(2) The shielding door comprises: and a long line graph is drawn beside the platform, wherein (X1, Y1) is used as a starting point coordinate, and (X2, Y2) is used as an ending point coordinate.
(3) A transponder: the rectangular graph takes the center point of the rectangular graph as a reference point, and when the distance between the two transponders is smaller than the graph width, the rectangular graph is drawn in a non-overlapping manner (for example, the coordinate data of the rectangular graph are obtained only according to the length of the rectangular graph and the coordinate conversion strategy); the left upper angle ordinate is consistent with the ordinate of the track unit where the left upper angle ordinate is located, (X1, Y1) is the left upper angle coordinate; (X2, Y2) is lower right angular position; the length and width are each 10 unit scales.
(4) Station name: and the character string is used for displaying the name of the station and is drawn above the corresponding platform rail unit. X1 is the left lower corner abscissa of the initial character, Y1 is the left lower corner ordinate of the initial character to 13 unit scales; the coordinate data of (X2, Y2) and (X1, Y1) are the same.
(5) And (3) shaft counting: comprises a counting shaft ID (Identity Document, identity mark) and a counting shaft boundary mark;
The counting shaft ID is used for displaying the counting shaft ID above or below the counting shaft, X1 is the left lower corner abscissa of the initial character, and Y1 is the left lower corner ordinate of the initial character; (X2, Y2) is the same as the coordinate data of (X1, Y1);
The axle counting boundary mark and the short line graph are drawn above or below the axle counting section boundary, and (X1, Y1) is used as a starting point coordinate; (X2, Y2) is the end point coordinates.
(6) Signaling machine: the traffic light comprises a traffic light name, a lamp post and a signal lamp;
In the coordinates of the name of the annunciator, X1 is the left lower corner abscissa-2 unit scales of the initial character, and Y1 is the left lower corner ordinate-9 unit scales of the initial character;
the lamp post is a short line graph, and (X1, Y1) is a starting point coordinate; (X2, Y2) is the endpoint coordinates;
the signal lamp is in a circular pattern, (X1, Y1) is in a circular pattern, the circular pattern circumscribes the upper left corner coordinate of the square, and (X2, Y2) is in a circular pattern, the circular pattern circumscribes the lower right corner coordinate of the square, and the side length of the circumscribed square is 10 unit scales.
(7) Insulating section: a short line graph is drawn on the boundary of the track unit; (X1, Y1) as starting point coordinates; (X2, Y2) is the end point coordinates.
(8) Switch point: the method comprises the steps of (1) locating before and after a turnout and reversing the turnout;
In the coordinates of the turnout names, X1 is the left lower corner abscissa-1 unit scale of the initial character, Y1 is the left lower corner ordinate-14 unit scale of the initial character, and the coordinate data of (X2, Y2) and (X1, Y1) are the same;
In the front line segment of the fork, (X1, Y1) is the coordinates of the fork point (namely the coordinates of the starting point), and (X2, Y2) is the coordinates of the end point of the front outer end of the fork (namely the coordinates of the end point);
In the post-fork positioning line segment, (X1, Y1) is the coordinates of a fork center point, and (X2, Y2) is the coordinates of an outer end point of the post-fork positioning;
in the backward line segment, (X1, Y1) is the coordinates of the fork point, and (X2, Y2) is the coordinates of the backward outer end point.
(9) Track unit: a line pattern including track cell names and track cells;
in the track unit name, X1 is the left lower corner abscissa-1 unit scale of the initial character, Y1 is the left lower corner ordinate-14 unit scale of the initial character, and the coordinate data of (X2, Y2) and (X1, Y1) are the same.
A line pattern of track units, (X1, Y1) as starting point coordinates; (X2, Y2) is the end point coordinates.
(10) SPKS: rectangular pattern, (X1, Y1) is the upper left corner coordinates; (X2, Y2) is the lower right corner coordinate, and is 80 unit scales long and 20 unit scales wide.
(11) A car washer: rectangular pattern, (X1, Y1) is the upper left corner coordinates; (X2, Y2) is the lower right corner coordinate, and the length sum is 120 unit scales.
According to the method, different data conversion strategies are generated according to different types of graphical components, namely the position information of the graphical components in the entity information of each equipment entity can be quickly converted into coordinate data suitable for a simulation running chart, the method can be suitable for various types of graphical components, and the applicability is good.
On the basis of the foregoing embodiment, in this embodiment, after extracting entity information of each device entity from the CAD plan, the method further includes: serializing the entity information of each equipment entity, and storing the serialized entity information of each equipment entity in a database; and under the condition that the generation instruction is received, reading entity information of each equipment entity from the database in a deserialized form.
Where serialization is the conversion of entity information of a device entity into a form that can be stored or transmitted.
The database may be a mongo db database or an Oracle relational database, and the like, which is not particularly limited in this embodiment.
The following describes the entity data storage and reading process in this embodiment, taking the database as a MongoDB database as an example.
The MongoDB database is a database based on distributed file storage, and the data insertion format is BSON (Binary JSON) format data.
Optionally, after extracting the entity information of each device entity from the CAD plan, the entity information of each device entity may be directly converted into BSON format data, so as to implement serialization of the entity information of each device entity, and then, the serialized entity information of each device entity is stored in the mongo db database;
As shown in fig. 2, after receiving the save instruction, the entity information of each device entity may be stored in the mongo db database, which is not specifically limited in this embodiment.
The manner of sending the save instruction includes text, physical keys, and the like, which are not specifically limited in this embodiment.
For example, after the operation interface of the simulation running chart system inputs a "data saving" command, a carriage return key is entered, then corresponding engineering information is filled in, and after the information is determined to be correct, the controller starts uploading entity information of each equipment entity to the database. After the storage is finished, the data storage completion is displayed in a command prompt column. In the data transmission process, due to the large data volume, a period of time needs to be waited, the time length depends on the data volume and the network condition, and an average ZC (zone control zone management) concentration zone is only 1 minute. Less time consuming than manually configuring data.
Then, under the condition that a simulation running diagram of the target station needs to be generated, the entity information of each equipment entity in the target station can be directly read from the MongoDB database in an anti-sequencing mode only by inputting a corresponding generation instruction; and analyzing BSON format data based on the interface reverse sequence provided by MongoRepository operation databases in the MongoDB database to obtain entity information of each equipment entity.
For example, the option of "start CAD data configuration" is directly pulled down and selected in the menu bar of "CAD data configuration" on the left side of the simulation run chart generation interface, the corresponding design engineering name is selected on the right side, and after the button of "generate simulation run chart data" is clicked, the entity information of each device entity in the target station can be automatically read from the mongo db database, and the compressed package file in zip format can be generated in the folder of the preset download path configured by the user browser, so that the user can view in real time.
According to the embodiment, the entity information of each equipment entity is stored in the database, so that when the simulation running diagram needs to be generated, the generation instruction is directly input, and the entity information of each entity can be directly obtained from the database, so that the simulation running diagram can be quickly and accurately generated; the method does not need to repeatedly input data, greatly improves the generation efficiency of the coordinate data and the graphics of the simulation running diagram, and reduces the manpower resource consumption and the production cost.
On the basis of the foregoing embodiment, in this embodiment, after extracting entity information of each device entity from the CAD plan, the method further includes: and searching the data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
The data conversion list stores the corresponding relation between the entity names of the equipment entities and the data conversion strategies;
optionally, after extracting entity information of each device entity from the CAD plan, searching an entity name of each device entity in a data conversion list;
After the entity names of the equipment entities are found, the data conversion strategies corresponding to the equipment entities can be obtained.
After the entity information of each equipment entity is extracted, the data conversion strategy corresponding to each equipment entity can be rapidly and accurately obtained according to the entity name of each equipment entity.
On the basis of the above embodiment, the present embodiment further includes: under the condition that an expansion instruction is received, searching a new data conversion strategy in the expansion instruction in the data conversion list; returning prompt information existing in the new data conversion strategy under the condition that the new data conversion strategy is searched; and adding the new data conversion strategy to the data conversion list under the condition that the new data conversion strategy is not found.
The expansion instruction is used for expanding the data conversion list;
Optionally, under the condition that an expansion instruction is received, firstly judging that a new data conversion strategy in the expansion instruction is in a data conversion list, and if the new data conversion strategy is in the data conversion list, returning prompt information that the new data conversion strategy exists;
If the new data conversion policy is not in the data conversion list, the new data conversion policy is added to the data conversion list.
In this embodiment, when an expansion instruction is received, expansion of the data conversion list can be achieved, so that operation is simple, and the application range of the expanded data conversion list is wider.
On the basis of the above embodiment, the entity information in this embodiment includes entity name, entity type information, station to which the entity belongs, entity insertion point, entity rotation angle, and type information and position information of the graphic assembly.
Alternatively, the entity information may include other information in addition to the above information, such as graphical components for text types, text content information, and the like, which is not particularly limited in this embodiment.
The type information of the graphic assembly comprises a block type, a single-segment linear type, a multi-segment line type and a text type. Block types include other block patterns such as rectangular and circular.
The location information of the different types of patterning means is different.
For example, (1) position information of Block type Block including relative insertion point and rotation angle of Block, etc.;
(2) The single-segment linear type position information comprises a start point coordinate, an end point coordinate and the like of a line segment;
(3) The position information of the multi-section line type comprises the coordinates of a starting point, an ending point, a turning point and the like of the multi-section line;
(4) Location information for the text type, including the relative insertion point of the text.
As shown in fig. 3, a complete flow diagram of a train simulation running chart generating method in this embodiment mainly includes obtaining entity information of each device entity in a CAD plan, serializing the entity information of each device entity and storing it in a mongo db database, reading the entity information of the database, automatically generating coordinate data, automatically generating a simulation running chart, and generating an Excel file.
The embodiment designs a reasonable class structure and instantiates entity information of the CAD plan as an object of the class; the class objects containing the entity information are then serialized into BSON data and then stored to MongoDb database. According to the data conversion strategies of different equipment entities, the position information of the graphical components contained in each equipment entity in the CAD plan is converted into the coordinate data of the simulation running chart, so that the generation efficiency of the coordinate data and the graph of the simulation running chart is greatly improved, and the manpower resource consumption and the production cost are reduced; and the data utilization rate between the CAD plan and the simulation running diagram is greatly improved, so that engineering drawing designers can completely obtain the corresponding simulation running diagram after drawing the CAD plan. And on the basis of correct input data and application of data processing rules, the method ensures the accuracy of the data to a certain extent.
The train simulation running chart generating device provided by the invention is described below, and the train simulation running chart generating device described below and the train simulation running chart generating method described above can be correspondingly referred to each other.
As shown in fig. 4, the present embodiment provides a train simulation running chart generating apparatus, which includes an extracting module 401, a converting module 402, and a generating module 403, wherein:
the extracting module 401 is configured to obtain a CAD plan of a target station, and extract entity information of each device entity from the CAD plan;
The target platform is a platform to be subjected to simulation running diagram generation in rail traffic, may be a platform in a subway running line, may be a platform in a high-speed rail running line, and the like, and the embodiment is not limited in particular.
Optionally, when a simulation running diagram of the target station needs to be generated, firstly acquiring a CAD plan of the target station;
The obtaining manner of the CAD plan of the target station includes searching and obtaining from a database, or may be obtained by receiving and obtaining the CAD plan sent by the plotter in real time, which is not limited in this embodiment.
Then, based on entity information extraction rules, extracting the digital dictionary information of each equipment entity from the CAD plan one by one, and storing the digital dictionary information to an object instance to obtain entity information of each equipment entity;
The entity information at least includes location information of a graphical component included in the entity device, attribute information of the device entity, and the like, which is not specifically limited in this embodiment.
After the entity information of each equipment entity is obtained, the entity information of each equipment entity can be stored in a database, so that when a generation instruction issued by a user is received, a simulation running diagram can be automatically generated according to the entity information of each equipment entity.
The conversion module 402 is configured to convert, when receiving the generation instruction, position information of the graphic component in the entity information of each device entity according to a data conversion policy corresponding to each device entity, to obtain coordinate data of a simulation running chart corresponding to each device entity;
Wherein, each device corresponds to each data conversion strategy one by one; the data conversion strategy can be configured and generated according to the data configuration requirement of the simulation running diagram, and is used for converting the position information of the graphical component in the entity information of each equipment entity in the CAD plan into coordinate data applicable to the simulation running diagram, such as the coordinate data formed by adjusting the size of the graphical component to be applicable to the simulation running diagram.
Optionally, before the user generates the instruction, logging in the Web site; the Web service website is used for accessing an interface of a running chart simulation system developed in the company;
Because the Web-side service website is required to be connected with the company intranet, for a user working at the company, the Web-side service website can be directly logged in; and for the office in different places, the VPN of the company can be selected to be used for login.
After successful login, generating an instruction under the Web service website;
the instruction for generating the simulation running chart may be issued in the form of text or physical keys, for example, clicking a button for generating the simulation running chart or directly inputting the instruction for generating the simulation running chart into a command box, which is not limited in particular in this embodiment.
Under the condition that the controller receives the generation instruction, the entity information of each equipment entity is used as input data, and the position information of the graphical component in the entity information of each equipment entity is converted into coordinate data suitable for a simulation running chart by combining the data conversion strategy corresponding to each equipment entity.
The graphical component is a component representing an equipment entity in a CAD plan, for example, the graphical component of the emergency shutdown button in the CAD plan includes a rectangular pattern, etc., which is not specifically limited in this embodiment.
The generating module 403 is configured to generate a simulation running chart of the target station according to the coordinate data of the simulation running chart corresponding to each device entity and other information except the location information in the entity information of each device entity.
Optionally, after the coordinate data of the simulation running diagram corresponding to each device entity is obtained, the coordinate data of the simulation running diagram corresponding to each device entity is used as the position of each entity device in the simulation running diagram, and other information except the position information in the entity information of each device entity is used as the attribute information of each device entity, so as to generate the simulation running diagram of the target station.
The coordinate data and other information of the simulation running diagrams corresponding to the equipment entities which are automatically generated can be stored in the local path, so that the coordinate data and other information corresponding to the target station can be directly called from the local path when the simulation running diagrams of the target station are required to be generated next time, the simulation running diagrams of the target station can be quickly and accurately generated, and the coordinate data and other information of the equipment entities in the target station can be conveniently checked in real time.
According to the embodiment, after the CAD plan of the target station is obtained, entity information of each equipment entity is automatically extracted from the CAD plan, then the position information of a graphical component in the entity information of each equipment entity is automatically converted into coordinate data suitable for a simulation running chart, and then the simulation running chart of the target station is automatically simulated and generated according to the coordinate data of the simulation running chart corresponding to each equipment entity and other information except the position information, so that the coordinate data of the simulation running chart corresponding to the equipment entity can be automatically and efficiently generated, and the generation efficiency of the simulation running chart is improved; and the whole simulation running diagram generation process is automatically completed, so that the automation degree is high, and the labor cost can be greatly reduced.
On the basis of the above embodiment, the data conversion policy in this embodiment includes a coordinate conversion policy and/or a preset size of the graphic assembly.
Based on the above embodiments, the conversion module in this embodiment is specifically configured to: for a graphical component in the entity information of each equipment entity, under the condition that the graphical component is of a block type or a text type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component to obtain coordinate data of a simulation running diagram corresponding to each equipment entity; and under the condition that the graphical component is of a line segment type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity.
On the basis of the above embodiments, the present embodiment further includes a storage module, configured to: serializing the entity information of each equipment entity, and storing the serialized entity information of each equipment entity in a database; and under the condition that the generation instruction is received, reading entity information of each equipment entity from the database in a deserialized form.
On the basis of the above embodiments, the present embodiment further includes a search module, configured to: and searching the data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
On the basis of the above embodiment, the present embodiment further includes an expansion module, configured to: under the condition that an expansion instruction is received, searching a new data conversion strategy in the expansion instruction in the data conversion list; returning prompt information existing in the new data conversion strategy under the condition that the new data conversion strategy is searched; and adding the new data conversion strategy to the data conversion list under the condition that the new data conversion strategy is not found.
On the basis of the above embodiments, the entity information in this embodiment includes entity name, entity type information, station to which the entity belongs, entity insertion point, entity rotation angle, and type information and position information of the graphic assembly.
Fig. 5 illustrates a physical schematic diagram of an electronic device, as shown in fig. 5, which may include: processor (processor) 501, communication interface (Communications Interface) 502, memory (memory) 503, and communication bus 504, wherein processor 501, communication interface 502, memory 503 complete communication with each other through communication bus 504. The processor 501 may invoke logic instructions in the memory 503 to perform a train simulation run map generation method comprising: acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan; under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity; and generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
Further, the logic instructions in the memory 503 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a train simulation running chart generating method provided by the above methods, and the method includes: acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan; under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity; and generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the train simulation running map generation method provided by the above methods, the method comprising: acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan; under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity; and generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The train simulation running chart generation method is characterized by comprising the following steps of:
Acquiring a CAD plan of a target station, and extracting entity information of each equipment entity from the CAD plan;
Under the condition that a generating instruction is received, converting the position information of the graphical component in the entity information of each equipment entity according to a data conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity;
generating a simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity;
The data conversion strategy comprises a coordinate conversion strategy and/or a preset size of the graphical component;
converting the position information of the graphic assembly in the entity information of each equipment entity according to the data conversion strategy corresponding to each equipment entity to obtain the coordinate data of the simulation running chart corresponding to each equipment entity, wherein the method comprises the following steps:
For a graphical component in entity information of each equipment entity, under the condition that the graphical component is of a block type or a text type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component to obtain coordinate data of a simulation running chart corresponding to each equipment entity, wherein the position information of the graphical component comprises the coordinate of an insertion point of the graphical component;
and under the condition that the graphical component is of a line segment type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity, wherein the position information of the graphical component comprises coordinates of a starting point, an ending point and/or a turning point of the graphical component.
2. The train simulation running map generation method according to claim 1, further comprising, after the extracting entity information of each equipment entity from the CAD plan:
serializing the entity information of each equipment entity, and storing the serialized entity information of each equipment entity in a database;
and under the condition that the generation instruction is received, reading entity information of each equipment entity from the database in a deserialized form.
3. The train simulation running map generation method according to claim 1, further comprising, after the extracting entity information of each equipment entity from the CAD plan:
And searching the data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
4. The train simulation running map generation method according to claim 3, further comprising:
under the condition that an expansion instruction is received, searching a new data conversion strategy in the expansion instruction in the data conversion list;
returning prompt information existing in the new data conversion strategy under the condition that the new data conversion strategy is searched;
And adding the new data conversion strategy to the data conversion list under the condition that the new data conversion strategy is not found.
5. The train simulation running map generation method according to claim 1, wherein the entity information includes an entity name, entity type information, a station to which the entity belongs, an entity insertion point, an entity rotation angle, and type information and position information of a graphic component.
6. A train simulation running chart generating device, characterized by comprising:
The extraction module is used for acquiring a CAD plan of the target station and extracting entity information of each equipment entity from the CAD plan;
the conversion module is used for converting the position information of the graphical component in the entity information of each equipment entity according to the data conversion strategy corresponding to each equipment entity under the condition of receiving the generation instruction, so as to obtain the coordinate data of the simulation running chart corresponding to each equipment entity;
The generating module is used for generating the simulation running diagram of the target station according to the coordinate data of the simulation running diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity;
The data conversion strategy comprises a coordinate conversion strategy and/or a preset size of the graphical component;
the conversion module is specifically configured to:
For a graphical component in entity information of each equipment entity, under the condition that the graphical component is of a block type or a text type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and the preset size of the graphical component to obtain coordinate data of a simulation running chart corresponding to each equipment entity, wherein the position information of the graphical component comprises the coordinate of an insertion point of the graphical component;
and under the condition that the graphical component is of a line segment type, converting the position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity to obtain coordinate data of a simulation running chart corresponding to each equipment entity, wherein the position information of the graphical component comprises coordinates of a starting point, an ending point and/or a turning point of the graphical component.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements the steps of the train simulation running map generation method of any one of claims 1 to 5.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the train simulation running map generation method of any of claims 1 to 5.
CN202210220223.3A 2022-03-08 2022-03-08 Train simulation running chart generation method and device Active CN114715227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210220223.3A CN114715227B (en) 2022-03-08 2022-03-08 Train simulation running chart generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220223.3A CN114715227B (en) 2022-03-08 2022-03-08 Train simulation running chart generation method and device

Publications (2)

Publication Number Publication Date
CN114715227A CN114715227A (en) 2022-07-08
CN114715227B true CN114715227B (en) 2024-06-14

Family

ID=82238578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220223.3A Active CN114715227B (en) 2022-03-08 2022-03-08 Train simulation running chart generation method and device

Country Status (1)

Country Link
CN (1) CN114715227B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605864A (en) * 2013-11-28 2014-02-26 北京交通大学 Urban rail transit network train working diagram displaying method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3752337B2 (en) * 1997-01-31 2006-03-08 財団法人鉄道総合技術研究所 Train diagram simulation device and train diagram creation device
JP6924077B2 (en) * 2017-06-12 2021-08-25 株式会社日立製作所 Diamond information processing system and its method
JP6429953B1 (en) * 2017-06-23 2018-11-28 鈴木 晃一 Integrated system for creating diagrams using a web browser
CN109857996A (en) * 2019-01-25 2019-06-07 深圳供电局有限公司 Communication scheduling operation graph data generation method and system
CN111932656B (en) * 2020-07-29 2024-09-10 交控科技股份有限公司 Running chart information indexing method, device and equipment
CN113343422B (en) * 2021-05-07 2024-10-15 交控科技股份有限公司 Rail transit operation simulation method and system
CN113779340A (en) * 2021-08-25 2021-12-10 通号城市轨道交通技术有限公司 Train operation diagram generation method and system, electronic device and storage medium
CN113978513B (en) * 2021-11-10 2023-12-01 通号万全信号设备有限公司 Display optimization method and device for real-time running chart of rail transit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605864A (en) * 2013-11-28 2014-02-26 北京交通大学 Urban rail transit network train working diagram displaying method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高速铁路控车场景的功能仿真设计与虚拟化测试;刘军;《中国优秀硕士学位论文全文数据库(电子期刊)》(第3期);全文 *

Also Published As

Publication number Publication date
CN114715227A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN110196953B (en) Application point burying method and device, computing equipment and system
CN102915375B (en) A kind of webpage loading method based on layout subregion
EP3916634A2 (en) Text recognition method and device, and electronic device
CN105912655A (en) WebGL-based three-dimensional model display method and corresponding Web-BIM engineering information integration management system
CN109491735B (en) Integrated data generation and verification integrated monitoring human-computer interface configuration implementation method
CN112507499A (en) GIS-based power distribution network line loss data acquisition method and related device
CN110795848B (en) Large-scale commercial complex logistics intelligent operation and maintenance method
CN112560130B (en) H5 drawing display method based on CAD (computer aided design) drawing data of rail transit trackside equipment
CN110222407B (en) BIM data fusion method and device
CN112818460A (en) Intelligent building rollover method from two-dimensional drawing to three-dimensional model
CN110069840A (en) The construction method and device of indoor three-dimensional semantic model
CN109447466B (en) Overall process visual management and control system based on power distribution network communication network construction
CN112818457A (en) BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium
CN108804469A (en) A kind of web page identification method and electronic equipment
CN117152399A (en) Model making method, device, equipment and storage medium based on transformer substation
CN114715227B (en) Train simulation running chart generation method and device
CN111132181B (en) Ray tracing technology method and device applied to wireless communication network
CN115880103B (en) Visual management method, device, equipment and medium for railway engineering progress
CN111611665A (en) Intelligent substation design method based on three-dimensional modular design
CN114936442B (en) System and method for accurately positioning power distribution network equipment and forming topological graph
CN111753344B (en) Method for generating assembly type component data set, CAD platform and storage medium
CN113838157A (en) Track traffic map drawing system, method, electronic device and storage medium
CN115544984A (en) Method, apparatus, device and medium for generating coverage group in integrated circuit verification environment
CN111813401B (en) Graphic assembly method and system in drawing modeling tool based on B/S architecture

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