An object configuration method and device, electronic equipment and storage medium

CN117785145BActive Publication Date: 2026-10-09ZHEJIANG DAHUA TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211200895.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2026-10-09
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

[0003]在对象执行配置任务时,可能会出现对象自身的配置方法(docfg)无法对配置文件完成配置

Benefits of technology

[0029]In this embodiment, if the target object fails to complete the configuration operation on the configuration file using the default configuration method after obtaining the configuration file, the target object generates a priority index according to the set detection priority rules and adds the priority index to the configuration file. This allows the target object to sequentially select the configuration method corresponding to each first object according to the priority index to perform the configuration operation on the configuration file until the configuration is completed. Therefore, by adopting a multi-round exploratory mechanism to complete the configuration of the configuration file, it is possible to avoid the target object failing to complete the configuration using its own configuration method. Furthermore, processing the configuration file according to the priority order can maintain the simplicity and orderliness of the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117785145B_ABST
    Figure CN117785145B_ABST
Patent Text Reader

Abstract

The application discloses a configuration method and device of an object, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: an object acquires a configuration file; if a configuration operation performed on the configuration file by a default configuration method of the object is not completed, the object generates a priority index according to a set detection priority rule, the priority index is used to represent a priority order of configuration methods of each first object; the object adds the priority index to the configuration file, enters a detection processing mode, and performs a configuration operation on the configuration file according to the detection processing mode until the configuration is completed, so that the configuration of the configuration file is effectively completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for configuring objects. Background Technology

[0002] In the field of computer science, the main purpose of configuration operations is to manage computer systems, improve system efficiency, and rationally organize system workflows to increase system throughput. Objects are ubiquitous in software systems, especially in large-scale systems where numerous objects exist to implement different business functions. Generally, as a data entity, an object corresponds to data in different data tables or files.

[0003] When an object performs a configuration task, the object's own configuration method (docfg) may fail to complete the configuration of the configuration file.

[0004] Therefore, how to effectively configure the configuration file when an object performs a configuration task is a problem that urgently needs to be solved. Summary of the Invention

[0005] This application provides a method for configuring an object to effectively complete the configuration of a configuration file.

[0006] Firstly, a method for configuring an object is provided, the object including a target object and at least one first object associated with the target object, comprising:

[0007] The target object obtains a configuration file; if the target object fails to complete the configuration operation on the configuration file using the default configuration method, the target object generates a priority index according to the set detection priority rules. The priority index is used to characterize the priority order of the configuration methods of each first object; the target object adds the priority index to the configuration file, enters the detection processing mode, and performs the configuration operation on the configuration file according to the detection processing mode until the configuration is completed.

[0008] Optionally, the configuration file includes a first identifier; after the target object obtains the configuration file, it also includes:

[0009] The target object determines the processing mode of the configuration file based on the first identifier; if the processing mode is the initial processing mode, the target object performs a configuration operation on the configuration file using the default configuration method; if the processing mode is the probe-based processing mode, the target object performs a configuration operation on the configuration file according to the probe-based processing mode, including:

[0010] The target object determines the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, and performs configuration operations on the configuration file according to the target configuration method.

[0011] Optionally, the target object determines the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, including:

[0012] The target object parses the configuration file to obtain the priority index; the target object determines the first target object from the first objects based on the priority index and the current probe count, and there is a mapping relationship between the priority index value of the first target object and the current probe count; the target object uses the configuration method corresponding to the first target object as the target configuration method for performing configuration operations on the configuration file.

[0013] Optionally, the target object determines the processing mode of the configuration file based on the first identifier, including:

[0014] If the Probing flag is not present in the first identifier, the processing mode of the configuration file is determined to be the initial processing mode; if the Probing flag is present in the first identifier, the processing mode of the configuration file is determined to be the probing processing mode.

[0015] Optionally, the method further includes:

[0016] When the target object completes the configuration operation on the configuration file, the configuration result is output, which includes whether the configuration file was configured successfully or failed.

[0017] Secondly, a configuration device for an object is provided, comprising:

[0018] The system comprises an acquisition module, a generation module, and a configuration module. The acquisition module is used to acquire a configuration file. The generation module is used to generate a priority index according to a set detection priority rule if the configuration module fails to complete the configuration operation on the configuration file using the default configuration method. The priority index is used to represent the priority order of the configuration methods for each first object being detected. The configuration module is used to add the priority index to the configuration file, enter the detection-based processing mode, and perform configuration operations on the configuration file according to the detection-based processing mode until the configuration is completed.

[0019] Optionally, the configuration file includes a first identifier; the device further includes a determining module; the determining module is used to determine the processing mode of the configuration file based on the first identifier;

[0020] If the processing mode is the initial processing mode, the configuration module is instructed to perform configuration operations on the configuration file using the default configuration method; if the processing mode is the probing processing mode, the configuration module is instructed to specifically: determine the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, and perform configuration operations on the configuration file according to the target configuration method.

[0021] Optionally, the configuration module is specifically used for:

[0022] The configuration file is parsed to obtain the priority index; based on the priority index and the current probe count, a first target object is determined from the first objects, wherein the priority index value of the first target object is mapped to the current probe count; the configuration method corresponding to the first target object is used as the target configuration method for performing configuration operations on the configuration file.

[0023] Optionally, the determining module is specifically used for:

[0024] If the Probing flag is not present in the first identifier, the processing mode of the configuration file is determined to be the initial processing mode; if the Probing flag is present in the first identifier, the processing mode of the configuration file is determined to be the probing processing mode.

[0025] Optionally, the device further includes a notification module; the notification module is used to output a configuration result when the configuration operation on the configuration file is completed, the configuration result including whether the configuration file was configured successfully or the configuration file failed.

[0026] Thirdly, an electronic device is provided, comprising:

[0027] A memory for storing computer programs; a processor for executing the computer programs stored in the memory to implement the method steps described in any one of the first aspects.

[0028] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the method steps described in any one of the first aspects.

[0029] In this embodiment, if the target object fails to complete the configuration operation on the configuration file using the default configuration method after obtaining the configuration file, the target object generates a priority index according to the set detection priority rules and adds the priority index to the configuration file. This allows the target object to sequentially select the configuration method corresponding to each first object according to the priority index to perform the configuration operation on the configuration file until the configuration is completed. Therefore, by adopting a multi-round exploratory mechanism to complete the configuration of the configuration file, it is possible to avoid the target object failing to complete the configuration using its own configuration method. Furthermore, processing the configuration file according to the priority order can maintain the simplicity and orderliness of the configuration process.

[0030] For the various aspects of the second to fourth aspects mentioned above, and the technical effects that each aspect may achieve, please refer to the above description of the technical effects that can be achieved for the first aspect or the various possible solutions in the first aspect, which will not be repeated here. Attached Figure Description

[0031] Figure 1 An association diagram between objects provided in an embodiment of this application;

[0032] Figure 2 A flowchart illustrating an object configuration method provided in an embodiment of this application;

[0033] Figure 3 A flowchart illustrating a complete object configuration method provided in this application embodiment;

[0034] Figure 4 This is a schematic diagram of the structure of an object configuration device provided in an embodiment of this application;

[0035] Figure 5 A schematic diagram of the structure of another object configuration device provided in an embodiment of this application;

[0036] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operational methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. A connected to B can represent: A and B directly connected, and A and B connected through C. Furthermore, in the description of this application, terms such as "first" and "second" are used only for distinguishing the purpose of description and should not be construed as indicating or implying relative importance or order.

[0038] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0039] To better understand the embodiments of this application, the technical terms involved in the embodiments of this application will be explained below.

[0040] (1) In computer science, an object can be a variable, a data structure, or a function. It's a term from object-oriented programming, representing both a specific entity in the namespace of the objective world and a basic element in the solution space of a software system. In a software system, an object has a unique identifier and includes properties and methods. Properties are the information that needs to be remembered, and methods are the services that the object can provide. In object-oriented software, an object is an instance of a class.

[0041] (2) A configuration file is a computer file that can configure parameters and initial settings for some computer programs.

[0042] During configuration, when an object performs configuration operations on a configuration file, the caller can directly send the configuration file to the object, and the object will directly configure it using its own configuration method. However, besides itself, an object may also have a collection of related sub-objects and their sub-sub-objects, each with its own configuration method. In this scenario, the object's own configuration method may fail to complete the configuration of the configuration file, ultimately causing the object's configuration to fail. Figure 1 As shown, an exemplary diagram illustrating the association between objects provided in an embodiment of this application is illustrated.

[0043] like Figure 1 As shown, the TargetObject 10 represents the entity that receives the configuration. It can be used to receive the configuration file and can also perform configuration operations on the configuration file using its own default configuration method.

[0044] The base parent object (BaseParent) 11 is used to represent the base parent object of the target object 10. It can be understood that the target object 10 inherits from the base parent object 11. For example, VideoCaptureChannel inherits from BaseChannel.

[0045] The static parent object (StaticParent) 12 is used to represent the static parent object of the target object 10. It can be understood as the module object where the target object 10 is located, or the management-related object in the implementation of the target object 10. The object relationship is generally determined during the design and implementation, so it is expressed statically here. For example, the static parent object of VideoCaptureChannel is VideoCaptureManager or VideoCaptureModule.

[0046] The Dynamic Parent object 13 is used to represent the dynamic parent object of the target object 10, which can be understood as the object 10 being opened or created (this relationship is generally determined at runtime). For example, the dynamic parent object of VideoCaptureChannel is AppAIX.

[0047] Sub-objects (SubChild) 14 to M represent sub-objects of the target object 10, and can implement all the functions possessed by the target object 10. Multiple sub-objects work together. For example, sub-objects of VideoCaptureChannel may include VideoSensor, VideoISP, VideoCaptureDevice, etc. SubChild can also have a homeomorphic object model and relationship with TargetObject. For SubChild, its DynamicParent may be TargetObject. If SubChild is opened and used by TargetObject, then TargetObject can optionally inject the doCfg method into SubChild. This avoids configuration loops on the one hand, and on the other hand, there are very few actual situations where such a circular configuration is needed.

[0048] Each of the above objects has its own corresponding configuration method (doCfg). For example, the doCfg method of BaseParent comes from object inheritance, and the doCfg methods of StaticParent and DynamicParent can be injected into the TargetObject when the TargetObject is created.

[0049] In view of this, to further illustrate the technical solutions provided by the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation steps as shown in the following embodiments or drawings, the method may include more or fewer operation steps based on conventional or non-inventive methods. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided by the embodiments of this application. In actual processing or when the device executes the method, it may be executed in the order shown in the embodiments or drawings, or in combination.

[0050] For ease of understanding, the following specific embodiments illustrate a method for configuring an object provided in this application, which effectively completes the configuration of the configuration file. Figure 2 A flowchart illustrating an object configuration method provided in an embodiment of this application is shown below. Figure 2 As shown, the process includes the following steps:

[0051] The objects in this application embodiment include a target object, and also include multiple first objects associated with the target object (e.g., Figure 1 (Base parent object, static object, dynamic object, etc.).

[0052] 201: Target object retrieves configuration file.

[0053] Optionally, the configuration file obtained by the target object can come from the caller. For example, when the configuration file (or configuration items) is created, the caller directs the configuration to the target object (such as...). Figure 1 The target object 10) sends a configuration request carrying a configuration file.

[0054] In some embodiments, the configuration file includes a first identifier. After the target object obtains the configuration file, the first identifier can be analyzed to determine the processing scheme for the configuration file.

[0055] Optionally, the target object determines the processing mode of the configuration file based on the first identifier. If the processing mode is the initial processing mode, the target object performs the configuration operation on the configuration file using the default configuration method. If the processing mode is the probe processing mode, the configuration operation on the configuration file is performed according to the probe processing mode until the configuration is completed.

[0056] In some embodiments, if the Probing flag is not present in the first identifier, the processing mode of the configuration file is determined to be initial processing; otherwise, the processing mode of the configuration file is determined to be probing processing mode, thereby effectively distinguishing the processing mode of the current configuration file.

[0057] In other implementations, if the first identifier is 0 (indicating that it does not carry any special information), the processing mode of the configuration file is determined to be initial processing; otherwise, the processing mode of the configuration file is determined to be probe processing mode.

[0058] 202: After obtaining the above configuration file, determine whether the target object has completed the configuration operation on the configuration file using the default configuration method. If not, proceed to 203. If yes, end this process, or in some other embodiments, output the execution result.

[0059] 203: The target object generates a priority index according to the set probe priority rules. In some embodiments, the priority index probe priority rules may be generated by the target object when it fails to complete the configuration operation on the configuration file using its own configuration method for the first time.

[0060] In other embodiments, the priority index may be pre-generated and stored. The target object pre-generates and stores the priority index according to the set detection priority rules. This allows the target object to select the configuration methods of other objects and continue configuring the configuration file if it fails to complete the configuration operation using its own configuration method for the first time. The aforementioned detection priority rules are used to characterize the priority order that the target object has set for the associated objects (the first object). Figure 1 Taking the relationship graph in the example, the priority order of the target object 10, from high to low, can be SubChild, StaticParent, BaseParent, DynamicParent, or it can be StaticParent, SubChild, BaseParent, DynamicParent. This embodiment of the application does not impose any restrictions. Then, a corresponding priority index is generated based on the detection priority. This priority index is a shared index value for all objects, facilitating the subsequent selection of the configuration method of the corresponding object to perform configuration operations on the configuration file based on the generated priority index, thereby completing the configuration in an orderly and concise manner and avoiding configuration loops.

[0061] 204: The target object adds the above priority index to the configuration file, enters the probe processing mode, and performs configuration operations on the above configuration file according to the probe processing mode until the configuration is complete.

[0062] Optionally, the target object can perform configuration operations on the above configuration file according to this probing processing mode in the following way: the target object determines the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, and performs configuration operations on the configuration file according to the target configuration method.

[0063] Optionally, the target configuration method for performing the configuration operation on the configuration file can be determined as follows: The target object parses the configuration file to obtain the priority index; based on the priority index and the current probe count, the target object determines the first target object from among the first objects, where the priority index value of the first target object is mapped to the current probe count; the target object uses the configuration method corresponding to the first target object as the target configuration method for performing the configuration operation on the configuration file. For example, if the priority index is 0-SubChild, 1-StaticParent, 2-BaseParent, and 3-DynamicParent, the corresponding probe counts are 1, 2, 3, and 4 respectively. If the current probe count is 1, then the first target object can be determined as SubChild. In this case, the target object uses the configuration method corresponding to SubChild as the target configuration method for performing the configuration operation on the configuration file until the configuration is complete, thus completing the configuration in an orderly and concise manner.

[0064] In some implementations, when the configuration operation on the configuration file is completed, the configuration result can also be output. This configuration result is used to indicate whether the configuration file was successfully configured or failed, so as to prompt the user to take appropriate measures for subsequent processing.

[0065] In this embodiment, if the target object fails to complete the configuration operation on the configuration file using the default configuration method after obtaining the configuration file, the target object generates a priority index according to the set detection priority rules and adds the priority index to the configuration file. This allows the target object to sequentially select the configuration method corresponding to each first object according to the priority index to perform the configuration operation on the configuration file until the configuration is completed. Therefore, by adopting a multi-round exploratory mechanism to complete the configuration of the configuration file, it is possible to avoid the target object failing to complete the configuration using its own configuration method. Furthermore, processing the configuration file according to the priority order can maintain the simplicity and orderliness of the configuration process.

[0066] based on Figure 2The above flowchart, Figure 3 A complete object configuration method flowchart provided for embodiments of this application is shown in the figure. The process includes the following steps:

[0067] 301: Target object retrieves configuration file.

[0068] This step can be found in [link / reference]. Figure 2 The relevant descriptions in the document will not be repeated here.

[0069] 302: Determine if the configuration file is in the initial processing mode. If yes, proceed to 303; otherwise, proceed to 304.

[0070] 303: The default configuration method is used to perform configuration operations on the above configuration file, and then the error is redirected to 305.

[0071] 304: Based on the priority index in the configuration file, determine the target configuration method for the current configuration operation on the configuration file, perform the configuration operation on the configuration file according to the target configuration method, and then switch to 307.

[0072] 305: Check if the configuration operation on the configuration file using the default configuration method has been completed. If not, proceed to 306; if yes, output the configuration result.

[0073] 306: Generate a priority index according to the set detection priority rules, add the priority index to the configuration file, enter the detection processing mode, and switch to 301.

[0074] 307: The configuration method selected by the priority index is used to determine whether the configuration operation on the configuration file has been completed. If not, it will switch to 304; if yes, the configuration result will be output.

[0075] Based on the same technical concept, this application embodiment also provides an object configuration device, which can implement the process of the object configuration method described above in this application embodiment.

[0076] Figure 4 An object configuration device provided in an embodiment of this application is shown in the figure. The device includes: an acquisition module 401, a generation module 402, and a configuration module 403.

[0077] Get module 401, used to retrieve configuration files.

[0078] The generation module 402 is used to generate a priority index according to the set detection priority rules if the configuration module 403 fails to complete the configuration operation on the configuration file using the default configuration method. The priority index is used to characterize the priority order of the configuration methods for detecting each first object.

[0079] The configuration module 403 is used to add the priority index to the configuration file, enter the probe processing mode, and perform configuration operations on the configuration file according to the probe processing mode until the configuration is completed.

[0080] Optionally, the configuration module 403 is specifically used for: parsing the configuration file to obtain the priority index; determining a first target object from the first objects based on the priority index and the current probe count, wherein the priority index value of the first target object has a mapping relationship with the current probe count; and using the configuration method corresponding to the first target object as the target configuration method for performing the configuration operation on the configuration file.

[0081] In some embodiments, the structural schematic diagram of the object configuration device, in addition to Figure 4 In addition to the modules in the system, it may also include a determination module and a notification module. Figure 5 This is a schematic diagram of a configuration device for another object provided in an embodiment of this application. As shown in the figure, the device includes: an acquisition module 401, a generation module 402, a configuration module 403, a determination module 501, and a notification module 502. The relevant descriptions of the acquisition module 401, the generation module 402, and the configuration module 403 are as described above. Figure 4 This will not be described again here.

[0082] The determining module 501 is used to determine the processing mode of the configuration file based on the first identifier; if the processing mode is the initial processing mode, it instructs the configuration module 403 to perform a configuration operation on the configuration file using the default configuration method; if the processing mode is the probing processing mode, it instructs the configuration module 403 to specifically: determine the target configuration method for performing a configuration operation on the configuration file based on the priority index in the configuration file, and perform a configuration operation on the configuration file according to the target configuration method.

[0083] The notification module 502 is used to output a configuration result when the configuration operation on the configuration file is completed. The configuration result includes whether the configuration file was configured successfully or failed.

[0084] Optionally, the determining module 501 is specifically used to: if the first identifier does not contain a Probing marker, determine that the processing mode of the configuration file is the initial processing mode; if the first identifier contains the Probing marker, determine that the processing mode of the configuration file is the probing processing mode.

[0085] Based on the same technical concept, this application also provides an electronic device that can realize the function of the aforementioned object configuration device.

[0086] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0087] At least one processor 601 and a memory 602 connected to at least one processor 601. In this embodiment, the specific connection medium between the processor 601 and the memory 602 is not limited. Figure 6 The example shown is the connection between processor 601 and memory 602 via bus 600. Bus 600 is... Figure 6 The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. The 600 bus can be divided into address bus, data bus, control bus, etc., for ease of representation. Figure 6 The term is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller; there is no restriction on the name.

[0088] In this embodiment, memory 602 stores instructions executable by at least one processor 601. By executing the instructions stored in memory 602, at least one processor 601 can execute an object configuration method described above. Processor 601 can implement... Figure 4 or Figure 5 The functions of each module in the device shown.

[0089] The processor 601 is the control center of the device. It can connect to various parts of the control device through various interfaces and lines. By running or executing instructions stored in memory 602 and calling data stored in memory 602, the processor can perform various functions and process data, thereby monitoring the device as a whole.

[0090] In one possible design, processor 601 may include one or more processing units. Processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, driver interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 601. In some embodiments, processor 601 and memory 602 may be implemented on the same chip; in some embodiments, they may also be implemented on separate chips.

[0091] Processor 601 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the object configuration method disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0092] Memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 602 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 602 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 602 may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0093] By designing and programming the processor 601, the code corresponding to the object configuration method described in the foregoing embodiments can be embedded into the chip, thereby enabling the chip to execute it during runtime. Figure 2 The illustrated embodiment presents a method for configuring an object. How to design and program the processor 601 is a technique well-known to those skilled in the art and will not be described further here.

[0094] It should be noted that the electronic device provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.

[0095] This application also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute a configuration method for an object as described in the above embodiments.

[0096] This application also provides a computer program product, which, when invoked by a computer, causes the computer to execute a configuration method for an object as described in the above embodiments.

[0097] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0098] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a configured device for a general-purpose computer, special-purpose computer, embedded processor, or other programmable object to produce a machine, such that the instructions, which execute via the processor of the configured device for the computer or other programmable object, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0099] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable object to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0100] These computer program instructions may also be loaded onto a configuration device of a computer or other programmable object, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

Claims

1. A method for configuring an object, the object comprising a target object and at least one first object associated with the target object, characterized in that, include: The target object obtains a configuration file; the configuration file includes a first identifier; The target object determines the processing mode of the configuration file based on the first identifier; If the processing mode is the initial processing mode, the target object will perform configuration operations on the configuration file using the default configuration method; If the target object fails to complete the configuration operation on the configuration file using the default configuration method, the target object generates a priority index according to the set detection priority rules. The priority index is used to characterize the priority order of the configuration methods of each first object. The target object adds the priority index to the configuration file and enters the detection processing mode. If the processing mode is the probe-based processing mode, the target object performs a configuration operation on the configuration file according to the probe-based processing mode until the configuration is completed; wherein, performing a configuration operation on the configuration file according to the probe-based processing mode includes: the target object determines the target configuration method for performing a configuration operation on the configuration file according to the priority index in the configuration file, and performs a configuration operation on the configuration file according to the target configuration method.

2. The method as described in claim 1, characterized in that, The target object determines the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, including: The target object parses the configuration file to obtain the priority index; The target object is determined from the first objects according to the priority index and the current probe count. The priority index value of the first target object is mapped to the current probe count. The target object uses the configuration method corresponding to the first target object as the target configuration method for performing configuration operations on the configuration file.

3. The method as described in claim 1, characterized in that, The target object determines the processing mode of the configuration file based on the first identifier, including: If the Probing flag is not present in the first identifier, then the processing mode of the configuration file is determined to be the initial processing mode; If the Probing flag is present in the first identifier, then the processing mode of the configuration file is determined to be the probing processing mode.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: When the target object completes the configuration operation on the configuration file, the configuration result is output, which includes whether the configuration file was configured successfully or failed.

5. An object configuration device, characterized in that, include: Get modules, generate modules, configure modules; The acquisition module is used to acquire a configuration file; the configuration file includes a first identifier; The generation module is used to generate a priority index according to the set detection priority rules if the configuration module fails to complete the configuration operation on the configuration file using the default configuration method. The priority index is used to characterize the priority order of the configuration methods for detecting each first object. The configuration module is used to add the priority index to the configuration file, enter the probe-based processing mode, and perform configuration operations on the configuration file according to the probe-based processing mode until the configuration is completed. The device further includes a determining module; The determining module is used to determine the processing mode of the configuration file based on the first identifier; If the processing mode is the first-time processing mode, then the configuration module is instructed to perform configuration operations on the configuration file using the default configuration method; If the processing mode is the probe-based processing mode, then the configuration module is instructed to specifically: determine the target configuration method for performing configuration operations on the configuration file based on the priority index in the configuration file, and perform configuration operations on the configuration file according to the target configuration method.

6. The apparatus as claimed in claim 5, characterized in that, The configuration module is specifically used for: The configuration file is parsed to obtain the priority index; Based on the priority index and the current probe count, a first target object is determined from the first objects, wherein the priority index value of the first target object is mapped to the current probe count; The configuration method corresponding to the first target object is used as the target configuration method for performing configuration operations on the configuration file.

7. The apparatus as claimed in claim 5, characterized in that, The determining module is specifically used for: If the Probing flag is not present in the first identifier, then the processing mode of the configuration file is determined to be the initial processing mode; If the Probing flag is present in the first identifier, then the processing mode of the configuration file is determined to be the probing processing mode.

8. The apparatus according to any one of claims 5-7, characterized in that, The device also includes a notification module; The notification module is used to output a configuration result when the configuration operation on the configuration file is completed. The configuration result includes whether the configuration file was configured successfully or failed.

9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a computer program stored in the memory, implements the method steps of any one of claims 1-4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method steps of any one of claims 1-4.

Citation Information

Patent Citations

  • File configuration method and server

    CN110196838A

  • Positioning information configuration method and device, communication equipment and storage medium

    CN111510318A