Method, system and device for efficiently decoding GTS water level message data and storage medium
Through the multi-threaded processing framework and Disruptor high-performance queue, the problem of high decoding delay and poor stability of GTS water level packet data is solved, and efficient and stable decoding effect is achieved, meeting the timeliness of tsunami warning.
Patent Information
- Application Number
- CN202510064598.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-13
AI Technical Summary
The prior art relies heavily on international networks and specific operating environments, resulting in high latency and poor stability of GTS water level packet data.
Using a multi-threaded processing framework and Disruptor high-performance queue, it can efficiently decode GTS water level message data through preset configurations, polling directories, split messages, decoding and converting file formats.
It improves the decoding efficiency and stability of GTS water level message data, meets the timeliness requirements of tsunami warning, and has good scalability and portability.
Smart Images

Figure CN119996392A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of message decoding, and in particular to a method, system, device and storage medium for efficiently decoding GTS water level message data. Background Art
[0002] The tsunami warning and disaster reduction system is a comprehensive information system of software and hardware that integrates water level monitoring network, tsunami warning comprehensive application system, information communication system and tsunami disaster prevention and reduction system. Among them, global real-time tsunami observation data is the core data support of the tsunami warning and disaster reduction system.
[0003] The Global Telecommunication System (GTS) is the core communication network used by the World Meteorological Organization (WMO) for global meteorological data and information transmission. The main function of GTS is to transmit meteorological observation data, forecast products and warning information from all over the world in real time, including ground observation, aviation observation, ocean observation and satellite observation data. Its purpose is to ensure that global meteorological services and users can quickly and accurately obtain necessary meteorological information for weather forecasting, climate monitoring and disaster warning.
[0004] At present, the Global Telecommunication System (GTS) has collected and distributed real-time water level data from nearly 500 tide gauges and deep-sea buoys around the world in terms of ocean level monitoring. Each tide gauge or deep-sea buoy contains multiple sensors, and the sampling interval is mostly 1 minute. The sampling interval of some sensors is 5 minutes or 15 minutes, so the amount of data is large.
[0005] Since the water level message data transmitted by GTS adopts different encoding formats, it is necessary to decode the original water level message data after obtaining the GTS water level message data. At the same time, since tsunami warnings require high timeliness, high requirements are placed on the efficiency and stability of decoding. At present, there is no relatively mature decoding solution for GTS water level message data in China, and it mainly relies on software developed abroad to decode GTS water level message data, such as the "tidetool" software developed by the National Oceanic and Atmospheric Administration of the United States. Summary of the invention
[0006] To this end, the embodiments of the present invention provide a method, system, device and storage medium for efficiently decoding GTS water level message data to solve the technical problems that the prior art is highly dependent on international networks and specific operating environments, and has high decoding data delay and poor stability.
[0007] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
[0008] According to a first aspect of an embodiment of the present invention, a method for efficiently decoding GTS water level message data is provided, the method being applied to a multi-threaded processing framework, and comprising:
[0009] Use the preset configuration to poll the original directory to detect whether a new GTS water level message appears, and read the original message content after detecting the new GTS water level message;
[0010] Use the message-specified delimiter to split the original message into files, read the message header information after splitting, obtain the current split content, data format and configuration information from the cache configuration according to the header information, encapsulate the current split content, data format and configuration information, and then decode the data;
[0011] Extracting a data format identifier from the data format, calling a corresponding decoding algorithm using the data format identifier, decoding according to a decoding rule, obtaining a decoded message, and encapsulating the decoded message;
[0012] The file output format is obtained and the encapsulated data is read, and a decoded file is generated using the file output format.
[0013] Furthermore, message decoding and file format conversion are performed based on the Disruptor high-performance queue, including:
[0014] Through the Disruptor built-in queue, the decoding algorithm is used as the producer and the file format conversion algorithm is used as the consumer. After the decoding algorithm parses each record, it is immediately sent to the consumer for processing;
[0015] The tide data is a file every 5 minutes, which contains multiple tide records.
[0016] Furthermore, the decoding algorithm includes:
[0017] PARSE_BC format decoding algorithm, PARSE_CREX format decoding algorithm, PARSE_CREX2 format decoding algorithm, PARSE_CREX3 format decoding algorithm, PARSE_CREX4 format decoding algorithm, PARSE_DCREX format decoding algorithm, PARSE_DART format decoding algorithm, PARSE_GLOSS format decoding algorithm, PARSE_GLOSS2 format decoding algorithm, PARSE_GLOSS3 format decoding algorithm, PARSE_GLOSS4 format decoding algorithm, PARSE_JMA format decoding algorithm, PARSE_OTT format decoding algorithm, PARSE_NOS format decoding algorithm and PARSE_HNKG decoding algorithm.
[0018] Furthermore, the method further comprises:
[0019] For the newly added site data, first confirm the data format. After confirming the data format, add the newly added site information to the configuration file and restart. After restarting, the water level message data of the newly added site can be decoded and format converted.
[0020] Furthermore, the method further comprises:
[0021] Use web visualization of GIS maps to monitor the integrity and effectiveness of data decoding and format conversion in real time;
[0022] Through the web page, you can view: the number of received records of the day's data, the number of successful decoding of the day's data, the number of sites where the day's data is successfully decoded, the effectiveness of message decoding in the last hour, the timeliness of format conversion in the last hour, and the delay time of live data of all tide stations.
[0023] Furthermore, in the process of decoding the GTS water level message data, each type of data is processed by running an independent process.
[0024] Furthermore, decoding according to the decoding rule also includes:
[0025] Obtain the encoding format of the GTS water level message data, design an entity class using the encoding format and output it to a decoding entity class set;
[0026] Obtain the value in the message through the decoding algorithm and assign the value to the designed entity class;
[0027] The assigned entity class is stored in the assigned collection, and the decoded entity class collection is returned after parsing is completed.
[0028] According to a second aspect of an embodiment of the present invention, a system for efficiently decoding GTS water level message data is provided, the system comprising:
[0029] The target polling thread is used to poll the original directory using the preset configuration to detect whether a new message appears, and read the original message content after detecting a new message;
[0030] The file splitting and forwarding thread is used to split the original message into files using the message-specified delimiter, read the message header information after splitting, obtain the current split content, data format and configuration information from the cache configuration according to the header information, encapsulate the current split content, data format and configuration information, and then decode the data;
[0031] A data decoding thread, used to extract a data format identifier from the data format, use the data format identifier to call a corresponding decoding algorithm, perform decoding according to a decoding rule, obtain a decoded message, and encapsulate the decoded message;
[0032] The format conversion thread is used to obtain the file output format and read the encapsulated data, and generate a decoded file using the file output format.
[0033] According to a third aspect of an embodiment of the present invention, there is provided a device for efficiently decoding GTS water level message data, the device comprising: a processor and a memory;
[0034] The memory is used to store one or more program instructions;
[0035] The processor is used to run one or more program instructions to execute the steps of a method for efficiently decoding GTS water level message data as described in any one of the above items.
[0036] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for efficiently decoding GTS water level message data as described in any of the above items are implemented.
[0037] The embodiments of the present invention have the following advantages:
[0038] The decoding method proposed in the embodiment of the present invention fills the gap in the decoding capability of GTS water level message data in the domestic marine monitoring field. Through the Disruptor high-performance queue and multi-threaded data processing framework, efficient and fast decoding of GTS water level message data is achieved. At the same time, this method adopts a modular design and has good scalability and portability. Each data processing of the data decoding thread runs as an independent process. In this way, if an abnormality occurs in a process, it will only affect the real-time processing of one of the data, thereby improving the stability and reliability of the system and meeting the timeliness requirements of data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0040] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0041] Figure 1 A schematic diagram of the logical structure of a system for efficiently decoding GTS water level message data provided by an embodiment of the present invention;
[0042] Figure 2 A schematic flow chart of a method for efficiently decoding GTS water level message data provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a multi-threaded data processing framework for a method for efficiently decoding GTS water level message data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.
[0045] At present, the Global Telecommunication System (GTS) has collected and distributed real-time water level data from nearly 500 tide gauges and deep-sea buoys around the world in terms of ocean level monitoring. Each tide gauge or deep-sea buoy contains multiple sensors, and the sampling interval is mostly 1 minute. The sampling interval of some sensors is 5 minutes or 15 minutes, so the amount of data is large.
[0046] Since the water level message data transmitted by GTS adopts different encoding formats, it is necessary to decode the original water level message data after obtaining the GTS water level message data. At the same time, since tsunami warnings require high timeliness, high requirements are placed on the efficiency and stability of decoding. At present, there is no relatively mature decoding solution for GTS water level message data in China, and the decoding of GTS water level message data mainly relies on software developed abroad, such as the "tidetool" software developed by the National Oceanic and Atmospheric Administration of the United States.
[0047] In order to solve the technical problems that the above-mentioned existing technologies are highly dependent on international networks and specific operating environments, and have high decoding data delays and poor stability.
[0048] refer to Figure 1 The embodiment of the present invention discloses a system for efficiently decoding GTS water level message data, the system comprising: a target polling thread 1; a file splitting and forwarding thread 2; a data decoding thread 3; and a format conversion thread 4.
[0049] The system functions proposed in the embodiment of the present invention include:
[0050] 1) Data processing framework
[0051] Based on the multi-threaded data processing framework, the corresponding decoding algorithm and format conversion algorithm are obtained by configuring the message data in different formats, and the data file format of the specified format is output.
[0052] 2) Data decoding algorithm
[0053] According to the reporting rules of various data, develop PARSE_BC format decoding algorithm, PARSE_CREX format decoding algorithm, PARSE_CREX2 format decoding algorithm, PARSE_CREX3 format decoding algorithm, PARSE_CREX4 format decoding algorithm, PARSE_DCREX format decoding algorithm, PARSE_DART format decoding algorithm, PARSE_GLOSS format decoding algorithm, PARSE_GLOSS2 format decoding algorithm, PARSE_GLOSS3 format decoding algorithm, PARSE_GLOSS4 format decoding algorithm, PARSE_JMA format decoding algorithm, PARSE_OTT format decoding algorithm, PARSE_NOS format decoding algorithm and PARSE_HNKG format decoding algorithm for GTS tide data message formats requested by the China Meteorological Administration, and output the decoded file content in accordance with the specified file format.
[0054] 3) Decoding status statistical analysis and display
[0055] Realize the monitoring and display of status information such as file arrival, decoding and conversion.
[0056] Corresponding to the above disclosed system for efficiently decoding GTS water level message data, an embodiment of the present invention further discloses a method for efficiently decoding GTS water level message data. The following describes in detail a method for efficiently decoding GTS water level message data disclosed in an embodiment of the present invention in combination with the above described system for efficiently decoding GTS water level message data.
[0057] The purpose of the present invention is to provide a method for decoding GTS water level message data which is efficient, stable, highly applicable and easy to transplant.
[0058] refer to Figure 2 and Figure 3 The present invention discloses a method for efficiently decoding GTS water level message data, which is applied to a multi-threaded processing framework, and includes: using a preset configuration to poll the original directory, detecting whether a new GTS water level message appears, and reading the original message content after detecting the new GTS water level message.
[0059] Based on the multi-threaded data processing framework, the directory polling thread will poll the original directory according to the preset configuration to check whether there are new files. Once the program detects a new file, it will read the file content, wait for the processing to complete, and then transfer the file to the configured directory and wait for the next polling.
[0060] Use the message-specified delimiter to split the original message into files, read the message header information after splitting, obtain the current split content, data format and configuration information from the cache configuration according to the header information, encapsulate the current split content, data format and configuration information, and then decode the data.
[0061] Based on the multi-threaded data processing framework, after the file splitting and forwarding thread receives the file content read by directory polling, it splits the file according to the delimiter specified in the message, reads the file header information after splitting, and determines the current split content data format and configuration information from the cache configuration based on the header information, encapsulates the data format and configuration information and file content, and forwards them to the data decoding algorithm.
[0062] A data format identifier is extracted from the data format, a corresponding decoding algorithm is called using the data format identifier, decoding is performed according to a decoding rule, a decoded message is obtained, and the decoded message is encapsulated.
[0063] Based on the multi-threaded data processing framework, the data decoding thread receives the content of the file splitting and forwarding thread, splits the encapsulation information, enters the corresponding data format decoding algorithm according to the data format identifier, decodes according to the decoding rules, encapsulates the decoded data information, and forwards it to the format conversion thread.
[0064] The file output format is obtained and the encapsulated data is read, and a decoded file is generated using the file output format.
[0065] Based on the multi-threaded data processing framework, the format conversion thread receives the decoding encapsulation information, reads the data content, and generates a new file according to the file output format.
[0066] According to the general process design principles of data decoding, it is necessary to abstract common components such as message format checking, data format conversion, and decoding core algorithms as much as possible, so as to form highly cohesive and low-coupled decoding components based on different message formats, internal logic differences of message checking, and different message content parsing logic.
[0067] Furthermore, message decoding and file format conversion are performed based on the Disruptor high-performance queue, including: through the Disruptor built-in queue, the decoding algorithm is used as the producer, and the file format conversion algorithm is used as the consumer. After the decoding algorithm parses each record, it is immediately sent to the consumer for processing.
[0068] The tide data is a file every 5 minutes, which contains multiple tide records.
[0069] Based on the Disruptor high-performance queue, fast decoding and file format conversion are achieved. A 5-minute tide data file contains multiple records. Through the Disruptor built-in queue, the decoding algorithm acts as a producer and the file format conversion algorithm acts as a consumer. The decoding algorithm parses a record and sends it to the consumer for processing.
[0070] Furthermore, the decoding algorithms include: PARSE_BC format decoding algorithm, PARSE_CREX format decoding algorithm, PARSE_CREX2 format decoding algorithm, PARSE_CREX3 format decoding algorithm, PARSE_CREX4 format decoding algorithm, PARSE_DCREX format decoding algorithm, PARSE_DART format decoding algorithm, PARSE_GLOSS format decoding algorithm, PARSE_GLOSS2 format decoding algorithm, PARSE_GLOSS3 format decoding algorithm, PARSE_GLOSS4 format decoding algorithm, PARSE_JMA format decoding algorithm, PARSE_OTT format decoding algorithm, PARSE_NOS format decoding algorithm and PARSE_HNKG decoding algorithm.
[0071] Multi-format message decoding and conversion processing adopt multi-threading technology to meet the timeliness requirements of data storage.
[0072] Furthermore, the method also includes: for the newly added site data, first confirming the data format, adding the newly added site information to the configuration file after confirming the data format and restarting, and after restarting, the water level message data of the newly added site can be decoded and format converted.
[0073] In terms of data decoding scalability: based on the configuration, new sites with existing formats can be quickly commercialized. For the newly added site data, the site information is added to the configuration file after the format is confirmed, and the program can be restarted to achieve decoding and format conversion.
[0074] Furthermore, the method also includes: using the web visualization of the GIS map to monitor the integrity and effectiveness of data decoding and format conversion in real time; through the web page, it is possible to view: the number of received records of the day's data, the number of successful decoding of the day's data, the number of sites where the day's data is successfully decoded, the effectiveness of message decoding in the last hour, the timeliness of format conversion in the last hour, and the delay time of real-time data of all tide stations.
[0075] In data monitoring display: Based on GIS map Web visualization service, real-time monitoring of data decoding and format conversion integrity and timeliness: Through the Web page, you can view: the number of data records received on the day, the number of successful decodings, and the number of sites with successful decoding; the timeliness of message decoding and format conversion in the last hour; the delay time of live data of all tide stations.
[0076] Furthermore, in the process of decoding the GTS water level message data, each type of data is processed by running an independent process.
[0077] Furthermore, decoding according to the decoding rules also includes: obtaining the encoding format of the GTS water level message data, designing the entity class using the encoding format and outputting it to the decoding entity class set; obtaining the value in the message through the decoding algorithm and assigning the designed entity class; storing the assigned entity class in the assignment set, and returning the decoding entity class set after parsing is completed.
[0078] Corresponding decoding algorithms need to be developed for the different encoding formats of GTS water level observation message data. Entity classes are designed according to the encoding format of each type of data. After the format check module is called, a set of decoded entity classes is output. According to the provided format information, an entity class with the encoding format is designed. The value in the message is obtained through the decoding algorithm, and the designed entity class is assigned. The assigned entity class is placed in the collection, and the collection of entity classes is returned after the parsing is completed.
[0079] This application uses advanced big data cloud platform technology to achieve fast decoding and file format conversion based on Disruptor high-performance queues. Through Disruptor built-in queues, the decoding algorithm acts as a producer and the file format conversion algorithm acts as a consumer. The decoding algorithm parses a record and sends it to the consumer for processing. Based on a multi-threaded data processing framework, the corresponding decoding algorithm and format conversion algorithm are obtained by configuring message data in different formats, and the data file format of the specified format is output.
[0080] The GTS water level message data decoding method proposed in the present invention fills the gap in the GTS water level message data decoding capability in the domestic marine monitoring field. Based on the Disruptor high-performance queue and multi-threaded data processing framework, efficient and fast decoding of GTS water level message data is achieved. At the same time, the method adopts a modular design and has good scalability and portability. Each data processing of the message data decoding module runs as an independent process. In this way, if an abnormality occurs in a process, it will only affect the real-time processing of one of the data, thereby improving the stability and reliability of the system.
[0081] In addition, an embodiment of the present invention also provides a device for efficiently decoding GTS water level message data, the device comprising: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a method for efficiently decoding GTS water level message data as described in any of the above items.
[0082] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for efficiently decoding GTS water level message data as described in any of the above items are implemented.
[0083] In the embodiment of the present invention, the processor may be an integrated circuit chip having the signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0084] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.
[0085] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
[0086] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0087] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus DRAM (DRRAM).
[0088] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0089] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0090] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for efficiently decoding GTS water level message data, characterized in that: The method is applied to a multi-threaded processing framework, which includes: Use the preset configuration to poll the original directory to detect whether a new GTS water level message appears, and read the original message content after detecting the new GTS water level message; Use the message-specified delimiter to split the original message into files, read the message header information after splitting, obtain the current split content, data format and configuration information from the cache configuration according to the header information, encapsulate the current split content, data format and configuration information, and then decode the data; Extracting a data format identifier from the data format, calling a corresponding decoding algorithm using the data format identifier, decoding according to a decoding rule, obtaining a decoded message, and encapsulating the decoded message; The file output format is obtained and the encapsulated data is read, and a decoded file is generated using the file output format.
2. A method for efficiently decoding GTS water level message data as claimed in claim 1, characterized in that: Message decoding and file format conversion based on Disruptor high-performance queue, including: Through the Disruptor built-in queue, the decoding algorithm is used as the producer and the file format conversion algorithm is used as the consumer. After the decoding algorithm parses each record, it is immediately sent to the consumer for processing; The tide data is a file every 5 minutes, which contains multiple tide records.
3. A method for efficiently decoding GTS water level message data as claimed in claim 2, characterized in that: The decoding algorithms include: PARSE_BC format decoding algorithm, PARSE_CREX format decoding algorithm, PARSE_CREX2 format decoding algorithm, PARSE_CREX3 format decoding algorithm, PARSE_CREX4 format decoding algorithm, PARSE_DCREX format decoding algorithm, PARSE_DART format decoding algorithm, PARSE_GLOSS format decoding algorithm, PARSE_GLOSS2 format decoding algorithm, PARSE_GLOSS3 format decoding algorithm, PARSE_GLOSS4 format decoding algorithm, PARSE_JMA format decoding algorithm, PARSE_OTT format decoding algorithm, PARSE_NOS format decoding algorithm and PARSE_HNKG decoding algorithm.
4. A method for efficiently decoding GTS water level message data as claimed in claim 3, characterized in that: The method further comprises: For the newly added site data, first confirm the data format. After confirming the data format, add the newly added site information to the configuration file and restart. After restarting, the water level message data of the newly added site can be decoded and format converted.
5. A method for efficiently decoding GTS water level message data as claimed in claim 4, characterized in that: The method further comprises: Use web visualization of GIS maps to monitor the integrity and effectiveness of data decoding and format conversion in real time; Through the web page, you can view: the number of received records of the day's data, the number of successful decoding of the day's data, the number of sites where the day's data is successfully decoded, the effectiveness of message decoding in the last hour, the timeliness of format conversion in the last hour, and the delay time of live data of all tide stations.
6. A method for efficiently decoding GTS water level message data as claimed in claim 5, characterized in that: During the decoding of GTS water level message data, each type of data is processed by running an independent process.
7. A method for efficiently decoding GTS water level message data as claimed in claim 6, characterized in that: Decoding according to the decoding rules also includes: Obtain the encoding format of the GTS water level message data, design an entity class using the encoding format and output it to a decoding entity class set; Obtain the value in the message through the decoding algorithm and assign the value to the designed entity class; The assigned entity class is stored in the assigned collection, and the decoded entity class collection is returned after parsing is completed.
8. A system for efficiently decoding GTS water level message data, characterized in that: The system comprises: The target polling thread is used to poll the original directory using the preset configuration to detect whether a new message appears, and read the original message content after detecting a new message; The file splitting and forwarding thread is used to split the original message into files using the message-specified delimiter, read the message header information after splitting, obtain the current split content, data format and configuration information from the cache configuration according to the header information, encapsulate the current split content, data format and configuration information, and then decode the data; A data decoding thread, used to extract a data format identifier from the data format, use the data format identifier to call a corresponding decoding algorithm, perform decoding according to a decoding rule, obtain a decoded message, and encapsulate the decoded message; The format conversion thread is used to obtain the file output format and read the encapsulated data, and generate a decoded file using the file output format.
9. A device for efficiently decoding GTS water level message data, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of a method for efficiently decoding GTS water level message data as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a method for efficiently decoding GTS water level message data as claimed in any one of claims 1 to 7 are implemented.