A reusable unified parameter management system

Through the unified parameter management system, the modification complexity problem caused by independent design of parameter systems in multi-module systems is solved, and the unified management and storage of parameters across modules is realized, reducing the difficulty of modification and providing logic and scalability.

CN113867698BActive Publication Date: 2025-08-26ZHEJIANG 99CLOUD INFORMATION SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111211757.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-18
Publication Date
2025-08-26
Estimated Expiration
2041-10-18

AI Technical Summary

Technical Problem

In a multi-module system, the independent design of the parameter system of each module leads to frequent modifications when the requirements change, and the lack of unified management increases the complexity and difficulty of modification.

Method used

It provides a reusable parameter unified management system, which expands the process, parameter creation process, parameter persistence process and parameter reference process through the parameter enumeration method to realize unified management of parameters and cross-module use.

Benefits of technology

It reduces the overhead of post-modification, provides customized conversion rules and default types, supports cross-module parameter storage and reference, reduces the modification complexity between modules, and realizes logical management of parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867698B_ABST
    Figure CN113867698B_ABST
Patent Text Reader

Abstract

The present invention provides a reusable unified parameter management system, which includes: judging whether it is necessary to expand the parameter type, and if so, using the parameter enumeration method to expand the process to expand the parameters; otherwise, creating parameters by the parameter creation process; entering the parameter persistence process according to the created parameters; judging whether to establish parameter references in the case of multiple parameters, and if so, performing the parameter reference process; otherwise, ending the use. Reduce the cost of subsequent modifications. The module encapsulates parameters and restricts the use type, so that users do not need to worry about type conversion. It provides custom conversion rules and default types, providing a certain amount of expansion space. It performs persistent management for parameters and stores the parameters so that the parameters can be used across modules. It provides a parameter reference function, which gives logic between parameters by managing the parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of business parameter management, and in particular to a reusable unified parameter management system. Background Art

[0002] In a multi-module system, developers will set up a parameter system to connect these functions based on their needs. Although this system is designed to connect multiple modules, the actual code implementation may be designed independently for each module. For example, in a platform system, although the same parameters are used from the solution to the instance, their parameter systems are implemented independently. As a result, both modules need to modify the parameter systems when the requirements change. Summary of the Invention

[0003] In view of the above problems, the present invention is proposed to provide a reusable unified parameter management system that overcomes the above problems or at least partially solves the above problems.

[0004] According to one aspect of the present invention, a reusable unified parameter management system is provided, the management system comprising:

[0005] Determine whether the parameter type needs to be expanded. If so, expand the parameters using the parameter enumeration method; otherwise, create the parameters using the parameter creation process.

[0006] Enter the parameter persistence process according to the creation parameters;

[0007] Determine whether to establish parameter references when there are multiple parameters. If so, proceed with the parameter reference process; otherwise, terminate the use.

[0008] Optionally, the method of expanding the parameters by using the parameter enumeration method includes:

[0009] Expand new parameter types;

[0010] Create new parameter types and add creation and conversion logic;

[0011] Add new enumeration values ​​to the enumeration class;

[0012] Add type judgment logic and default type to the enumeration value;

[0013] Create a parameter with a new enumeration type.

[0014] Optionally, the parameter creation process specifically includes:

[0015] Get parameter values;

[0016] Determining the type of the parameter according to the parameter value;

[0017] Determine the corresponding parameter enumeration according to the type;

[0018] Create a parameter using the parameter enumeration;

[0019] The creation parameters are verified. If the verification is successful, the creation is successful; otherwise, the creation fails.

[0020] Optionally, the step of entering the parameter persistence process according to the creation parameters specifically includes:

[0021] Create a parameter;

[0022] Use the persistence method to save the parameters;

[0023] Get the UUID of the parameter;

[0024] Obtain parameter data from the database according to the UUID of the parameter;

[0025] The parameter data is used.

[0026] The present invention provides a reusable unified parameter management system, which includes: determining whether parameter types need to be expanded; if so, expanding parameters using a parameter enumeration method to expand the process; otherwise, creating parameters using a parameter creation process; entering a parameter persistence process based on the created parameters; determining whether parameter references need to be established in the case of multiple parameters; if so, performing a parameter reference process; otherwise, ending the use. This reduces the cost of subsequent modifications. The module encapsulates parameters and restricts the use of types, so that users do not need to worry about type conversion. Custom conversion rules and default types can be provided, providing a certain amount of expansion space. Parameters are persistently managed and stored, allowing them to be used across modules. A parameter reference function is provided, which gives logic between parameters by managing parameters. The present invention provides unified parameter management and configurable parameter storage functions, allowing multiple functional modules to use the same set of business parameters, thereby reducing the complexity and difficulty of modifications designed by each module, and providing an indexing function to facilitate querying existing parameters.

[0027] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 A flow chart of a reusable unified parameter management system provided by an embodiment of the present invention;

[0030] Figure 2 A flow chart of parameter expansion using a parameter enumeration method for expanding a process according to an embodiment of the present invention;

[0031] Figure 3 A parameter creation flow chart for the parameter creation process provided in an embodiment of the present invention;

[0032] Figure 4 This is a parameter persistence flow chart provided by an embodiment of the present invention;

[0033] Figure 5 This is a flow chart of parameter reference usage provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0034] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] The terms "comprises" and "comprising" and any variations thereof in the description, embodiments, claims and drawings of the present invention are intended to cover non-exclusive inclusions, for example, including a series of steps or units.

[0036] The technical solution of the present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0037] like Figure 1 As shown, a reusable unified parameter management system includes: determining whether the parameter type needs to be expanded, if so, expanding the parameters by using the parameter enumeration method to expand the process; otherwise, creating the parameters by using the parameter creation process;

[0038] Enter the parameter persistence process according to the creation parameters;

[0039] Determine whether to establish parameter references when there are multiple parameters. If so, proceed with the parameter reference process; otherwise, terminate the use.

[0040] Before using the parameter system to create parameters, you need to choose whether to expand the parameter type based on the specific development situation. For example, when developing a system, a file parameter type is required, but there is no such parameter in the parameter enumeration, then a parameter expansion process is required. Then, the parameters are created and persisted through the parameter creation process. In the case of multiple parameters, decide whether to establish parameter references between parameters based on the specific usage scenario. For example, if the data of a certain parameter needs to be obtained by calculating the values ​​of other parameters, then it is necessary to establish parameter references between this parameter and the other parameters. Expanding parameter types, creating and persisting parameters, and establishing and using parameter references are the overall usage process of the present invention.

[0041] like Figure 2 As shown, to extend a parameter type, you first need to create a new parameter type and implement parameter creation and conversion logic within the parameter type. This allows the parameter type to participate in the parameter passing process during subsequent development. In actual development, parameters are created using enumeration classes, so after creating a new parameter type, you need to add the parameter type to the enumeration class. To add a parameter type to an enumeration type, you first need to add the corresponding enumeration value to the enumeration class and implement parameter creation functionality within the enumeration value. This functionality includes type determination logic and default output. After adding the enumeration value, you can use the enumeration class to create new parameter types.

[0042] like Figure 3 As shown, when using parameters, first select the parameter type. Then, using the parameter type, select the corresponding enumeration value from the enumeration class. Then, you can use the enumeration value to create the parameter by calling the enumeration value's create parameter method and passing in the parameter value. When creating a parameter of a specific type using an enumeration value, the parameter value is first type-checked. If the parameter value meets the parameter creation requirements, the creation succeeds; otherwise, the creation fails.

[0043] like Figure 4 As shown, the purpose of persisting the parameters is to be able to use the parameters in other modules or methods. Before persistence, a parameter needs to be created first. When the parameter is created, a unique UUID will be generated, and the UUID will be used as an index to query the parameter. After the parameter is created, it is necessary to call the persistence interface to save the parameter. This persistence interface is provided by the present invention, but the specific persistence logic implementation is written by the user. Through this persistence interface, the parameters can be saved in the parameter storage, which is generally a database or file. After the persistence of the parameters is completed, the parameters can be queried based on the UUID of the parameters. This query interface is also provided by the present invention, and the specific query logic implementation is written by the user. Through this query interface, the parameter data can be read from the parameter storage and used.

[0044] like Figure 5 As shown, the parameter reference function is used to create logical relationships between parameters. Since it is a logical relationship between parameters, multiple parameters are required, including a reference parameter and multiple referenced parameters. When using these parameters to create a parameter reference, you first need to retrieve the UUIDs of these parameters and then use these UUIDs to create the parameter reference. The parameter reference stores the UUID of the reference parameter and the UUIDs of the referenced parameters. Since there is generally more than one referenced parameter, the UUIDs of the referenced parameters are a list. The parameter reference is then persistently stored, and the persistent storage interface is implemented by the user. After successful storage, the parameter reference can be obtained in other modules.

[0045] To use a parameter reference, you need to query the parameter's UUID. Using the parameter reference query interface provided by this invention, pass in the parameter's UUID. You can then query the corresponding parameter reference for that parameter. You can then use the reference parameter UUID and the referenced parameter UUID list stored in the parameter reference to query and use the corresponding parameter data through the parameter query interface.

[0046] Beneficial effects: Unified management and use of business parameters.

[0047] Encapsulate the parameters so that users do not have to worry about type conversion issues.

[0048] The ability to customize conversion rules and default types provides a certain amount of room for expansion.

[0049] Provide persistent management for parameters so that they can be used across modules.

[0050] Provides parameter reference function to give logic between parameters.

[0051] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A reusable unified parameter management system, characterized in that: The management system includes: Determine whether the parameter type needs to be expanded. If so, expand the parameters using the parameter enumeration method, including: Expand new parameter types; Create new parameter types and add creation and conversion logic; Add new enumeration values ​​to the enumeration class; Add type judgment logic and default type to the enumeration value; Create parameters using the new enumeration type; Otherwise, the parameter creation process creates the parameters; Enter the parameter persistence process according to the creation parameters; Determine whether to establish parameter references when there are multiple parameters. If so, proceed with the parameter reference process; otherwise, terminate the use.

2. A reusable unified parameter management system according to claim 1, characterized in that: The parameter creation process specifically includes: Get parameter values; Determining the type of the parameter according to the parameter value; Determine the corresponding parameter enumeration according to the type; Create a parameter using the parameter enumeration; The creation parameters are verified. If the verification is successful, the creation is successful; otherwise, the creation fails.

3. A reusable unified parameter management system according to claim 1, characterized in that: The process of entering parameter persistence according to the creation parameters specifically includes: Create a parameter; Use the persistence method to save the parameters; Get the UUID of the parameter; Obtain parameter data from the database according to the UUID of the parameter; The parameter data is used.

Citation Information

Patent Citations

  • New method for parameter module register and management of numerical control machine tool system

    CN102478835A

  • Simulation method and system

    CN104820615A