Method and system for automatically generating market supervision and inspection document
Through the methods and systems of automatically generating market supervision and inspection documents, the problems of inefficiency and error-prone traditional methods are solved, and the efficiency, accuracy and flexibility of document generation are achieved.
Patent Information
- Application Number
- CN202411928201.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-27
AI Technical Summary
The configuration of traditional market supervision and inspection documents relies on paper documents and manual operations, is inefficient and prone to errors.
Provides a method and system to automatically generate market supervision and inspection documents. By generating initial templates, configuring replacement tags, setting label replacement rules, querying databases and populating data sets, and finally generating market supervision and inspection documents using the template engine.
It improves the efficiency and accuracy of the production of market supervision and inspection documents, reduces manual operation errors, and enhances the flexibility and scalability of the document generation system.
Smart Images

Figure CN120046592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more particularly, to a method and system for automatically generating market supervision and inspection documents. Background Art
[0002] In order to ensure the standardization and regularization of market supervision and law enforcement activities, it is necessary to formulate some normative documents for market supervision and inspection. Specifically, it includes but is not limited to the following types:
[0003] (1) On-site inspection record: This is the most basic supervision and inspection document, which is used to record the actual situation during the market supervision and inspection of enterprises and merchants, including the business status, existing problems, illegal acts, etc. of the inspected unit, and is an important basis for subsequent handling decisions.
[0004] (2) Notice of interrogation / interrogation record: When it is necessary to conduct in-depth understanding of the parties or relevant personnel, a notice of interrogation will be issued and an interrogation record will be made, which is used to collect evidence and clarify facts to support the investigation and handling of illegal acts.
[0005] (3) Notice of order to correct: For minor illegal acts or non-compliant acts found during the inspection, a notice of order to correct is issued, requiring the parties to correct the illegal acts within the specified time limit to meet the requirements of legality and compliance.
[0006] (4) Administrative penalty decision: For illegal acts confirmed through investigation, according to relevant laws and regulations, an administrative penalty decision is made and issued, clarifying the illegal facts, penalty basis, types of penalties (such as fines, confiscation of illegal gains, revocation of licenses, etc.) and the performance period, etc., which is a legally effective administrative handling decision.
[0007] (5) Sampling inspection report: In the fields of food safety, product quality and other supervision, it is necessary to conduct regular sampling inspections and issue sampling inspection reports, which are important bases for evaluating product quality and judging whether they meet the standards, and unqualified products will be dealt with according to law.
[0008] (6) Rectification review report: For the illegal acts ordered to be corrected, a review is conducted after the expiration of the rectification period, and a rectification review report is made to confirm whether the inspected unit has completed the rectification as required and whether the rectification effect meets the standards.
[0009] (7) Decision on administrative coercive measures: In case of emergency, in order to prevent the destruction of evidence, avoid the occurrence of hazards or control the expansion of risks, administrative coercive measures such as sealing up and seizing can be taken, and a decision on administrative coercive measures is issued, informing the parties of the reasons, basis and rights enjoyed for taking the coercive measures.
[0010] These types of supervision and inspection documents are diverse, each undertaking different functions and uses, and together constitute an important part of the market supervision system, playing an irreplaceable role in maintaining market order and protecting consumers' rights and interests. However, from a technical perspective, the configuration of traditional market supervision and inspection documents relies on paper documents and manual operations, which is inefficient and prone to errors. Summary of the Invention
[0011] To solve the technical problem that the configuration of market supervision and inspection documents in the prior art relies on paper documents and manual operations, which is inefficient and prone to errors, the present invention provides a method and system for automatically generating market supervision and inspection documents.
[0012] According to one aspect of the present invention, the present invention provides a method for automatically generating market supervision and inspection documents, including:
[0013] Generating an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents;
[0014] Configuring the positions in the initial template that need to dynamically obtain information as replacement tags to generate a configuration template for market supervision and inspection documents;
[0015] Configuring the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules to generate a configuration script, where the database is used to store the inspection data generated during the market supervision and inspection process;
[0016] Querying the inspection data corresponding to each replacement tag in the configuration template from the database based on the configuration script to generate a filled data set;
[0017] Loading the configured template engine, and loading and updating the inspection data in the filled data set to the replacement tags of the configuration template through the template engine to generate market supervision and inspection documents.
[0018] According to another aspect of the present invention, the present invention provides a system for automatically generating market supervision and inspection documents, and the system includes:
[0019] An initial template module for generating an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents, where the standardization requirements include content requirements and style requirements;
[0020] A configuration template module for configuring the positions in the initial template that need to dynamically obtain information as replacement tags to generate a configuration template for market supervision and inspection documents;
[0021] A configuration script module is used to configure the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules, and generate a configuration script, where the database is used to store inspection data generated during market supervision and inspection;
[0022] A dataset module is used to query the inspection data corresponding to each replacement tag in the configuration template from the database based on the configuration script, and generate a populated dataset;
[0023] A document generation module is used to load a configured template engine, and load and update the inspection data in the populated dataset to the replacement tags of the configuration template through the template engine, and generate market supervision and inspection documents.
[0024] According to another aspect of the present invention, the present invention provides a computer-readable storage medium storing a computer program for executing the method according to any one of the above aspects of the present invention.
[0025] According to another aspect of the present invention, an electronic device is provided, the electronic device includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method according to any one of the above aspects of the present invention.
[0026] The method and system for automatically generating market supervision and inspection documents according to the present invention, wherein the method generates an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents; configures the positions where information needs to be dynamically obtained in the initial template as replacement tags to generate a configuration template for market supervision and inspection documents; configures the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules to generate a configuration script, where the database is used to store inspection data generated during market supervision and inspection; queries the inspection data corresponding to each replacement tag in the configuration template from the database based on the configuration script to generate a populated dataset; loads a configured template engine, and loads and updates the inspection data in the populated dataset to the replacement tags of the configuration template through the template engine to generate market supervision and inspection documents. The method and system automatically generate various types of supervision and inspection documents according to the standardization requirements of market supervision and inspection documents, complete the typesetting and format adjustment of the documents, improve the efficiency and accuracy of document production, and thus provide better services for the public. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] By referring to the following drawings, the exemplary embodiments of the present invention can be more fully understood:
[0028] Figure 1Flow chart of a method for automatically generating market supervision and inspection documents according to a preferred embodiment of the present invention;
[0029] Figure 2 Structural schematic diagram of a system for automatically generating market supervision and inspection documents according to a preferred embodiment of the present invention;
[0030] Figure 3 Structural schematic diagram of an electronic device according to a preferred embodiment of the present invention. Detailed implementation manners
[0031] Now, exemplary embodiments of the present invention will be introduced with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely, and to fully convey the scope of the present invention to those skilled in the art. The terms in the exemplary embodiments shown in the drawings are not limitations on the present invention. In the drawings, the same units / components are denoted by the same reference numerals.
[0032] Unless otherwise specified, the terms (including scientific and technical terms) used herein have the ordinary meaning understood by those skilled in the art. Additionally, it can be understood that the terms defined in the commonly used dictionary should be construed to have a meaning consistent with the context of their relevant fields, and should not be construed as idealized or overly formal meanings.
[0033] Exemplary method
[0034] Figure 1 Flow chart of a method for automatically generating market supervision and inspection documents according to a preferred embodiment of the present invention. As Figure 1 shown, the method for automatically generating market supervision and inspection documents according to this preferred embodiment starts from step 101.
[0035] In step 101, an initial template for market supervision and inspection documents is generated according to the requirements for standardizing market supervision and inspection documents.
[0036] Preferably, generating the initial template for market supervision and inspection documents according to the requirements for standardizing market supervision and inspection documents includes:
[0037] Using the poi-tl technology to generate different types of templates according to the content requirements in the requirements for standardizing market supervision and inspection documents, where the template includes the basic framework of the document and the positions where information needs to be dynamically obtained;
[0038] Based on the style API of the poi-tl technology, setting the appearance and format of different types of templates according to the style requirements in the requirements for standardizing market supervision and inspection documents, and generating the initial template for market supervision and inspection documents.
[0039] In step 102, the positions in the initial template that need to dynamically obtain information are configured as replacement tags to generate a configuration template for market supervision and inspection documents.
[0040] In step 103, according to the set tag replacement rules, the replacement tags in the configuration template are configured as query statements corresponding to the database to generate a configuration script, where the database is used to store the inspection data generated during market supervision and inspection.
[0041] In this preferred embodiment, the inspection data may be all the data obtained during market supervision and inspection, such as inspection date, inspection location, inspection object, problems found, proposed rectification measures, and so on.
[0042] Preferably, the step of configuring the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules to generate a configuration script includes:
[0043] Establish a mapping relationship between the replacement tags in the configuration template and the fields corresponding to the inspection data in the database;
[0044] According to the mapping relationship, set the query statements for querying the inspection data of the corresponding fields in the database for each replacement tag in the configuration template;
[0045] Generate a configuration script according to all the query statements of each configuration template.
[0046] In step 104, based on the configuration script, query the inspection data corresponding to each replacement tag in the configuration template from the database to generate a filled dataset.
[0047] In step 105, load the configured template engine, and through the template engine, load and update the inspection data in the filled dataset to the replacement tags of the configuration template to generate market supervision and inspection documents.
[0048] Preferably, the method further includes:
[0049] Using the poi-tl technology to batch create configuration templates for each type of market supervision and inspection document; and / or
[0050] Using the custom plugin mechanism of the poi-tl technology to develop functional plugins according to the specific requirements of market supervision and management.
[0051] In this preferred embodiment, by batch creating supervision and inspection documents, the workload of document preparation is reduced and the work efficiency is improved. And by developing specific functional plugins according to the specific requirements of the Market Supervision and Administration Bureau, the flexibility and scalability of the document generation system are enhanced.
[0052] The method for automatically generating market supervision and inspection documents described in this preferred embodiment uses poi-tl technology to design an initial template for market supervision and inspection documents, configures the positions in the initial template that need to dynamically obtain information as replacement tags to generate a configuration template for market supervision and inspection documents, configures the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules to generate a configuration script, queries the inspection data corresponding to each replacement tag in the configuration template from the database based on the configuration script to generate a populated dataset, loads the configured template engine, and loads and updates the inspection data in the populated dataset to the replacement tags of the configuration template through the template engine to generate market supervision and inspection documents. This method simplifies the document creation process, and through direct data filling, ensures the accuracy and consistency of the document content. Further, by batch generating documents and function expansion, it improves the efficiency of market supervision and inspection and enhances the flexibility and scalability of document generation.
[0053] Exemplary system
[0054] Figure 2 FIG. is a schematic structural diagram of a system for automatically generating market supervision and inspection documents according to a preferred embodiment of the present invention. As Figure 2 shown, the system 200 for automatically generating market supervision and inspection documents described in this preferred embodiment includes:
[0055] An initial template module 201, configured to generate an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents, where the standardization requirements include content requirements and style requirements;
[0056] A configuration template module 202, configured to configure the positions in the initial template that need to dynamically obtain information as replacement tags to generate a configuration template for market supervision and inspection documents;
[0057] A configuration script module 203, configured to configure the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules to generate a configuration script, where the database is used to store the inspection data generated during market supervision and inspection;
[0058] A dataset module 204, configured to query the inspection data corresponding to each replacement tag in the configuration template from the database based on the configuration script to generate a populated dataset;
[0059] A document generation module 205, configured to load the configured template engine, and load and update the inspection data in the populated dataset to the replacement tags of the configuration template through the template engine to generate market supervision and inspection documents.
[0060] Preferably, the initial template module 201 generates an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents, including:
[0061] Using the poi-tl technology, different types of templates are generated according to the content requirements in the standardization requirements of market supervision and inspection documents. Among them, the template contains the basic framework of the document and the positions where information needs to be dynamically obtained;
[0062] Based on the style API of the poi-tl technology, the appearance and format of different types of templates are set according to the style requirements in the standardization requirements of market supervision and inspection documents, and an initial template for market supervision and inspection documents is generated.
[0063] Preferably, the configuration script module 203 configures the replacement tags in the configuration template as query statements corresponding to the database according to the set tag replacement rules, and generates a configuration script, including:
[0064] Establish a mapping relationship between the replacement tags in the configuration template and the fields corresponding to the inspection data in the database;
[0065] According to the mapping relationship, set the query statements for querying the inspection data of the corresponding fields in the database for each replacement tag in the configuration template;
[0066] Generate a configuration script according to all the query statements of each configuration template.
[0067] Preferably, the system further includes:
[0068] A batch creation module, which is used to use the poi-tl technology to batch-create configuration templates for each type of market supervision and inspection document; and / or
[0069] A function extension module, which is used to use the custom plug-in mechanism of the poi-tl technology to generate function plug-ins that meet the specific requirements of market supervision and management.
[0070] The system for automatically generating market supervision and inspection documents described in this preferred embodiment uses the poi-tl technology to generate documents in the same steps as the method for automatically generating market supervision and inspection documents described in the present invention, and achieves the same technical effects, which will not be elaborated here.
[0071] Exemplary electronic device
[0072] Figure 3 It is a schematic structural diagram of an electronic device according to a preferred embodiment of the present invention. This electronic device can be any one or both of the first device and the second device, or a stand-alone device independent of them. This stand-alone device can communicate with the first device and the second device to receive the input signals collected from them. Figure 3The block diagram of an electronic device according to an embodiment of the present disclosure is illustrated. As Figure 3 shown, the electronic device includes one or more processors 301 and a memory 302.
[0073] The processor 301 may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0074] The memory 302 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may run the program instructions to implement the energy consumption anomaly diagnosis method based on the enterprise energy consumption space and / or other desired functions of the various embodiments disclosed above. In one example, the electronic device may further include: an input device 303 and an output device 304, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0075] In addition, the input device 303 may further include, for example, a keyboard, a mouse, and so on.
[0076] The output device 304 may output various information to the outside. The output device 304 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, and so on.
[0077] Of course, for simplicity, Figure 3 only some of the components related to the present disclosure in the electronic device are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, according to specific application scenarios, the electronic device may further include any other appropriate components.
[0078] Exemplary computer program product and computer-readable storage medium
[0079] In addition to the above methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions that, when run by a processor, cause the processor to execute the steps in the method for automatically generating market supervision inspection documents according to various embodiments of the present disclosure described in the "Exemplary Method" section above of this specification.
[0080] The computer program product may be written in any combination of one or more programming languages for executing the program code of the operations of the embodiments of the present disclosure. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0081] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are run by a processor, the processor is caused to execute the steps in the method for automatically generating market supervision inspection documents according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0082] The computer-readable storage medium may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may, for example, include but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0083] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, benefits, effects, etc. are essential for each embodiment of the present disclosure. In addition, the above-mentioned specific details are only for the purpose of illustration and facilitating understanding, and are not limitations. The above details do not limit the present disclosure to necessarily adopt the above specific details for implementation.
[0084] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference may be made to each other. For the system embodiments, since they basically correspond to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for the relevant parts.
[0085] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present disclosure are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open-ended words, meaning "including but not limited to", and can be used interchangeably with each other. The word "or" and "and" used herein refer to the word "and / or", and can be used interchangeably with it, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0086] The devices and methods of the present disclosure can be implemented in many ways. For example, the devices and methods of the present disclosure can be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of the steps for the method is only for illustration, and the steps of the method of the present disclosure are not limited to the specific order described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure can also be implemented as a program recorded in a recording medium, and these programs include machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0087] It should also be noted that in the devices, equipment, and methods of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present disclosure. The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but to the broadest scope consistent with the principles and novel features disclosed herein.
[0088] The above description has been given for purposes of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions, and sub-combinations thereof.
Claims
1. A method for automatically generating market supervision and inspection documents, characterized in that: The method comprises: Generate the initial template of market supervision and inspection documents according to the requirements for the standardization of market supervision and inspection documents; The position where the information needs to be dynamically obtained in the initial template is configured as a replacement tag to generate a market supervision and inspection document configuration template; According to the set label replacement rule, the replacement label in the configuration template is configured as a query statement corresponding to the database to generate a configuration script, wherein the database is used to store the inspection data generated during the market supervision and inspection process; Based on the configuration script, query the database for inspection data corresponding to each replacement tag in the configuration template to generate a filling data set; A configured template engine is loaded, and the inspection data in the fill data set is loaded and updated to the replacement tag of the configured template through the template engine to generate a market supervision inspection document.
2. The method according to claim 1, characterized in that According to the requirements for the standardization of market supervision and inspection documents, the initial template for market supervision and inspection documents is generated, including: Using POI-TL technology, different types of templates are generated according to the content requirements of the market supervision and inspection document standardization requirements, where the template contains the basic framework of the document and the location where information needs to be dynamically obtained; Based on the style API of poi-tl technology, the appearance and format of different types of templates are set according to the style requirements in the standardization requirements of market supervision and inspection documents, and the initial template of market supervision and inspection documents is generated.
3. The method according to claim 1, characterized in that The step of configuring the replacement tag in the configuration template to a query statement corresponding to the database according to the set tag replacement rule to generate a configuration script includes: Establishing a mapping relationship between the replacement tag in the configuration template and the field corresponding to the inspection data in the database; According to the mapping relationship, a query statement is set for each replacement tag in the configuration template to query the inspection data of the corresponding field in the database; Generate a configuration script based on all query statements in each configuration template.
4. The method according to claim 1, characterized in that: The method further comprises: Use poi-tl technology to batch create configuration templates for each type of market supervision and inspection documents; and / or Use the custom plug-in mechanism of poi-tl technology to create functional plug-ins that meet the specific needs of market supervision and management.
5. A system for automatically generating market supervision and inspection documents, characterized in that: The system comprises: The initial template module is used to generate the initial template of market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents; A configuration template module, used to configure the position where the information needs to be dynamically obtained in the initial template as a replacement tag, and generate a market supervision and inspection document configuration template; A configuration script module, used to configure the replacement tag in the configuration template as a query statement corresponding to the database according to the set tag replacement rule, and generate a configuration script, wherein the database is used to store the inspection data generated during the market supervision and inspection process; A data set module, configured to query the database for inspection data corresponding to each replacement tag in the configuration template based on the configuration script, and generate a filling data set; The document generation module is used to load the configured template engine, and load and update the inspection data in the fill data set to the replacement tag of the configured template through the template engine to generate a market supervision inspection document.
6. The system according to claim 5, characterized in that The initial template module generates an initial template for market supervision and inspection documents according to the standardization requirements of market supervision and inspection documents, including: Using POI-TL technology, different types of templates are generated according to the content requirements of the market supervision and inspection document standardization requirements, where the template contains the basic framework of the document and the location where information needs to be dynamically obtained; Based on the style API of poi-tl technology, the appearance and format of different types of templates are set according to the style requirements in the standardization requirements of market supervision and inspection documents, and the initial template of market supervision and inspection documents is generated.
7. The system according to claim 5, characterized in that The configuration script module configures the replacement tag in the configuration template to a query statement corresponding to the database according to the set tag replacement rule to generate a configuration script, which includes: Establishing a mapping relationship between the replacement tag in the configuration template and the field corresponding to the inspection data in the database; According to the mapping relationship, a query statement is set for each replacement tag in the configuration template to query the inspection data of the corresponding field in the database; Generate a configuration script based on all query statements in each configuration template.
8. The system according to claim 5, characterized in that The system further comprises: A batch creation module for batch creation of configuration templates for each type of market supervision and inspection documents using POI-TL technology; and / or Functional extension module, used to apply the custom plug-in mechanism of poi-tl technology, based on functional plug-ins that meet the specific needs of market supervision and management.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.
10. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 4 above.