CN113094035B - Method, system and equipment for realizing graphical editing of train database - Google Patents

Method, system and equipment for realizing graphical editing of train database Download PDF

Info

Publication number
CN113094035B
CN113094035B CN202110371283.0A CN202110371283A CN113094035B CN 113094035 B CN113094035 B CN 113094035B CN 202110371283 A CN202110371283 A CN 202110371283A CN 113094035 B CN113094035 B CN 113094035B
Authority
CN
China
Prior art keywords
train
information
database
information database
development tool
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
CN202110371283.0A
Other languages
Chinese (zh)
Other versions
CN113094035A (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.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute 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 CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN202110371283.0A priority Critical patent/CN113094035B/en
Publication of CN113094035A publication Critical patent/CN113094035A/en
Application granted granted Critical
Publication of CN113094035B publication Critical patent/CN113094035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses a method, a system and equipment for realizing graphical editing of a train database, wherein the method comprises the following steps: judging whether a train information database exists or not, and if the train information database does not exist, creating the train information database based on service requirements; reading an html file, referencing an API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool; based on the visual map interface monitoring user operation information, if the user operation information is monitored, calling a QT application program development tool based on an API of the electronic map, and based on information interaction between the QT application program development tool and the train information database, the graphical editing of the train information database is realized. The invention realizes the graphic display of the train information and the graphic editing of the train information database, is convenient for the user to operate, improves the practicability, greatly reduces the workload of railway office staff and reduces the output of labor cost.

Description

Method, system and equipment for realizing graphical editing of train database
Technical Field
The invention relates to the technical field of rail transit databases, in particular to a method, a system and equipment for realizing graphical editing of a train database.
Background
The China high-speed rail industry is rapid in development, the high-speed rail industry becomes an important travel tool for people, and the high-speed rail industry becomes a huge market. In order to improve the service quality and ensure that passengers have better riding experience, each railway bureau compiles the train line information and the service information into a database through a database editing system and plays the information to the passengers in real time according to the running state of the train so as to ensure that the passengers can obtain accurate train related information.
The database editing system is essentially database editing software, and can perform operations of adding, deleting, changing and searching on the database of the passenger information system through the database editing system, so that functions of creating, inquiring, updating, deleting and the like of stations, train numbers and lines are realized, and information support is provided for train operation.
However, in the existing database editing system, when newly creating a line and a train number, all stations need to be searched by adopting characters and manually added one by one according to the sequence, and the information such as the line, the train number and the like cannot be graphically edited; mileage between adjacent stations cannot be automatically added; when the train number and the line are updated, the adjustment of the station sequence and the implementation mode of inserting a new station between two stations are complicated. The train routes of all railway offices are nationwide, and the train numbers and the routes in the database are frequently edited, so that the workload of station staff is heavy, and the output of labor cost is increased.
Disclosure of Invention
The invention provides a method for realizing graphical editing of a train database, which aims to solve the technical problems of complicated database editing operation and large labor cost output in the prior art.
The invention provides a method for realizing graphical editing of a train database, which comprises the following steps:
a train information database establishing step of judging whether a train information database exists or not, and if the train information database does not exist, establishing the train information database based on service requirements;
a map interface construction step, namely reading an html file, referring to an API of an electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and a graphical editing step, wherein user operation information is monitored based on the visual map interface, if the user operation information is monitored, the QT application program development tool is called based on the API of the electronic map, and information interaction is carried out between the QT application program development tool and the train information database based on the QT application program development tool, so that graphical editing of the train information database is realized.
The implementation method for graphically editing the train database further comprises the following steps:
a train station information sharing step of comparing target train station information required to be imported into the train information database with the train station information in the train information database based on the QT application development tool and the train information database, and covering the train station information with the target train station information if the target train station information is the same as the train station information; and if the target train station information is different from the train station information, importing the target train station information which does not exist in the train station information into the train information database.
The implementation method for graphically editing the train database further comprises the following steps:
a train number information sharing step of comparing target train number information required to be imported into the train information database with train number information in the train information database based on the QT application development tool and the train information database, and if the target train number information is the same as the train number information, covering the train number information with the target train number information; and if the target train number information is different from the train number information, importing the target train number information which does not exist in the train number information into the train information database.
The implementation method for graphically editing the train database further comprises the following steps:
and a mileage adding step, wherein the train information database stores the mileage of a plurality of adjacent train stations, and when the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
The implementation method of the graphical editing train database, wherein the map interface construction step specifically comprises the following steps:
and reading an html file based on a QWebEngineView class in the QT application development tool, referencing an API of the electronic map based on the html file, and calling the API of the electronic map based on the QT application development tool to construct the visual map interface.
The implementation method of the graphical editing train database, wherein in the graphical editing step, the QT application development tool is called based on the API of the electronic map, specifically including:
and transmitting the user operation information to a QTbridge class by a QWEBCHannel class in the QT application development tool, and transmitting a return value corresponding to the user operation information to JS by the QWEBEngineView class to realize calling of the QT application development tool based on an API of the electronic map.
The implementation method of the graphical editing train database, wherein in the graphical editing step, the QT application development tool performs information interaction with the train information database, specifically includes:
and the QSQL database class and the QSQL query class in the QT application development tool interact information with the train information database.
The invention also provides a system for realizing the graphical editing of the train database, which comprises the following steps:
the train information database establishing module is used for judging whether a train information database exists or not, and if the train information database does not exist, the train information database is established based on service requirements;
the map interface construction module is used for reading an html file, referencing an API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and the graphical editing module is used for monitoring user operation information based on the visual map interface, calling the QT application program development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application program development tool to realize graphical editing of the train information database.
The invention also provides computer equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that the processor executes the computer program to realize the method for realizing the graphical editing of the train database.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of graphically editing a train database as described above.
The invention has the technical effects or advantages that:
the invention provides a method for realizing graphical editing of a train database, which comprises the following steps: when the train information database does not exist, creating the train information database based on the service requirement; reading an html file, referencing an electronic map API based on the html file, and constructing a visual map interface according to the electronic map API and a QT application program development tool; based on the visual map interface monitoring user operation information, if the user operation information is monitored, calling a QT application program development tool based on an API of the electronic map, and based on information interaction between the QT application program development tool and the train information database, the graphical editing of the train information database is realized. The method for realizing the graphical editing of the train database provided by the invention is based on the train information database and the QT application development tool, so that the graphical display of the train information and the graphical editing of the train information database are realized, the operation of a user is convenient, the practicability is improved, the workload of railway office staff is greatly reduced, and the output of the labor cost is reduced.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
FIG. 1 is a flow chart of a method for implementing a graphical edit train database provided by an embodiment of the invention;
FIG. 2 is a flow chart of yet another implementation method for graphically editing a train database provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a train station information sharing provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a train number information sharing provided by an embodiment of the present invention;
FIG. 5 is a block diagram of a system for implementing a graphical edit train database according to an embodiment of the present invention;
FIG. 6 is a block diagram of an electronic device according to an embodiment of the present invention;
in the above figures:
1. the train information database building module; 2. the map interface construction module; 3. a graphical editing module; 10. a bus; 11. a processor; 12. a memory; 13. a communication interface.
Detailed Description
In order to make the technical scheme of the present invention better understood by those skilled in the art, the present invention will be further described in detail with reference to the accompanying drawings and the detailed description. Although embodiments of the present invention are disclosed in the accompanying drawings, it should be understood that the invention is embodied in any form and should not be limited to the embodiments set forth.
In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "inner", "outer", etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element in question must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. The terms "first," "second," "third," and the like, herein are used to describe various elements, components, regions, layers and/or sections, merely to distinguish one element, component, region, layer or section from another element, component, region, layer or section. Terms such as "first," "second," "third," and other numerical terms when used herein do not imply a sequence or order unless clearly indicated by the context.
In the description of the present invention, it should be noted that, unless explicitly specified and defined otherwise, the term "connected" should be construed broadly, and may be a fixed connection, a removable connection, or an integral connection, for example; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In order to solve the technical problems of complicated database editing operation and large labor cost output in the prior art, the invention provides a method for realizing graphical editing of a train database, which is based on a train information database and a QT application development tool, realizes graphical display of train information and graphical editing of the train information database, facilitates user operation, improves practicability, greatly reduces workload of railway office staff and reduces output of labor cost.
The technical scheme of the invention is described in detail below with reference to specific embodiments and attached drawings.
The embodiment relates to a method for realizing graphical editing of a train database, which comprises the following steps:
a train information database establishing step S1, judging whether a train information database exists, and if the train information database does not exist, establishing the train information database based on service requirements;
step S2, a map interface construction step is carried out, an html file is read, an API of the electronic map is referenced based on the html file, and a visual map interface is constructed according to the API of the electronic map and a QT application program development tool;
and a graphical editing step S3, wherein user operation information is monitored based on a visual map interface, if the user operation information is monitored, an API based on the electronic map calls a QT application program development tool, and information interaction is performed between the QT application program development tool and a train information database based on the QT application program development tool, so that graphical editing of the train information database is realized.
The implementation method of the graphical editing train database provided by the embodiment realizes the graphical display of train information and the graphical editing of the train information database based on the train information database and the QT application program development tool, is convenient for user operation, improves the practicability, greatly reduces the workload of railway office staff and reduces the output of labor cost.
Referring to fig. 1, fig. 1 is a flowchart of a method for implementing a graphical editing train database according to the present embodiment. The implementation method for graphically editing the train database provided by the embodiment comprises the following steps:
and a train information database establishing step S1, wherein whether the train information database exists or not is judged, and if the train information database does not exist, the train information database is established based on service requirements.
In the present embodiment, when there is a train information database, a map interface construction step S2 is performed.
In a specific application, the service requirement may include train station information, train number information, train line information, and the like, and may be specifically set according to an actual situation, which is not specifically limited in this embodiment.
And a map interface construction step S2, namely reading an html file, referencing an API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool.
In this embodiment, the map interface construction step S2 specifically includes:
based on QWebEngineView class in QT application development tool reads html file, based on the API of html file reference electronic map, based on QT application development tool calls API of electronic map, visual map interface is constructed.
In a specific application, interaction between the QT application development tool and html is realized through QWebEngineView class in the QT application development tool, and meanwhile, an API of an electronic map is introduced into the html, so that calling of the QT application development tool to the Javascript API of the electronic map can be realized, and the construction of a visual map interface is realized. In this embodiment, the electronic map may be a hundred-degree electronic map.
And a graphical editing step S3, wherein user operation information is monitored based on a visual map interface, if the user operation information is monitored, an API based on the electronic map calls a QT application program development tool, and information interaction is performed between the QT application program development tool and a train information database based on the QT application program development tool, so that graphical editing of the train information database is realized.
In this embodiment, the graphical editing step S3 calls the QT application development tool based on the API of the electronic map, and specifically includes:
the QWEBCHannel class in the QT application development tool transmits the user operation information to the QTbridge class, and transmits a return value corresponding to the user operation information to the JS through the QWEBEngineView class, so that the electronic map-based API can call the QT application development tool.
In this embodiment, the information interaction between the QT application development tool and the train information database in the graphical editing step S3 specifically includes:
and the QSQL database class and the QSQL query class in the QT application development tool interact information with the train information database.
In a specific application, a C++ channel object is created through QWEIBCHANNEL class in the QT, and js object is created in the javascript, so that the invoking of the electronic map javascript API to the QT can be realized. User operation information includes, but is not limited to: station operation information, train number operation information, and line operation information, the operations including, but not limited to: and realizing addition, deletion, correction and the like through dragging.
In a specific application, if the user operation information is not monitored, the QWEbchannel class in the QT application development tool transmits other function command information to the QTbridge class, so that corresponding functions are realized.
In the embodiment, through the train information database establishing step S1, the map interface constructing step S2 and the graphical editing step S3, the graphical display of the train information and the graphical editing of the train information database are realized based on the train information database and the QT application development tool, so that the user operation is convenient, the practicability is improved, the workload of railway office staff is greatly reduced, and the output of the labor cost is reduced.
Referring to fig. 2, as an example, the implementation process of graphically editing a train database is specifically described below:
firstly, judging whether a train information database exists or not, if the train information database does not exist, creating the train information database based on service requirements, after creating the train information database, reading html files based on QWebEngineView class in a QT application development tool, referencing an API of an electronic map based on the html files, calling the API of the electronic map based on the QT application development tool, constructing a visual map interface, accordingly, using the visual map interface, monitoring user operation information in real time based on the visual interface when the visual map interface is used, if the user operation information is monitored, transmitting the user operation information to a QTbridge class by QWebEngineView class, transmitting return values corresponding to the user operation information to the QBZview class by QBZSQLDatabase class, realizing information interaction between the QSqLQuery class and the train information database based on the QBQSQLDatabase class in the QT application development tool, and realizing that if the user operation information is not monitored, and transmitting corresponding graphic information to QBQBZBZEEngineView class by QBZE class, and realizing that if the graphic information is not monitored in the QBZEHadIQ application development tool, and transmitting corresponding graphic information to other graphic information.
In order to realize sharing of train station information of different databases and reduce repetitive editing work, the implementation method for graphically editing the train databases provided by the embodiment further comprises the following steps: and a step S4 of sharing the train station information. Specifically, referring to fig. 3, the train station information sharing step S4 includes:
based on the QT application development tool and the train information database, comparing target train station information required to be imported into the train information database with the train station information in the train information database, and if the target train station information is the same as the train station information, covering the train station information with the target train station information; if the target train station information is different from the train station information, the target train station information which does not exist in the train station information is imported into a train information database.
In the embodiment, information interaction is performed with a train information database based on QSQL database class and QSQL query class in the QT application development tool, so that train station sharing is realized. Wherein the train station information includes, but is not limited to: train station name information, longitude and latitude information and corresponding voice information.
In this embodiment, the covering of the train station information with the target train station information specifically means that the target train station information is all imported into the train information database so as to cover the train station information.
In a specific application, when the target train station information is imported into the train information database, the target train station information can be imported as required, and the target train station information can be imported completely or can be imported partially selectively, and the specific importing mode is not limited in detail in this embodiment.
Similarly, in order to realize the sharing of train number information of different databases and reduce repetitive work, the implementation method for graphically editing the train databases provided by the embodiment further includes: and a train number information sharing step S5. Specifically, referring to fig. 4, the train number information sharing step S5 includes:
based on the QT application development tool and the train information database, comparing target train number information required to be imported into the train information database with train number information in the train information database, and if the target train number information is the same as the train number information, covering the train number information with the target train number information; if the target train number information is different from the train number information, importing the target train number information which does not exist in the train number information into a train information database.
In the embodiment, information interaction is performed between QSQL database and QSQL query in the QT application development tool and the train information database, so that the sharing of train number information is realized. Wherein the train number information includes, but is not limited to: station name information, inter-station mileage information and running-in-car number information in the train number.
In this embodiment, the covering of train number information with the target train number information specifically means that the target train number information is all imported into the train information database, thereby covering the train number information.
In a specific application, when the target train number information is imported into the train information database, the target train number information may be imported as required, and may be imported in whole or in part, and the specific importing manner is not limited in this embodiment.
In this embodiment, through the step S4 of sharing train station information and the step S5 of sharing train number information, information sharing between different databases is realized, and the same train station information and train number information can be synchronously updated in databases of different railway offices only by editing once, so that repeated editing work is reduced, and updating efficiency of database information is improved.
In order to further improve the convenience of operation, the implementation method for graphically editing the train database provided by the embodiment further includes: mileage adding step S6. Wherein, the mileage adding step S6 includes:
the train information database stores mileage of a plurality of adjacent train stations, and after the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
In this embodiment, the number of adjacent train stations may be set according to actual needs, and the specific number of the present embodiment is not specifically limited, and in this embodiment, the number of adjacent train stations is preferably 5.
The implementation method for graphically editing the train database provided by the embodiment further comprises the following steps:
and a train number disabling step S7, wherein the QT application program development tool performs information interaction with the train information base according to a preset disabling rule to disable the target train number. In the embodiment, the disabling step S7 of the train number of the train is implemented to disable the target train number of the train in the target time, so that the requirement of the railway office on the function is met. The preset disabling rule may be set according to actual needs, and the specific setting mode is not specifically limited in this embodiment.
And S8, performing information interaction with a train information base based on the QT application program development tool before the target audio file is not played, playing the target audio file, stopping playing the target audio file if the target audio file fails, and notifying related personnel to repair the target audio file.
An information detection step S9, wherein information interaction is carried out between the development tool of the QT application program and the train information base, train number information, train station information and train line information to be displayed are detected in real time, and if missing information occurs, the missing information is fed in; and if the sensitive words exist in the train number information, the train station information and the train line information, removing the sensitive words.
The implementation method of the graphical editing train database provided by the embodiment realizes the graphical display of train information and the graphical editing of the train information database based on the train information database and the QT application program development tool, is convenient for user operation, improves the practicability, greatly reduces the workload of railway office staff, reduces the output of labor cost, realizes the sharing of train station information and train number information of different databases, and reduces the repetitive editing work.
The step S4 of sharing the train station, the step S5 of sharing the train number of trains, the step S6 of adding mileage, the step S7 of disabling the train number of trains, the step S8 of detecting audio failure, and the step S9 of detecting information are not necessarily in sequence.
The embodiment also provides a system for implementing graphical editing of a train database, referring to fig. 5, including: the system comprises a train information database building module 1, a map interface building module 2 and a graphical editing module 3, wherein the train information database building module 1 is connected with the map interface building module 2, and the map interface building module 2 is connected with the graphical editing module 3. Specifically:
the train information database establishing module 1 is used for judging whether a train information database exists or not, and if the train information database does not exist, the train information database is established based on service requirements;
the map interface construction module 2 is used for reading html files, referencing the API of the electronic map based on the html files, and constructing a visual map interface according to the API of the electronic map and the QT application program development tool;
and the graphical editing module 3 is used for monitoring user operation information based on the visual map interface, calling a QT application program development tool based on the API of the electronic map if the user operation information is monitored, and performing information interaction with the train information database based on the QT application program development tool to realize graphical editing of the train information database.
The implementation system for graphically editing the train database provided by the embodiment realizes the graphical display of train information and the graphical editing of the train information database based on the train information database and the QT application development tool, is convenient for user operation, improves the practicability, greatly reduces the workload of railway office staff, reduces the output of labor cost, realizes the sharing of train station information and train number information of different databases, and reduces the repetitive editing work.
Referring to fig. 6, the present embodiment further provides a computer device, including a memory 12, a processor 11, and a computer program stored in the memory 12 and executable on the processor 11, where the processor 11 implements the implementation method for graphically editing a train database as described above when executing the computer program.
The device may comprise a processor 11 and a memory 12 storing computer program instructions. In particular, the processor 11 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 12 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 12 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, solid state Drive (Solid State Drive, SSD), flash memory, optical Disk, magneto-optical Disk, tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory 12 may include removable or non-removable (or fixed) media, where appropriate. The memory 12 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 12 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 12 includes Read-Only Memory (ROM) and random access Memory (Random Access Memory, RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (Electrically Alterable Read-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be Static Random-Access Memory (SRAM) or dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory FPMDRAM), extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory EDODRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory SDRAM), or the like, as appropriate.
Memory 12 may be used to store or cache various data files that need to be processed and/or communicated, as well as possible computer program instructions for execution by processor 11.
The processor 11 reads and executes the computer program instructions stored in the memory 12 to implement any of the implementation methods of graphically editing the train database in the above embodiments.
In some of these embodiments, the computer device may also include a communication interface 13 and a bus 10. With reference to fig. 6, the processor 11, the memory 12, and the communication interface 13 are connected via the bus 10 and perform communication with each other. The communication interface 13 is used to implement communications between various modules, devices, units and/or units in the embodiments of the present application. The communication port 13 may also enable communication with other components such as: and the external equipment, the image/data acquisition equipment, the database, the external storage, the image/data processing workstation and the like are used for data communication.
Bus 10 includes hardware, software, or both, that couple components of an electronic device to each other. Bus 10 includes, but is not limited to, at least one of: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), local Bus (Local Bus). By way of example, and not limitation, bus 10 may include a graphics acceleration interface (Accelerated Graphics Port), abbreviated AGP, or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, a wireless bandwidth (InfiniBand) interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (Micro Channel Architecture, abbreviated MCa) Bus, a peripheral component interconnect (Peripheral Component Interconnect, abbreviated PCI) Bus, a PCI-Express (PCI-X) Bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, abbreviated SATA) Bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, abbreviated VLB) Bus, or other suitable Bus, or a combination of two or more of the foregoing. Bus 10 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
In addition, in combination with the implementation method of the graphical editing train database in the above embodiment, the embodiment of the application may be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement a method of graphically editing a train database in any of the above embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (7)

1. The implementation method for graphically editing the train database is characterized by comprising the following steps:
a train information database establishing step of judging whether a train information database exists or not, and if the train information database does not exist, establishing the train information database based on service requirements;
a map interface construction step, namely reading an html file, referring to an API of an electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
a graphical editing step of monitoring user operation information based on the visual map interface, calling the QT application program development tool based on the API of the electronic map if the user operation information is monitored, and performing information interaction with the train information database based on the QT application program development tool to realize graphical editing of the train information database;
a train station information sharing step of comparing target train station information required to be imported into the train information database with the train station information in the train information database based on the QT application development tool and the train information database, and covering the train station information with the target train station information if the target train station information is the same as the train station information; if the target train station information is different from the train station information, importing the target train station information which does not exist in the train station information into the train information database;
a train number information sharing step of comparing target train number information required to be imported into the train information database with train number information in the train information database based on the QT application development tool and the train information database, and if the target train number information is the same as the train number information, covering the train number information with the target train number information; if the target train number information is different from the train number information, importing the target train number information which does not exist in the train number information into the train information database;
and a mileage adding step, wherein the train information database stores the mileage of a plurality of adjacent train stations, and when the graphical editing of the train information database is realized, the mileage of two adjacent train stations is automatically added.
2. The method for implementing graphical editing of a train database according to claim 1, wherein the map interface construction step specifically includes:
and reading an html file based on a QWebEngineView class in the QT application development tool, referencing an API of the electronic map based on the html file, and calling the API of the electronic map based on the QT application development tool to construct the visual map interface.
3. The method for implementing graphical editing of a train database according to claim 2, wherein the graphical editing step calls the QT application development tool based on the API of the electronic map, specifically comprising:
and transmitting the user operation information to a QTbridge class by a QWEBCHannel class in the QT application development tool, and transmitting a return value corresponding to the user operation information to JS by the QWEBEngineView class to realize calling of the QT application development tool based on an API of the electronic map.
4. A method for implementing graphical editing of a train database according to any one of claims 1 or 3, wherein in the graphical editing step, the QT application development tool performs information interaction with the train information database, and specifically includes:
and the QSQL database class and the QSQL query class in the QT application development tool interact information with the train information database.
5. A system for implementing a graphical editing train database, wherein the method for implementing a graphical editing train database according to any one of claims 1 to 4 comprises:
the train information database establishing module is used for judging whether a train information database exists or not, and if the train information database does not exist, the train information database is established based on service requirements;
the map interface construction module is used for reading an html file, referencing an API of the electronic map based on the html file, and constructing a visual map interface according to the API of the electronic map and a QT application program development tool;
and the graphical editing module is used for monitoring user operation information based on the visual map interface, calling the QT application program development tool based on the API of the electronic map if the user operation information is monitored, and carrying out information interaction with the train information database based on the QT application program development tool to realize graphical editing of the train information database.
6. A computer 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 computer program, implements a method of graphically editing a train database as claimed in any one of claims 1 to 4.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of graphically editing a train database as claimed in any one of claims 1 to 4.
CN202110371283.0A 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database Active CN113094035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110371283.0A CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110371283.0A CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Publications (2)

Publication Number Publication Date
CN113094035A CN113094035A (en) 2021-07-09
CN113094035B true CN113094035B (en) 2024-02-06

Family

ID=76675002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110371283.0A Active CN113094035B (en) 2021-04-07 2021-04-07 Method, system and equipment for realizing graphical editing of train database

Country Status (1)

Country Link
CN (1) CN113094035B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114044028B (en) * 2021-09-27 2024-04-30 交控科技股份有限公司 Engineering train control method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106184295A (en) * 2016-07-07 2016-12-07 王永桂 A kind of Train Dynamic information real time inquiry system and method
CN106855882A (en) * 2016-12-19 2017-06-16 交控科技股份有限公司 A kind of urban track traffic electronic map data generates system and method
CN112416895A (en) * 2020-11-16 2021-02-26 杭州安恒信息技术股份有限公司 Database information processing method and device, readable storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286896B (en) * 2019-06-28 2023-03-31 百度在线网络技术(北京)有限公司 Visual editing method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106184295A (en) * 2016-07-07 2016-12-07 王永桂 A kind of Train Dynamic information real time inquiry system and method
CN106855882A (en) * 2016-12-19 2017-06-16 交控科技股份有限公司 A kind of urban track traffic electronic map data generates system and method
CN112416895A (en) * 2020-11-16 2021-02-26 杭州安恒信息技术股份有限公司 Database information processing method and device, readable storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
地铁列车运行图编制系统的设计与实现;刘庆磊;赵疆昀;曾小旭;王其才;;铁路计算机应用(05);全文 *
基于Qt的图像与导航地图融合软件设计;樊亚红;王闽;江润东;姚金杰;;国外电子测量技术(04);全文 *

Also Published As

Publication number Publication date
CN113094035A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
TW201115122A (en) Methods and apparatus for processing road data
CN113094035B (en) Method, system and equipment for realizing graphical editing of train database
CN111984597B (en) File storage method, device, equipment and medium
CN102944247A (en) Path navigation method
CN105868229A (en) Tourist navigation method and apparatus
CN111765904B (en) Test method and device for automatic driving vehicle, electronic equipment and medium
CN103678743A (en) Subway limit drawing method
JP2009015739A (en) Traffic information distribution server, traffic information distribution system, and traffic information distribution method
JP2022508433A (en) Attendance evaluation method for tunnel construction vehicles, computer equipment and computer-readable storage media
CN105183766A (en) Method and system for eliminating historical route redundant points of maps
KR102569890B1 (en) Method and navigation device for processing overlapping event
CN106649341B (en) Data processing method and device
CN112362071B (en) Multi-destination route planning method, device and storage medium
JP2016033782A (en) Map display program, map display method and information processor
JP6467847B2 (en) Travel path output control program, travel path output control method, and information processing apparatus
CN113836612A (en) Equipment associated information extraction method and device, electronic equipment and storage medium
CN108204813B (en) Path calculation method and device and navigation system
CN113821736B (en) Method, device, equipment and medium for predicting vehicle destination based on prefix tree
CN110319803B (en) Track circuit limit length calculation method and device
CN112185106B (en) Unreasonable speed limit sign screening method and device, storage medium and terminal
CN112188506B (en) Relay station address selection method and device, electronic equipment and storage medium
CN115297197B (en) Communication information analysis method, system, equipment and storage medium
CN115412928B (en) Flower arrangement base station identification method and device based on space technology
CN108010319A (en) A kind of recognition methods of road condition and device
WO2024080152A1 (en) Map information generation device and map information generation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant