Software project migration and optimization method, device, computing device and storage medium
By analyzing the entry main file and path information of the software project, the migration files are generated, which solves the problems of code reuse difficulties and file redundancy, and efficient migration and flexible reuse are achieved, improving the maintainability of the project.
Patent Information
- Application Number
- CN202411017740.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-29
AI Technical Summary
During the software project development process, historical project modules are strongly related to business logic, resulting in difficulty in reusing code, often having file redundancy and missing problems, and manual checking of dependency versions is time-consuming and labor-intensive, affecting project maintenance and iteration.
By obtaining the entrance main file of the software project, analyzing the path information it references, performing path traceability and standardization processing, generating migration files, realizing code analysis and resource integration, eliminating redundant code, reducing file size, and improving reuse flexibility.
It realizes efficient migration of software projects, reduces file size, improves the reusability and maintainability of project modules, and simplifies the development and maintenance process.
Smart Images

Figure CN118550548B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a software project migration and optimization method, device, computing equipment and storage medium. Background Art
[0002] In the process of software project development, the code of historical project modules or partial interfaces is often needed to save a lot of time and cost so as to complete the program development work in the shortest time. However, the actual situation is that the content of most modules is strongly related to the business logic, and no common components are extracted. Therefore, programmers need to analyze the complex associations such as the architecture, parent-child components, tool functions, resource references, etc. of historical projects to find reusable code and perform manual migration, but after the migration, file redundancy and file missing problems often occur. In addition, when the same dependency cannot be used normally in the new project, it is also necessary to check the actual version of the dependency in the package-lock.json of the historical project, but this manual inspection method is prone to errors and is time-consuming and labor-intensive.
[0003] At the same time, if the developer is not familiar with the original code logic, they will usually migrate the entire script file as a whole, and then migrate other script files associated with it according to the error content. Therefore, a large amount of redundant code will be generated after reuse in the new project, which increases the difficulty of subsequent project maintenance and adding new code. If a project goes through multiple iterations by multiple people, there will be multiple identical resource files. These identical resources are usually distributed in different resource directories or named differently in a directory, which will cause the project to be too large. Summary of the invention
[0004] In order to solve the above problems, an embodiment of the present invention provides a software project migration and optimization method, apparatus, computing device and storage medium. The method realizes efficient migration of software projects, and the migration file size is small, and the project module reuse is more flexible and highly maintainable.
[0005] In a first aspect, an embodiment of the present invention provides a software project migration and optimization method, comprising:
[0006] Obtain the entry master file of the software project to be migrated;
[0007] Find and obtain path-related code according to the path information referenced by the entry master file;
[0008] Parsing the path-related code to obtain the path;
[0009] The path is normalized to obtain a migration file.
[0010] In a second aspect, an embodiment of the present invention further provides a software project migration and optimization device, comprising:
[0011] An acquisition module is used to acquire the entry master file of the software project to be migrated;
[0012] A path tracing module is used to find and obtain path-related codes according to the path information referenced by the entry master file; and to parse the path-related codes to obtain the path;
[0013] The optimization module is used to normalize the path to obtain a migration file.
[0014] In a third aspect, an embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements any of the software project migration and optimization methods described above.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute any of the software project migration and optimization methods described above.
[0016] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the method described in any first aspect of this specification.
[0017] The embodiment of the present invention provides a method, device, computing equipment and storage medium for software project migration and optimization. The method searches for path information referenced by the entry master file of the software project to be migrated, obtains path-related code, and then parses the path-related code to obtain the path, and obtains the migration file by normalizing the path information. In this way, the present invention obtains the migration file of the entire software project or module based on code analysis, resource integration and path tracing, realizes efficient migration, and enables users to flexibly select the parts that need to be reused based on the migration file. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative work.
[0019] Figure 1 is a flow chart of a software project migration and optimization method provided by one embodiment of the present invention;
[0020] Figure 2 is a hardware architecture diagram of a computing device provided by an embodiment of the present invention;
[0021] Figure 3 It is a structural diagram of a software project migration and optimization device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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 described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0023] In the prior art, Git Submodule can be used to achieve code repository separation. This method is suitable for the separate maintenance of public business components or tool modules. It does not need to consider business coupling and allows another version library to be nested in the business code version library, and even multiple layers of nesting. However, there are also the following disadvantages: (1) Inconvenient initialization and update: Using Submodule requires more additional commands to initialize and update submodules, which may increase the complexity of maintenance. (2) Easy to cause confusion and conflict: If the update and version control of submodules are not handled correctly, it may cause code conflicts and confusion that are difficult to resolve. (3) Deployment and release complexity: The deployment and release process may require additional steps to handle submodules, which increases the complexity of operations.
[0024] Secondly, micro frontends are a solution commonly used in the industry to split giant applications. It is equivalent to many sub-projects forming an application and has the following characteristics: (1) Independent deployment: Each sub-project can be independently developed, deployed and maintained. (2) Flexible technology stack: Different sub-projects can use different technology stacks and frameworks. (3) Incremental updates: Only specific sub-projects need to be updated, not the entire application. However, micro frontends are reused in units of sub-projects, that is, a sub-project of a micro front-end architecture can be placed in an application of another micro front-end architecture and run.
[0025] However, the cost of getting started with Git Submodule is high. Not only do you need to learn the commands of Git Submodule, but its shortcomings also affect development efficiency and are poorly evaluated. The application scenario of micro-frontend is suitable for the business splitting of large projects with multiple people working together, and its sandbox mechanism will change the native js objects, which has a high learning cost and is not applicable in small and medium-sized projects or agile iterative development scenarios. Furthermore, both of the above methods require first deciding the content to be reused, and then migrating and reusing the content, which makes module reuse less flexible.
[0026] In order to solve the above problems, the present invention considers taking the main file of the software project or module as the entry, performing code analysis, resource integration and path tracing through the path information referenced by it, thereby obtaining the migration file of the software project or module.
[0027] The following is the concept of the present invention: Figure 1 As shown, an embodiment of the present invention provides a software project migration and optimization method, the method comprising:
[0028] Step 100, obtaining the entry master file of the software project to be migrated;
[0029] Step 102, searching and obtaining path-related codes according to the path information referenced by the entry master file;
[0030] Step 104, parsing the path-related code to obtain path information;
[0031] Step 106: normalize the path information to obtain a migration file.
[0032] In the present invention, the method searches for the path information referenced by the entry master file of the software project to be migrated, obtains the path-related code, and then parses the path-related code to obtain the path, and obtains the migration file by normalizing the path information. In this way, the present invention obtains the migration file of the entire software project or module based on code analysis, resource integration and path tracing, realizes efficient migration, and enables users to flexibly select the parts that need to be reused based on the migration file.
[0033] Described below Figure 1 How the various steps are performed.
[0034] In step 100, the entry main file is the first file to be accessed when the program project or system is requested. All instruction functions are distributed from this file, and then the corresponding module is found for processing. Some initialization work is also performed here. This file can call different modules of the framework according to different requests. Some fields can even be set here to facilitate future development and maintenance. For example, the entry main file is "src / main.js" or "src / xxx / xxx / index.vue".
[0035] For step 102, the path-related code is obtained according to the path information referenced by the entry master file, including:
[0036] The path-related code is obtained by tracing back according to the path information; wherein the path information does not include the annotation path information.
[0037] In the present invention, the annotation path information is skipped when searching for the path information, so that the developer can flexibly comment out the code files or resource files that do not need to be migrated according to the actual migration content, thereby reducing the size of the migration file.
[0038] With respect to step 104, the path-related code is parsed to obtain the path, including:
[0039] Parse the path-related code to obtain an abstract syntax tree;
[0040] Unused variables or functions included in the abstract syntax tree are removed to obtain a path that does not include redundant codes.
[0041] In the present invention, the searched path-related code is read, and then the ast syntax tree is parsed, and the traverse and generator methods of Babel (a widely used JavaScript compiler) are applied to perform Tree-shaking on unused variables or functions, and the path-related code is slimmed down to eliminate redundant code.
[0042] In step 106, the path is normalized to obtain a migration file, including:
[0043] For each path, execute:
[0044] Tracing the path to obtain the path source information; the path source information includes resource files, dependencies, and code files;
[0045] Determine whether the path source information is a dependency;
[0046] If the judgment result is yes, the dependency information of the dependency item is determined from the software project to be migrated, and the dependency information is stored in a dependency cache file; the dependency information includes a download address and version information;
[0047] If the judgment result is no, the path source information is stored in a path cache file; wherein the path cache file includes a resource file and a code file;
[0048] De-duplication is performed on the path cache file to obtain an optimized path cache file;
[0049] Output the optimized path cache file and dependency cache file to obtain the migration file.
[0050] It should be noted that resource files include pictures, documents, audio and other files; dependencies include third-party libraries or frameworks installed by the project; code files include javascript, vue, html and other coding files.
[0051] Specifically, all the paths obtained in step 104 are temporarily stored in the path set, and then for each path, if the path source information of the path is a dependency, the dependency is temporarily stored in the dependency set, and the detailed information of the dependency is filtered out from the package.json and package-lock.json of the software project to be migrated, and then the dependency set is stored in the dependency cache file. If the path source information of the path is a resource file and a code file, the path source information is stored in the path cache file; then, the path cache file is deduplicated to obtain an optimized path cache file, further reducing the size of the path cache file. Finally, by outputting the optimized path cache file and the dependency cache file, the output migration file is merged into the root directory of the project to be migrated, so that users can flexibly select the required paths and files from the optimized path cache file and the dependency cache file according to the reuse requirements.
[0052] It should be noted that the dependency information includes the download address, version information, version name, and dependencies of dependencies.
[0053] In the present invention, through a series of path addressing and parsing replication, the classification of resource files, dependencies and code files is realized, and the optimization of the paths including resource files and code files is realized through deduplication processing, and duplicate content is removed. Finally, by integrating the dependency cache file including dependencies and the path cache file including resource files and code files, a migration file for migration is obtained, which makes it convenient for users to select the required reuse modules from the migration file, thereby realizing automated reuse modules.
[0054] In the present invention, before storing the path source information into the path cache file, the path format needs to be normalized to obtain the real file path, so as to facilitate the subsequent reuse of software projects or modules directly based on the real file path.
[0055] In a preferred embodiment, the path cache file is deduplicated to obtain an optimized path cache file, including:
[0056] Duplicate paths in the path cache file are deduplicated to obtain an optimized path cache file.
[0057] Specifically, for each path, if its path source information is not a dependency, before storage, if there is a duplicate path in the path cache file, the duplicate path is removed; if the path corresponding to the path source information is a new path, the new path is saved in the path cache file, further reducing the size of the path cache file.
[0058] In a more preferred embodiment, the path cache file is deduplicated to obtain an optimized path cache file, including:
[0059] De-duplication processing is performed on duplicate paths in the path cache file to obtain a primary optimized path cache file;
[0060] Mark the script file that references the resource file in the primary optimization path cache file;
[0061] Get the hash value of the resource file in the primary optimization path cache file;
[0062] De-duplicate resource files with the same hash value to obtain optimized resource files;
[0063] The path of the script file is rewritten according to the optimized resource file to obtain an optimized path cache file.
[0064] Specifically, if the path source information of the path is a resource file, the script resource that references the resource file is marked to facilitate the subsequent deletion of duplicate resource files. Therefore, after obtaining the primary optimization path cache file, it also includes traversing the resource files referenced by the marked script files, extracting hash values from the resource files, deduplicating based on the set of hash values to delete duplicate resource files, and normalizing duplicate paths, that is, rewriting duplicate resource paths referenced by script files with the same mark, performing resource slimming, and obtaining migration files that can be used for migration reuse.
[0065] For example, there are 5 script files a in the current project to be migrated, all of which reference resource file A, then these 5 script files are marked; at the same time, there are 4 script files b that reference resource file B, and after hash value comparison, it is determined that the hash values of resource file A and resource file B are the same, then the duplicate resource file B is deleted, and the paths referenced by the 4 script files b are rewritten to resource file A.
[0066] In the present invention, a migration file is generated through a series of path addressing and parsing and copying, which not only retains the original directory structure, but also generates dependency information of dependencies, so that developers can reuse them at a very low cost. At the same time, the migration file generated by the present invention removes junk code, merges resource files, optimizes the size of the project, and improves the maintainability of the project to a certain extent.
[0067] like Figure 2 , Figure 3 As shown, an embodiment of the present invention provides a software project migration and optimization device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 2 As shown, it is a hardware architecture diagram of a computing device where a software project migration and optimization device provided by an embodiment of the present invention is located, except Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the computing device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the computing device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. This embodiment provides a software project migration and optimization device, including:
[0068] An acquisition module 300 is used to acquire an entry master file of a software project to be migrated;
[0069] The path tracing module 302 is used to find the path-related code according to the path information referenced by the entry master file; and parse the path-related code to obtain the path;
[0070] The optimization module 304 is used to normalize the path to obtain a migration file.
[0071] In some specific implementations, the acquisition module 300 may be used to execute the above step 100 , the path tracing module 302 may be used to execute the above step 102 and step 104 , and the optimization module 304 may be used to execute the above step 106 .
[0072] In some specific implementations, the path tracing module 302 is further configured to perform the following operations:
[0073] The path-related code is obtained by tracing back the path information; wherein the path information does not include annotation path information.
[0074] In some specific implementations, the path tracing module 302 is further configured to perform the following operations:
[0075] Parsing the path-related code to obtain an abstract syntax tree;
[0076] Unused variables or functions included in the abstract syntax tree are removed to obtain the path that does not include redundant codes.
[0077] In some specific implementations, the optimization module 304 is further configured to perform the following operations:
[0078] For each of the paths described, execute:
[0079] Tracing the path to obtain path source information; the path source information includes resource files, dependencies, and code files;
[0080] Determine whether the path source information is the dependency;
[0081] If the judgment result is yes, then determining the dependency information of the dependency item from the software project to be migrated, and storing the dependency information in a dependency cache file; the dependency information includes a download address and version information;
[0082] If the judgment result is no, the path source information is stored in a path cache file; wherein the path cache file includes the resource file and the code file;
[0083] Deduplication processing is performed on the path cache file to obtain an optimized path cache file;
[0084] The optimized path cache file and the dependency cache file are output to obtain the migration file.
[0085] In some specific implementations, the optimization module 304 is further configured to perform the following operations:
[0086] The duplicate paths in the path cache file are deduplicated to obtain an optimized path cache file.
[0087] In some specific implementations, the optimization module 304 is further configured to perform the following operations:
[0088] Deduplication processing is performed on duplicate paths in the path cache file to obtain a primary optimized path cache file;
[0089] Mark the script file that references the resource file in the primary optimization path cache file;
[0090] Obtaining a hash value of a resource file in the primary optimization path cache file;
[0091] De-duplication processing is performed on the resource files with the same hash value to obtain optimized resource files;
[0092] The path of the script file is rewritten according to the optimized resource file to obtain an optimized path cache file.
[0093] Compared with the traditional method of reusing pre-packaged components, the software project migration and optimization device provided by the present invention can freely select the reused content. Compared with the cumbersome installation, debugging and configuration of micro front-ends and Git Submodules, the software project migration and optimization device provided by the present invention has the characteristics of extremely simple configuration, low cost to get started, and fast execution speed of reused commands, which is particularly suitable for agile iteration. Moreover, the application scenarios are unlimited. Compared with micro front-ends that are only applicable to large applications, the device can be used in projects of any size.
[0094] Compared with the overall reuse of project units in micro front-ends, the present invention is path-oriented, and reduces the duplication of useless resources by analyzing the paths of resource files and code files associated with the reused content and copying them. At the same time, dirty code will be automatically removed during execution, and the same resource files will be merged, further reducing the project size and reducing the complexity of the code, which is beneficial to future maintenance by developers.
[0095] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on a software project migration and optimization device. In other embodiments of the present invention, a software project migration and optimization device may include more or fewer components than those shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0096] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0097] An embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a software project migration and optimization method in any embodiment of the present invention is implemented.
[0098] 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 processor executes a software project migration and optimization method in any embodiment of the present invention.
[0099] An embodiment of the present application also provides a computer program product, which includes a computer program. A processor of a computer device reads the computer program from a computer-readable storage medium, and the processor executes the computer program, so that the computer device executes a software project migration and optimization method described in any of the above embodiments.
[0100] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.
[0101] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0102] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.
[0103] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0104] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0105] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.
[0106] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0107] 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 embodiments of the present invention.
Claims
1. A software project migration and optimization method, characterized in that: include: Obtain the entry master file of the software project to be migrated; Find and obtain path-related code according to the path information referenced by the entry master file; Tracing the path information to obtain the path-related code; wherein the path information does not include annotation path information; Parsing the path-related code to obtain the path; Normalizing the path to obtain a migration file; The step of parsing the path-related code to obtain the path includes: Parsing the path-related code to obtain an abstract syntax tree; Eliminate unused variables or functions included in the abstract syntax tree to obtain the path that does not include redundant code; The normalizing process of the path to obtain a migration file includes: For each of the paths described, execute: Tracing the path to obtain path source information; the path source information includes resource files, dependencies, and code files; Determine whether the path source information is the dependency; If the judgment result is yes, then determining the dependency information of the dependency item from the software project to be migrated, and storing the dependency information in a dependency cache file; the dependency information includes a download address and version information; If the judgment result is no, the path source information is stored in a path cache file; wherein the path cache file includes the resource file and the code file; Deduplication processing is performed on the path cache file to obtain an optimized path cache file; The optimized path cache file and the dependency cache file are output to obtain the migration file.
2. The method according to claim 1, characterized in that The deduplication processing of the path cache file to obtain an optimized path cache file includes: The duplicate paths in the path cache file are deduplicated to obtain an optimized path cache file.
3. The method according to claim 1, characterized in that The deduplication processing of the path cache file to obtain an optimized path cache file includes: Deduplication processing is performed on duplicate paths in the path cache file to obtain a primary optimized path cache file; Mark the script file that references the resource file in the primary optimization path cache file; Obtaining a hash value of a resource file in the primary optimization path cache file; De-duplication processing is performed on the resource files with the same hash value to obtain optimized resource files; The path of the script file is rewritten according to the optimized resource file to obtain an optimized path cache file.
4. A software project migration and optimization device, characterized in that: Used to perform the method according to any one of claims 1 to 3, comprising: An acquisition module is used to acquire the entry master file of the software project to be migrated; A path tracing module is used to find and obtain path-related codes according to the path information referenced by the entry master file; and to parse the path-related codes to obtain the path; An optimization module, used for normalizing the path to obtain a migration file; The path tracing module is also used to perform the following operations: Tracing the path information to obtain the path-related code; wherein the path information does not include annotation path information; Parsing the path-related code to obtain an abstract syntax tree; Eliminate unused variables or functions included in the abstract syntax tree to obtain the path that does not include redundant code; The optimization module is also used to perform the following operations: For each of the paths described, execute: Tracing the path to obtain path source information; the path source information includes resource files, dependencies, and code files; Determine whether the path source information is the dependency; If the judgment result is yes, then determining the dependency information of the dependency item from the software project to be migrated, and storing the dependency information in a dependency cache file; the dependency information includes a download address and version information; If the judgment result is no, the path source information is stored in a path cache file; wherein the path cache file includes the resource file and the code file; Deduplication processing is performed on the path cache file to obtain an optimized path cache file; The optimized path cache file and the dependency cache file are output to obtain the migration file.
5. A computing device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 3.
7. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 3.
