CN114715227A - Method and device for generating train simulation operation diagram - Google Patents

Method and device for generating train simulation operation diagram Download PDF

Info

Publication number
CN114715227A
CN114715227A CN202210220223.3A CN202210220223A CN114715227A CN 114715227 A CN114715227 A CN 114715227A CN 202210220223 A CN202210220223 A CN 202210220223A CN 114715227 A CN114715227 A CN 114715227A
Authority
CN
China
Prior art keywords
entity
information
equipment
equipment entity
simulation operation
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
Application number
CN202210220223.3A
Other languages
Chinese (zh)
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/CN114715227A/en
Publication of CN114715227A publication Critical patent/CN114715227A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention provides a method and a device for generating a train simulation operation chart, wherein the method comprises the following steps: acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan; 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 coordinate data of a simulation operation chart corresponding to each equipment entity; and generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart 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 operation chart, has higher automation degree and can greatly reduce the labor cost.

Description

Method and device for generating train simulation operation diagram
Technical Field
The invention relates to the technical field of rail transit, in particular to a method and a device for generating a train simulation operation diagram.
Background
In the prior art, an integrated drawing tool product is generally adopted to generate a train operation diagram; generally, an integrated drawing tool adopts an Auto Computer Aided Design (AutoCAD) secondary development technology based on ObjectARX, and is used for providing various subway equipment primitives and related auxiliary functions for a user, and forming a signal plane CAD drawing with rich information through logic calculation according to internal associated information of the primitives.
However, at present, the drawing tool product cannot automatically generate the simulation run chart according to the position information of the CAD plan chart, and a data configuration person of the simulation system needs to manually configure the coordinate data of the run chart again according to the CAD plan chart to generate the corresponding simulation run chart.
Therefore, the coordinate data entry of the current simulation system operation diagram is manually completed by data configuration personnel, and the entity diagrams need to be drawn one by using a specified drawing tool and then stored as coordinate data to be used as the input of the simulation system operation diagram. In the data configuration process, due to the fact that the data size is large, configuration personnel are required to configure each data one by one, and the CAD plan contains a large number of repeated devices, a large amount of repeated work exists, time and labor are wasted, and the automation degree is low.
Disclosure of Invention
The invention provides a method and a device for generating a train simulation working diagram, which are used for overcoming the defects of time and labor waste and low automation degree caused by manual configuration of coordinate data of the working diagram in the prior art and realizing automatic and accurate generation of the train working diagram.
The invention provides a method for generating a train simulation operation diagram, which comprises the following steps:
acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan;
under the condition that a generation instruction is received, 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 to obtain the coordinate data of the simulation operation chart corresponding to each equipment entity;
and generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart 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 operation diagram generation method provided by the invention, the data conversion strategy comprises a coordinate conversion strategy and/or a preset size of a graphical component.
According to the method for generating the train simulation operation diagram provided by the invention, the step of 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 to obtain the coordinate data of the simulation operation diagram corresponding to each equipment entity 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 position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and a preset size of the graphical component to obtain coordinate data of a simulation operation chart 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 the simulation operation chart corresponding to each equipment entity.
According to the method for generating the train simulation operation diagram provided by the invention, after the entity information of each equipment entity is extracted from the CAD plan diagram, 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 of receiving the generation instruction, reading the entity information of each equipment entity from the database in an deserialization form.
According to the method for generating the train simulation operation diagram provided by the invention, after the entity information of each equipment entity is extracted from the CAD plan diagram, the method further comprises the following steps:
and searching a data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
The method for generating the train simulation operation diagram 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 the prompt information of the new data conversion strategy when the new data conversion strategy is found;
and adding the new data conversion strategy into the data conversion list under the condition that the new data conversion strategy is not found.
According to the train simulation operation diagram generation method provided by the invention, the entity information comprises 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 graphical component.
The invention also comprises a device for generating the train simulation operation chart, which comprises:
the extraction module is used for acquiring a CAD plan of the target platform 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 to obtain the coordinate data of the simulation operation chart corresponding to each equipment entity;
and the generating module is used for generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart 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, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the train simulation operation diagram generation method.
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 run graph 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 the method for generating a simulated train running chart as described in any one of the above.
According to the train simulation operation diagram generation method and device, after the CAD plan diagram of the target platform is obtained, the entity information of each equipment entity is automatically extracted from the CAD plan diagram, then the position information of the graphical component in the entity information of each equipment entity is automatically converted into the coordinate data suitable for the simulation operation diagram, and then the simulation operation diagram of the target platform is automatically generated through simulation according to the coordinate data of the simulation operation diagram corresponding to each equipment entity and other information except the position information, so that the coordinate data of the simulation operation diagram corresponding to the equipment entity can be automatically and efficiently generated, and the generation efficiency of the simulation operation diagram is improved; and the whole simulation operation diagram generation process is automatically completed, the automation degree is higher, and the labor cost can be greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for generating a simulated train operation chart according to the present invention;
FIG. 2 is a second schematic flow chart of the method for generating a simulated train operation chart according to the present invention;
FIG. 3 is a third schematic flow chart of a method for generating a simulated train operation chart according to the present invention;
fig. 4 is a schematic structural diagram of a train simulation operation diagram generation device provided by the invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, a configurator needs to manually reconfigure the coordinate data of the running chart according to the CAD plan chart to generate a corresponding simulation running chart; the manual configuration process involves a large number of repeated devices, and therefore many repetitive tasks; and the data volume is great, and each data is configured one by one, which can consume a great deal of working time and energy of data configuration personnel, and has low automation degree and low generation efficiency of the simulation operation chart.
In view of the above problems, in this embodiment, the position information of the equipment entity is converted according to the data conversion policy corresponding to the equipment entity, so as to automatically and efficiently generate the coordinate data of the simulation run chart corresponding to the equipment entity.
The train simulation operation diagram generation method of the present invention is described below with reference to fig. 1, where an 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, and the like, and this embodiment is not particularly limited thereto. The method comprises the following steps: step 101, acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan;
the target platform is a platform to be subjected to generation of a simulation operation diagram in rail transit, and may be a platform in a subway operation line, a platform in a high-speed rail operation line, or the like, which is not specifically limited in this embodiment.
Optionally, when the simulation run graph of the target platform needs to be generated, a CAD plan of the target platform is obtained first;
the obtaining method of the CAD plan of the target platform includes searching and obtaining from a database, or may be obtaining by receiving the CAD plan sent by a drawing staff in real time, which is not specifically limited in this embodiment.
Then, based on entity information extraction rules, extracting digital dictionary information of each equipment entity from the CAD plane graph 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 operation chart can be automatically generated according to the entity information of each equipment entity.
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 the data conversion strategy corresponding to each equipment entity to obtain the coordinate data of the simulation operation chart corresponding to each equipment entity;
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 run chart, and is used for converting the position information of the graphical component in the entity information of each equipment entity in the CAD plan chart into coordinate data applicable to the simulation run chart, for example, coordinate data formed by adjusting the size of the graphical component to be applicable to the simulation run chart.
Optionally, before the user issues the generation instruction, the user needs to log in a World Wide Web (global Wide area network) end service website; the Web end service website is used for accessing an interface of an operation diagram simulation system developed in a company;
because the login of the Web end service website needs to be connected with the internal network of the company, the user working in the company can directly login the Web end service website; for off-site office, the user can choose to log in the VPN (Virtual Private network) of the company.
After the login is successful, issuing a generation instruction through a Web end service website;
the generation instruction is an instruction sent by a user to generate the simulation operation diagram, and may be issued in the form of a text or a physical key, for example, a button of "generating the simulation operation diagram" is clicked or an "generating the simulation operation diagram" instruction is directly input in a command box, and the like, which is not specifically limited in this embodiment.
And under the condition that the controller receives the generation instruction, taking the entity information of each equipment entity as input data, and converting the position information of the graphical component in the entity information of each equipment entity into coordinate data suitable for the simulation run chart by combining a data conversion strategy corresponding to each equipment entity.
The graphical component is a component for characterizing the device entity in the CAD plan, for example, the graphical component of the emergency shutdown button in the CAD plan includes a rectangular graph, and the like, which is not specifically limited in this embodiment.
Step 103, generating the simulation operation diagram of the target platform according to the coordinate data of the simulation operation diagram corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
Optionally, after obtaining the coordinate data of the simulation operation diagram corresponding to each device entity, the coordinate data of the simulation operation diagram corresponding to each device entity is used as the position of each entity device in the simulation operation 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 operation diagram of the target platform.
The coordinate data and other information of the simulation operation diagram corresponding to each automatically generated equipment entity can be stored in the local path, so that the coordinate data and other information corresponding to the target platform can be directly called from the local path when the simulation operation diagram of the target platform needs to be generated next time, the simulation operation diagram of the target platform can be quickly and accurately generated, and the coordinate data and other information of each equipment entity in the target platform can be conveniently checked in real time.
The data storage mode can be that an XSSFWorkbook public library is adopted to write the coordinate data and other information corresponding to the target platform into an Excel file; or directly write the coordinate data and other information corresponding to the target station into a document, and the like, which is not specifically limited in this embodiment.
In the embodiment, after the CAD plan of the target platform is obtained, the entity information of each equipment entity is automatically extracted from the CAD plan, then the position information of the graphical component in the entity information of each equipment entity is automatically converted into the coordinate data suitable for the simulation run chart, and then the simulation run chart of the target platform is automatically generated through simulation according to the coordinate data of the simulation run chart corresponding to each equipment entity and other information except the position information, so that not only can the coordinate data of the simulation run chart corresponding to the equipment entity be automatically and efficiently generated, but also the generation efficiency of the simulation run chart is improved; and the whole simulation operation diagram generation process is automatically completed, the automation degree is higher, and the labor cost can be greatly reduced.
On the basis of the above embodiments, the data conversion policy in this embodiment includes a coordinate conversion policy and/or a preset size of a graphical component.
The coordinate conversion strategy is used for acquiring coordinate data suitable for the simulation run chart based on the position information of the graphical component in the CAD plan chart according to a preset rule;
the preset size of the graphical component is used to limit the size of the graphical component included in each device entity in the simulation run chart, and may be specifically set according to actual requirements, which is not specifically limited in this embodiment.
Optionally, the data conversion policy may be generated directly according to the coordinate conversion policy, or may also be generated according to the coordinate conversion policy and a preset size of the graphical component, and the like, which is not specifically limited in this embodiment.
According to the embodiment, the coordinate conversion strategy suitable for acquiring the coordinate data of the simulation operation diagram and/or limiting the size of the graphical component can be generated according to the coordinate conversion strategy and/or the preset size of the graphical component.
On the basis of the foregoing embodiment, in this embodiment, the converting, according to the data conversion policy corresponding to each equipment entity, the position information of the graphical component in the entity information of each equipment entity to obtain the coordinate data of the simulation run chart corresponding to each equipment entity includes: 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 position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and a preset size of the graphical component to obtain coordinate data of a simulation operation chart 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 the simulation operation chart corresponding to each equipment entity.
The types of the graphical components comprise various types, including block types, line types and text types; the block type and the line type are used for representing graphical components of different equipment entities in the CAD plan; the text type is used to characterize entity information of different device entities.
The equipment entities include emergency shutdown buttons, shield doors, transponders, station names, axle counters, annunciators, insulation joints, switches, track units, SPKS (Staff Protection Key Switch), and car washers, which are not specifically limited in this embodiment.
Optionally, the block type and the text type are both block diagrams in nature in the CAD plan, and belong to the same type but belong to different types from the line type; therefore, different data conversion strategies need to be adopted to perform data conversion on the data.
For example, the position information of the graphical component of the block type and the text type includes the insertion point of the graphical component, i.e. the coordinate data of the central point of the graphical component on the CAD plan; the position information of the line type graphical component comprises a starting point and an ending point of the graphical component in the CAD plan, and/or the coordinates of a turning point and the like; therefore, the block type and the text type are different from the position information of the line type graphic component.
Optionally, the specific step of acquiring the coordinate data of the simulation working diagram corresponding to each equipment entity in step 102 includes: firstly, after graphical components in entity information of each equipment entity are obtained, determining the type of each graphical 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 an insertion point coordinate of the graphical component, and the position information of the graphical component can be converted according to a coordinate conversion strategy corresponding to each equipment entity and a preset size of the graphical component to obtain coordinate data of the simulation run chart corresponding to each equipment entity, for example, the coordinate data comprises one or more combinations of an upper left corner coordinate, a lower right corner coordinate and an upper right corner coordinate of the graphical component.
Under the condition that the graphical component is of a line segment type, the position information of the graphical component comprises the coordinates of the starting point and the ending point of the graphical component and/or the turning point, and the coordinates of the starting point and the ending point and/or the turning point of the graphical component in the simulation operation diagram can be obtained according to the coordinate conversion strategy corresponding to each equipment entity so as to obtain the coordinate data of the simulation operation diagram.
The following description will be made of the coordinate data of the simulation run chart in this embodiment by specific examples.
Wherein, (X1, Y1) and (X2, Y2) are coordinate data formed by coordinate conversion; after coordinate transformation of the different equipment entities, an exemplary representation of the resulting coordinate data is as follows,
(1) emergency off button: a rectangular graph drawn beside the platform rail, wherein (X1, Y1) is the coordinate of the upper left corner; (X2, Y2) is the coordinates of the lower right corner, and the length and the width are both 20 unit scales;
(2) a shield door: the long line graph is drawn beside the platform, and the coordinates of the start point are (X1, Y1) and the coordinates of the end point are (X2, Y2).
(3) The transponder: the rectangular graph takes the central point of the rectangular graph as a reference point, and when the distance between the two transponders is smaller than the graph width, the two transponders are not drawn in an overlapping way (for example, the coordinate data of the rectangular graph is obtained only according to the length of the rectangular graph and a coordinate conversion strategy); the ordinate of the upper left corner is consistent with the ordinate of the track unit (X1, Y1) is the coordinate of the upper left corner; (X2, Y2) is the lower right corner coordinate; the length and width are both 10 unit scales.
(4) The station name is as follows: and the character string is used for displaying the station name and is drawn above the corresponding platform track unit. X1 is the horizontal coordinate of the lower left corner of the starting character, Y1 is the vertical coordinate of the lower left corner of the starting character-13 unit scales; the coordinate data of (X2, Y2) and (X1, Y1) are the same.
(5) And (3) counting the shaft: including an Identity Document (Identity) and an Identity label;
the axle counting ID is used for displaying the axle counting ID above or below the axle counting, X1 is the horizontal coordinate of the lower left corner of the starting character, and Y1 is the vertical coordinate of the lower left corner of the starting character; the coordinate data of (X2, Y2) and (X1, Y1) are the same;
an axis counting boundary sign and a short line graph are drawn above or below the boundary of the axis counting section, and the coordinates (X1, Y1) are starting point coordinates; (X2, Y2) are end point coordinates.
(6) Signal machine: the signal lamp comprises a signal machine name, a lamp post and a signal lamp;
in the coordinates of the name of the signal machine, X1 is the abscissa of the lower left corner of the starting character-2 unit scales, and Y1 is the ordinate of the lower left corner of the starting character-9 unit scales;
the lamp post is in a short line pattern, and the coordinates (X1, Y1) are starting point coordinates; (X2, Y2) as end point coordinates;
the signal lamp is a circular pattern, the (X1, Y1) is the left upper corner coordinate of a circumscribed square of the circular pattern, and the (X2, Y2) is the right lower corner coordinate of the circumscribed square of the circular pattern, and the side length of the circumscribed square is 10 unit scales.
(7) Insulating joint: a short line graph for drawing the boundary with the track unit; (X1, Y1) as starting point coordinates; (X2, Y2) are end point coordinates.
(8) Turnout: the turnout positioning system comprises turnout names, turnout front and rear positioning and turnout rear reversed line segments;
in the coordinates of the turnout name, X1 is the abscissa of the lower left corner of the starting character, namely 1 unit scale, Y1 is the ordinate of the lower left corner of the starting character, namely 14 unit scales, and the coordinate data of (X2, Y2) and (X1, Y1) are the same;
in the front fork segment, (X1, Y1) is coordinates of the fork center point (i.e., start point coordinates), and (X2, Y2) is coordinates of the front fork outer end point (i.e., end point coordinates);
in the rear fork positioning line segment, (X1, Y1) are fork point coordinates, and (X2, Y2) are outer end point coordinates of rear fork positioning;
in the back-off line segment, (X1, Y1) is the coordinates of the back-off point, and (X2, Y2) is the coordinates of the back-off outer end point.
(9) A track unit: a line graph including a track unit name and a track unit;
in the track unit name, X1 is the abscissa of the lower left corner of the start character, which is 1 unit scale, Y1 is the ordinate of the lower left corner of the start character, which is 14 unit scales, and the coordinate data (X2, Y2) are the same as the coordinate data (X1, Y1).
The line pattern of the track unit, and (X1, Y1) is the starting point coordinate; (X2, Y2) are end point coordinates.
(10) SPKS: rectangular graph, (X1, Y1) is the coordinates of the upper left corner; (X2, Y2) is the lower right corner coordinate, 80 unit scales long and 20 unit scales wide.
(11) A car washer: rectangular graph, (X1, Y1) is the coordinates of the upper left corner; (X2, Y2) is the lower right corner coordinate, length and degree are both 120 unit scales.
In this embodiment, different data conversion strategies are generated according to different types of graphical components, that is, the position information of the graphical component in the entity information of each device entity can be quickly converted into coordinate data suitable for a simulation run chart, and the method is suitable for various types of graphical components and has good applicability.
On the basis of the foregoing embodiment, in this embodiment, after the 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 of receiving the generation instruction, reading the entity information of each equipment entity from the database in an deserialization form.
Wherein, the serialization is to convert the entity information of the equipment entity into a form which can be stored or transmitted.
The database may be a MongoDB database or an Oracle relational database, and other types of databases may be used, which is not specifically limited in this embodiment.
The following description will be made by taking the example of the database as the MongoDB database, and describing the entity data storage and reading process in this embodiment.
The MongoDB database is a database based on distributed file storage, and the data insertion format is data in a BSON (Binary JSON, JSON in Binary form).
Optionally, after the entity information of each equipment entity is extracted from the CAD plan, the entity information of each equipment entity may be directly converted into data in a BSON format to realize serialization of the entity information of each equipment entity, and then the serialized entity information of each equipment entity is stored in a MongoDB database;
as shown in fig. 2, after receiving the saving instruction, the entity information of each equipment entity may be stored in the MongoDB database, which is not specifically limited in this embodiment.
The manner of sending the saving instruction includes a text or a physical key, and the like, which is not specifically limited in this embodiment.
For example, after the operation interface of the simulation operation chart system inputs a data saving command, an enter key is typed, corresponding engineering information is filled, and after the information is determined to be correct, the controller starts to upload entity information of each equipment entity to the database. After the storage is finished, the command prompt bar displays 'data storage is finished'. In the data transmission process, due to the large data volume, a period of waiting is needed, the duration depends on the data volume and the network condition, and an average concentration zone of one ZC (zone control area management) is only 1 minute. Compared with manual data configuration, the method is less time-consuming.
Then, under the condition that a simulation operation diagram of the target platform needs to be generated, the entity information of each equipment entity in the target platform can be directly read from the MongoDB database in an deserialization mode only by inputting a corresponding generation instruction; specifically, data in a BSON format is analyzed based on an interface reverse sequence provided by a MongoRepair operation database in a MongoDB database, and entity information of each equipment entity is obtained.
For example, the option of "starting CAD data configuration" is directly selected in a "CAD data configuration" menu bar on the left side of the simulation operation diagram generation interface in a pull-down manner, the corresponding design project name is selected on the right side, and a "generate simulation operation diagram data" button is clicked, so that the entity information of each equipment entity in the target platform can be automatically read from the mongoDB database, and a zip-format compressed package file can be generated in a folder of a preset download path configured by a user browser, so that the user can view the file in real time.
In the embodiment, the entity information of each equipment entity is stored in the database, so that when the simulation operation chart needs to be generated, the generation instruction is directly input, that is, the entity information of each entity can be directly obtained from the database, and the simulation operation chart can be rapidly and accurately generated; data do not need to be repeatedly input, the generation efficiency of the simulation operation chart coordinate data and the graphs is greatly improved, and the human resource consumption and the production cost are reduced.
On the basis of the foregoing embodiment, in this embodiment, after the extracting entity information of each device entity from the CAD plan, the method further includes: and searching a 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 name of each equipment entity and the data conversion strategy;
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 name of each equipment entity is found, the data conversion strategy corresponding to each equipment entity can be obtained.
After the entity information of each equipment entity is extracted, the data conversion strategy corresponding to each equipment entity can be quickly and accurately acquired 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 the prompt information of the new data conversion strategy under the condition of finding the new data conversion strategy; and adding the new data conversion strategy into 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, in a case that the extended instruction is received, it is first determined that a new data conversion policy in the extended instruction is already in the data conversion list, and if the new data conversion policy is already in the data conversion list, a prompt message indicating that the new data conversion policy already exists is returned;
and if the new data conversion strategy is not in the data conversion list, adding the new data conversion strategy into the data conversion list.
In the embodiment, when the extension instruction is received, the data conversion list can be extended, so that the operation is simple, and the application range of the extended data conversion list is wider.
On the basis of the above embodiments, the entity information in this embodiment 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 location information of the graphical component.
Optionally, in addition to the above information, the entity information may further include other information, such as text content information for a text-type graphical component, and the like, which is not specifically limited in this embodiment.
Wherein the type information of the graphic component includes a block type, a single segment linear type, a multi-segment line type, and a text type. The block type includes other block patterns such as rectangular and circular.
The position information of different types of graphical components is different.
For example, (1) location information of a Block type Block, including a relative insertion point and rotation angle of the Block, etc.;
(2) the single-segment linear type position information comprises a starting point coordinate, an end point coordinate and the like of a segment;
(3) the position information of the multi-segment line type comprises the starting point, the end point, the turning point coordinates and the like of the multi-segment line;
(4) location information of the text type, including the relative insertion point of the text.
As shown in fig. 3, a complete flow diagram of the method for generating the train simulation run chart in this embodiment is mainly included, which is to obtain entity information of each equipment entity in the CAD plan, serialize the entity information of each equipment entity, store the entity information in the mongoDB database, read the entity information in the database, automatically generate coordinate data, automatically generate the simulation run chart, and generate an Excel file.
The embodiment designs a reasonable class structure, and instantiates entity information of the CAD plan as objects of the class; then, the class objects containing entity information are serialized into BSON data and then stored into a 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 operation diagram, so that the generation efficiency of the coordinate data and the graph of the simulation operation diagram is greatly improved, and the human resource consumption and the production cost are reduced; and the data utilization rate between the CAD plan drawing and the simulation run drawing is greatly improved, so that engineering drawing designers can completely obtain the corresponding simulation run drawing after finishing drawing the CAD plan drawing. Moreover, on the basis of correct input data and applicable data processing rules, the method ensures the accuracy of the data to a certain extent.
The train simulation operation diagram generation device provided by the invention is described below, and the train simulation operation diagram generation device described below and the train simulation operation diagram generation method described above can be referred to correspondingly.
As shown in fig. 4, the present embodiment provides a train simulation diagram generation apparatus, which includes an extraction module 401, a conversion module 402, and a generation module 403, where:
the extracting module 401 is configured to obtain a CAD plan of the target platform, and extract entity information of each device entity from the CAD plan;
the target platform is a platform to be subjected to generation of a simulation operation diagram in rail transit, and may be a platform in a subway operation line, a platform in a high-speed rail operation line, and the like, which is not specifically limited in this embodiment.
Optionally, when the simulation run graph of the target platform needs to be generated, a CAD plan of the target platform is obtained first;
the method for obtaining the CAD plan of the target station includes searching from a database, or may be obtaining the CAD plan by receiving the CAD plan sent by a drawing person in real time, which is not specifically limited in this embodiment.
Then, based on entity information extraction rules, extracting digital dictionary information of each equipment entity from the CAD plane graph 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 operation chart can be automatically generated according to the entity information of each equipment entity.
The conversion module 402 is configured to, in a case that the generation instruction is received, convert the position information of the graphical component in the entity information of each device entity according to the data conversion policy corresponding to each device entity, to obtain coordinate data of the simulation run chart corresponding to each device entity;
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 run chart, and is used for converting the position information of the graphical component in the entity information of each equipment entity in the CAD plan chart into coordinate data applicable to the simulation run chart, for example, coordinate data formed by adjusting the size of the graphical component to be applicable to the simulation run chart.
Optionally, before the user issues the generation instruction, the user needs to log in a Web service website; the Web end service website is used for accessing an interface of an operation diagram simulation system developed in a company;
because the login of the Web end service website needs to be connected with an internal network of a company, the user working in the company can directly login the Web end service website; for off-site office, the VPN of the company can be selected for registration.
After the login is successful, issuing a generation instruction through a Web end service website;
the generation instruction is an instruction sent by a user for generating the simulation operation diagram, and may be issued in the form of a text or a physical key, for example, a button of "generating the simulation operation diagram" is clicked or an instruction of "generating the simulation operation diagram" is directly input in a command box, and the like.
And under the condition that the controller receives the generation instruction, taking the entity information of each equipment entity as input data, and converting the position information of the graphical component in the entity information of each equipment entity into coordinate data suitable for the simulation run chart by combining a data conversion strategy corresponding to each equipment entity.
The graphic component is a component representing an apparatus entity in the CAD plan, for example, the graphic component of the emergency shutdown button in the CAD plan includes a rectangular graphic, and the like, which is not specifically limited in this embodiment.
The generating module 403 is configured to generate the simulation run chart of the target station according to the coordinate data of the simulation run chart corresponding to each equipment entity and other information except the location information in the entity information of each equipment entity.
Optionally, after obtaining the coordinate data of the simulation operation diagram corresponding to each device entity, the coordinate data of the simulation operation diagram corresponding to each device entity is used as the position of each entity device in the simulation operation 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 operation diagram of the target platform.
The coordinate data and other information of the simulation operation diagram corresponding to each automatically generated equipment entity can be stored in the local path, so that the coordinate data and other information corresponding to the target platform can be directly called from the local path when the simulation operation diagram of the target platform needs to be generated next time, the simulation operation diagram of the target platform can be quickly and accurately generated, and the coordinate data and other information of each equipment entity in the target platform can be conveniently checked in real time.
In the embodiment, after the CAD plan of the target platform is obtained, the entity information of each equipment entity is automatically extracted from the CAD plan, then the position information of the graphical component in the entity information of each equipment entity is automatically converted into the coordinate data suitable for the simulation run chart, and then the simulation run chart of the target platform is automatically generated through simulation according to the coordinate data of the simulation run chart corresponding to each equipment entity and other information except the position information, so that not only can the coordinate data of the simulation run chart corresponding to the equipment entity be automatically and efficiently generated, but also the generation efficiency of the simulation run chart is improved; and the whole simulation operation diagram generation process is automatically completed, the automation degree is higher, and the labor cost can be greatly reduced.
On the basis of the above embodiments, the data conversion policy in this embodiment includes a coordinate conversion policy and/or a preset size of a graphical component.
On the basis of the foregoing embodiment, the conversion module in this embodiment 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 position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and a preset size of the graphical component to obtain coordinate data of a simulation operation chart 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 the simulation operation chart corresponding to each equipment entity.
On the basis of the foregoing 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 of receiving the generation instruction, reading the entity information of each equipment entity from the database in an deserialization form.
On the basis of the foregoing embodiments, the present embodiment further includes a search module, configured to: and searching a 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 embodiment further includes an extension 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 the prompt information of the new data conversion strategy when the new data conversion strategy is found; and adding the new data conversion strategy into 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 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 location information of the graphical component.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may invoke logic instructions in the memory 503 to perform a train simulation run plan generation method comprising: acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan; 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 coordinate data of a simulation operation chart corresponding to each equipment entity; and generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, a computer can execute the train simulation run graph generation method provided by the above methods, and the method includes: acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan; 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 coordinate data of a simulation operation chart corresponding to each equipment entity; and generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart 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, implements a train simulation run map generation method provided by the above methods, the method including: acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan; 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 coordinate data of a simulation operation chart corresponding to each equipment entity; and generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating a train simulation operation chart is characterized by comprising the following steps:
acquiring a CAD plan of a target platform, and extracting entity information of each equipment entity from the CAD plan;
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 coordinate data of a simulation operation chart corresponding to each equipment entity;
and generating the simulation operation chart of the target station according to the coordinate data of the simulation operation chart corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
2. The train simulation run map generation method according to claim 1, wherein the data conversion strategy includes a coordinate conversion strategy and/or a preset size of a graphic component.
3. The method for generating the train simulation operation chart according to claim 2, wherein the 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 to obtain the coordinate data of the simulation operation chart corresponding to each equipment entity comprises:
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 position information of the graphical component according to a coordinate conversion strategy corresponding to each equipment entity and a preset size of the graphical component to obtain coordinate data of a simulation operation chart 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 the simulation operation chart corresponding to each equipment entity.
4. The method for generating a train simulation run graph according to any one of claims 1 to 3, further comprising, after the extracting entity information of each equipment entity from the CAD plan view:
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 of receiving the generation instruction, reading the entity information of each equipment entity from the database in an deserialization form.
5. The method for generating a train simulation run graph according to any one of claims 1 to 3, further comprising, after the extracting entity information of each equipment entity from the CAD plan view:
and searching a data conversion strategy corresponding to each equipment entity in the data conversion list according to the entity name of each equipment entity.
6. The method for generating a train simulation run chart according to claim 5, 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 the prompt information of the new data conversion strategy under the condition of finding the new data conversion strategy;
and adding the new data conversion strategy into the data conversion list under the condition that the new data conversion strategy is not found.
7. The train simulation run chart generation method according to any one of claims 1 to 3, 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 graphical component.
8. A train simulation diagram generation device is characterized by comprising:
the extraction module is used for acquiring a CAD plan of the target platform 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 to obtain the coordinate data of the simulation operation chart corresponding to each equipment entity;
and the generating module is used for generating the simulation operation chart of the target platform according to the coordinate data of the simulation operation chart corresponding to each equipment entity and other information except the position information in the entity information of each equipment entity.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor when executing the program implements the steps of the train simulation run map generation method according to any one of claims 1 to 7.
10. 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 run map generation method according to any one of claims 1 to 7.
CN202210220223.3A 2022-03-08 2022-03-08 Method and device for generating train simulation operation diagram Pending CN114715227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210220223.3A CN114715227A (en) 2022-03-08 2022-03-08 Method and device for generating train simulation operation diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210220223.3A CN114715227A (en) 2022-03-08 2022-03-08 Method and device for generating train simulation operation diagram

Publications (1)

Publication Number Publication Date
CN114715227A true CN114715227A (en) 2022-07-08

Family

ID=82238578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210220223.3A Pending CN114715227A (en) 2022-03-08 2022-03-08 Method and device for generating train simulation operation diagram

Country Status (1)

Country Link
CN (1) CN114715227A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10217969A (en) * 1997-01-31 1998-08-18 Railway Technical Res Inst Train diagram simulation device and train diagram forming device
CN103605864A (en) * 2013-11-28 2014-02-26 北京交通大学 Urban rail transit network train working diagram displaying method
JP6429953B1 (en) * 2017-06-23 2018-11-28 鈴木 晃一 Integrated system for creating diagrams using a web browser
JP2019003259A (en) * 2017-06-12 2019-01-10 株式会社日立製作所 Schedule information processing system and method thereof
CN109857996A (en) * 2019-01-25 2019-06-07 深圳供电局有限公司 A kind of communication scheduling operation graphic documentation generation method and system
CN111932656A (en) * 2020-07-29 2020-11-13 交控科技股份有限公司 Method, device and equipment for indexing information of operation diagram
CN113343422A (en) * 2021-05-07 2021-09-03 交控科技股份有限公司 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
CN113978513A (en) * 2021-11-10 2022-01-28 通号万全信号设备有限公司 Display optimization method and device for rail transit real-time operation diagram

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10217969A (en) * 1997-01-31 1998-08-18 Railway Technical Res Inst Train diagram simulation device and train diagram forming device
CN103605864A (en) * 2013-11-28 2014-02-26 北京交通大学 Urban rail transit network train working diagram displaying method
JP2019003259A (en) * 2017-06-12 2019-01-10 株式会社日立製作所 Schedule information processing system and method thereof
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 深圳供电局有限公司 A kind of communication scheduling operation graphic documentation generation method and system
CN111932656A (en) * 2020-07-29 2020-11-13 交控科技股份有限公司 Method, device and equipment for indexing information of operation diagram
CN113343422A (en) * 2021-05-07 2021-09-03 交控科技股份有限公司 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
CN113978513A (en) * 2021-11-10 2022-01-28 通号万全信号设备有限公司 Display optimization method and device for rail transit real-time operation diagram

Non-Patent Citations (1)

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

Similar Documents

Publication Publication Date Title
CN105807658B (en) Method for sharing graph-model information of intelligent substation and scheduling master station
CN107045526A (en) A kind of pattern recognition method of electronics architectural working drawing
EP3916634A2 (en) Text recognition method and device, and electronic device
CN111309910A (en) Text information mining method and device
CN110990467B (en) BIM model format conversion method and conversion system
CN110222407B (en) BIM data fusion method and device
CN112818460A (en) Intelligent building rollover method from two-dimensional drawing to three-dimensional model
CN108804469A (en) A kind of web page identification method and electronic equipment
US20230147594A1 (en) Method for integratedly updating map data, device and storage medium
CN112528013A (en) Text abstract extraction method and device, electronic equipment and storage medium
CN111181769B (en) Network topological graph drawing method, system, device and computer readable storage medium
CN114860233A (en) Page generation method, device, equipment, storage medium and product
CN109447466B (en) Overall process visual management and control system based on power distribution network communication network construction
CN113468288A (en) Content extraction method of text courseware based on artificial intelligence and related equipment
CN114715227A (en) Method and device for generating train simulation operation diagram
CN104133680A (en) Fast building method of ERP form module
CN111611665A (en) Intelligent substation design method based on three-dimensional modular design
CN111132181A (en) Ray tracing technology method and device applied to wireless communication network
CN101739497A (en) Method for automatically computing figure labeling position
CN103544338A (en) Method for technique information modeling for issuing three-dimensional assembling instruction
CN111753344B (en) Method for generating assembly type component data set, CAD platform and storage medium
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium
CN113838157A (en) Track traffic map drawing system, method, electronic device and storage medium
CN115292188A (en) Interactive interface compliance detection method, device, equipment, medium and program product
CN113192159A (en) Equipment drawing system based on signal 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