Automatic master data updating method and device based on timestamp and map network linkage
Through an automatic update method based on timestamps and map network linkage, telegram information is parsed and compared with the master data set, and the railway map network is automatically adjusted, which solves the problem of inefficient railway master data updates and achieves efficient and accurate data updates and network consistency.
Patent Information
- Application Number
- CN202510577084.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-09-19
AI Technical Summary
The existing railway master data update method mainly relies on manual operations, resulting in low update efficiency and prone to errors, and failing to achieve the coordinated adjustment of master data and railway map network.
An automatic update method based on timestamp and map network linkage is adopted. By parsing the master data change information in the telegram information, it is compared with the existing master data set in the system, controlling the update timing according to the timestamp, and automatically adjusting the line connection status through the map network linkage mechanism.
It improves the updating efficiency and accuracy of railway master data, ensures that data is updated in sequence, achieves the connectivity and consistency of the railway network, reduces human errors, and improves the intelligent management level of the railway system.
Smart Images

Figure CN120670432A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing and railway transportation scheduling, and in particular to a method and device for automatically updating master data based on timestamp and map network linkage. Background Art
[0002] In railway transportation systems, master data (such as station and route information) frequently changes, and these changes are typically communicated via telegrams. Existing methods for updating master data often rely on manual operations, resulting in inefficient and error-prone updates.
[0003] Therefore, how to improve the updating efficiency and accuracy of railway master data has become a technical problem that needs to be solved urgently in the industry. Summary of the Invention
[0004] The present invention provides a method and device for automatically updating master data based on timestamp and map network linkage, which are used to solve the technical problem of how to improve the updating efficiency and accuracy of railway master data.
[0005] The present invention provides a method for automatically updating master data based on timestamp and map network linkage, comprising: Determining a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or route information; determining that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; Modifying the current master data item based on the master data item change information in the current telegram; Update the railway map network based on the master data set after the master data items are changed.
[0006] In some embodiments, the changing the current master data item based on the master data item change information in the current telegram includes: Determine the master data item change information and change type in the current telegram; In a case where the change type is addition, the master data item change information is added to the current master data item.
[0007] In some embodiments, after determining the change information and change type of the master data item in the current telegram, the method further includes: In a case where the change type is deletion, the master data item change information is deleted from the current master data item.
[0008] In some embodiments, updating the railway map network based on the master data set after the master data item is changed includes: Determining, based on the master data set after the master data item is changed, station change information and line change information in the master data set; The railway map network is updated based on the station change information and the line change information.
[0009] In some embodiments, updating the railway map network based on the station change information and the line change information includes: Changing vertices in the railway map network based on the station change information; Modifying edges in the railway map network based on the route change information; Each vertex in the railway map network represents a station, and each edge represents a route between stations.
[0010] In some embodiments, the changing the edges in the railway map network based on the route change information includes: updating the adjacency matrix of each vertex based on the route change information; Based on the updated adjacency matrix of each vertex, the edges in the railway map network are modified.
[0011] The present invention provides a master data automatic updating device based on timestamp and map network linkage, comprising: A data determination module is used to determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information; a time comparison module, configured to determine that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; An information updating module, configured to change the current master data item based on the master data item change information in the current telegram; The map update module is used to update the railway map network based on the master data set after the master data items are changed.
[0012] The present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for automatically updating master data based on timestamp and map network linkage is implemented.
[0013] The present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for automatically updating master data based on timestamp and map network linkage is implemented.
[0014] The present invention provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for automatically updating master data based on timestamp and map network linkage is implemented.
[0015] The method and device for automatically updating master data based on timestamp and map network linkage provided by the present invention determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information; it is determined that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; the current master data item is changed based on the master data item change information in the current telegram; the railway map network is updated based on the master data set after the master data item is changed; because the master data change information in the telegram information is parsed and compared with the existing master data set in the system, the update timing is controlled according to the timestamp to ensure that the data is updated in sequence; at the same time, through the map network linkage mechanism, the corresponding line connection status is automatically adjusted according to the changes of stations and lines, the connectivity and consistency of the railway network are guaranteed, and the update efficiency and accuracy of the railway master data are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 It is a flow chart of the master data automatic update method based on timestamp and map network linkage provided by the present invention.
[0019] Figure 2 It is a structural diagram of the master data automatic updating device based on timestamp and map network linkage provided by the present invention.
[0020] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first," "second," and the like in the present invention are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps, units, or modules is not necessarily limited to those steps, units, or modules that are explicitly listed, but may include other steps, units, or modules that are not explicitly listed or that are inherent to these processes, methods, products, or apparatuses.
[0023] In the existing technology, master data update timing alignment and dynamic line adjustment rely on manual operations, resulting in low update efficiency and prone to errors, and failing to achieve the coordinated adjustment of master data line stations and railway map networks.
[0024] In order to solve the shortcomings of related technologies, Figure 1 This is a flow chart of the master data automatic update method based on timestamp and map network linkage provided by the present invention, such as Figure 1 As shown, the method includes step 110 , step 120 , step 130 and step 140 .
[0025] Step 110: Determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information.
[0026] Specifically, the master data automatic update method provided in the embodiments of the present invention is implemented by a master data automatic update device. This device can be implemented by software, such as a master data automatic update program, or by hardware, such as a computer or server that executes the master data automatic update method.
[0027] Railway master data is the most widely shared type of basic data among all disciplines, departments, and systems on the railway. Currently, the railway master data management platform uniformly updates, processes, and shares station master data, line master data, etc. on the entire railway.
[0028] The master data set records the master data in the form of a collection. Each piece of master data can be regarded as a master data item. The master data set can be represented as .in For the master data items, . The number of master data items.
[0029] Master data items include station information and / or line information. Stations are important transportation hubs connecting railway lines, providing passengers with boarding and alighting, transfers, and other services. Station information refers to information related to stations. Lines are geotechnical structures that allow locomotives and trains to operate, and are also the fixed routes constructed for railway transportation. Line information refers to information related to these lines.
[0030] The railway telegraph system uses digital technology to transmit written information. It is a crucial component of long-distance railway communications. Railway telegraphs can be categorized by purpose, including general telegraphs, train confirmation telegraphs, and fax telegraphs. General telegraphs, as a communication tool for internal railway management, are further divided into trunk line telegraphs and local line telegraphs. Trunk line telegraphs are used for communication between various departments within the railway system, while local line telegraphs are used for communication between railway management departments and larger stations.
[0031] The telegram information set represents the received telegrams in the form of a collection. The telegram information set can be represented as .in For the Telegram, . is the number of telegrams. Each telegram contains the change information of master data items, such as station change information and line change information.
[0032] Step 120: Determine whether the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set.
[0033] Specifically, each telegram in the telegram information set has a timestamp, which can indicate the sending time or receiving time of the telegram, for example, Telegram The timestamp can be expressed as Each master data item in the master data set has a timestamp, which can be used to indicate the update time of the master data item, such as Master data items The timestamp can be expressed as .
[0034] The timestamps of each telegram in the telegram information set can be compared with the timestamps of each master data item in the master data set. For example, the timestamp of the telegram can be The current master data item in the master data set Timestamp Compare, if , it can be determined that the time when the telegram changes the content is later than the update time of the master data item. In this case, the master data item change information in the current telegram can be utilized to update the current master data item.
[0035] Step 130: Change the current master data item based on the master data item change information in the current telegram.
[0036] Specifically, the relevant information in the current master data item can be changed according to the master data item change information in the current telegram. The keywords in the master data item change information in the current master data item The keywords can be determined based on station information or line information. If the keyword comparison results are consistent, the current telegram The master data item change information in the current master data item Make changes, including station changes or line changes.
[0037] Step 140: Update the railway map network based on the master data set after the master data item is changed.
[0038] Specifically, a railway map network generally refers to a map or graphical representation of railway lines, stations, and related infrastructure, designed to help understand the layout, connections, and routes of railway transportation. This map not only shows the direction of railway lines, but may also include information such as railway stations, branch lines, transportation hubs, and connecting cities. The purpose is to support the management and planning of railway systems, as well as passenger and freight needs.
[0039] After the master data item is changed, the railway map network in the railway system can be updated based on the changed master data set, including station updates, line updates, etc. In this way, the railway map network can be updated in conjunction with the master data item change.
[0040] The method for automatically updating master data based on timestamp and map network linkage provided by an embodiment of the present invention determines a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information; determines that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; changes the current master data item based on the master data item change information in the current telegram; updates the railway map network based on the master data set after the master data item is changed; because the master data change information in the telegram information is parsed and compared with the existing master data set in the system, the update timing is controlled according to the timestamp to ensure that the data is updated in sequence; at the same time, through the map network linkage mechanism, the corresponding line connection status is automatically adjusted according to the changes of stations and lines, to ensure the connectivity and consistency of the railway network, and to improve the update efficiency and accuracy of the railway master data.
[0041] It should be noted that each embodiment of the present invention can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.
[0042] In some embodiments, changing the current master data item based on the master data item change information in the current telegram includes: Determine the master data item change information and change type in the current telegram; If the change type is add, add the master data item change information to the current master data item; When the change type is deletion, the master data item change information is deleted in the current master data item.
[0043] Specifically, each telegram can be parsed to determine the change information of the main data items in each telegram and the corresponding change type, which may include addition and deletion.
[0044] Taking the current telegram as an example, if the change type is addition, the master data item change information can be added to the current master data item. For example, if the master data item change information is station addition information or line addition information, the corresponding station or line can be added to the current master data item.
[0045] If the change type is deletion, the master data item change information can be deleted from the current master data item. For example, if the master data item change information is station deletion information or line deletion information, the corresponding station or line can be deleted from the current master data item.
[0046] According to the above method, the master data item change information in each telegram can be used to change each master data item in the master data set in turn.
[0047] The master data automatic update method based on timestamp and map network linkage provided by the embodiment of the present invention changes the current master data item according to the master data item change information in the current telegram, thereby improving the accuracy of railway master data update.
[0048] In some embodiments, updating the railway map network based on the master data set after the master data item is changed includes: Based on the master data set after the master data item is changed, determine the station change information and line change information in the master data set; The railway map network is updated based on station change information and line change information.
[0049] Specifically, station change information refers to any changes to a station, such as new station construction, station demolition, station name change, station function adjustment (such as from a passenger station to a freight station), etc. Line change information: refers to changes in railway lines, including the addition of new railway lines, suspension of lines, line extensions, line diversions, and line adjustments.
[0050] After completing the master data item changes in the master data set, you can summarize the station change information and line change information in the master data set to determine the stations and lines that need to be changed. Link the railway map network and update it.
[0051] When updating a railway map network, you can use an incremental update approach. This approach updates only the changed parts, rather than reloading and updating the entire system or dataset. It's efficient and reduces unnecessary, repetitive updates. It's commonly used in systems with large data volumes, particularly for updating real-time data, geographic information systems, and map data.
[0052] Station and route change information can be divided into batches, for example, by region or time. The railway map network is updated according to a specific update sequence, generating an updated version and update date for the railway map network. Incremental updates improve update efficiency and accuracy, avoiding unnecessary duplication of effort. By processing only the modified parts, incremental updates conserve resources and improve real-time performance, ensuring that the railway map quickly and accurately reflects the latest changes in the railway system.
[0053] The master data automatic update method based on timestamp and map network linkage provided by the embodiment of the present invention updates the railway map network according to the master data set after the master data item is changed, thereby ensuring the connectivity and consistency of the railway network.
[0054] In some embodiments, updating the railway map network based on the station change information and the line change information includes: Change vertices in the railway map network based on station change information; Modify the edges in the railway map network based on line change information; Among them, each vertex in the railway map network represents each station, and each edge represents the line between stations.
[0055] Specifically, the railway map network can be abstracted as an undirected graph G = (V, E). Vertices (V) represent stations in the railway network, and edges (E) represent railway lines between stations, that is, track lines connecting two stations.
[0056] Station change information includes adding new stations, deleting stations, renaming stations, adjusting station functions, etc. Station changes directly affect the vertices in the map network. Changes to the vertices in the railway map network based on station change information mainly include: Adding a new station: When a new station is added, a new vertex will be added to the railway map network, and the lines between the station and other stations will be connected (that is, new edges will be added).
[0057] Deleting a station: If a station is abandoned or stops operating, the vertex corresponding to the station needs to be deleted from the network, and all edges connected to the station need to be deleted (that is, the lines between the station and other stations need to be deleted).
[0058] Renaming or adjusting station functionality: This does not change the structure of the network, but may require updating the name or other related information of the station vertex.
[0059] Route change information includes adding new routes, deleting routes, extending routes, or rerouting routes. Route changes directly affect edges in the map network. Changes to edges in the railway map network based on route change information mainly include: New Lines: When a new railway line is added, an edge is added to the network, connecting the two new stations (vertices). If there are multiple new lines, multiple edges may be added.
[0060] Deleting a line: If a line is discontinued or abandoned, you need to delete the corresponding edge and disconnect the connection between the two stations (vertices).
[0061] Line extension or rerouting: If an existing line is changed, such as extending to a new station or rerouting, this will result in changes to the related edges, which may require adding or deleting edges, or adjusting the paths of existing edges.
[0062] The method for automatically updating master data based on timestamps and map network linkage provided by the embodiment of the present invention updates the railway map network according to station change information and line change information, so that the railway map network can quickly adapt to changes in stations and lines, thereby improving the efficiency and accuracy of data updates.
[0063] In some embodiments, changing edges in a railway map network based on route change information includes: Update the adjacency matrix of each vertex based on the route change information; Based on the updated adjacency matrix of each vertex, the edges in the railway map network are changed.
[0064] Specifically, the adjacency matrix is a matrix used to represent a graph. For a graph, each row and column represents a vertex, and the elements in the matrix indicate whether there are edges connecting the vertices. vertices, whose connection relationship can be represented by the adjacency matrix When the station information changes, the adjacency matrix is recalculated. , and update the corresponding line topology.
[0065] When a line in the railway network changes (such as being added, deleted, or rerouted), the adjacency matrix needs to reflect this change. This is because the adjacency matrix essentially reflects the connections between vertices, and changes to the line directly affect these connections.
[0066] New Line: If a new line is added connecting station (A) and station (B), then the position of the (A) row and (B) column (and the (B) row and (A) column in the adjacency matrix needs to be updated from (0) to (1). 0 means no edge, 1 means an edge.
[0067] Deleting a line: If a line is abandoned, the relationship between the two connected stations (corresponding to the elements in the adjacency matrix) needs to be updated from (1) to (0).
[0068] Rerouted routes: If a route changes the stations it connects (for example, it originally connected Station (A) and Station (B), but now it connects Station (A) and Station (C)), the corresponding elements in the adjacency matrix need to be changed accordingly.
[0069] Once the adjacency matrix of each vertex is updated according to the line change information, the edges in the railway map network can be actually changed according to the updated matrix.
[0070] Update edges based on the adjacency matrix: Changes to the adjacency matrix directly determine whether edges need to be added, deleted, or modified in the network. The (1) or (0) between each pair of vertices in the adjacency matrix indicates whether there is a corresponding connection (edge).
[0071] Adding and deleting edges: For example, if the value of a position in the adjacency matrix changes from (0) to (1), it means that a new line (edge) needs to be added between the corresponding stations. Conversely, if the value changes from (1) to (0), it means that the line (edge) needs to be deleted.
[0072] The method for automatically updating master data based on timestamps and map network linkage provided by an embodiment of the present invention updates the adjacency matrix of each vertex according to line change information, and changes the edges in the railway map network based on the updated adjacency matrix of each vertex, thereby effectively managing and updating the connection relationship of the railway network in the railway map network.
[0073] Based on all the above embodiments, the method for automatically updating master data based on timestamp and map network linkage provided by the present invention includes the following steps: Step 1: Obtain the telegram information set and the main data set.
[0074] The telegram information set can be represented as . Each telegram Contains master data item change information, such as station change information and line change information, etc. With corresponding timestamp .
[0075] The main dataset can be represented as Each master data item Including station information and / or line information, master data items With corresponding timestamp , indicating the time of the most recent update.
[0076] Step 2: Update the master data according to the telegram.
[0077] For each telegram , check its timestamp , to ensure that the time of telegram change content is later than the update time of master data item. The specific judgment logic can be: Timestamp Greater than the master data item Timestamp .
[0078] Then compare the changed data in the telegram to the master data set Perform comparisons and perform corresponding addition, deletion, and modification operations: New station: If If the new station information is included in the dataset, the adding operation is performed in the main dataset.
[0079] Delete station: If If the station information is included in the data set, the deletion operation is performed in the main data set.
[0080] Step 3: Map network linkage.
[0081] After adding or deleting station information, the map network update module is called to recalculate the connection relationship between stations and lines. This step includes updating the adjacency relationship between stations and lines and updating the railway network topology map.
[0082] Step 4: Output.
[0083] Updated master dataset and adjusted railway network diagram.
[0084] For example, suppose the telegraph The new station "Station A" is included, and its timestamp The station is not included in the master dataset. After the timestamp verification is passed, the system automatically adds "Station A" to the master dataset and updates the corresponding railway network map.
[0085] For example, suppose the telegraph The timestamp of the deleted station "B" is included The time stamp is 2024-09-12. After the system confirms that the timestamp of the telegram is later than the last update time of "Station B", it deletes the message and updates the connection relationship of the railway line.
[0086] The master data automatic update method based on timestamp and map network linkage provided by the present invention has the following technical effects: (1) Improve update efficiency The present invention realizes automatic updating of master data by automatically parsing telegram information without manual intervention, greatly improving the updating efficiency of master data. Especially in scenarios where information changes frequently, such as railway transportation, it can ensure that system data is always up to date.
[0087] (2) Reduce human errors Traditional master data updating methods rely mainly on manual operations, which are prone to data entry errors or omissions. The automatic update mechanism of the present invention reduces the risks brought by manual operations and ensures the accuracy and consistency of master data.
[0088] (3) Ensure the accuracy of data timing Through the timestamp mechanism, the present invention can ensure that all data update operations are executed in the correct time sequence, avoiding data conflicts or inconsistencies caused by untimely or incorrect data updates.
[0089] (4) Realize dynamic line adjustment Through a map-network linkage mechanism, the present invention can dynamically adjust the railway network's line connections based on changes in stations and lines, maintaining real-time updates of the line topology. This is of great significance for railway scheduling and transportation planning, and can improve the intelligent management level of the railway system.
[0090] The following describes an apparatus provided by an embodiment of the present invention. The apparatus described below and the method described above can refer to each other.
[0091] Figure 2 This is a schematic diagram of the structure of the master data automatic update device based on timestamp and map network linkage provided by the present invention. Figure 2 As shown, the device includes: The data determination module 210 is used to determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or route information; A time comparison module 220 for determining that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; An information updating module 230 is configured to modify the current master data item based on the master data item modification information in the current telegram; The map update module 240 is used to update the railway map network based on the master data set after the master data items are changed.
[0092] The device for automatically updating master data based on timestamp and map network linkage provided by an embodiment of the present invention determines a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information; determines that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; changes the current master data item based on the master data item change information in the current telegram; updates the railway map network based on the master data set after the master data item is changed; because the master data change information in the telegram information is parsed and compared with the existing master data set in the system, the update timing is controlled according to the timestamp to ensure that the data is updated in sequence; at the same time, through the map network linkage mechanism, the corresponding line connection status is automatically adjusted according to the changes of stations and lines, to ensure the connectivity and consistency of the railway network, and to improve the update efficiency and accuracy of the railway master data.
[0093] Figure 3 Schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3As shown, the electronic device may include: a processor (Processor) 310, a communication interface (Communications Interface) 320, a memory (Memory) 330 and a communication bus (Communications Bus) 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call the logic commands in the memory 330 to execute the method described in the above embodiments, for example: Determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; each master data item in the master data set includes station information and / or line information; determine that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; change the current master data item based on the master data item change information in the current telegram; and update the railway map network based on the master data set after the master data item is changed.
[0094] Furthermore, the logical commands in the aforementioned memory can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several commands for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.
[0095] The processor in the electronic device provided by the embodiment of the present invention can call the logic instructions in the memory to implement the above method. Its specific implementation method is consistent with the implementation method of the above method and can achieve the same beneficial effects, which will not be repeated here.
[0096] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method provided in the above embodiments is implemented.
[0097] Its specific implementation is consistent with the aforementioned method implementation and can achieve the same beneficial effects, so it will not be repeated here.
[0098] An embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the method described above is implemented.
[0099] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0100] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A master data automatic update method based on timestamp and map network linkage, characterized in that: include: Determining a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; Each master data item in the master data set includes station information and / or line information; determining that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; Modifying the current master data item based on the master data item change information in the current telegram; Update the railway map network based on the master data set after the master data items are changed.
2. The master data automatic update method based on timestamp and map network linkage according to claim 1 is characterized in that: The changing the current master data item based on the master data item change information in the current telegram includes: Determine the master data item change information and change type in the current telegram; In a case where the change type is addition, the master data item change information is added to the current master data item.
3. The master data automatic update method based on timestamp and map network linkage according to claim 2 is characterized in that: After determining the change information and change type of the main data item in the current telegram, the method further includes: In a case where the change type is deletion, the master data item change information is deleted from the current master data item.
4. The master data automatic update method based on timestamp and map network linkage according to claim 1 is characterized in that: The updating of the railway map network based on the master data set after the master data item is changed includes: Determining, based on the master data set after the master data item is changed, station change information and line change information in the master data set; The railway map network is updated based on the station change information and the line change information.
5. The master data automatic update method based on timestamp and map network linkage according to claim 4 is characterized in that: The updating of the railway map network based on the station change information and the line change information includes: Changing vertices in the railway map network based on the station change information; Modifying edges in the railway map network based on the route change information; Each vertex in the railway map network represents a station, and each edge represents a route between stations.
6. The master data automatic update method based on timestamp and map network linkage according to claim 4 is characterized in that: The changing of the edges in the railway map network based on the route change information includes: updating the adjacency matrix of each vertex based on the route change information; Based on the updated adjacency matrix of each vertex, the edges in the railway map network are modified.
7. A master data automatic update device based on timestamp and map network linkage, characterized in that: include: A data determination module, configured to determine a telegram information set and a master data set; each telegram in the telegram information set contains master data item change information; Each master data item in the master data set includes station information and / or line information; a time comparison module, configured to determine that the timestamp of the current telegram in the telegram information set is greater than the timestamp of the current master data item in the master data set; An information updating module, configured to change the current master data item based on the master data item change information in the current telegram; The map update module is used to update the railway map network based on the master data set after the master data items are changed.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for automatically updating master data based on timestamp and map network linkage according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for automatically updating master data based on timestamp and map network linkage according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for automatically updating master data based on timestamp and map network linkage according to any one of claims 1 to 6 is implemented.