Object generation method and device, computing equipment, storage medium and program product
By determining the functional requirements of the target objects to be developed and using the basic general function library or independent customized function modules to generate the target objects, the problems of bloated and inconvenient maintenance of the starter program in the existing technology are solved, and efficient development and maintenance are achieved.
Patent Information
- Application Number
- CN202510264022.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-10
AI Technical Summary
In the prior art, the launcher program of multiple applications needs to implement multiple customized functions, resulting in bloated launcher program, redundant code, and inconvenient maintenance.
By determining the functional requirements of the target objects to be developed, it is determined whether it can be met by the basic general functional modules of the basic general functional library. If possible, use these modules to generate the target object; if not, determine the independent customized functional modules based on the functional requirements and generate the target object.
The independent generation of different target objects to be developed is realized, which reduces development costs and improves maintenance and update efficiency, so that the target object does not contain independent customized functional modules of other objects.
Smart Images

Figure CN120122932A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to an object generation method. This application also relates to an object generation device, a computing device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Currently, there are situations where multiple project teams in a manufacturer need to develop a launcher, which includes basic functions such as daily launcher updates, logins, downloads, updates, repairs, and uninstallation of application programs. Often, each application program may have many different customized development functions, such as download methods, user interface screens, innovative ideas, and many other innovative functions.
[0003] For such a launcher program that needs to implement customized functions for multiple application programs, the conventional solution is for a single launcher program to implement all the customized functions of the application programs. This will cause the launcher program to be extremely bloated, and the problem of code redundancy will be unsolvable. With a large number of application programs, it will be completely impossible to sort out the business, and it will be difficult to maintain. Summary of the Invention
[0004] In view of this, embodiments of the present application provide an object generation method to solve the technical defects existing in the prior art. Embodiments of the present application also provide an object generation device, a computing device, a computer-readable storage medium, and a computer program product.
[0005] According to a first aspect of an embodiment of the present application, an object generation method is provided, including: Determine the functional requirements of the target object to be developed; When it is determined that the functional requirements can be met by the basic general function modules of the basic general function library, determine the target function modules corresponding to the functional requirements according to the basic general function modules of the basic general function library, where the basic general function modules of the basic general function library are function modules that appear a number of times reaching a preset condition among the function modules of multiple development objects; When it is determined that the functional requirements cannot be met by the basic general function modules of the basic general function library, then determine the independent customized function modules of the target object to be developed according to the functional requirements; Generate a target object according to the target function modules and / or the independent customized function modules.
[0006] According to a second aspect of an embodiment of the present application, an object generation device is provided, including: A requirement determination module configured to determine the functional requirements of the target object to be developed; The first function determination module is configured to determine a target function module corresponding to the function requirement according to the basic function modules of the basic general function library when it is determined that the function requirement can be met by the basic function modules of the basic general function library, where the basic function modules of the basic general function library are function modules that appear a number of times reaching a preset condition among multiple function modules; The second function determination module is configured to determine an independent customized function module of the target object to be developed according to the function requirement when it is determined that the function requirement cannot be met by the basic function modules of the basic general function library; The object generation module is configured to generate a target object according to the target function module and / or the independent customized function module.
[0007] According to a third aspect of the embodiments of the present application, a computing device is provided, including: a memory and a processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, an object generation method is implemented.
[0008] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer programs / instructions. When the computer programs / instructions are executed by a processor, an object generation method is implemented.
[0009] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, including computer programs / instructions. When the computer programs / instructions are executed by a processor, an object generation method is implemented.
[0010] The object generation method provided in the embodiments of this specification determines the functional requirements of the target object to be developed, and determines whether the functional requirements of the object to be developed can be met by the basic general function modules in the basic general function library. If so, based on the basic general function modules in the basic general function library, the target function modules corresponding to the functional requirements are determined. In the case where the functional requirements of the object to be developed cannot be met based on the basic general function modules in the basic general function library, the independent customized functions of the target object to be developed are determined according to the functional requirements. According to the target function modules and / or the independent customized function modules, the target object is generated. The target object does not contain the independent customized function modules of other objects, realizing the independent generation of corresponding target objects for different target objects to be developed. And for the functional requirements of the target object to be developed, the corresponding target function modules can be obtained by using the basic general function modules in the basic general function library, thus reducing the development cost. In the case of distinguishing the target function modules and the independent customized function modules, the maintenance and update of the target object can also become more centralized and efficient. For example, the update of the independent customized function modules can be carried out independently of the target function modules, which is not only easy to maintain but also reduces the workload of maintenance. Description of the Drawings
[0011] Figure 1 is a schematic structural diagram of the design of an object generation method in the prior art provided by an embodiment of this specification; Figure 2 is a flowchart of an object generation method provided by an embodiment of this specification; Figure 3a is a schematic structural framework diagram of an object generation method applied to the game launcher scenario provided by an embodiment of this specification; Figure 3b is a schematic structural diagram of an adaptation and customization function library provided by an embodiment of this specification; Figure 3c is a schematic layered design diagram provided by an embodiment of this specification; Figure 4 is a schematic structural diagram of an object generation device provided by an embodiment of this specification; Figure 5 is a schematic block diagram of a computing device provided by an embodiment of this specification. Detailed Embodiments
[0012] In the following description, many specific details are set forth in order to provide a thorough understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without departing from the connotation of this application. Therefore, this application is not limited by the specific embodiments disclosed below.
[0013] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the", and "said" used in one or more embodiments of the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0014] It should be understood that although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0015] In the present application, an object generation method is provided. The present application is also related to an object generation device, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail one by one in the following embodiments.
[0016] Figure 1 A schematic structural diagram of the design of an object generation method in the prior art provided by an embodiment of this specification is shown.
[0017] Taking the development object as a game launcher as an example, in the prior art, the requirements for starting multiple games are mixed in one game launcher, that is, all the customizations of the game launcher are realized by using one game launcher program, which will cause the game launcher program to be very redundant and bloated.
[0018] However, an embodiment of this specification provides an object generation method, which includes determining the functional requirements of the target object to be developed; when it is determined that the functional requirements can be met by the basic general function modules of the basic general function library, determining the target function modules corresponding to the functional requirements according to the basic general function modules of the basic general function library, where the basic general function modules of the basic general function library are the function modules that appear a number of times reaching a preset condition among the function modules of multiple development objects; when it is determined that the functional requirements cannot be met by the basic general function modules of the basic general function library, determining the independent customized function modules of the target object to be developed according to the functional requirements; and generating the target object according to the target function modules and / or the independent customized function modules.
[0019] The object generation method provided by the embodiments of this specification determines the functional requirements of the target object to be developed, and determines whether the functional requirements of the object to be developed can be met by the basic general function modules in the basic general function library. If so, according to the basic general function modules in the basic general function library, the target function module corresponding to the functional requirements is determined. In the case where the functional requirements of the object to be developed cannot be met based on the basic general function modules in the basic general function library, the independent customized function of the target object to be developed is determined according to the functional requirements. According to the target function module and / or the independent customized function module, a target object is generated. The target object does not include the independent customized function modules of other objects, realizing the independent generation of corresponding target objects for different target objects to be developed. For the functional requirements of the target object to be developed, the corresponding target function module can be obtained by using the basic general function modules in the basic general function library, thus reducing the development cost. In the case of distinguishing the target function module and the independent customized function module, the maintenance and update of the target object can also become more centralized and efficient. For example, the update of the independent customized function module can be carried out independently of the target function module, which is not only easy to maintain but also reduces the workload of maintenance.
[0020] Figure 2 The flowchart showing an object generation method provided by an embodiment of this specification specifically includes the following steps: Step 202: Determine the functional requirements of the target object to be developed.
[0021] Among them, the target object to be developed can be understood as software, system or product to be developed. For example, in the scenario of developing a game launcher, the target object to be developed can be the game launcher corresponding to the game.
[0022] The functional requirements can be understood as the business functions required by the target object to be developed. For example, in the case where the target object to be developed is a game launcher, the game launcher needs functions such as "log in to the game" and "start the game".
[0023] For example, taking the scenario of developing a game launcher as an example, when a game launcher needs to be developed, it can be determined that the functional requirements of the game launcher include but are not limited to functions such as "start the game", "update the game", "user login", and "user social interaction".
[0024] Step 204: In the case where it is determined that the functional requirements can be met by the basic general function modules in the basic general function library, according to the basic general function modules in the basic general function library, determine the target function module corresponding to the functional requirements, where the basic general function modules in the basic general function library are the function modules that appear a number of times reaching a preset condition among the function modules of multiple development objects.
[0025] If the functional requirements of the target object to be developed can be met by the basic general function modules of the basic general function library, the target function module corresponding to the functional requirements can be directly obtained based on the basic general function modules of the basic general function library.
[0026] Specifically, before determining the functional requirements of the target object to be developed, it further includes: Determine the multiple functional requirements of multiple development objects, and determine the functional requirements that meet the preset conditions among the multiple functional requirements as the basic general functional requirements; According to the basic general functional requirements, determine the basic general function modules corresponding to the multiple development objects; According to the basic general function modules, determine the basic general function library.
[0027] That is, the basic general function library is obtained through the following method: Determine the multiple functional requirements of multiple development objects; among them, the development objects include the objects that have been developed and generated, and the objects that have not been developed and generated. Regardless of whether the development objects have been developed and generated, their corresponding functional requirements can be determined. The objects that have been developed and generated are to determine the function modules corresponding to the functional requirements according to the functional requirements, and generate objects according to the function modules, while the objects that have not been developed and generated have not yet determined the corresponding function modules according to the functional requirements.
[0028] Determine the functional requirements that meet the preset conditions among the multiple functional requirements; among them, the preset conditions can be set according to the actual situation. For example, the preset conditions can be expressed in the form of a frequency threshold. At this time, the frequency threshold can be set to 10, 5, etc., which are not limited here; or the preset conditions are expressed in the form of a percentage threshold, that is, when the number of occurrences of a functional requirement among the multiple functional requirements exceeds 80% of the number of multiple development objects (indicating that more than 80% of the development objects have this functional requirement), this functional requirement is determined as the basic general functional requirement.
[0029] According to the basic general functional requirements, determine the basic general function modules corresponding to the multiple development objects; for example, taking the scenario of developing a game launcher as an example, when the basic general functional requirements of multiple game launchers include "launch game", "update game", and "user login", obtain the "launch game" function module corresponding to the "launch game" functional requirement.
[0030] Based on the described basic general function module, determine the basic general function library. Specifically, a library can be understood as a pre-written set of codes that implement certain specific functions or provide a series of related tools and services. A library usually contains a set of related functions, classes, variables, or other code components that jointly implement a specific function or solve a certain type of problem.
[0031] In specific implementation, encapsulate the basic general function module into the basic general function library. One basic general function module corresponds to one basic general function library. A library is generally a relatively independent module that can be easily integrated into different projects without modifying the library itself. Therefore, by combining different function libraries, different objects can be generated.
[0032] The object generation method provided in the embodiments of this specification can, by determining the basic general function library, determine whether the basic general function modules of the basic general function library can meet the functional requirements of the target object to be developed during the development of the target object to be developed. If so, determine the target function module corresponding to the functional requirements according to the basic general function module, reducing the development cost compared to developing a function module independently.
[0033] In one or more embodiments of this specification, if any basic general function module of the basic general function library matches or has an adaptation relationship with the functional requirements, it can be determined that the functional requirements can be met based on the basic general function modules of the basic general function library. The specific implementation is as follows: Determining that the functional requirements can be met based on the basic general function modules of the basic general function library includes: In the case where the functional requirements match any basic general function module of the basic general function library, determine that the functional requirements can be met based on the basic general function modules of the basic general function library, or In the case where the functional requirements have an adaptation relationship with any basic general function module of the basic general function library, determine that the functional requirements can be met based on the basic general function modules of the basic general function library.
[0034] Among them, a function module matching the functional requirements means that the function module can meet the corresponding functional requirements. For example, if a functional requirement is "able to log in to the game" and a basic general function module is the "log in to the game" function module, then the functional requirement matches the basic general function module at this time.
[0035] In software development, the adaptation relationship can be understood as that a certain functional module can be extended or modified based on existing functions to meet specific functional requirements. The core of the adaptation relationship lies in reuse and extension, that is, by adjusting or enhancing existing functional modules, new functional requirements are realized, rather than developing from scratch. For example, a basic general functional module is the "log in to the game" functional module, and the function it can achieve is to log in to the game. In the case where the functional requirement is to "log in to the game using a third party", it can be determined that this functional requirement has an adaptation relationship with the basic general functional module, that is, the functional requirement can be met by extending the basic general functional module.
[0036] Specifically, the functional requirements of the target object to be developed are matched one by one with the basic general functional modules of the basic general function library. If there is a basic general functional module that matches the functional requirements, it is determined that the functional requirements can be met based on the basic general functional modules of the basic general function library.
[0037] In the case where the functional requirements of the target object to be developed do not match any of the basic general functional modules, it can be judged whether the functional requirements have an adaptation relationship with any one of the basic general functional modules. If there is a basic general functional module that has a matching relationship with the functional requirements, it is determined that the functional requirements can be met based on the basic general functional modules of the basic general function library.
[0038] In the case where it is determined that the functional requirements can be met based on the basic general functional modules of the basic general function library, the target general functional module or the target adaptation functional module corresponding to the functional requirements can be obtained. The specific implementation is as follows: Determining the target functional module corresponding to the functional requirements according to the basic general functions of the basic general function library includes: Determining the target general functional module or the target adaptation functional module corresponding to the functional requirements according to the basic general functional modules of the basic general function library.
[0039] Among them, the target general functional module can be understood as the functional module corresponding to the functional requirements obtained by directly using the matching basic general functional module; the target adaptation functional module can be understood as the functional module corresponding to the functional requirements obtained by extending or modifying the basic general functional module with an adaptation relationship.
[0040] In actual development, it is preferred to select a basic general function module that matches the functional requirements. By directly using the matching basic general function module, the target general function module corresponding to the functional requirements can be obtained quickly. If the functional requirements do not fully match any of the basic general function modules, the basic general function modules with an adaptation relationship can be reused through adaptation, and the basic general function modules with an adaptation relationship can be extended or modified to obtain the target adaptation function module corresponding to the functional requirements, so as to improve the development efficiency.
[0041] That is, in the case where the functional requirements match any of the basic general function modules in the basic general function library, determining the target general function module or the target adaptation function module corresponding to the functional requirements according to the basic general function modules in the basic general function library includes: Determining the basic general function module in the basic general function library that matches the functional requirements as the target general function module.
[0042] For details, please refer to the above embodiments and will not be elaborated here.
[0043] In one or more embodiments of this specification, the basic general function module in the basic general function library that has an adaptation relationship with the functional requirements is determined as the general function module to be updated, and customized adjustment is performed on the general function module to be updated, so that the target adaptation function module obtained after adjustment can fully match the functional requirements. The specific implementation is as follows: In the case where the functional requirements have an adaptation relationship with any of the basic general function modules in the basic general function library, determining the target general function module or the target adaptation function module corresponding to the functional requirements according to the basic general function modules in the basic general function library includes: Determining the general function module to be updated that has an adaptation relationship with the functional requirements from the basic general function modules in the basic general function library, and performing customized adjustment related to the functional requirements on the general function module to be updated to obtain the target adaptation function module.
[0044] Among them, the customized adjustment can be understood as modifying or extending the general function module to be updated to implement the function corresponding to the functional requirements. For example, performing customized adjustment on the "user login" function module to add the function of supporting third-party login to meet the functional requirements of "third-party login".
[0045] Specifically, determine the general function module to be updated that has an adaptation relationship with the function requirements from the basic general function modules of the basic general function library. The core of the adaptation relationship lies in reuse and extension, that is, by adjusting or enhancing the existing function modules to achieve new function requirements, rather than developing from scratch. In this case, customize the general function module to be updated, and make adjustments with reference to the function requirements during the specific adjustment, so as to obtain the target adaptation function module that matches the function requirements.
[0046] For example, customize the general function module to be updated, "User Login", to add the function of supporting third-party login, so as to obtain the target adaptation function module. Specifically, this third-party login function depends on the user login function of the general function module to be updated, reuses its login process and user verification mechanism, and only needs to add a third-party login interface. By customizing the general function module to be updated, a target adaptation function module that meets specific requirements is obtained.
[0047] Since the target adaptation function module does not need to be developed completely independently, but is realized by reusing and adjusting the existing general function module to be updated, the development efficiency can be improved.
[0048] The object generation method provided in the embodiments of this specification can obtain a target adaptation function module that meets specific function requirements by determining the general function module to be updated that has an adaptation relationship with the function requirements from the basic general function modules of the basic general function library and customizing the general function module to be updated. This method not only improves the development efficiency, but also ensures the flexibility and scalability of the system.
[0049] In one or more embodiments of this specification, the general function module to be updated is customized by writing adapter code for it, and the target adaptation function module corresponding to the object to be developed is obtained. The specific implementation method is as follows: The customization of the general function module to be updated related to the function requirements to obtain the target function module includes: Write adapter code related to the function requirements for the general function module to be updated to implement the customization of the general function to be updated and obtain the target function module.
[0050] Among them, the adapter is a design pattern used to convert the interface of one class into another interface expected by the client. In the embodiments of this specification, the general function module to be updated is extended or modified through adapter code so that it can meet the function requirements.
[0051] Based on the adapter code, the general function module to be updated can be reused, extended, or modified, that is, the core logic of the general function module to be updated is retained, and on the basis of the general function module to be updated, new logic is added or the existing logic is modified to meet the functional requirements. Through the adapter code, the general function module to be updated is adjusted to the target adapted function module.
[0052] Specifically, based on the general function module to be updated, adapter code is written to implement the extension or modification of the general function module to be updated. The adapter code can be a new class, module, or function, which encapsulates the adjustment logic for the general function module to be updated. Integrate the adapter code into the system to ensure that it can work in coordination with the general function module to be updated.
[0053] The object generation method provided in the embodiments of this specification customizes and adjusts the general function module to be updated by writing adapter code, so as to meet the functional requirements. By reasonably using the adapter code, the development efficiency can be significantly improved, duplicate code can be reduced, and the flexibility and scalability of the system can be enhanced.
[0054] Step 206: When it is determined that the functional requirements cannot be met by the general function modules in the basic general function library, then according to the functional requirements, determine the independent customized function module of the target object to be developed.
[0055] Among them, the independent customized function module can be understood as a function module that is independent of the basic general function module and is developed completely independently; these independent customized function modules cannot be implemented by modifying or extending the basic general function module and need to be developed from scratch.
[0056] For example, a certain game launcher may have a functional requirement of a "virtual store", and this functional requirement does not match or have an adaptation relationship with any basic general function module. At this time, it is necessary to independently develop the independent customized function of the target object to be developed according to this functional requirement.
[0057] Step 208: Generate a target object according to the target function module and / or the independent customized function module.
[0058] Among them, the target object can be understood as an application program, software, or system developed.
[0059] In practical applications, since the functional requirements of the target object to be developed can be multiple, there may be some functional requirements that can be met by the general function modules in the basic general function library, and some functional requirements that cannot be met by the general function modules in the basic general function library.
[0060] For the functional requirements satisfied by the basic general function modules based on the basic general function library, determine the corresponding target function modules, and for the functional requirements that cannot be satisfied by the basic general function modules based on the basic general function library, determine the corresponding independent customized function modules.
[0061] Thereby, generate a target object according to the target function module and / or the independent customized function module.
[0062] In one or more embodiments of this specification, encapsulate the function modules into the corresponding function libraries to obtain the target general function library, and / or the adaptation and customization function library, and / or the independent customization function library of the target object to be developed, and obtain the target object by packaging the target general function library, and / or the adaptation and customization function library, and / or the independent customization function library. The specific implementation manners are as follows: The generating a target object according to the target function module and / or the independent customized function module includes: Determine the target general function library corresponding to the target general function module from the basic general function library, and / or Determine the adaptation and customization function library of the target object to be developed according to the target adaptation function module, and / or Determine the independent customization function library of the target object to be developed according to the independent customized function module; Generate the target object according to the target general function library, and / or the adaptation and customization function library of the target object to be developed, and / or the independent customization function library.
[0063] During specific implementation, when the library can be easily integrated into different projects, the target general function library corresponding to the target general function module can be directly determined from the basic general function library; encapsulate the target adaptation function module to obtain the corresponding adaptation and customization function library, and encapsulate the independent customized function module to obtain the corresponding independent customization function library.
[0064] Generate the target object by packaging the target general function library, and / or the adaptation and customization function library, and / or the independent customization function library of the target object to be developed.
[0065] The object generation method provided by the embodiments of this specification, when the design of the library is a modular development method, by encapsulating the function modules into the corresponding function libraries respectively, can improve the code reusability, maintainability and scalability, and in the case of multiple target objects to be developed, the basic general function library can be shared by multiple target objects to be developed, reduce duplicate code, and separate the target general function module, the target adaptation function module and the independent customized function module, which is convenient for separate maintenance and upgrade.
[0066] In one or more embodiments of this specification, the adapted custom function library is obtained by updating the general function library to be updated. The specific implementation is as follows: Determining the adapted custom function library of the target object to be developed according to the target adaptation function module includes: Determining the general function library to be updated corresponding to the general function module to be updated from the basic general function library, and updating the general function library to be updated to the adapted custom function library corresponding to the target object to be developed according to the target adaptation function module and the general function module to be updated.
[0067] Specifically, by packaging the target adaptation function module and the general function module to be updated, the general function library to be updated corresponding to the general function module to be updated is updated to the adapted custom function library corresponding to the target object to be developed.
[0068] For example, packaging the target adaptation function module (third-party login) into the general function library to be updated corresponding to the general function module to be updated (user login) realizes updating the general function library to be updated to the corresponding target adaptation function library.
[0069] The object generation method provided by the embodiments of this specification realizes updating the general function library to be updated to the target adaptation function library by packaging the target adaptation function module and the corresponding general function module to be updated into the general function library to be updated corresponding to the general function module to be updated, and efficiently obtains the target adaptation function library.
[0070] In one or more embodiments of this specification, based on the new function requirements for the target object, the target object can be updated. Specifically, it is determined whether the new function requirements can be obtained through the basic general function module. If so, the new adapted custom function corresponding to the new function requirements is obtained based on the basic general function module. If not, the new independent custom function is developed independently. The specific implementation is as follows: After generating multiple development objects, it further includes: Determining the new function requirements of the target object; Judging whether the new function requirements have an adaptation relationship with any basic general function module in the basic general function library, If so, determining the general function module to be adapted having an adaptation relationship with the new function requirements from the basic general function library, and performing customization adjustment related to the new function requirements on the general function module to be adapted to obtain the new adapted custom function module corresponding to the target object; If not, determining the new independent custom function corresponding to the target object according to the new function requirements; Update the target object according to the newly added adaptation and customization function module, the general function module to be adapted, or the newly added independent customization function module.
[0071] In practical applications, updating the target object according to the newly added adaptation and customization function module, the general function module to be adapted, or the newly added independent customization function module includes: Determine the general function library to be adapted corresponding to the general function module to be adapted from the basic general function library, and update the general function library to be adapted to the newly added adaptation and customization function library corresponding to the target object according to the newly added adaptation and customization function module and the general function module to be adapted, or Determine the newly added independent customization function library corresponding to the target object according to the newly added independent customization function module; Update the target object according to the newly added adaptation and customization function library or the newly added independent customization function library.
[0072] Specifically, determine the new function requirements of the target object, and determine whether the new function requirements have an adaptation relationship with any basic general function module in the basic general function library. The specific implementation method is similar to that of the above embodiment.
[0073] If the new function requirements have an adaptation relationship with any basic general function module, determine the general function module in the basic general function library that has an adaptation relationship with the new function requirements as the general function module to be adapted, and perform customization adjustments related to the new function requirements on the general function module to be adapted based on the adapter method to obtain the newly added adaptation and customization function corresponding to the target object; similar to the above embodiment, package the newly added adaptation and customization function into the general function library to be adapted corresponding to the general function module to be adapted, and update the general function library to be adapted to the newly added adaptation and customization function library corresponding to the target object, so as to update the target object based on the newly added adaptation and customization function library.
[0074] If the new function requirements do not have an adaptation relationship with any basic general function module, develop a newly added independent customization function module independently according to the new function requirements, package it based on the newly added independent customization function to obtain a newly added independent customization function library, and update the target object based on the newly added independent customization function library.
[0075] The object generation method provided in the embodiments of this specification separates the basic general function module and the independent customization function module, making the maintenance and update of the target object more centralized and efficient. For example, the update of the independent customization function module can be carried out independently of the basic general function module, reducing the workload of maintenance.
[0076] The object generation method provided in the embodiments of this specification can use the adapter development mechanism to develop on the basis of the basic general function module and output a customized adaptation function module. That is, through the application of the adapter pattern, the basic general function module can be adjusted to meet the customization requirements without affecting the core code of the basic general function module. This flexibility makes the system easier to expand and better maintain, and can obtain a target object with high maintainability and flexible configuration. Moreover, due to the separation of the basic general function module and the independent customized function module, maintenance and update become more centralized and efficient.
[0077] See Figure 3a , Figure 3a which shows the structural framework diagram of an object generation method provided in an embodiment of this specification and applied to the game launcher scenario.
[0078] Conduct a project inventory of multiple game launchers (i.e., the development objects in the above embodiments), determine the functional requirements of the multiple game launchers. In fact, among the multiple functional requirements of the multiple game launchers, the functional requirements greater than a preset threshold (the preset threshold can be represented by a percentage, for example, the preset threshold is 80%) can be determined as the basic general functional requirements. Then, based on the basic general functional requirements, determine the basic general function module and encapsulate the basic general function module to obtain the basic general function library.
[0079] For a game launcher to be developed (i.e., the target object to be developed in the above embodiments), determine the functional requirements of the game launcher to be developed and determine whether the functional requirements of the game launcher to be developed can be met by the basic general function module in the basic general function library.
[0080] If so, further determine whether the functional requirements of the game launcher to be developed have a matching relationship or an adaptation relationship with the basic general function module. When the functional requirements of the game launcher to be developed match the basic general function module, directly determine the basic general function module in the basic general function module that matches the functional requirements as the target general function module. However, when the functional requirements of the game launcher to be developed have an adaptation relationship with the basic general function module, through the adapter, perform customization adjustments related to the functional requirements on the to-be-updated general function module determined to have an adaptation relationship with the functional requirements in the basic general function module to obtain the target adaptation function module. The adapter is mainly used for the customization adjustment of the basic general function module and the addition of similar functions. The advantage of this is that it will not affect the basic general function module. Functional adaptation is not simply adding functions, but developing on top of the function module. While adapting the original function module, it also needs to maintain its own independence, not affect the logic of the function module, and will not cause code redundancy.
[0081] In fact, the basic general function library obtained by packaging the basic general function modules can be provided for each game launcher to be developed, while the adapted and customized function library obtained through adaptation and modification is only for specific game launchers.
[0082] For example, Figure 3a in the case where the general function modules (i.e., the basic general function modules, one function corresponding to one module) include general function modules A, B, C, and D, and when a function requirement can be met by the customization and adjustment of the general function modules, adapter code is written for the corresponding general function modules to obtain the corresponding general function adapter modules (i.e., the target adapted function modules in the above embodiments). For example, customization and adjustment of the corresponding function requirements are respectively performed on the general function modules A and B to obtain the general function adapter module A and the general function adapter module B.
[0083] For function requirements that do not have an adaptation relationship with the general function modules, that is, function requirements that cannot be met by the customization and adjustment of the general function modules, independent customized function modules are determined according to the function requirements.
[0084] The customized general function adapter module A and the general function module A are packaged to obtain the adapted and customized function library A, and the customized general function adapter module B and the general function module B are packaged to obtain the adapted and customized function library B; that is, as Figure 3b shown, Figure 3b FIG. shows a schematic structural diagram of an adapted and customized function library provided by an embodiment of the present specification. The adapted and customized function library encapsulates general function modules and general function adapter modules obtained by performing function adaptation on the general function modules.
[0085] The general function modules C and D that do not require customization and adjustment are respectively packaged to obtain the corresponding basic general function libraries C and D; the independent customized function modules are packaged to obtain the corresponding independent customized function libraries.
[0086] The adapted and customized function library A, the adapted and customized function library B, the basic general function library C, the basic general function library D, and the independent customized function library are packaged to obtain a customized game launcher. Of course, when most function requirements are needed by most game launchers, the independent customized function modules or the target adapted function modules can be determined as general function modules to form a virtuous cycle.
[0087] For example, Figure 3c shown, Figure 3cIt shows a schematic diagram of a hierarchical design provided by an embodiment of this specification; during the packaging process, the core general layer and the general function layer can be encapsulated first. Here, the system is divided into multiple levels, and each level is responsible for specific functions and responsibilities. The core general layer is the most basic and core functional module in the system, which has nothing to do with the business logic of the game launcher, but provides the basic support required for the system to run. For example, the core general layer encapsulates a logging tool, a configuration management tool, etc. The general function layer is a functional module in the system that is related to the business but has a certain degree of generality. For example, in the scenario of a game launcher, the general function layer encapsulates general function modules such as the function of logging in to the game and the function of updating the game.
[0088] After determining the functional requirements of the game launcher to be developed, according to whether the functional requirements of the game launcher to be developed are adapted to the general function modules, it is determined whether to open a branch to add a function adaptation layer to the general function layer or to determine the corresponding independent customized function module according to the functional requirements to add an independent customized function layer. By adopting this development method, there will be no code of other game launcher logics in each game launcher, no code redundancy, and no redundant function libraries will affect the stability of the program itself.
[0089] The previous existing method was a game launcher program package that adapted to multiple channels and multiple games. Whenever the game launcher program was updated, multiple channel packages and game packages needed to be built, which was undoubtedly a waste of resources. There would be many abandoned packages in the program repository. Even when a game launcher had no function update, because other game launchers or channel packages needed to be updated, it had to be updated accordingly. Then, by adopting the object generation method provided by the embodiment of this specification, the way of using an adapter can avoid building so many useless packages during packaging and save resources.
[0090] The object generation method provided by the embodiment of this specification adopts a modular design method, separates and encapsulates the general function modules and independent customized function modules in the game launcher program into independent function libraries, introduces an adapter mechanism to adjust the functions of the general modules to adapt to different game launchers, meets the customization requirements of the game launcher, does not affect the stability of the core code, and the modular architecture makes testing and debugging more focused and targeted. Developers can test the general function modules and independent customized function modules separately, improving the efficiency and accuracy of testing, and the system is also more stable. In addition, the independent implementation of the independent customized function module allows for the separate development of function modules for specific requirements, maintaining the generality and stability of the general function modules, while enabling the update and maintenance of the independent customized function modules to be carried out independently of the general function modules, improving the maintainability and flexibility of the system, reducing the maintenance cost, and enhancing the user experience and the rapid iteration ability of the game launcher project.
[0091] Corresponding to the above method embodiments, the present application further provides an object generation device embodiment, Figure 4 which shows a schematic structural diagram of an object generation device provided by an embodiment of this specification. As Figure 4 shown, the device includes: A requirement determination module 402, configured to determine the functional requirements of the target object to be developed; A first function determination module 404, configured to, when it is determined that the functional requirements can be met by the basic general function modules of the basic general function library, determine the target function module corresponding to the functional requirements according to the basic general function modules of the basic general function library, where the basic general function modules of the basic general function library are the function modules that appear a number of times reaching a preset condition among multiple function modules; A second function determination module 406, configured to, when it is determined that the functional requirements cannot be met by the basic general function modules of the basic general function library, determine the independent customized function module of the target object to be developed according to the functional requirements; An object generation module 408, configured to generate a target object according to the target function module and / or the independent customized function module.
[0092] Optionally, the first function determination module 404 is further configured to: When the functional requirements match any basic general function module of the basic general function library, determine that the functional requirements can be met by the basic general function modules of the basic general function library, or When the functional requirements have an adaptation relationship with any basic general function module of the basic general function library, determine that the functional requirements can be met by the basic general function modules of the basic general function library; According to the basic general function modules of the basic general function library, determine the target general function module or target corresponding to the functional requirements.
[0093] Optionally, the first function determination module 404 is further configured to: Determine the basic general function module that matches the functional requirements among the basic general function modules of the basic general function library as the target general function module.
[0094] Optionally, the first function determination module 404 is further configured to: Determine the general function module to be updated that has an adaptation relationship with the functional requirements from the basic general function modules of the basic general function library, and perform customization adjustment related to the functional requirements on the general function module to be updated to obtain the target adaptation function module.
[0095] Optionally, the first function determination module 404 is further configured to: Write adapter code related to the function requirements for the general function module to be updated, implement customized adjustment of the general function to be updated, and obtain the target function module.
[0096] Optionally, the object generation module 408 is further configured to: Determine, from the basic general function library, the target general function library corresponding to the target general function module, and / or Determine, according to the target adaptation function module, the adaptation customization function library of the target object to be developed, and / or Determine, according to the independent customization function module, the independent customization function library of the target object to be developed; Generate the target object according to the target general function library, and / or the adaptation customization function library of the target object to be developed, and / or the independent customization function library.
[0097] Optionally, the object generation module 408 is further configured to: Determine, from the basic general function library, the general function library to be updated corresponding to the general function module to be updated, and update the general function library to be updated to the adaptation customization function library corresponding to the target object to be developed according to the target adaptation function module and the general function module to be updated.
[0098] The apparatus further includes: A function library determination module, configured to determine multiple function requirements of multiple development objects, determine the basic general function requirements from the multiple function requirements that reach a preset condition; determine the basic general function modules corresponding to the multiple development objects according to the basic general function requirements; and determine the basic general function library according to the basic general function modules.
[0099] The apparatus further includes: An object update module, configured to determine new functional requirements of the target object; determine whether any of the basic general function modules in the basic general function library has an adaptation relationship with the new functional requirements; if so, determine, from the basic general function library, a to-be-adapted general function module having an adaptation relationship with the new functional requirements, perform customization adjustment related to the new functional requirements on the to-be-adapted general function module to obtain a new adapted customized function module corresponding to the target object; if not, determine a new independent customized function module corresponding to the target object according to the new functional requirements; update the target object according to the new adapted customized function module and the to-be-adapted general function module, or the new independent customized function module.
[0100] Optionally, the object update device is further configured to: Determine a to-be-adapted general function library corresponding to the to-be-adapted general function module from the basic general function library, and update the to-be-adapted general function library to a new adapted customized function library corresponding to the target object according to the new adapted customized function module and the to-be-adapted general function module, or Determine a new independent customized function library corresponding to the target object according to the new independent customized function module; Update the target object according to the new adapted customized function library or the new independent customized function library.
[0101] The above is a schematic solution of an object generation device according to an embodiment of the present specification. It should be noted that the technical solution of the object generation device and the technical solution of the above object generation method belong to the same concept. For the details not described in the technical solution of the object generation device, reference can be made to the description of the technical solution of the above object generation method. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method. Each functional module is not an actual functional division or separation limitation. The device claim defined by such a group of functional modules should be understood as mainly implementing the functional module architecture of the solution through the computer program recorded in the specification, rather than mainly implementing the entity device of the solution through hardware means.
[0102] Figure 5 FIG. shows a structural block diagram of a computing device 500 according to an embodiment of the present specification. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 through a bus 530, and a database 550 is used to store data.
[0103] The computing device 500 also includes an access device 540, which enables the computing device 500 to communicate via one or more networks 560. Examples of such networks include the PSTN (Public Switched Telephone Network), LAN (Local Area Network), WAN (Wide Area Network), PAN (Personal Area Network), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of wired or wireless network interface (e.g., NIC (Network Interface Controller)), such as an IEEE802.11 WLAN (Wireless Local Area Network) wireless interface, Wi-MAX (Worldwide Interoperability for Microwave Access) interface, Ethernet interface, USB (Universal Serial Bus) interface, cellular network interface, Bluetooth interface, NFC (Near Field Communication).
[0104] In one embodiment of the present application, the above components of the computing device 500 and Figure 5 other components not shown may also be connected to each other, for example, via a bus. It should be understood that Figure 5 the block diagram of the computing device shown is for illustrative purposes only and is not a limitation on the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0105] The computing device 500 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet computer, personal digital assistant, laptop computer, notebook computer, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smart glasses, etc.) or other types of mobile devices, or a stationary computing device such as a desktop computer or PC (Personal Computer). The computing device 500 can also be a mobile or stationary server.
[0106] Wherein, the processor 520 is used to execute the computer-executable instructions of the object generation method.
[0107] The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above object generation method belong to the same concept. For the details not described in detail in the technical solution of the computing device, reference can be made to the description of the technical solution of the above object generation method.
[0108] An embodiment of the present application further provides a computer-readable storage medium, which stores computer programs / instructions. When the computer programs / instructions are executed by a processor, they are used for the object generation method.
[0109] The above is a schematic solution of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above object generation method belong to the same concept. For the details not described in detail in the technical solution of the storage medium, reference can be made to the description of the technical solution of the above object generation method.
[0110] An embodiment of the present application further provides a computer program product, including computer programs / instructions. When the computer programs / instructions are executed by a processor, they are used for the object generation method.
[0111] The above is a schematic solution of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the above object generation method belong to the same concept. For the details not described in detail in the technical solution of the computer program product, reference can be made to the description of the technical solution of the above object generation method.
[0112] The computer programs / instructions include computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0113] It should be noted that, for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0114] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0115] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The alternative embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made according to the content of this application. The present application selects and specifically describes these embodiments in order to better explain the principle and practical application of the present application, so that those skilled in the art can well understand and utilize the present application. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A method for generating an object, characterized in that: include: Determine the functional requirements of the target object to be developed; In the case where it is determined that the functional requirement can be satisfied based on the basic universal functional module of the basic universal functional library, a target functional module corresponding to the functional requirement is determined according to the basic universal functional module of the basic universal functional library, wherein the basic universal functional module of the basic universal functional library is a functional module whose appearance times reach a preset condition among multiple functional modules of multiple development objects; If it is determined that the functional requirement cannot be satisfied based on the basic general functional modules of the basic general functional library, then determining the independent customized functional modules of the target object to be developed according to the functional requirement; A target object is generated according to the target functional module and / or the independent customized functional module.
2. The object generation method according to claim 1, characterized in that: The determining that the functional requirement can be satisfied based on the basic general function module of the basic general function library includes: In the case where the functional requirement matches any basic universal function module of the basic universal function library, determining that the functional requirement can be satisfied based on the basic universal function module of the basic universal function library, or In the case where the functional requirement has an adaptation relationship with any basic universal function module of the basic universal function library, determining that the functional requirement can be satisfied based on the basic universal function module of the basic universal function library; Determining the target function module corresponding to the function requirement according to the basic general functions of the basic general function library includes: According to the basic universal function modules of the basic universal function library, a target universal function module or a target corresponding to the functional requirement is determined.
3. The object generation method according to claim 2, characterized in that: When the functional requirement matches any basic universal function module of the basic universal function library, The determining, according to the basic general function module of the basic general function library, a target general function module or a target adaptation function module corresponding to the functional requirement comprises: A basic universal function module in the basic universal function library that matches the function requirement is determined as the target universal function module.
4. The object generation method according to claim 2, characterized in that: In the case where the functional requirement has an adaptation relationship with any basic universal function module of the basic universal function library, The determining, according to the basic general function module of the basic general function library, a target general function module or a target adaptation function module corresponding to the functional requirement comprises: From the basic general function modules of the basic general function library, determine the general function modules to be updated that have an adaptation relationship with the functional requirements, perform customized adjustments related to the functional requirements on the general function modules to be updated, and obtain the target adaptation function modules.
5. The object generation method according to claim 4, characterized in that: The step of performing customized adjustment on the to-be-updated general function module in accordance with the function requirement to obtain the target function module includes: An adapter code related to the functional requirements is written for the general functional module to be updated, so as to implement customized adjustment of the general function to be updated and obtain the target functional module.
6. The object generation method according to claim 4, characterized in that: The generating a target object according to the target function module and / or the independent customized function module comprises: Determine a target universal function library corresponding to the target universal function module from the basic universal function library, and / or Determine the adaptation customization function library of the target object to be developed according to the target adaptation function module, and / or Determining the independent customized function library of the target object to be developed according to the independent customized function module; The target object is generated according to the target general function library, and / or the adaptation customized function library of the target object to be developed, and / or the independent customized function library.
7. The object generation method according to claim 6, characterized in that: Determining the adaptation customization function library of the target object to be developed according to the target adaptation function module includes: From the basic general function library, determine the general function library to be updated corresponding to the general function module to be updated, and update the general function library to be updated to the adaptation customized function library corresponding to the target object to be developed according to the target adaptation function module and the general function module to be updated.
8. The object generation method according to any one of claims 1 to 7, characterized in that: Before determining the functional requirements of the target object to be developed, the method further includes: Determine multiple functional requirements of multiple development objects, and determine the functional requirements whose occurrence times reach a preset condition among the multiple functional requirements as basic general functional requirements; Determining basic general function modules corresponding to the multiple development objects according to the basic general function requirements; According to the basic universal function module, the basic universal function library is determined.
9. The object generation method according to any one of claims 1 to 7, characterized in that: After the target object is generated, the method further includes: Determine the new functional requirements of the target object; Determine whether the newly added function requirement has an adaptation relationship with any basic general function module in the basic general function library; If so, determine the general function module to be adapted that has an adaptation relationship with the new function requirement from the basic general function library, perform customized adjustments related to the new function requirement on the general function module to be adapted, and obtain the new adaptation customized function module corresponding to the target object; If not, determining a new independent customized function module corresponding to the target object according to the new function requirement; The target object is updated according to the newly added adaptation customized function module and the general function module to be adapted, or the newly added independent customized function module.
10. The object generation method according to claim 9, characterized in that: The updating of the target object according to the newly added adaptation customized function module and the to-be-adapted general function module, or the newly added independent customized function module, includes: Determine the general function library to be adapted corresponding to the general function module to be adapted from the basic general function library, and update the general function library to be adapted to the newly added customized adaptation function library corresponding to the target object according to the newly added customized adaptation function module and the general function module to be adapted, or Determine, according to the newly added independent customized function module, a newly added independent customized function library corresponding to the target object; The target object is updated according to the newly added adaptation customized function library or the newly added independent customized function library.
11. An object generation device, characterized in that: include: A requirement determination module, configured to determine the functional requirements of a target object to be developed; A first function determination module is configured to determine a target function module corresponding to the function requirement based on the basic general function modules of the basic general function library when it is determined that the function requirement can be satisfied based on the basic general function modules of the basic general function library, wherein the basic general function modules of the basic general function library are function modules whose occurrence times reach a preset condition in the multiple function modules; A second function determination module is configured to determine, when it is determined that the function requirement cannot be satisfied based on the basic general function module of the basic general function library, an independent customized function module of the target object to be developed according to the function requirement; The object generation module is configured to generate a target object according to the target function module and / or the independent customized function module.
12. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the method according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
14. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 10 when executed by a processor.
Citation Information
Cited By
Basic capability package packaging and calling method in low-code platform
CN121050731A