Product component configuration information determination method and device, equipment and medium
By receiving user configuration requests, using preset subcomponent configuration options and component configuration files to determine and verify server product component configuration information, the problems of low efficiency and insufficient accuracy in the existing technology are solved, and fast, flexible and accurate Configuration information is confirmed.
Patent Information
- Application Number
- CN202411284428.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-31
Smart Images

Figure CN119225856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment and medium for determining product component configuration information. Background Art
[0002] Taking server products as an example, with the rapid development of technologies in the fields of big data, cloud computing, and artificial intelligence, the demand for server products in various application scenarios is increasing and becoming more and more diversified. Faced with the increasingly diversified development trend of configuration requirements for components such as CPU and memory in server products in various application scenarios, the related technologies that use manual methods to determine component configuration information that suits user configuration requirements have technical problems such as low efficiency and low accuracy.
[0003] Therefore, there is an urgent need for a technical solution that can quickly, flexibly and accurately determine product component configuration information that meets user configuration requirements. Summary of the invention
[0004] The present application provides a method, apparatus, device and medium for determining product component configuration information, which are used to quickly, flexibly and accurately determine product component configuration information that meets user configuration requirements.
[0005] In a first aspect, the present application provides a method for determining product component configuration information, the method comprising:
[0006] If a configuration request for a product of any product type is received, displaying preset sub-component configuration options corresponding to the product type;
[0007] Identifying a configuration requirement based on the subcomponent configuration option input, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes a model and quantity of the target subcomponent;
[0008] Determining configuration information of a first subcomponent group including configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including configuration information of the target subcomponent;
[0009] Verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutually exclusive relationship, a quantity applicability relationship, and a quantity mutually exclusive relationship between subcomponents;
[0010] If the verification passes, the configuration information of the first sub-component group is determined to be the product component configuration information that meets the configuration requirements.
[0011] Through the above method, since the preset sub-component configuration options corresponding to the product type can be displayed when a configuration request for a product of any product type input by the user is received, the configuration requirements input by the user based on the sub-component configuration options can be identified, and the configuration information such as the model and quantity of the target sub-component carried in the configuration requirements can be identified; thereafter, the configuration information of the first sub-component group containing the configuration information of the target sub-component can be determined based on the pre-saved component configuration file of the product type containing the configuration information of the target sub-component; and the configuration information of the first sub-component group can be verified based on the pre-saved component verification file of the product type containing the configuration information of the target sub-component. If the verification passes, the configuration information of the first sub-component group can be determined as the product component configuration information that meets the user's configuration requirements. Based on this, the purpose of quickly, flexibly and accurately determining the product component configuration information that meets the user's configuration requirements can be achieved.
[0012] In a possible implementation, the determining, based on a pre-saved component configuration file of the product type containing the configuration information of the target subcomponent, the configuration information of the first subcomponent group containing the configuration information of the target subcomponent includes:
[0013] If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template;
[0014] If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined;
[0015] The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
[0016] Through the above method, the configuration information of the second sub-component group can be determined based on the component relationship template, and for the third sub-component in each preset sub-component whose configuration information cannot be determined based on the component relationship template, the configuration information of the third sub-component can be determined based on the corresponding component configuration expression, thereby improving the speed and flexibility of determining the product component configuration information, and improving the versatility and scalability of the process of selecting product component configuration information that suits the user's configuration requirements.
[0017] In a possible implementation, the verifying the configuration information of the first subcomponent group based on the pre-saved component verification file of the product type containing the configuration information of the target subcomponent includes:
[0018] The configuration information of the first sub-component group is verified based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component.
[0019] Through the above method, the configuration information of the first sub-component group can be double-checked in combination with the component relationship template and the component configuration expression, thereby improving the accuracy of the determined product component configuration information that meets the user's configuration requirements.
[0020] In a possible implementation, after verifying the configuration information of the first subcomponent group based on the pre-saved component verification file of the product type containing the configuration information of the target subcomponent, the method further includes:
[0021] If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the component configuration expression, determining the configuration information of the fourth subcomponent group including the configuration information of the target subcomponent;
[0022] The configuration information of the fourth sub-component group is determined as the product component configuration information.
[0023] Through the above method, when the configuration information of any sub-component in the configuration information of the first sub-component group does not meet the requirements of the component configuration expression, the configuration information of the fourth sub-component group including the configuration information of the target sub-component can be determined based on the component configuration expression, and the configuration information of the fourth sub-component group can be directly determined as the product component configuration information that meets the user configuration requirements, thereby improving the flexibility and accuracy of determining the product component configuration information that meets the user configuration requirements.
[0024] In a possible implementation, if the component configuration file is a component configuration expression of the product type containing configuration information of the target subcomponent, then the component verification file is a component relationship template of the product type containing configuration information of the target subcomponent.
[0025] Through the above method, the configuration information of the first sub-component group can be double-checked in combination with the component relationship template and the component configuration expression, thereby improving the accuracy of the determined product component configuration information that meets the user's configuration requirements.
[0026] In a possible implementation, the method further includes:
[0027] If the verification fails, a prompt message indicating that the verification fails is output, and the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template is output.
[0028] Through the above method, when the configuration information of the first sub-component group fails to pass the verification of the component relationship template, a prompt message of verification failure can be output, and the configuration information of the sub-components in the configuration information of the first sub-component group that does not meet the requirements of the component relationship template can be output for reference by users, which can improve the accuracy of determining product component configuration information that meets user configuration requirements.
[0029] In a possible implementation, the method further includes:
[0030] For each subcomponent in the product component configuration information, it is identified whether the subcomponent is configured to be displayed to the user for viewing; if so, the configuration information of the subcomponent is displayed.
[0031] Through the above method, for each sub-component in the product component configuration information, it is possible to identify whether the sub-component is configured to be displayed to the user for viewing, so that the configuration information of the sub-component that the user needs to view can be selectively displayed to the user, thereby not only ensuring the comprehensiveness of the sub-components included in the product configuration information, but also improving the user experience.
[0032] In a possible implementation, the method further includes:
[0033] Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
[0034] Through the above method, the price information of the corresponding product component configuration information can be quickly and accurately determined based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, and the price information can be displayed for users to view, which can improve the user experience.
[0035] In a second aspect, the present application provides a device for determining product component configuration information, the device comprising:
[0036] A receiving module, configured to display preset sub-component configuration options corresponding to the product type upon receiving a configuration request for a product of any product type;
[0037] An identification module, used to identify a configuration requirement input based on the subcomponent configuration option, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes the model and quantity of the target subcomponent;
[0038] A first determining module, configured to determine configuration information of a first subcomponent group including configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including configuration information of the target subcomponent;
[0039] a verification module, configured to verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutually exclusive relationship, a quantity applicability relationship, and a quantity mutually exclusive relationship between subcomponents;
[0040] The second determination module is used to determine the configuration information of the first sub-component group as product component configuration information that meets the configuration requirements if the verification passes.
[0041] In a possible implementation manner, the first determining module is specifically configured to:
[0042] If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template;
[0043] If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined;
[0044] The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
[0045] In a possible implementation manner, the verification module is specifically used to:
[0046] The configuration information of the first sub-component group is verified based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component.
[0047] In a possible implementation manner, the second determining module is further configured to:
[0048] If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the component configuration expression, determining the configuration information of the fourth subcomponent group including the configuration information of the target subcomponent;
[0049] The configuration information of the fourth sub-component group is determined as the product component configuration information.
[0050] In a possible implementation, if the component configuration file is a component configuration expression of the product type containing configuration information of the target subcomponent, then the component verification file is a component relationship template of the product type containing configuration information of the target subcomponent.
[0051] In a possible implementation manner, the verification module is further used to:
[0052] If the verification fails, a prompt message indicating that the verification fails is output, and the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template is output.
[0053] In a possible implementation, the device further includes:
[0054] The display module is used to identify, for each sub-component in the product component configuration information, whether the sub-component is configured to be displayed to the user for viewing, and if so, display the configuration information of the sub-component.
[0055] In a possible implementation manner, the second determining module is further configured to:
[0056] Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
[0057] In a third aspect, the present application further provides an electronic device, comprising at least a processor and a memory, wherein the processor is used to implement the steps of the method for determining product component configuration information as described in any one of the first aspects when executing a computer program stored in the memory.
[0058] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the steps of the method for determining product component configuration information as described in any one of the first aspects.
[0059] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the steps of the method for determining product component configuration information as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0061] Figure 1 A schematic diagram of a process for determining configuration information of a product component provided in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram of a process for determining configuration information of another product component provided in an embodiment of the present application;
[0064] Figure 4 A schematic diagram of a process for determining configuration information of another product component provided in an embodiment of the present application;
[0065] Figure 5 A schematic diagram of a process for determining configuration information of another product component provided in an embodiment of the present application;
[0066] Figure 6 A schematic diagram of a process for determining configuration information of another product component provided in an embodiment of the present application;
[0067] Figure 7 A schematic diagram of a process for determining configuration information of another product component provided in an embodiment of the present application;
[0068] Figure 8 A schematic diagram of the structure of a device for determining configuration information of a product component provided in an embodiment of the present application;
[0069] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0071] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0072] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0073] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0074] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0076] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
[0077] The embodiments of the present application provide a method, apparatus, device and medium for determining product component configuration information. In the method, upon receiving a configuration request for a product of any product type input by a user, preset sub-component configuration options corresponding to the product type can be displayed, the configuration requirements input by the user based on the sub-component configuration options can be identified, and the configuration information such as the model and quantity of the target sub-component carried in the configuration requirements can be identified; thereafter, based on a pre-saved component configuration file of the product type containing the configuration information of the target sub-component, the configuration information of a first sub-component group containing the configuration information of the target sub-component can be determined; and based on a pre-saved component verification file of the product type containing the configuration information of the target sub-component, the configuration information of the first sub-component group can be verified. If the verification passes, the configuration information of the first sub-component group can be determined as product component configuration information that meets the user configuration requirements. Based on this, the purpose of quickly, flexibly and accurately determining product component configuration information that meets the user configuration requirements can be achieved.
[0078] Embodiment 1:
[0079] Figure 1 A schematic diagram of a process for determining product component configuration information provided in an embodiment of the present application, the process comprising:
[0080] S101: If a configuration request for a product of any product type is received, display preset sub-component configuration options corresponding to the product type.
[0081] The method for determining product component configuration information provided in the embodiment of the present application is applied to an electronic device, which may be, for example, a personal computer (PC), a mobile terminal, a server, etc., and the present application does not make any specific limitation on this.
[0082] In a possible implementation, a user may input a configuration request for a product of any product type in an electronic device. For example, a user may input information such as a model of a server, mobile terminal, or PC in a configuration request interface, and click a confirmation button to trigger a configuration request. The electronic device may receive the configuration request input (triggered) by the user, and may identify the product type (such as the model of the product, etc.) carried in the configuration request.
[0083] In a possible implementation, in order to quickly, flexibly and accurately determine the product component configuration information that suits the user's configuration requirements, the electronic device may be pre-set with configuration options for each product type, such as the models and quantities of sub-components such as the central processing unit (CPU), memory, and hard disk, etc., which can be selected by the user (for ease of description, referred to as sub-component configuration options). After the electronic device receives the configuration request input by the user and identifies the product type carried in the configuration request, it can display the preset (pre-set) sub-component configuration options corresponding to the product of the product type. Among them, the sub-component configuration options can be flexibly set according to demand, and this application does not make specific limitations on this.
[0084] S102: Identify a configuration requirement based on the subcomponent configuration option input, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes the model and quantity of the target subcomponent.
[0085] In a possible implementation, the user can select the model and quantity of the target subcomponent (such as CPU, memory, hard disk, etc.) to be configured from the subcomponent configuration options displayed by the electronic device, and the electronic device can receive and identify the configuration requirements input (selected) by the user based on the subcomponent configuration options, and identify the model and quantity of the target subcomponent carried in the configuration requirements. Among them, the configuration information can be flexibly set according to the requirements, and this application does not make specific restrictions on this. In a possible implementation, in order to facilitate the user to select (input) configuration information (configuration requirements), the subcomponent configuration options displayed by the electronic device can be displayed in the form of configuration packages of different configuration levels such as high configuration, medium configuration, and low configuration. Each configuration package can contain several subcomponents, and the configuration options of the subcomponents contained in different configuration packages can be different, which is convenient for users to quickly and easily input the desired target subcomponent model and quantity and other configuration information.
[0086] S103: Determine configuration information of a first subcomponent group including the configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including the configuration information of the target subcomponent.
[0087] In a possible implementation, in order to quickly, flexibly and accurately determine the product component configuration information that meets the user's configuration requirements, the electronic device can identify a component configuration file that is suitable for the above-mentioned product type and contains the configuration information of the above-mentioned target subcomponent from a pre-saved component configuration file. Among them, the component configuration file can be a component configuration expression constructed using an open source expression language (such as MVEL, etc.), or it can be a component relationship template (also referred to as a model) developed using a natural language. This application does not specifically limit the specific form and content of the component configuration file, and it can be flexibly set according to requirements. The component configuration file can be configured with model applicability relationships, model mutual exclusion relationships, quantity applicability relationships, quantity mutual exclusion relationships, etc. between the subcomponents of the product of this product type. Based on the component configuration file, the configuration information of several subcomponents (for ease of description, referred to as the first subcomponent group) containing the configuration information of the above-mentioned target subcomponent can be determined.
[0088] For example, assume that the component configuration file is configured that: if the CPU selects model A, the memory needs to select model B (model A and model B are in a model applicable relationship), and the memory cannot select model C (model A and model C are in a model mutually exclusive relationship). If the model of the CPU selected by the user in the target sub-component group is model A, the memory can be configured as model B memory based on the component configuration file.
[0089] As another example, assume that the component configuration file is configured that the amount of memory needs to have the same configuration relationship as the number of CPUs. If the number of CPUs selected by the user in the target sub-component group is 1, the amount of memory can also be configured to 1 based on the component configuration file.
[0090] As another example, assume that the component configuration file is configured: if the number of CPUs selected is 1, the number of memories needs to be configured as 2 (the number of memories 2 and the number of CPUs 1 are in a quantity applicable relationship), and the number of memories cannot be configured as 5 (the number of memories 5 and the number of CPUs 1 are in a quantity mutually exclusive relationship). If the number of CPUs selected by the user in the target sub-component group is 1, the number of memories can be configured to 2 based on the component configuration file.
[0091] As another example, the component configuration file may also be configured with: if the number of sub-component O is a first set value (such as 1, etc.), then the sum of the number of sub-components P and sub-component Q is a second set value (such as 5, etc.) for the configuration relationship between the number of sub-components. The component configuration file may also be configured with: if the number of sub-component O is a first set value (such as 1, etc.), then the number of sub-component P may be a second set value, a third set value, a fourth set value, etc. for enumerating the number of sub-components for the configuration relationship between the number of sub-components. The component configuration file may be flexibly set according to demand, and this application does not specifically limit this.
[0092] Taking the component configuration file as an example of several component configuration expressions, these component configuration expressions can be processed one by one (also called loop processing), and the configuration information of the first sub-component group containing the configuration information of the target sub-component can be determined based on the model applicability relationship, model mutual exclusion relationship, quantity applicability relationship, quantity mutual exclusion relationship, etc. between the sub-components contained in these component configuration expressions. No further details will be given here.
[0093] S104: Verify the configuration information of the first sub-component group based on a pre-saved component verification file of the product type containing the configuration information of the target sub-component, wherein the component verification file contains at least one of a model applicability relationship, a model mutual exclusion relationship, a quantity applicability relationship, and a quantity mutual exclusion relationship between sub-components.
[0094] In a possible implementation, after the configuration information of the first sub-component group is determined based on the above-mentioned component configuration file, in order to quickly, flexibly and accurately determine the product component configuration information that meets the user's configuration requirements, the component verification file corresponding to the above-mentioned product type containing the configuration information of the above-mentioned target sub-component can be identified from the pre-saved component verification files, and the configuration information of the first sub-component group can be secondary verified based on the component verification file. In a possible implementation, when the component configuration file is a component configuration expression of the above-mentioned product type containing the configuration information of the above-mentioned target sub-component, the component verification file can be a component relationship template (model) of the product type containing the configuration information of the above-mentioned target sub-component. And when the component configuration file is a component relationship template of the product type containing the configuration information of the above-mentioned target sub-component, the component verification file can be a component configuration expression of the product type containing the configuration information of the above-mentioned target sub-component.
[0095] The embodiment of the present application can combine the component relationship template and the component configuration expression to perform a secondary check on the configuration information of the first sub-component group, thereby improving the accuracy of the determined product component configuration information that is suitable for the user's configuration requirements.
[0096] In a possible implementation, the component verification file may verify the configuration information of all subcomponents in the first subcomponent group, or may only verify the configuration information of some subcomponents in the first subcomponent group, and this application does not make specific limitations on this. Exemplarily, when the component configuration file is a component configuration expression and the component verification file is a component relationship template, assuming that the first subcomponent group determined based on the component configuration expression contains the configuration information of 10 subcomponents, and based on the component relationship template, only the configuration information of 8 of the 10 subcomponents can be verified, then the configuration information of the 8 subcomponents can be verified based only on the model applicability relationship, model mutual exclusion relationship, quantity applicability relationship, quantity mutual exclusion relationship, etc. between the 8 subcomponents in the component relationship template.
[0097] S105: If the verification passes, the configuration information of the first sub-component group is determined as product component configuration information that meets the configuration requirements.
[0098] In a possible implementation, if the configuration information of the first subcomponent complies with the model applicability relationship, model mutual exclusion relationship, quantity applicability relationship, quantity mutual exclusion relationship, etc. between the subcomponents contained in the component verification file, it can be considered that the configuration information such as the model and quantity of each subcomponent in the first subcomponent group is reasonable, and it can be considered that the configuration information of the first subcomponent group has passed the verification (verification passed). At this time, the configuration information of the first subcomponent group can be determined as product component configuration information that meets the user's configuration requirements.
[0099] In a possible implementation, taking the component configuration file as the component configuration expression and the component verification file as the component relationship template as an example, if it is verified based on the component relationship template that the configuration information of the first sub-component group determined based on the component configuration expression contains configuration information of sub-components that do not meet the requirements of the component relationship template, it can be considered that the configuration information such as the model and quantity of sub-components in the first sub-component group determined based on the component configuration expression is not reasonable, and it can be considered that the configuration information of the first sub-component group has not passed the verification (verification failed). At this time, a prompt message of verification failure can be output, and the configuration information of the sub-components that do not meet the requirements of the component relationship template in the configuration information of the first sub-component group can be output for reference by users who use the component configuration expression. The user can correct the component configuration expression, etc., triggering the electronic device to re-execute step S103 to re-determine the configuration information of the first sub-component group based on the corrected component configuration expression, which will not be repeated here.
[0100] Since the present application can output a prompt message indicating that the verification failed when the configuration information of the first sub-component group fails the verification of the component relationship template, and output the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template for reference by users, the accuracy of determining the product component configuration information that meets the user's configuration requirements can be improved.
[0101] Since the present application can display the preset subcomponent configuration options corresponding to the product type when receiving a configuration request for a product of any product type input by the user, it can identify the configuration requirements input by the user based on the subcomponent configuration options, and identify the configuration information such as the model and quantity of the target subcomponent carried in the configuration requirements; thereafter, based on the pre-saved component configuration file of the product type containing the configuration information of the target subcomponent, the configuration information of the first subcomponent group containing the configuration information of the target subcomponent can be determined; and based on the pre-saved component verification file of the product type containing the configuration information of the target subcomponent, the configuration information of the first subcomponent group can be verified. If the verification passes, the configuration information of the first subcomponent group can be determined as the product component configuration information that meets the user's configuration requirements. Based on this, the purpose of quickly, flexibly and accurately determining the product component configuration information that meets the user's configuration requirements can be achieved.
[0102] Embodiment 2:
[0103] In order to quickly, flexibly and accurately determine product component configuration information that meets the user's configuration requirements, based on the above embodiment, in the embodiment of the present application, the component configuration file containing the configuration information of the target subcomponent of the product type saved in advance determines the configuration information of the first subcomponent group containing the configuration information of the target subcomponent, including:
[0104] If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template;
[0105] If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined;
[0106] The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
[0107] In one possible implementation, the component configuration file may be a component relationship template developed using natural language. When the component configuration file is a component relationship template, the configuration information of the sub-component group (referred to as the second sub-component group for ease of description) including the target sub-component may be determined based on the component relationship template.
[0108] In a possible implementation, considering that the flexibility and convenience of constructing component configuration expressions using open source expression languages are better than developing component relationship templates using natural languages, that is, the development difficulty of component relationship templates is greater and the development time is longer, while the development difficulty of component configuration expressions is less and the development time is shorter. For ease of understanding, the component relationship template can also be understood as the first generation technology, and the component configuration expression can be understood as the upgraded second generation technology. The configuration information of the second sub-component group determined based on the component relationship template may not include all the preset sub-components. In this case, when it is identified that each preset sub-component corresponding to the product type contains other sub-components (for ease of description, referred to as the third sub-component) outside the second sub-component group determined based on the component relationship template, the configuration information of the third sub-component can be determined based on the pre-saved component configuration expression of the product type containing the configuration information of the target sub-component. After that, the configuration information of the second sub-component and the configuration information of the third sub-component can be determined as the configuration information of the first sub-component group determined based on the component configuration file.
[0109] For example, assuming that the preset sub-components for a certain model of server include a total of 20 sub-components, and only the configuration information of 18 of the 20 sub-components is determined based on the component relationship template, then for the remaining two sub-components whose configuration information cannot be determined based on the component relationship template, the configuration information such as the models and quantities of these two sub-components can be determined based on the corresponding component configuration expressions.
[0110] Since the present application can determine the configuration information of the second sub-component group based on the component relationship template, and can determine the configuration information of the third sub-component in each preset sub-component for which the configuration information cannot be determined based on the component relationship template, based on the corresponding component configuration expression, the speed and flexibility of determining the product component configuration information can be improved, and the versatility and scalability of the process of selecting product component configuration information that suits the user's configuration requirements can be improved.
[0111] In a possible implementation, when the configuration information of the first subcomponent is determined based on the component relationship template, or when the configuration information of the second subcomponent group is determined based on the component relationship template and the configuration information of the third subcomponent is determined based on the component configuration expression, the configuration information of the first subcomponent group can be verified based on the pre-saved component configuration expression of the above-mentioned product type that contains the configuration information of the above-mentioned target subcomponent. For example, the model, quantity, etc. between the subcomponents in the configuration information of the first subcomponent group can be verified based on the model applicability relationship, model mutual exclusion relationship, quantity applicability relationship, quantity mutual exclusion relationship, etc. between the subcomponents of the above-mentioned product type configured in the component configuration expression.
[0112] In a possible implementation, if the configuration information of the first subcomponent determined based on a component configuration file (such as a component relationship template) complies with the model applicability relationship, model mutual exclusion relationship, quantity applicability relationship, quantity mutual exclusion relationship, etc. between the subcomponents contained in the component configuration expression, it can be considered that the configuration information such as the model and quantity of each subcomponent in the first subcomponent group is reasonable, and it can be considered that the configuration information of the first subcomponent group has passed the verification (verification passed). At this time, the configuration information of the first subcomponent group can be determined as product component configuration information that meets the user's configuration requirements.
[0113] The embodiment of the present application can combine the component relationship template and the component configuration expression to perform a secondary check on the configuration information of the first sub-component group, thereby improving the accuracy of the determined product component configuration information that is suitable for the user's configuration requirements.
[0114] In one possible implementation, if it is found based on the component configuration expression that the configuration information of the first sub-component group contains configuration information that does not meet the requirements of the component configuration expression, it can be considered that at this time, there is a situation in which the configuration information such as the model and quantity of the sub-components in the first sub-component group is not reasonable, and it can be considered that the first sub-component group has failed the verification (failed the verification). At this time, in order to flexibly and accurately determine the product component configuration information that meets the user's configuration requirements, the configuration information of the fourth sub-component group containing the configuration information of the target sub-component can be determined based on the component configuration expression of the above-mentioned product type containing the configuration information of the above-mentioned target sub-component, and the configuration information of the fourth sub-component group can be directly determined as the product component configuration information that meets the user's configuration requirements.
[0115] Since the present application can determine the configuration information of the fourth sub-component group that includes the configuration information of the target sub-component based on the component configuration expression when the configuration information of any sub-component in the configuration information of the first sub-component group does not meet the requirements of the component configuration expression, the configuration information of the fourth sub-component group can be directly determined as the product component configuration information that meets the user's configuration requirements, thereby improving the flexibility and accuracy of determining the product component configuration information that meets the user's configuration requirements.
[0116] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 2 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0117] S201: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0118] S202: Identify a configuration requirement based on a sub-component configuration option input, where the configuration requirement carries configuration information such as the model and quantity of the target sub-component.
[0119] S203: Determine configuration information of the first subcomponent group including the configuration information of the target subcomponent based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent.
[0120] S204: Verify the configuration information of the first sub-component group based on the pre-saved component relationship template of the product type containing the configuration information of the target sub-component. If the verification passes, proceed to S205; if the verification fails, proceed to S206.
[0121] S205: If the verification passes, the configuration information of the first sub-component group is determined as product component configuration information that meets the user's configuration requirements.
[0122] S206: If the verification fails, output a prompt message indicating that the verification fails, and output the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template.
[0123] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 3 , Figure 3 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0124] S301: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0125] S302: Identify a configuration requirement based on a sub-component configuration option input, where the configuration requirement carries configuration information such as the model and quantity of the target sub-component.
[0126] S303: Determine configuration information of the first subcomponent group including the configuration information of the target subcomponent based on a pre-saved component relationship template of the product type including the configuration information of the target subcomponent.
[0127] S304: Verify the configuration information of the first sub-component group based on the pre-saved component configuration expression of the product type containing the configuration information of the target sub-component. If the verification passes, proceed to S305; if the verification fails, proceed to S306.
[0128] S305: If the verification passes, the configuration information of the first sub-component group is determined as product component configuration information that meets the user's configuration requirements.
[0129] S306: If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the fourth subcomponent group containing the configuration information of the target subcomponent; and determine the configuration information of the fourth subcomponent group as product component configuration information that meets the user configuration requirements.
[0130] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 4 , Figure 4 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0131] S401: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0132] S402: Identify a configuration requirement based on a sub-component configuration option input, where the configuration requirement carries configuration information such as the model and quantity of the target sub-component.
[0133] S403: Based on a pre-saved component relationship template of the product type containing the configuration information of the target subcomponent, determine the configuration information of the second subcomponent group containing the target subcomponent; if it is identified that each preset subcomponent corresponding to the product type contains a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the third subcomponent; determine the configuration information of the second subcomponent group and the configuration information of the third subcomponent as the configuration information of the first subcomponent group.
[0134] S404: Verify the configuration information of the first sub-component group based on the pre-saved component configuration expression of the product type containing the configuration information of the target sub-component. If the verification passes, proceed to S405; if the verification fails, proceed to S406.
[0135] S405: If the verification passes, the configuration information of the first sub-component group is determined as product component configuration information that meets the user's configuration requirements.
[0136] S406: If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the fourth subcomponent group containing the configuration information of the target subcomponent; and determine the configuration information of the fourth subcomponent group as product component configuration information that meets the user configuration requirements.
[0137] Embodiment 3:
[0138] In order to quickly and accurately determine the price information of the product component configuration information, based on the above embodiments, in the embodiment of the present application, the method further includes:
[0139] Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
[0140] In a possible implementation, after determining the product component configuration information that meets the user's configuration requirements, the unit price of each subcomponent included in the product component configuration information can be determined based on the pre-configured subcomponent price information of the product type, and for each subcomponent in the product component configuration information, the product of the unit price of the seed component and the quantity of the seed component can be used as the price of the seed component. After that, the sum of the prices of each subcomponent can be used as the price (price information) corresponding to the product component configuration information that meets the user's configuration requirements. In a possible implementation, the price information can be displayed for users to view, thereby improving user experience.
[0141] This application can quickly and accurately determine the price information of the corresponding product component configuration information based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, and can display the price information for users to view, thereby improving the user experience.
[0142] Embodiment 4:
[0143] In order to take into account the comprehensiveness of the subcomponents included in the product configuration information and the user experience, based on the above embodiments, in the embodiment of the present application, the method further includes:
[0144] For each subcomponent in the product component configuration information, it is identified whether the subcomponent is configured to be displayed to the user for viewing; if so, the configuration information of the subcomponent is displayed.
[0145] In one possible implementation, taking into account that the product component configuration information may contain information about sub-components that do not need to be displayed to the user, such as the number of screws, etc., and these sub-components are also sub-components that must be included in the product, the cost of these sub-components needs to be considered when calculating the price information of the product, etc., in order to take into account the comprehensiveness of the sub-components included in the product configuration information and the user experience, for each sub-component in the product component configuration information, it can be identified whether the sub-component is configured to be displayed to the user. If the sub-component is configured to be displayed to the user, the configuration information of the sub-component can be displayed. If the sub-component is not configured to be displayed to the user, or the sub-component is configured not to be displayed to the user, then in order to improve the user experience, etc., the configuration information of the sub-component may not be displayed.
[0146] Since the present application can identify whether each sub-component in the product component configuration information is configured to be displayed to the user for viewing, it can selectively display the configuration information of the sub-component that the user needs to view, thereby not only ensuring the comprehensiveness of the sub-components included in the product configuration information, but also improving the user experience.
[0147] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 5 , Figure 5 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0148] S501: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0149] Among them, in order to facilitate user selection, the sub-component configuration options displayed by the electronic device can be displayed in the form of configuration packages (also called basic data) of different configuration levels such as high configuration, medium configuration, and low configuration. The configuration options of sub-components contained in different configuration packages may be different.
[0150] S502: Identify a configuration requirement based on a sub-component configuration option input, where the configuration requirement carries configuration information such as the model and quantity of the target sub-component.
[0151] S503: Based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component, configuration information of the first sub-component group containing the configuration information of the target sub-component is determined.
[0152] Among them, there can be multiple pre-saved component configuration expressions of the product type containing the configuration information of the target sub-components, and the configuration information of the determined sub-components can be continuously updated (corrected) by utilizing (loop processing) these multiple component configuration expressions one by one. When all the pre-saved component configuration expressions of the product type containing the configuration information of the target sub-components are processed (utilized), the configuration information of the several sub-components determined at this time can be used as the configuration information of the first sub-component group determined based on the component configuration expressions.
[0153] In a possible implementation, if it is determined based on the component configuration expression that a certain subcomponent can be configured (selected), the subcomponent can be considered to be "selected (sel)". If it is determined based on the component configuration expression that a certain subcomponent must be configured (selected), the subcomponent can be considered to be mandatory. The configuration information of the first subcomponent group determined based on the component configuration file may include information such as the model (also called type, kind), power (pwnum), quantity (num), whether it is mandatory, whether it is configured to be displayed (dis) to the user for viewing, etc. (also called characteristic values) of the subcomponent.
[0154] S504: Verify the configuration information of the first sub-component group based on a pre-saved component relationship template of the product type that contains configuration information of the target sub-component.
[0155] S505: If the verification passes, the configuration information of the first sub-component group is determined as product component configuration information that meets the user's configuration requirements.
[0156] S506: For each sub-component in the product component configuration information, identify whether the sub-component is configured to be displayed to the user for viewing; if so, display the configuration information of the sub-component.
[0157] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 6 , Figure 6 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0158] S601: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0159] S602: Identify a configuration requirement based on a sub-component configuration option input, where the configuration requirement carries configuration information such as the model and quantity of the target sub-component.
[0160] S603: Based on a pre-saved component relationship template of the product type containing the configuration information of the target subcomponent, determine the configuration information of the second subcomponent group containing the target subcomponent; if it is identified that each preset subcomponent corresponding to the product type contains a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the third subcomponent; determine the configuration information of the second subcomponent group and the configuration information of the third subcomponent as the configuration information of the first subcomponent group.
[0161] S604: Verify the configuration information of the first sub-component group based on the pre-saved component configuration expression of the product type containing the configuration information of the target sub-component. If the verification passes, proceed to S605; if the verification fails, proceed to S606.
[0162] S605: If the verification passes, the configuration information of the first sub-component group is determined to be product component configuration information that meets the user's configuration requirements, and S607 is performed.
[0163] S606: If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the fourth subcomponent group containing the configuration information of the target subcomponent; and determine the configuration information of the fourth subcomponent group as product component configuration information that meets the user configuration requirements.
[0164] S607: For each sub-component in the product component configuration information, identify whether the sub-component is configured to be displayed to the user for viewing; if so, display the configuration information of the sub-component.
[0165] S608: Based on the sub-components included in the product component configuration information that meets the user's configuration requirements and the pre-configured sub-component price information, determine the price information corresponding to the product component configuration information, and display the price information.
[0166] Among them, the steps included in the above-mentioned product component configuration information determination process are only an example. This application does not limit the order between S607 and S608. That is, after determining the product component configuration information that meets the user's configuration requirements, you can execute S607 first, or you can execute S608 first, or you can execute S607 and S608 at the same time, which will not be repeated here.
[0167] Embodiment 5:
[0168] For ease of understanding, the process of determining the product component configuration information provided by the present application is explained below through a specific embodiment. Figure 7 , Figure 7 A schematic diagram of another process for determining product component configuration information provided in an embodiment of the present application, the process comprising the following steps:
[0169] S701: If a configuration request for a product of any product type input by a user is received, display preset sub-component configuration options corresponding to the product type.
[0170] S702: Identify the configuration requirements based on the sub-component configuration option input, which carries configuration information such as the model and quantity of the target sub-component. Product component configuration information that meets the user configuration requirements can be determined by executing S703 or S704.
[0171] S703: Based on the pre-saved component configuration expression of the product type containing the configuration information of the target sub-component, determine the configuration information of the first sub-component group containing the configuration information of the target sub-component, and verify the configuration information of the first sub-component group based on the pre-saved component relationship template of the product type containing the configuration information of the target sub-component. If the verification passes, the configuration information of the first sub-component group is determined as the product component configuration information that meets the user configuration requirements, and S705 is executed.
[0172] S704: Based on the pre-saved component relationship template of the product type containing the configuration information of the target subcomponent, determine the configuration information of the second subcomponent group containing the target subcomponent; if it is identified that each preset subcomponent corresponding to the product type contains a third subcomponent other than the second subcomponent group, then based on the pre-saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the third subcomponent; determine the configuration information of the second subcomponent group and the configuration information of the third subcomponent as the configuration information of the first subcomponent group. Afterwards, the configuration information of the first subcomponent group can be verified based on the pre-saved component configuration expression of the product type containing the configuration information of the target subcomponent. If the verification passes, the configuration information of the first subcomponent group is determined as the product component configuration information that meets the user configuration requirements. If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the saved component configuration expression of the product type containing the configuration information of the target subcomponent, determine the configuration information of the fourth subcomponent group containing the configuration information of the target subcomponent, and determine the configuration information of the fourth subcomponent group as the product component configuration information that meets the user configuration requirements.
[0173] S705: For each sub-component in the product component configuration information, identify whether the sub-component is configured to be displayed to the user for viewing; if so, display the configuration information of the sub-component.
[0174] S706: Based on the sub-components included in the product component configuration information that meets the user configuration requirements and the pre-configured sub-component price information, determine the price information corresponding to the product component configuration information, and display the price information.
[0175] Embodiment 6:
[0176] Based on the same technical concept, on the basis of the above embodiments, the present application provides a device for determining product component configuration information, see Figure 8 , Figure 8 A schematic diagram of a device for determining product component configuration information provided in an embodiment of the present application, the device comprising:
[0177] The receiving module 801 is used to display preset sub-component configuration options corresponding to the product type if a configuration request for a product of any product type is received;
[0178] An identification module 802 is used to identify a configuration requirement input based on the subcomponent configuration option, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes the model and quantity of the target subcomponent;
[0179] A first determining module 803 is used to determine the configuration information of the first subcomponent group including the configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including the configuration information of the target subcomponent;
[0180] A verification module 804 is used to verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutual exclusion relationship, a quantity applicability relationship, and a quantity mutual exclusion relationship between subcomponents;
[0181] The second determination module 805 is used to determine the configuration information of the first sub-component group as product component configuration information that meets the configuration requirements if the verification passes.
[0182] In a possible implementation manner, the first determining module 803 is specifically configured to:
[0183] If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template;
[0184] If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined;
[0185] The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
[0186] In a possible implementation manner, the verification module 804 is specifically configured to:
[0187] The configuration information of the first sub-component group is verified based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component.
[0188] In a possible implementation manner, the second determining module 805 is further configured to:
[0189] If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the component configuration expression, determining the configuration information of the fourth subcomponent group including the configuration information of the target subcomponent;
[0190] The configuration information of the fourth sub-component group is determined as the product component configuration information.
[0191] In a possible implementation, if the component configuration file is a component configuration expression of the product type containing configuration information of the target subcomponent, then the component verification file is a component relationship template of the product type containing configuration information of the target subcomponent.
[0192] In a possible implementation manner, the verification module 804 is further configured to:
[0193] If the verification fails, a prompt message indicating that the verification fails is output, and the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template is output.
[0194] In a possible implementation, the device further includes:
[0195] The display module 806 is used to identify, for each sub-component in the product component configuration information, whether the sub-component is configured to be displayed to the user for viewing, and if so, display the configuration information of the sub-component.
[0196] In a possible implementation manner, the second determining module 805 is further configured to:
[0197] Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
[0198] Embodiment 7:
[0199] Based on the same technical concept, the present application also provides an electronic device, Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, it includes: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904;
[0200] The memory 903 stores a computer program. When the program is executed by the processor 901, the processor 901 performs the following steps:
[0201] If a configuration request for a product of any product type is received, displaying preset sub-component configuration options corresponding to the product type;
[0202] Identifying a configuration requirement based on the subcomponent configuration option input, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes a model and quantity of the target subcomponent;
[0203] Determining configuration information of a first subcomponent group including configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including configuration information of the target subcomponent;
[0204] Verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutually exclusive relationship, a quantity applicability relationship, and a quantity mutually exclusive relationship between subcomponents;
[0205] If the verification passes, the configuration information of the first sub-component group is determined to be the product component configuration information that meets the configuration requirements.
[0206] In a possible implementation manner, the processor 901 is specifically configured to:
[0207] If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template;
[0208] If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined;
[0209] The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
[0210] In a possible implementation manner, the processor 901 is specifically configured to:
[0211] The configuration information of the first sub-component group is verified based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component.
[0212] In a possible implementation manner, the processor 901 is further configured to:
[0213] If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the component configuration expression, determining the configuration information of the fourth subcomponent group including the configuration information of the target subcomponent;
[0214] The configuration information of the fourth sub-component group is determined as the product component configuration information.
[0215] In a possible implementation, if the component configuration file is a component configuration expression of the product type containing configuration information of the target subcomponent, then the component verification file is a component relationship template of the product type containing configuration information of the target subcomponent.
[0216] In a possible implementation manner, the processor 901 is further configured to:
[0217] If the verification fails, a prompt message indicating that the verification fails is output, and the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template is output.
[0218] In a possible implementation manner, the processor 901 is further configured to:
[0219] For each subcomponent in the product component configuration information, it is identified whether the subcomponent is configured to be displayed to the user for viewing; if so, the configuration information of the subcomponent is displayed.
[0220] In a possible implementation manner, the processor 901 is further configured to:
[0221] Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
[0222] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0223] The communication interface 902 is used for communication between the electronic device and other devices.
[0224] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0225] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0226] Based on the same technical concept, an embodiment of the present application provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device implements any of the above embodiments when it is executed. The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD), etc.
[0227] Based on the same technical concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the above embodiments. Since the principle of solving the problem by the above computer program product is similar to the method for determining product component configuration information, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0228] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0229] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0230] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for determining product component configuration information, characterized in that: The method comprises: If a configuration request for a product of any product type is received, displaying preset sub-component configuration options corresponding to the product type; Identifying a configuration requirement based on the subcomponent configuration option input, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes a model and quantity of the target subcomponent; Determining configuration information of a first subcomponent group including configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including configuration information of the target subcomponent; Verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutually exclusive relationship, a quantity applicability relationship, and a quantity mutually exclusive relationship between subcomponents; If the verification passes, the configuration information of the first sub-component group is determined to be the product component configuration information that meets the configuration requirements.
2. The method according to claim 1, characterized in that The determining, based on the pre-saved component configuration file of the product type containing the configuration information of the target subcomponent, the configuration information of the first subcomponent group containing the configuration information of the target subcomponent comprises: If the component configuration file is a component relationship template of the product type including the configuration information of the target subcomponent, determining the configuration information of the second subcomponent group including the target subcomponent based on the component relationship template; If it is identified that each preset subcomponent corresponding to the product type includes a third subcomponent other than the second subcomponent group, then based on a pre-saved component configuration expression of the product type including the configuration information of the target subcomponent, the configuration information of the third subcomponent is determined; The configuration information of the second sub-component group and the configuration information of the third sub-component are determined as the configuration information of the first sub-component group.
3. The method according to claim 2, characterized in that The verifying the configuration information of the first sub-component group based on the pre-saved component verification file of the product type containing the configuration information of the target sub-component includes: The configuration information of the first sub-component group is verified based on a pre-saved component configuration expression of the product type containing the configuration information of the target sub-component.
4. The method according to claim 3, characterized in that After verifying the configuration information of the first subcomponent group based on the pre-saved component verification file of the product type containing the configuration information of the target subcomponent, the method further includes: If the configuration information of any subcomponent in the configuration information of the first subcomponent group does not meet the requirements of the component configuration expression, then based on the component configuration expression, determining the configuration information of the fourth subcomponent group including the configuration information of the target subcomponent; The configuration information of the fourth sub-component group is determined as the product component configuration information.
5. The method according to claim 1, characterized in that If the component configuration file is a component configuration expression of the product type including configuration information of the target subcomponent, then the component verification file is a component relationship template of the product type including configuration information of the target subcomponent.
6. The method according to claim 5, characterized in that The method further comprises: If the verification fails, a prompt message indicating that the verification fails is output, and the configuration information of the sub-components in the configuration information of the first sub-component group that do not meet the requirements of the component relationship template is output.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: For each sub-component in the product component configuration information, it is identified whether the sub-component is configured to be displayed to the user for viewing; if so, the configuration information of the sub-component is displayed.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Based on the sub-components included in the product component configuration information and the pre-configured sub-component price information, price information corresponding to the product component configuration information is determined, and the price information is displayed.
9. A device for determining product component configuration information, characterized in that: The device comprises: A receiving module, configured to display preset sub-component configuration options corresponding to the product type upon receiving a configuration request for a product of any product type; An identification module, used to identify a configuration requirement input based on the subcomponent configuration option, wherein the configuration requirement carries configuration information of a target subcomponent, wherein the configuration information includes the model and quantity of the target subcomponent; A first determining module, configured to determine configuration information of a first subcomponent group including configuration information of the target subcomponent based on a pre-saved component configuration file of the product type including configuration information of the target subcomponent; a verification module, configured to verify the configuration information of the first subcomponent group based on a pre-saved component verification file of the product type containing the configuration information of the target subcomponent, wherein the component verification file contains at least one of a model applicability relationship, a model mutually exclusive relationship, a quantity applicability relationship, and a quantity mutually exclusive relationship between subcomponents; The second determination module is used to determine the configuration information of the first sub-component group as product component configuration information that meets the configuration requirements if the verification passes.
10. An electronic device, characterized in that: The electronic device comprises at least a processor and a memory, and the processor is used to implement the steps of the method for determining product component configuration information as described in any one of claims 1 to 8 when executing a computer program stored in the memory.