Multi-data source adaptive read-write method and device based on factory pattern
Through the factory-based multi-data source adaptive reading and writing method, the problem of seismic imaging software being difficult to adapt to the rapid reading and writing of multiple data sources is solved, and the seamless docking of multiple data sources and the interface construction with commercial software is realized, providing efficient and easy-to-use adaptive reading and writing technology for seismic data.
Patent Information
- Application Number
- CN202311647008.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2025-06-06
AI Technical Summary
Seismic imaging software is difficult to adapt to the rapid reading and writing of multiple data sources.
The factory-based multi-data source adaptive reading and writing method is adopted to instantiate the general data read and write interface class through the factory class, and obtain the corresponding data read and write interface according to the data source type and commercial software type, and include it in the main function.
It realizes seamless docking of multiple data sources and builds a read and write interface with mainstream commercial software, and can automatically identify, read, write and store various common data types, providing efficient and easy-to-use adaptive read and write technology for seismic data.
Smart Images

Figure CN120104535A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of seismic data processing, and more specifically, to a multi-data source adaptive reading and writing method and device based on a factory mode. Background Art
[0002] Prestack depth migration is an effective method for imaging complex geological structures. Rapid, accurate and convenient processing of raw seismic data and timely provision of correct data for the prestack depth migration algorithm are necessary conditions for accurate imaging of complex geophysical structures. Currently, most seismic imaging software cannot adapt to the rapid reading and writing of multiple data sources. Summary of the invention
[0003] In view of this, the present invention discloses a method and device for adaptively reading and writing multiple data sources based on a factory mode, which solves the technical problem that seismic imaging software is difficult to adapt to the rapid reading and writing of multiple data sources.
[0004] According to one aspect of the present invention, a method for adaptively reading and writing multiple data sources based on a factory mode is proposed, comprising:
[0005] Step 1: Based on the factory pattern, determine the factory class that is not specific to any data source;
[0006] Step 2, instantiating a general data read-write interface class through the factory class;
[0007] Step 3, according to the type of data source and the general data read and write interface class, obtain a data read and write interface corresponding to the type of the data source;
[0008] Step 4, obtaining a data read-write interface based on a factory mode according to the type of commercial software and the data read-write interface corresponding to the type of the data source;
[0009] Step 5, including the data reading and writing interface based on the factory mode into the main function.
[0010] In some implementations, based on the factory pattern, determining a factory class that is not specific to any data source includes:
[0011] Based on the factory pattern, design the factory class that is not targeted at any data source;
[0012] An interface design is performed on the factory class to obtain the factory class that is not specific to any data source.
[0013] In some implementations, performing interface design on the factory class to obtain the factory class that is not specific to any data source includes:
[0014] Design the constructor, virtual function, instantiation function and interface class function not targeting specific data source of the factory class.
[0015] In some implementations, the generic data read / write interface class is instantiated by a factory class, including:
[0016] The general data read and write interface class defines the open data function, read data function, write data function, and close data function of the unified seismic data interface virtual function.
[0017] In some implementations, obtaining a data read / write interface corresponding to the type of the data source according to the type of the data source and the universal data read / write interface class includes:
[0018] The virtual functions inside the unified seismic data interface class are programmed and implemented through the general data read-write interface class to obtain a data read-write interface corresponding to the type of the data source.
[0019] In some implementations, obtaining a data read / write interface based on a factory mode according to the type of commercial software and the data read / write interface corresponding to the type of the data source includes:
[0020] Obtain data characteristics and formats of commercial software;
[0021] According to the data characteristics and format, and the data reading and writing interface corresponding to the type of the data source, a data reading and writing interface based on the factory mode is obtained.
[0022] In some implementations, the factory-mode-based data read / write interface is included in the main function, including:
[0023] Instantiate the data read-write interface based on the factory pattern through the factory pattern to obtain an instantiated data read-write interface;
[0024] The instantiated data reading and writing interface that matches the data type is adaptively called through the interface functions of various data types.
[0025] According to another aspect of the present invention, a multi-data source adaptive reading and writing device based on a factory mode is also proposed, the device comprising:
[0026] The factory class module is used to determine the factory class that is not targeted at any data source based on the factory mode;
[0027] A universal data read-write interface module, used to instantiate a universal data read-write interface class through the factory class;
[0028] A corresponding data read / write interface module, used to obtain a data read / write interface corresponding to the type of the data source according to the type of the data source and the universal data read / write interface class;
[0029] A business software module, used to obtain a data read and write interface based on a factory mode according to the type of business software and the data read and write interface corresponding to the type of the data source;
[0030] The main function module is used to include the factory mode-based data reading and writing interface into the main function.
[0031] In some implementations, based on the factory pattern, determining a factory class that is not specific to any data source includes:
[0032] Based on the factory pattern, design the factory class that is not targeted at any data source;
[0033] An interface design is performed on the factory class to obtain the factory class that is not specific to any data source.
[0034] In some implementations, performing interface design on the factory class to obtain the factory class that is not specific to any data source includes:
[0035] Design the constructor, virtual function, instantiation function and interface class function not targeting specific data source of the factory class.
[0036] In some implementations, the generic data read / write interface class is instantiated by a factory class, including:
[0037] The general data read and write interface class defines the open data function, read data function, write data function, and close data function of the unified seismic data interface virtual function.
[0038] In some implementations, obtaining a data read / write interface corresponding to the type of the data source according to the type of the data source and the universal data read / write interface class includes:
[0039] The virtual functions inside the unified seismic data interface class are programmed and implemented through the general data read-write interface class to obtain a data read-write interface corresponding to the type of the data source.
[0040] In some implementations, obtaining a data read / write interface based on a factory mode according to the type of commercial software and the data read / write interface corresponding to the type of the data source includes:
[0041] Obtain data characteristics and formats of commercial software;
[0042] According to the data characteristics and format, and the data reading and writing interface corresponding to the type of the data source, a data reading and writing interface based on the factory mode is obtained.
[0043] In some implementations, the factory-mode-based data read / write interface is included in the main function, including:
[0044] Instantiate the data read-write interface based on the factory pattern through the factory pattern to obtain an instantiated data read-write interface;
[0045] The instantiated data reading and writing interface that matches the data type is adaptively called through the interface functions of various data types.
[0046] According to another aspect of the present invention, an electronic device is also provided, the electronic device comprising:
[0047] A memory storing executable instructions;
[0048] A processor runs the executable instructions in the memory to implement the above-mentioned multi-data source adaptive reading and writing method based on the factory mode.
[0049] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the multi-data source adaptive reading and writing method based on the factory mode is implemented.
[0050] The technical solution has at least the following advantages: the present invention uses the factory programming mode, analyzes the characteristics of different seismic data sources, combines the two, develops a multi-data source adaptive reading and writing mechanism, and configures a universal reading and writing adaptation layer for seismic data, thereby realizing seamless connection of multiple data sources such as π-Image, π-Frame, SU, etc., and also builds a reading and writing interface with mainstream commercial software. The data reading and writing interface based on the factory mode can be separately implemented for different commercial software, so that a variety of common data types can be automatically identified, read, written and stored, providing efficient and easy-to-use seismic data adaptive reading and writing technology for geophysical seismic imaging software.
[0051] The methods and apparatus of the present invention have other features and advantages that will be apparent from or will be described in detail in the accompanying drawings and subsequent detailed descriptions incorporated herein, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.
[0053] Figure 1 A flowchart of a method for adaptively reading and writing multiple data sources based on a factory mode according to an embodiment of the present invention is shown;
[0054] Figure 2A block diagram of a multi-data source adaptive reading and writing device based on a factory mode according to an embodiment of the present invention is shown;
[0055] Figure 3 A schematic diagram showing the design and implementation of a factory class for a multi-data source adaptive reading and writing method based on a factory pattern according to an embodiment of the present invention is shown;
[0056] Figure 4 A schematic diagram showing a general data interface and interface implementation of different data sources of a multi-data source adaptive reading and writing method based on a factory mode according to an embodiment of the present invention is shown;
[0057] Figure 5 A schematic diagram of adaptive reading and writing of π-Image domestic imaging software for different data sources based on a factory mode multi-data source adaptive reading and writing method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0058] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.
[0059] Example 1
[0060] Figure 1 The flowchart of the method for adaptive reading and writing multiple data sources based on the factory mode according to an embodiment of the present invention is shown. As shown in the figure, the method includes steps 1 to 5.
[0061] Step 1: Based on the factory pattern, determine the factory class that is not specific to any data source;
[0062] Step 2, instantiating a general data read-write interface class through the factory class;
[0063] Step 3, according to the type of data source and the general data read and write interface class, obtain a data read and write interface corresponding to the type of the data source;
[0064] Step 4, obtaining a data read-write interface based on a factory mode according to the type of commercial software and the data read-write interface corresponding to the type of the data source;
[0065] Step 5, including the data reading and writing interface based on the factory mode into the main function.
[0066] According to the factory-mode-based multi-data source adaptive reading and writing method of an embodiment of the present invention, the factory programming mode is used, and the characteristics of different seismic data sources are analyzed, and the two are combined to develop a multi-data source adaptive reading and writing mechanism, and a universal reading and writing adaptation layer for seismic data is configured to achieve seamless connection of multiple data sources such as π-Image, π-Frame, SU, etc., and also to build a reading and writing interface with mainstream commercial software. The data reading and writing interface based on the factory mode can be implemented separately for different commercial software, so that multiple common data types can be automatically identified, read, written and stored, providing efficient and easy-to-use seismic data adaptive reading and writing technology for geophysical seismic imaging software.
[0067] According to one embodiment of the present invention, in step 1, based on the factory pattern, a factory class that is not specific to any data source is determined.
[0068] According to an embodiment of the present invention, based on the factory pattern, determining a factory class that is not targeted at any data source includes: based on the factory pattern, designing the factory class that is not targeted at any data source, designing an interface for the factory class, and obtaining the factory class that is not targeted at any data source. For example, the factory pattern mainly appears in the process of creating instances in an object-oriented manner. Its essence is to more conveniently generate instances. It is a pattern that uses factory methods instead of new operations. Taking the π-Image domestic software as an example, based on the factory pattern of the business application layer, a X business data factory class that is not targeted at any data source (such as Figure 3 ), design the interface of the X business data factory class to obtain the X business data application abstract interface, which is not targeted at any data source.
[0069] According to one embodiment of the present invention, the factory class performs interface design to obtain the factory class that is not specific to any data source, including: designing the factory class's constructor, fictional functions, instantiation functions, and interface class functions that are not specific to a specific data source. For example, taking the π-Image domestic software as an example, the X business π interface is implemented through the relevant access class on the X business data π; the X business local interface is implemented through the X business data local relevant access class; the constructor of the X business data factory class is designed to complete the initialization when the object is created; the fictitious function of the X business data factory class is designed so that when the base class pointer pointing to the subclass object is deleted, the destructor of the subclass can be called to achieve the purpose of releasing the heap memory in the subclass to prevent memory leakage; the instantiation function of the X business data factory class is designed to create an object of the class through the existing X business data factory class; the interface class function of the X business data factory class is designed to implement the method of calling the interface on any object of the class of the interface; by designing the constructor, fictitious function, instantiation function and interface class function not targeting a specific data source of the X business data factory class, the X business data application abstract interface is obtained, that is, a factory class not targeting any data source is obtained.
[0070] According to one embodiment of the present invention, in step 2, the general data read-write interface class is instantiated through the factory class.
[0071] According to one embodiment of the present invention, a universal data read-write interface class is instantiated through a factory class, including: the universal data read-write interface class defines an open data function, a read data function, a write data function, and a close data function of a unified seismic data interface virtual function. For example, the universal data read-write interface class mainly defines a unified seismic data interface virtual function, and the role of the seismic data interface virtual function is to achieve polymorphism, and polymorphism is to separate the seismic data interface from the implementation, that is, to achieve a common method, but adopt different strategies due to individual differences.
[0072] According to an embodiment of the present invention, in step 3, a data read / write interface corresponding to the type of the data source is obtained according to the type of the data source and the general data read / write interface class.
[0073] According to one embodiment of the present invention, according to the type of data source and the universal data read-write interface class, a data read-write interface corresponding to the type of data source is obtained, including: programming and implementing the virtual functions inside the unified seismic data interface class through the universal data read-write interface class to obtain the data read-write interface corresponding to the type of data source. For example, different data read-write interfaces are designed for different data sources. The interface class inherits the unified seismic data interface class, and the virtual functions inside the unified seismic data interface class are programmed and implemented. During specific programming, different processing is performed for different data sources, thereby achieving the purpose of self-adaptation (such as Figure 4 ).
[0074] In this way, an adaptive reading and writing mechanism for multiple data sources was developed, and a universal reading and writing adaptation layer for seismic data was designed, which achieved seamless connection of multiple data sources such as π-Image, π-Frame, and SU, thereby improving the applicability of the data reading and writing interface to the data source.
[0075] According to an embodiment of the present invention, in step 4, a data read / write interface based on a factory mode is obtained according to the type of commercial software and the data read / write interface corresponding to the type of the data source.
[0076] According to an embodiment of the present invention, according to the type of commercial software and the data read and write interface corresponding to the type of the data source, a data read and write interface based on a factory mode is obtained, including: obtaining the data characteristics and format of the commercial software; according to the data characteristics and format, and the data read and write interface corresponding to the type of the data source, obtaining the data read and write interface based on the factory mode. For example, for different commercial software, the data characteristics and formats of the commercial software are obtained, and then the data read and write interfaces of different commercial software are implemented.
[0077] In this way, a "data bridge" is built with mainstream commercial software. As long as the factory-based data reading and writing interface is implemented separately for different commercial software, it can automatically identify, read, write and store multiple common data types. Therefore, this mechanism is highly flexible.
[0078] According to an embodiment of the present invention, in step 5, the factory mode-based data reading and writing interface is included in the main function.
[0079] According to one embodiment of the present invention, the data read and write interface based on the factory pattern is included in the main function, including: instantiating the data read and write interface based on the factory pattern through the factory pattern to obtain the instantiated data read and write interface; adaptively calling the instantiated data read and write interface matching the data type through the interface functions of various data types. For example, the data corresponding interface classes of all commercial software and third-party software used are included in the main function, and different data type interfaces are directly instantiated through the factory pattern, and the interfaces of different data types are adaptively called through the interface functions of different data types, so as to achieve the purpose of adaptively reading and writing seismic data from multiple data sources based on the factory pattern (such as Figure 5 ).
[0080] Example 2
[0081] According to an embodiment of the present invention, a technical device for adaptive reading and writing of multiple data sources based on a factory mode is provided. The device comprises:
[0082] The factory class module, based on the factory pattern, determines the factory class that is not targeted at any data source;
[0083] A universal data read-write interface module, which instantiates the universal data read-write interface class through the factory class;
[0084] The corresponding data read and write interface module obtains a data read and write interface corresponding to the type of the data source according to the type of the data source and the universal data read and write interface class;
[0085] The commercial software module obtains a data read-write interface based on a factory mode according to the type of the commercial software and the data read-write interface corresponding to the type of the data source;
[0086] The main function module includes the data reading and writing interface based on the factory mode into the main function.
[0087] In some implementations, based on the factory pattern, determining a factory class that is not specific to any data source includes:
[0088] Based on the factory pattern, design the factory class that is not targeted at any data source;
[0089] An interface design is performed on the factory class to obtain the factory class that is not specific to any data source.
[0090] In some implementations, performing interface design on the factory class to obtain the factory class that is not specific to any data source includes:
[0091] Design the constructor, virtual function, instantiation function and interface class function not targeting specific data source of the factory class.
[0092] In some implementations, the generic data read / write interface class is instantiated by a factory class, including:
[0093] The general data read and write interface class defines the open data function, read data function, write data function, and close data function of the unified seismic data interface virtual function.
[0094] In some implementations, obtaining a data read / write interface corresponding to the type of the data source according to the type of the data source and the universal data read / write interface class includes:
[0095] The virtual functions inside the unified seismic data interface class are programmed and implemented through the general data read-write interface class to obtain a data read-write interface corresponding to the type of the data source.
[0096] In some implementations, obtaining a data read / write interface based on a factory mode according to the type of commercial software and the data read / write interface corresponding to the type of the data source includes:
[0097] Obtain data characteristics and formats of commercial software;
[0098] According to the data characteristics and format, and the data reading and writing interface corresponding to the type of the data source, a data reading and writing interface based on the factory mode is obtained.
[0099] In some implementations, the factory-mode-based data read / write interface is included in the main function, including:
[0100] Instantiate the data read-write interface based on the factory pattern through the factory pattern to obtain an instantiated data read-write interface;
[0101] The instantiated data reading and writing interface that matches the data type is adaptively called through the interface functions of various data types.
[0102] Example 3
[0103] The present invention also provides an electronic device. The electronic device comprises:
[0104] Memory, which stores executable instructions:
[0105] A processor runs the executable instructions in the memory to implement the factory mode-based multi-data source adaptive reading and writing method according to the present invention.
[0106] The method comprises the following steps:
[0107] Step 1: Based on the factory pattern, determine the factory class that is not specific to any data source;
[0108] Step 2, instantiating a general data read-write interface class through the factory class;
[0109] Step 3, according to the type of data source and the general data read and write interface class, obtain a data read and write interface corresponding to the type of the data source;
[0110] Step 4, obtaining a data read-write interface based on a factory mode according to the type of commercial software and the data read-write interface corresponding to the type of the data source;
[0111] Step 5, including the data reading and writing interface based on the factory mode into the main function.
[0112] Example 4
[0113] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the factory-mode-based multi-data source adaptive reading and writing method according to the present invention.
[0114] The method comprises the following steps:
[0115] Step 1: Based on the factory pattern, determine the factory class that is not specific to any data source;
[0116] Step 2, instantiating a general data read-write interface class through the factory class;
[0117] Step 3, according to the type of data source and the general data read and write interface class, obtain a data read and write interface corresponding to the type of the data source;
[0118] Step 4, obtaining a data read-write interface based on a factory mode according to the type of commercial software and the data read-write interface corresponding to the type of the data source;
[0119] Step 5, including the data reading and writing interface based on the factory mode into the main function.
[0120] Example 5
[0121] In order to verify the effect of the technical solution of adaptive reading and writing of multiple data sources based on factory mode according to the present invention, this embodiment selected π-Image domestic software for verification.
[0122] Step 1: Based on the factory pattern, design a factory class that does not target any data source (such as Figure 3 );
[0123] Step 2, instantiate the general data read and write interface class through the factory class. This class mainly defines a unified seismic data interface virtual function, including a series of functions such as opening data, reading data, writing data, and closing data.
[0124] Step 3, design different data reading and writing interfaces in detail for different data sources. This interface class inherits the unified seismic data interface class and implements the virtual functions inside the unified seismic data interface class. In the specific programming, different data sources will be processed differently to achieve the purpose of self-adaptation (such as Figure 4 );
[0125] Step 4: In order to adapt to the data types of different commercial software, we need to understand the data characteristics and formats of each commercial software, and then implement the data reading and writing interfaces of different commercial software in turn. Therefore, this mechanism has a high degree of flexibility and is not limited to a certain professional software, thus achieving the role of a "data bridge";
[0126] Step 5. Finally, in our seismic imaging software, as long as we include the data corresponding interface classes of all commercial software and third-party software used in the main function, we can directly instantiate different data type interfaces through the factory mode, and adaptively call different data type interfaces through the interface functions of different data types, so as to achieve the purpose of adaptively reading and writing seismic data from multiple data sources based on the factory mode (such as Figure 5 ).
[0127] This example fully demonstrates that the present invention can adapt to the rapid reading and writing of multiple data sources, realizes the seamless connection of multiple data sources such as π-Image, π-Frame, SU, etc., and also builds a "data bridge" with mainstream commercial software. As long as the factory-based data reading and writing interface is implemented separately for different commercial software, it can automatically identify, read, write and store multiple common data types, providing efficient and easy-to-use seismic data adaptive reading and writing technology for geophysical seismic imaging software, which has important use value.
[0128] For other detailed descriptions of this exemplary embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.
[0129] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A multi-data source adaptive reading and writing method based on factory mode, It is characterized in that The method comprises: Step 1: Based on the factory pattern, determine the factory class that is not specific to any data source; Step 2, instantiating a general data read-write interface class through the factory class; Step 3, according to the type of data source and the general data read and write interface class, obtain a data read and write interface corresponding to the type of the data source; Step 4, obtaining a data read-write interface based on a factory mode according to the type of commercial software and the data read-write interface corresponding to the type of the data source; Step 5, including the data reading and writing interface based on the factory mode into the main function.
2. According to the factory mode-based multi-data source adaptive reading and writing method of claim 1, It is characterized in that Based on the factory pattern, determine the factory class that is not targeted at any data source, including: Based on the factory pattern, design the factory class that is not targeted at any data source; An interface design is performed on the factory class to obtain the factory class that is not specific to any data source.
3. The method for adaptively reading and writing multiple data sources based on the factory mode according to claim 2, It is characterized in that Performing interface design on the factory class to obtain the factory class that is not specific to any data source, including: Design the constructor, virtual function, instantiation function and interface class function not targeting specific data source of the factory class.
4. The method for adaptively reading and writing multiple data sources based on factory mode according to claim 1, It is characterized in that Instantiate the general data reading and writing interface class through the factory class, including: The general data read and write interface class defines the open data function, read data function, write data function, and close data function of the unified seismic data interface virtual function.
5. The method for adaptively reading and writing multiple data sources based on factory mode according to claim 1, It is characterized in that According to the type of the data source and the general data read / write interface class, obtaining a data read / write interface corresponding to the type of the data source includes: The virtual functions inside the unified seismic data interface class are programmed and implemented through the general data read-write interface class to obtain a data read-write interface corresponding to the type of the data source.
6. The method for adaptively reading and writing multiple data sources based on factory mode according to claim 1, It is characterized in that According to the type of commercial software and the data reading and writing interface corresponding to the type of the data source, a data reading and writing interface based on a factory mode is obtained, including: Obtain data characteristics and formats of commercial software; According to the data characteristics and format, and the data reading and writing interface corresponding to the type of the data source, a data reading and writing interface based on the factory mode is obtained.
7. The method for adaptively reading and writing multiple data sources based on factory mode according to claim 1, It is characterized in that Including the factory mode-based data reading and writing interface into the main function, including: Instantiate the data read-write interface based on the factory pattern through the factory pattern to obtain an instantiated data read-write interface; The instantiated data reading and writing interface that matches the data type is adaptively called through the interface functions of various data types.
8. A multi-data source adaptive reading and writing device based on factory mode, It is characterized in that include: The factory class module is used to determine the factory class that is not targeted at any data source based on the factory mode; A universal data read-write interface module, used to instantiate a universal data read-write interface class through the factory class; A corresponding data read / write interface module, used to obtain a data read / write interface corresponding to the type of the data source according to the type of the data source and the universal data read / write interface class; A business software module, used to obtain a data read and write interface based on a factory mode according to the type of business software and the data read and write interface corresponding to the type of the data source; The main function module is used to include the factory mode-based data reading and writing interface into the main function.
9. A multi-data source adaptive reading and writing electronic device based on factory mode, It is characterized in that The electronic device comprises: A memory storing executable instructions; A processor, wherein the processor runs the executable instructions in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by a processor.