Parameter configuration interface automatic generation method and device, equipment and storage medium

By automatically generating the parameter configuration interface of numerical simulation software, the problem of long design and development cycle, high cost and poor scalability of parameter configuration interfaces in the existing technology is solved, and rapid generation and automated interface development is realized, improving efficiency and customization.

CN119621062AInactive Publication Date: 2025-03-14CALCULATION AERODYNAMICS INST CHINA AERODYNAMICS RES & DEV CENT
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510163389.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The parameter configuration interface design and development of existing numerical simulation software has problems such as long cycle, high cost and poor scalability, especially when facing different usage scenarios and function upgrades.

Method used

Provides an automatic generation method of parameter configuration interface, which generates a parameter panel interface by loading the parameter panel description file, parsing parameter components and component relationships, obtaining component types, and matching with the preset parameter component library. When a data value setting operation is monitored, the target data value is mapped to the parameter configuration file according to the preset mapping relationship description file.

Benefits of technology

It realizes the generation of automated parameter configuration interfaces, reduces the design and development cycles, meets the rapid generation needs of different types and scenarios, and improves development efficiency and interface customization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621062A_ABST
    Figure CN119621062A_ABST
Patent Text Reader

Abstract

The invention discloses a parameter configuration interface automatic generation method and device, equipment and a storage medium, and relates to the field of man-machine interaction interface design and development, and the method comprises the steps: analyzing a received parameter panel description file to obtain parameter component information and component relation information; obtaining the type of each parameter component in the parameter component information to obtain a current component type, and judging whether the current component type is consistent with a preset component type or not; if yes, current component description information corresponding to the current component type is obtained, and parameter components in the parameter component information are drawn based on the current description information and the component relation information to generate a parameter panel interface; and obtaining a target data value currently set on the parameter panel interface, and mapping the target data value to a corresponding parameter value in the parameter configuration file according to a preset mapping rule to generate a parameter configuration interface. According to the method, the automatic parameter configuration interface can be generated, and the design and development cycle of the parameter configuration interface is greatly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of human-computer interaction interface design and development, and in particular to a method, device, equipment and storage medium for automatically generating a parameter configuration interface. Background Art

[0002] Computer-Aided Engineering (CAE) software relies on advanced computer hardware and software technology, and assists humans in product design, analysis, evaluation and maintenance by integrating various cutting-edge knowledge and successful experiences accumulated in the process of human social development, which greatly improves personnel work efficiency and reduces product development cycles. It has become an important driving force for the development of social productivity and has been widely used in key fields such as aerospace, energy and power, automotive engineering, construction engineering, and electronic products. As an important type of CAE software, numerical simulation software can reproduce real physical processes through numerical calculation methods, provide refined physical performance data for product design and improvement, and has become the most used software tool in equipment design digitization and digital twins.

[0003] With the increase in user demand and the improvement of computer hardware capabilities, current numerical simulation software is usually equipped with a graphical operating interface to greatly improve the user experience, allowing users to implement complex simulation scenarios through a graphical method with a simplified operating process, and improve the competitiveness of software products. In particular, in terms of software parameter configuration, the graphical interface can provide good parameter verification and error feedback through human-computer interaction, and can greatly reduce the probability of parameter configuration errors and improve the success rate of numerical calculation tasks, so that users do not have to understand and modify obscure parameter configuration files, thereby improving the user experience and work efficiency.

[0004] However, the current numerical simulation software operating interface is mainly developed in an independent design manner. For example, for numerical simulation calculations in specific application scenarios, a professional interface team conducts independent design and customization. This approach has the advantages of good user experience and high precision in demand response. It is mostly carried out by some large software development teams. However, when faced with ever-changing usage scenarios, the above approach has disadvantages such as long cycle, high cost, and poor scalability, which are mainly reflected in the following four aspects: (1) Poor platform portability: When the software is transferred from the cloud to local applications or migrated from local to the cloud, it needs to be redesigned according to the new platform. (2) Poor parameter scalability: When the software function is upgraded and iterated, the parameter configuration items increase or decrease, the parameter attributes, and the parameter range change, which can only be achieved by modifying the source code; (3) Custom development costs are high and the cycle is long: The parameter panel customization process must go through the complete software development process, including demand analysis, design, development, testing, etc., which requires high development and time costs; (4) Little reuse of common functions: Custom development fails to accumulate and precipitate the common parts and form reusable interface elements or modules. It adopts a completely new design and development idea to meet new needs, resulting in a waste of design and development resources. Summary of the invention

[0005] In view of this, the purpose of this application is to provide a method, device, equipment and storage medium for automatically generating a parameter configuration interface, which can realize the generation of an automated parameter configuration interface, greatly reduce the design and development cycle of the parameter configuration interface, and at the same time meet the needs of rapid generation of parameter configuration interfaces for numerical simulation software of different types and scenarios. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a method for automatically generating a parameter configuration interface, comprising:

[0007] When a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information;

[0008] Obtaining the type of each parameter component in the parameter component information, obtaining the current component type, and determining whether the current component type is consistent with the type of the parameter component in the preset parameter component library;

[0009] If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information to generate a parameter panel interface;

[0010] When a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and the target data value is mapped to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate a parameter configuration interface for the target numerical simulation software.

[0011] Optionally, the parameter configuration interface automatic generation method further includes:

[0012] Obtaining the interface presentation requirements of the current target numerical simulation software to obtain the current interface presentation requirements; the interface presentation requirements include parameter list information, parameter association information and parameter detailed information;

[0013] Selecting a target parameter component and associated target component description information from a preset parameter component library based on the parameter list information in the current interface presentation requirement;

[0014] Describing the target parameter component according to the target component description information and based on the parameter detailed information to obtain a described parameter component;

[0015] The described parameter components are laid out based on the parameter association information to obtain the laid-out parameter components, and the laid-out parameter components are described in a hierarchical description manner to obtain the parameter panel description file.

[0016] Optionally, the parameter configuration interface automatic generation method further includes:

[0017] Collect parameter components in parameter configuration interfaces of different types of historical numerical simulation software to obtain multiple historical parameter components, and obtain types of multiple historical parameter components to obtain multiple component types;

[0018] Acquire the properties and functions of each of the historical parameter components to obtain component properties and component functions, and generate parameter items for defining all of the historical parameter components according to the component properties and the component functions to obtain a plurality of component definition items;

[0019] Generate description information of the historical parameter components corresponding to each component type based on the multiple component definition items, and obtain component description information corresponding to each component type;

[0020] Unique identification codes are respectively allocated to the historical parameter components corresponding to each component type, and the historical parameter components corresponding to each component type, the unique identification codes and the component description information are associated and saved in a preset parameter component library.

[0021] Optionally, generating description information of the historical parameter components corresponding to each component type based on the multiple component definition items to obtain component description information corresponding to each component type includes:

[0022] Obtaining interface presentation requirements of different types of historical numerical simulation software to obtain historical interface presentation requirements;

[0023] According to the historical interface presentation requirements and in a hierarchical description manner, description information of the historical parameter components corresponding to each of the component types including the multiple component definition items is generated to obtain component description information corresponding to each of the component types.

[0024] Optionally, the parameter configuration interface automatic generation method further includes:

[0025] Obtain the data value of each described parameter component in the parameter panel description file to obtain a first value set;

[0026] Obtaining parameter values ​​in a parameter configuration file of the target numerical simulation software to obtain a second value set;

[0027] Creating a configuration file template including a plurality of placeholders, and using the plurality of placeholders in the configuration file template to respectively identify each parameter value in the second value set, to obtain identification information corresponding to each placeholder;

[0028] A mapping relationship between the data values ​​in the first value set and each of the placeholders in the configuration file template is constructed to obtain the preset mapping relationship description file.

[0029] Optionally, mapping the target data value to a corresponding parameter value in the parameter configuration file according to a mapping rule in a preset mapping relationship description file includes:

[0030] Updating the target data value to the corresponding data value in the parameter panel description file to obtain an updated panel description file;

[0031] Traversing the data values ​​in the updated panel description file in a hierarchical and structured order, so as to calculate the parameter values ​​corresponding to the placeholders based on the data values ​​in the updated panel description file and according to the identification information corresponding to the placeholders in the configuration file template of the preset mapping relationship description file, and obtain the current parameter value;

[0032] The current parameter value is mapped to the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

[0033] Optionally, the step of calculating the parameter value corresponding to each placeholder based on the data value in the updated panel description file and according to the identification information corresponding to each placeholder in the configuration file template of the preset mapping relationship description file to obtain the current parameter value includes:

[0034] Loading each placeholder and corresponding identification information in the preset mapping relationship description file, converting the placeholder into a string, and then calculating the parameter value corresponding to each string based on the data value in the updated panel description file and the identification information to obtain the current parameter value;

[0035] Correspondingly, mapping the current parameter value to a corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file includes:

[0036] The current parameter value is replaced into the corresponding character string, and the current parameter value in the character string is updated into the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

[0037] In a second aspect, the present application discloses a device for automatically generating a parameter configuration interface, comprising:

[0038] A loading module, for loading the parameter panel description file for the target numerical simulation software when receiving the parameter panel description file, and parsing the parameter components in the parameter panel description file and the relationship between different parameter components during the loading process to obtain parameter component information and component relationship information;

[0039] A type acquisition module, used to acquire the type of each parameter component in the parameter component information to obtain the current component type;

[0040] A judgment module, used to judge whether the current component type is consistent with the type of the parameter component in the preset parameter component library;

[0041] An information acquisition module, configured to acquire component description information corresponding to the current component type from the preset parameter component library to obtain current description information if the current component type is consistent with the type of the parameter component in the preset parameter component library;

[0042] A component drawing module, used for drawing each parameter component in the parameter component information based on the current description information and the component relationship information to generate a parameter panel interface;

[0043] An interface generation module is used to obtain the currently set target data value and the parameter configuration file of the target numerical simulation software when a data value setting operation for the parameter component in the parameter panel interface is monitored, and map the target data value to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate a parameter configuration interface for the target numerical simulation software.

[0044] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the aforementioned method for automatically generating a parameter configuration interface is implemented.

[0045] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned method for automatically generating a parameter configuration interface is implemented.

[0046] It can be seen that in the present application, when a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is first loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information, and then the types of each parameter component in the parameter component information are obtained to obtain the current component type, and it is determined whether the current component type is consistent with the type of the parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information, thereby generating a parameter panel interface; when a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and according to the mapping rules in the preset mapping relationship description file, the target data value is mapped to the corresponding parameter value in the parameter configuration file, thereby generating a parameter configuration interface for the target numerical simulation software. The present application first determines whether the type of parameter component in the currently received parameter panel description file is consistent with the type of parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library, and the component is drawn based on the component description information and the relationship information of the components in the parameter panel description file to generate a parameter panel interface. When the setting operation for the interface is detected, the set data value replaces the corresponding parameter value in the parameter configuration file according to the preset mapping rule. The above method realizes the generation of automatic parameter configuration interface, thereby greatly reducing the design and development cycle of the parameter configuration interface, and at the same time meets the needs of rapid generation of parameter configuration interface of numerical simulation software of different types and scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0048] Figure 1 A flow chart of a method for automatically generating a parameter configuration interface disclosed in this application;

[0049] Figure 2 A flow chart of a specific parameter configuration interface automatic generation method disclosed in this application;

[0050] Figure 3A file and conversion relationship diagram for completing parameter configuration interface encapsulation disclosed in this application;

[0051] Figure 4 This is a schematic diagram of the structure of a parameter configuration interface automatic generation device disclosed in this application;

[0052] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] The present application embodiment discloses a method for automatically generating a parameter configuration interface. Figure 1 As shown, the method includes:

[0055] Step S11: When a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information.

[0056] In this embodiment, when a parameter panel description file for a target numerical simulation software is received, the data in the parameter panel description file is first loaded in a hierarchical and structured order, and all parameter components in the parameter panel description file and the relationship between different parameter components are parsed during the loading process, thereby obtaining parameter component information and component relationship information. The target numerical simulation software can be developed using the Fortran language and run in the form of a command line.

[0057] It should be pointed out that before the automatic generation of the parameter configuration interface, the present application needs to first create a parameter panel description file for the target numerical simulation software for generating the corresponding parameter panel. The parameter panel description file is an input item for automatically generating or updating the parameter configuration interface, and contains detailed information of the parameter components and layout information between different parameter components. The specific creation process includes: obtaining the interface presentation requirements of the current target numerical simulation software to obtain the current interface presentation requirements; the interface presentation requirements include parameter list information, parameter association information and parameter detailed information; based on the parameter list information in the current interface presentation requirements, selecting the target parameter component and the associated target component description information from the preset parameter component library; describing the target parameter component according to the target component description information and based on the parameter detailed information to obtain the described parameter component; laying out each of the described parameter components based on the parameter association information to obtain the laid-out parameter component, and describing the laid-out parameter component in a hierarchical description manner to obtain the parameter panel description file. In this embodiment, the parameter list information, parameter association information, parameter detailed information and other information that need to be presented in the parameter configuration interface of the target numerical simulation software to be automatically generated is first obtained to obtain the current interface presentation requirement, and then the parameter components that meet the corresponding parameter expression are selected from the preset parameter component library in sequence according to the parameter component sequence recorded in the parameter list information in the current interface presentation requirement to obtain the corresponding target parameter component and the target component description information associated with the target parameter component (equivalent to a component description template); then, according to the target component description information associated with each target parameter component and based on the parameter detailed information in the current interface presentation requirement, the corresponding target parameter component is described in detail. According to the description, the corresponding parameter components after description are obtained. Specifically, the parameter details can be filled into the target component description information (i.e., component description template) corresponding to the corresponding target component; wherein, the parameter details include but are not limited to the parameter description information, type, range, default value and other information, which can provide prompts and limitation information for users to set parameters in the interactive interface; further, the parameter association information is expressed to generate a parameter panel description file. Specifically, the various parameter components after description can be laid out based on the parameter association information in the current interface presentation requirements to obtain the layout parameter components, and then the layout parameter components can be described in a hierarchical description manner to obtain a parameter panel description file. It can be understood that there are parallel, dependent, nested and other relationships between different parameters of numerical simulation software. In order to express the relationship between different parameters, the parameter components corresponding to the parameters can be arranged, combined, nested and other layout settings, and the hierarchical description method (i.e., the hierarchical description method of multi-level information) can be used to orderly organize and describe the various layout parameter components. The specific parameter panel description file example is shown below:

[0058] <Parameter Panel>

[0059] <Text Input Component / >

[0060] <Integer Input Component / >

[0061] <Composite Parameter Component>

[0062] <Integer Input Component / >

[0063] <Parameter Selection Component / >

[0064] < / Composite Parameter Component>

[0065] <Composite Parameter Component>

[0066] <Composite Parameter Component>

[0067] <Real Number Input Component / >

[0068] <File Import Component / >

[0069] < / Composite Parameter Component>

[0070] < / Composite Parameter Component>

[0071] < / Parameter Panel>

[0072] Among them, the file format of the parameter panel description file is not specifically limited. Specifically, it can be in XML (Extensible Markup Language) format.

[0073] As can be seen from the above, the process of generating the parameter panel description file is the process of selecting parameter components from the parameter component library according to the requirements of the numerical simulation software and combining them to form a parameter configuration panel.

[0074] Step S12: Obtain the types of each parameter component in the parameter component information to obtain the current component type, and determine whether the current component type is consistent with the types of the parameter components in the preset parameter component library.

[0075] In this embodiment, after parsing the parameter components and the relationships between different parameter components in the parameter panel description file to obtain the parameter component information and the component relationship information, further, obtain the types of each parameter component included in the above parameter component information to obtain the current component type, and then determine whether the current component type is consistent with the types of the parameter components recorded in the preset parameter component library.

[0076] It should be pointed out that before the parameter configuration interface is automatically generated, the present application also creates a preset parameter component library. The specific creation process includes: collecting parameter components in the parameter configuration interface of different types of historical numerical simulation software to obtain multiple historical parameter components, and obtaining the types of multiple historical parameter components to obtain multiple component types; obtaining the properties and functions of each of the historical parameter components to obtain component properties and component functions, and generating parameter items for defining all the historical parameter components according to the component properties and the component functions to obtain multiple component definition items; generating description information of the historical parameter components corresponding to each of the component types based on the multiple component definition items to obtain component description information corresponding to each of the component types; respectively assigning unique identification codes to the historical parameter components corresponding to each of the component types, and associating the historical parameter components, the unique identification codes and the component description information corresponding to each of the component types and saving them in the preset parameter component library.In this embodiment, the parameter components in the parameter configuration interface of different types of historical numerical simulation software (such as self-developed, open source, commercial, etc.) in different application scenarios are first collected to obtain multiple historical parameter components, and then according to the common application scenarios of the numerical simulation software, by analyzing the types of calculation parameters in the numerical simulation software, the types of all historical parameter components in different parameter configuration interfaces are counted to obtain multiple component types, wherein the multiple component types include but are not limited to text input type, integer input type, real number input type, parameter selection (selecting one or more values ​​from multiple preset values) type, file import type, composite component (parameter component that can nest any other component type) type, etc.; then, the properties and functions of all historical parameter components are obtained to obtain corresponding component properties and component functions, and parameter items for defining all historical parameter components are generated according to the component properties and component functions to obtain multiple component definition items P (equivalent to a multi-element parameter group), wherein the multiple component definition items include but are not limited to component description information item (describe), component type item (type), data type item (data Structure), data value item (value), data range item (value Range), appearance style item (style), etc., which can be specifically expressed as P=(describe, type, data Structure, value, valueRange, style), where describe is used to describe the information of the value set in the parameter component and provide prompt information for the user to set the data value; type is used to mark the type of the parameter component, such as text input type, integer input type, etc.; DataStructure is used to define the type of data in the parameter component, such as string type data, integer data, etc.; value is used to define the value of the data in the parameter component and is also used to record the default value during initialization; value Range is used to define the value range of the data in the parameter component; style is used to define the appearance style information of the parameter component. After obtaining multiple component definition items, in order to meet the diverse interface requirements of numerical simulation software, description information of all historical parameter components corresponding to each component type can be generated based on multiple component definition items to obtain component description information corresponding to each component type; finally, the parameter components are uniformly organized and managed by establishing a parameter component library, and unique identification codes can be assigned to all historical parameter components corresponding to each component type, respectively, and the historical parameter components, unique identification codes and component description information corresponding to each component type can be associated, and the associated information can be persistently stored in a unified text format, such as saved in a preset parameter component library located in a preset file storage medium. The parameter component library manages the logical data and physical data of the parameter components and can provide a unified data export for the subsequent automatic generation of a parameter configuration interface.In a specific embodiment, the generation process of the preset parameter component library is as follows: assign a unique identification code to all historical parameter components corresponding to each component type, and define the parameter component library as a set L, which contains all parameter components P corresponding to any component type. i ( ) component description information, and for each component type, the parameter component P i in the set L has a unique identification code associated with it, where , and n is the number of components.

[0077] Specifically, generating the description information of the historical parameter components corresponding to each component type based on the multiple component definition items to obtain the component description information corresponding to each component type may include: obtaining the interface presentation requirements of different types of historical numerical simulation software to obtain historical interface presentation requirements; generating the description information of the historical parameter components corresponding to each component type including the multiple component definition items according to the historical interface presentation requirements and in a hierarchical description manner to obtain the component description information corresponding to each component type. That is, after obtaining the interface presentation requirements of different types of historical numerical simulation software, generate the description information of the historical parameter components corresponding to each component type including multiple component definition items according to this requirement and in a hierarchical description manner. It should be noted that each component definition item may also have expandable dynamic sub-items to describe the parameter components. In a specific embodiment, the component description information of the text input parameter component using hierarchical description is:

[0078] <Text input parameter component>

[0079] <Component number>Simulation task name< / Component number>

[0080] <Component description information>Parameter 1< / Component description information>

[0081] <Component type>Text input< / Component type>

[0082] <Data type>String< / Data type>

[0083] <Data value>Simulation task name< / Data value>

[0084] <Data range>

[0085] <Minimum length>0< / Minimum length>

[0086] <Maximum length>100< / Maximum length>

[0087] < / Data range>

[0088] <Appearance style>

[0089] <Font Size>12-point< / Font Size>

[0090] <Font Type>Song typeface< / Font Type>

[0091] <Font Color>Black< / Font Color>

[0092] < / Appearance Style>

[0093] < / Text Input Parameter Component>

[0094] Step S13: If they are consistent, obtain the component description information corresponding to the current component type from the preset parameter component library to obtain the current description information, and draw each parameter component in the parameter component information based on the current description information and the component relationship information to generate a parameter panel interface.

[0095] In this embodiment, if the current component type is consistent with the type of the parameter component in the preset parameter component library, it indicates that the corresponding description information can be obtained from the parameter component library. At this time, the component description information corresponding to the current component type can be obtained from the above-mentioned preset parameter component library to obtain the current description information, and then based on this current description information and the component relationship information, and in a hierarchical and structured order, draw each parameter component of different types in the above-mentioned parameter component information, such as components of text input type, integer input type, real number input type, file import type, etc., so as to generate a parameter panel interface for the user to set the component data value.

[0096] In a specific implementation manner, the component description information of each parameter component can be displayed in the parameter panel interface by using the functions provided by the interface framework, and corresponding input boxes can be provided according to the appearance style, so as to support the user to input or import data values with data type limitations. Further, a parameter selection component is automatically generated in the parameter panel interface. Specifically, the functions provided by the interface framework can be used to display its component description information and load the predefined selection items of the parameter selection component, so as to generate a selection list. Then, a composite component is automatically generated in the parameter panel interface. It can be judged whether it is a composite component by traversing the parameter component information. If so, recursively retrieve the composite component until the last-level sub-component is retrieved.

[0097] Step S14: When a data value setting operation for the parameter component in the parameter panel interface is monitored, obtain the currently set target data value and the parameter configuration file of the target numerical simulation software, and map the target data value to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate the parameter configuration interface of the target numerical simulation software.

[0098] In this embodiment, when it is monitored that the user has made corresponding parameter settings for the data values ​​of the parameter components in the parameter panel interface, the target data value input by the current user is obtained, and the parameter configuration file of the target numerical simulation software is obtained, and then the mapping rules recorded in the preset mapping relationship description file (recording the mapping relationship between the parameter components and the placeholders) are loaded into the memory, and the loaded mapping rules are used to map the target data values ​​to the corresponding parameter values ​​in the above-mentioned parameter configuration file, that is, the corresponding parameter values ​​in the parameter configuration file are updated using the target data values, thereby ensuring that the parameter panel interface corresponds to the data values ​​in the parameter panel description file, and then generating the parameter configuration interface of the target numerical simulation software.

[0099] Specifically, the process of creating the preset mapping relationship description file includes: obtaining the data values ​​of each described parameter component in the parameter panel description file to obtain a first value set; obtaining the parameter values ​​in the parameter configuration file of the target numerical simulation software to obtain a second value set; creating a configuration file template containing multiple placeholders, and using the multiple placeholders in the configuration file template to respectively identify each parameter value in the second value set to obtain identification information corresponding to each placeholder; constructing a mapping relationship between the data values ​​in the first value set and each placeholder in the configuration file template to obtain the preset mapping relationship description file. It can be understood that the parameter panel description file is a templated expression of the interface, and the parameter configuration file is a configuration file required for the numerical simulation software to carry out calculations. Establishing the connection between the two is a necessary step to realize the association between the interactive interface and the numerical simulation software. In this embodiment, the data values ​​of each described parameter component in the parameter panel description file are first obtained to obtain a first value set X, and X can be specifically expressed as , where x i The initial value of is the default value provided by the target numerical simulation software; then, the parameter value in the parameter configuration file of the target numerical simulation software is obtained to obtain the second value set Y, which can be specifically expressed as , where y j The initial value of is the default value provided by the target numerical simulation software; further, a configuration file template containing multiple placeholders is constructed, and the multiple placeholders in the configuration file template are used to respectively set the respective parameter values ​​y in the second numerical set Y jIdentify them to obtain the identification information corresponding to each placeholder. It should be noted that this identification information awaits replacement by being calculated from the elements in the first numerical set X. That is, the elements in set Y of the parameter configuration file are calculated from the elements in set X of the parameter panel description file. Finally, record the mathematical operation relationships between the elements through the configuration file, thereby constructing the mapping relationship between the data values in the first numerical set X and each placeholder in the configuration file template, obtaining a preset mapping relationship description file, which awaits use when automatically generating the parameter configuration file later. A specific example of the mapping relationship description file is as follows:

[0100] <Mapping text>

[0101] <Mapping relationship>

[0102] <Parameter value>Y1< / Parameter value>

[0103] <Mapping function>X1< / Mapping function>

[0104] < / Mapping relationship>

[0105] <Mapping relationship>

[0106] <Parameter value> Y2 < / Parameter value>

[0107] <Mapping function> X1*X2< / Mapping function>

[0108] < / Mapping relationship>

[0109] ……

[0110] <Mapping relationship>

[0111] <Parameter value> Ym < / Parameter value>

[0112] <Mapping function>Xn*3< / Mapping function>

[0113] < / Mapping relationship>

[0114] < / Mapping text>

[0115] As can be seen from the above, the identification information corresponding to each parameter value in the second numerical set Y is as follows: Y1 = X1, Y2 = X1 * X2, Ym = Xn * 3.

[0116] It can be seen that in the embodiment of the present application, when a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is first loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information, and then the types of each parameter component in the parameter component information are obtained to obtain the current component type, and it is determined whether the current component type is consistent with the type of the parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information, thereby generating a parameter panel interface; when a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and according to the mapping rules in the preset mapping relationship description file, the target data value is mapped to the corresponding parameter value in the parameter configuration file, thereby generating a parameter configuration interface for the target numerical simulation software. The embodiment of the present application first determines whether the type of parameter component in the currently received parameter panel description file is consistent with the type of parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library, and the component is drawn based on the component description information and the relationship information of the components in the parameter panel description file to generate a parameter panel interface. When the setting operation for the interface is monitored, the set data value replaces the corresponding parameter value in the parameter configuration file according to the preset mapping rule. The above method realizes the generation of automatic parameter configuration interface, thereby greatly reducing the design and development cycle of the parameter configuration interface, and at the same time meets the needs of rapid generation of parameter configuration interface of numerical simulation software of different types and in different scenarios.

[0117] The present application embodiment discloses a specific method for automatically generating a parameter configuration interface. Figure 2 As shown, the method includes:

[0118] Step S21: When a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information.

[0119] Step S22: Acquire the type of each parameter component in the parameter component information, obtain the current component type, and determine whether the current component type is consistent with the type of the parameter component in the preset parameter component library.

[0120] Step S23: If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information to generate a parameter panel interface.

[0121] Step S24: When a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and the target data value is updated to the corresponding data value in the parameter panel description file to obtain an updated panel description file.

[0122] In this embodiment, when a data value setting operation for a parameter component in the parameter panel interface is detected, the currently set target data value and the parameter configuration file (input.txt) of the target numerical simulation software are first obtained, and then the target data value is updated to the corresponding data value in the parameter panel description file, thereby obtaining an updated panel description file. That is, the corresponding data value in the first numerical set X is replaced by the data value set by the user.

[0123] Step S25: Traverse the data values ​​in the updated panel description file in a hierarchical and structured order to calculate the parameter values ​​corresponding to each placeholder based on the data values ​​in the updated panel description file and according to the identification information corresponding to each placeholder in the configuration file template of the preset mapping relationship description file to obtain the current parameter value.

[0124] Next, the various data values ​​in the updated panel description file are traversed in a hierarchical and structured order to calculate the parameter values ​​corresponding to each placeholder according to the identification information corresponding to each placeholder in the configuration file template located in the preset mapping relationship description file and based on the data values ​​in the updated panel description file to obtain the current parameter value.

[0125] Specifically, the parameter values ​​corresponding to the placeholders are calculated based on the data values ​​in the updated panel description file and according to the identification information corresponding to the placeholders in the configuration file template of the preset mapping relationship description file to obtain the current parameter value, which may include: loading the placeholders and the corresponding identification information in the preset mapping relationship description file, converting the placeholders into strings, and then calculating the parameter values ​​corresponding to the strings based on the data values ​​in the updated panel description file and according to the identification information to obtain the current parameter value. That is, first load the placeholders in the preset mapping relationship description file and the identification information corresponding to the placeholders, then convert the placeholders into strings, and then calculate the parameter values ​​corresponding to the strings based on the data values ​​in the updated panel description file and according to the identification information to obtain the current parameter value. For example, when the mapping relationship corresponding to string 2 is Y2=X1*X2, and the data values ​​X1 set by the user are 2 and X2 is 3, the parameter value corresponding to string 2 is Y2=2*3=6.

[0126] Step S26: mapping the current parameter value to the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file, so as to generate a parameter configuration interface of the target numerical simulation software.

[0127] Specifically, the current parameter value can be replaced into the corresponding string, and then the current parameter value in the string can be updated into the corresponding parameter value in the parameter configuration file (input.txt) according to the mapping relationship in the preset mapping relationship description file. For example, when the mapping relationship corresponding to string 1 is Y1=X1, the new parameter value Y1' obtained after calculation replaces the parameter value Y1 of the parameter configuration file. That is, the calculated new data value is replaced into the string in turn, thereby completing the replacement of the data value and the placeholder, and then updated to the corresponding parameter value in the parameter configuration file.

[0128] For more specific processing procedures of the above steps S21 to S23, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0129] It can be seen that when the embodiment of the present application receives a parameter panel description file for the target numerical simulation software, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information, and the types of each parameter component in the parameter component information are obtained to obtain the current component type, and when the current component type is consistent with the type of the parameter component in the preset parameter component library, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information to generate a parameter panel interface; when the data for the parameter components in the parameter panel interface is monitored During the value setting operation, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and the target data value is updated to the corresponding data value in the parameter panel description file to obtain the updated panel description file, and then the data value in the updated panel description file is traversed in a hierarchical and structured order, so as to calculate the parameter value corresponding to each placeholder based on the data value in the updated panel description file and according to the identification information corresponding to each placeholder in the configuration file template of the preset mapping relationship description file to obtain the current parameter value, and finally map the current parameter value to the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file, thereby generating the parameter configuration interface of the target numerical simulation software. The embodiment of the present application can significantly reduce the design cycle and development cycle of the parameter configuration interface of the numerical simulation software by pre-determining the operating parameters of the numerical simulation software in a hierarchical manner, and establishing a mapping relationship between the operating parameters and the parameter components in the parameter configuration interface, and then driving the automatic generation of the parameter configuration interface based on the mapping relationship file, and meet the needs of rapid generation of parameter configuration interfaces of different types of numerical simulation software such as self-developed, open source, and commercial in different scenarios. At the same time, it realizes code-free interface encapsulation of various numerical simulation software, expresses the complex parameter logical relationship of the software with a unified description text, and can automatically complete the data mapping between the interface of the numerical simulation software and the parameter configuration file, thereby simplifying the design and maintenance of the parameter configuration interface, improving development efficiency, and enhancing the customizability and extensibility of the software, so that non-professional users can also easily get started with complex engineering analysis tasks.

[0130] For details, see Figure 3 As shown, Figure 3The relationship between the parameter configuration file, the parameter panel description file, the parameter panel interface and the preset mapping relationship description file is shown. The information in the parameter panel interface generated based on the parameter panel description file is configured based on the parameter values ​​in the mapping relationship description file and the parameter configuration file, thereby realizing the automatic generation of the parameter configuration interface. In order to better introduce the implementation process of this solution, it can be described in detail according to the following steps: Step 1: First define the parameter panel description file. When there are 6 parameter values ​​in the parameter configuration file input.txt of the software, namely param1, param2, param3, param4, param5, and param6, in order to facilitate users to understand and set parameters, these 6 parameter values ​​can be divided into 7 parameter panel setting values, namely setting1, setting2, setting3, setting4, setting5, setting6, and setting7. In order to present the interface parameter setting values ​​of the software in an orderly manner in the parameter panel, the following sub-steps can be performed: 1) Select the corresponding parameter components from the preset parameter component library in turn according to the characteristics of the parameters, and fill in the corresponding content according to the parameter panel description file corresponding to the corresponding parameter component; 2) According to the software classification that the numerical simulation software needs to present to the user, the 7 parameters are divided into 3 categories, and organized using composite component parameters, that is, the parameter components are combined according to the parameter classification of the numerical simulation software; 3) The parameter components after filling in the parameter information are combined according to the predefined rules of the parameter panel to form a parameter panel description file.

[0131] The text content in the parameter configuration file input.txt is:

[0132] param1 = "compute_type"

[0133] param2=1

[0134] param3=3.14

[0135] param4 = ". / input.grd"

[0136] param5=23.89

[0137] param6=1.75

[0138] The corresponding parameter panel description file parameter_settings.xml is as follows:

[0139] <Parameter Panel>

[0140] <Compound parameter component: Category 1>

[0141] <Text input component: setting1 / >

[0142] <Integer input component: setting2 / >

[0143] < / Compound parameter component>

[0144] <Compound parameter component: Category 2>

[0145] <Compound parameter component>

[0146] <Real number input component: setting3 / >

[0147] <File import component: setting4 / >

[0148] < / Compound parameter component>

[0149] <Real number input component: setting5 / >

[0150] < / Compound parameter component>

[0151] <Compound parameter component: Category 3>

[0152] <Text input component: setting6 / >

[0153] <Integer input component: setting7 / >

[0154] < / Compound parameter component>

[0155] < / Parameter panel>

[0156] Step 2: Load the parameter panel description file parameter_settings.xml to generate the parameter panel interface. Load the parameter panel description file parameter_settings.xml generated in the above step, and draw and render the content of the parameter components to automatically generate the parameter panel interface of the numerical simulation software.

[0157] Step 3: Build the parameter configuration file template. Specifically, the 6 parameter values in the parameter configuration file input.txt can be numbered in sequence, and the corresponding parameter values can be placeholder-expressed in the file with the placeholder {param number} for subsequent replacement by the user after setting in the parameter panel interface.

[0158] Specifically, the text content in the parameter configuration file template input_template.txt is:

[0159] param1={param1}

[0160] param2={param2}

[0161] param3 = {param3}

[0162] param4 = {param4}

[0163] param5 = {param5}

[0164] param6 = {param6}

[0165] Step 4: Construct a mapping relationship description file between the parameter configuration file and the parameter panel setting values (i.e., the values in the parameter panel description file). Specifically, the relationship between the 6 parameter values in the parameter configuration file input.txt and the 7 split parameter panel setting values can be expressed in the mapping relationship description file for subsequent automatic mapping of the values set by the user in the parameter panel interface to the parameter configuration file input.txt.

[0166] Specifically, the content of the mapping relationship description file relation.xml is as follows:

[0167] <Mapping text>

[0168] <Mapping relationship>

[0169] <Parameter value> param1< / Parameter value>

[0170] <Mapping function> setting 1< / Mapping function>

[0171] < / Mapping relationship>

[0172] <Mapping relationship>

[0173] <Parameter value> param2< / Parameter value>

[0174] <Mapping function> setting 2< / Mapping function>

[0175] < / Mapping relationship>

[0176] <Mapping relationship>

[0177] <Parameter value> param3< / Parameter value>

[0178] <Mapping function> setting 3< / Mapping function>

[0179] < / Mapping relationship>

[0180] <Mapping relationship>

[0181] <Parameter value> param4< / Parameter value>

[0182] <Mapping function> setting 4< / Mapping function>

[0183] < / Mapping relationship>

[0184] <Mapping relationship>

[0185] <Parameter value> param5< / Parameter value>

[0186] <Mapping function> setting 5< / Mapping function>

[0187] < / Mapping relationship>

[0188] <Mapping relationship>

[0189] <Parameter value> param6 < / Parameter value>

[0190] <Mapping function> setting 6* setting 7< / Mapping function>

[0191] < / Mapping relationship>

[0192] < / Mapping text>

[0193] Step 5: Perform parameter retrieval and data mapping to map the values ​​set by the user on the parameter panel interface to the parameter configuration file input.txt of the numerical simulation software. Specifically, it includes the following sub-steps: 1) Update the data values ​​of the parameter components (setting1, setting2, setting3, setting4, setting5, setting6, setting7) set by the user on the parameter panel interface to the parameter panel description file in real time; 2) When the user completes the parameter setting on the parameter panel, load the data values ​​(setting1, setting2, setting3, setting4, setting5, setting6, setting7) of the parameter components in the parameter panel description file in a hierarchical and structured order; 3) Load the preset mapping relationship description file relation.xml to obtain the mapping relationship between the data value (setting) of the parameter component and the placeholder (param) in the parameter configuration file; 4) Calculate the data value (set) of the parameter component according to the mapping rules described in the mapping relationship file. tting1, setting2, setting3, setting4, setting5, setting6, setting7) associated with the parameter values ​​(param1, param2, param3, param4, param5, param6) in the parameter configuration file associated with the parameter panel interface; 5) Load the content in the parameter configuration file template input_template.txt into a string, and replace the placeholders ({param1}, {param2}, {param3}, {param4}, {param5}, {param6}) in the template with the calculated parameter values ​​(param1, param2, param3, param4, param5, param6) in sequence, so as to generate the corresponding parameter values ​​in the parameter configuration file input.txt corresponding to the data values ​​configured by the user on the parameter panel interface.

[0194] Correspondingly, the embodiment of the present application also discloses a device for automatically generating a parameter configuration interface, see Figure 4 As shown, the device comprises:

[0195] The loading module 11 is used for loading the parameter panel description file for the target numerical simulation software when receiving the parameter panel description file, and parsing the parameter components in the parameter panel description file and the relationship between different parameter components during the loading process to obtain parameter component information and component relationship information;

[0196] A type acquisition module 12 is used to acquire the type of each parameter component in the parameter component information to obtain the current component type;

[0197] A judging module 13 is used to judge whether the current component type is consistent with the type of the parameter component in the preset parameter component library;

[0198] The information acquisition module 14 is used to acquire component description information corresponding to the current component type from the preset parameter component library to obtain current description information if the current component type is consistent with the type of the parameter component in the preset parameter component library;

[0199] A component drawing module 15, for drawing each parameter component in the parameter component information based on the current description information and the component relationship information to generate a parameter panel interface;

[0200] The interface generation module 16 is used to obtain the currently set target data value and the parameter configuration file of the target numerical simulation software when monitoring the data value setting operation for the parameter component in the parameter panel interface, and map the target data value to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate a parameter configuration interface for the target numerical simulation software.

[0201] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0202] It can be seen that in the embodiment of the present application, when a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is first loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information, and then the types of each parameter component in the parameter component information are obtained to obtain the current component type, and it is determined whether the current component type is consistent with the type of the parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information, thereby generating a parameter panel interface; when a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and according to the mapping rules in the preset mapping relationship description file, the target data value is mapped to the corresponding parameter value in the parameter configuration file, thereby generating a parameter configuration interface for the target numerical simulation software. The embodiment of the present application first determines whether the type of parameter component in the currently received parameter panel description file is consistent with the type of parameter component in the preset parameter component library. If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library, and the component is drawn based on the component description information and the relationship information of the components in the parameter panel description file to generate a parameter panel interface. When the setting operation for the interface is monitored, the set data value replaces the corresponding parameter value in the parameter configuration file according to the preset mapping rule. The above method realizes the generation of automatic parameter configuration interface, thereby greatly reducing the design and development cycle of the parameter configuration interface, and at the same time meets the needs of rapid generation of parameter configuration interface of numerical simulation software of different types and in different scenarios.

[0203] In some specific embodiments, the parameter configuration interface automatic generation device may further include:

[0204] A first requirement acquisition unit is used to acquire the interface presentation requirement of the current target numerical simulation software to obtain the current interface presentation requirement; the interface presentation requirement includes parameter list information, parameter association information and parameter detailed information;

[0205] A selection unit, configured to select a target parameter component and associated target component description information from a preset parameter component library based on the parameter list information in the current interface presentation requirement;

[0206] A first component description unit is used to describe the target parameter component according to the target component description information and based on the parameter detailed information to obtain a described parameter component;

[0207] A component layout unit, configured to layout each of the described parameter components based on the parameter association information to obtain a laid-out parameter component;

[0208] The second component description unit is used to describe the post-layout parameter component in a hierarchical description manner to obtain the parameter panel description file.

[0209] In some specific embodiments, the parameter configuration interface automatic generation device may further include:

[0210] A component collection unit, used to collect parameter components in parameter configuration interfaces of different types of historical numerical simulation software to obtain multiple historical parameter components;

[0211] A component type acquisition unit, used to acquire types of a plurality of historical parameter components to obtain a plurality of component types;

[0212] An attribute and function acquisition unit, used to acquire the attributes and functions of each of the historical parameter components, and obtain component attributes and component functions;

[0213] A parameter item generating unit, used for generating parameter items for defining all the historical parameter components according to the component attributes and the component functions, to obtain a plurality of component definition items;

[0214] A first information generating unit, configured to generate description information of the historical parameter components corresponding to each of the component types based on the multiple component definition items, and obtain component description information corresponding to each of the component types;

[0215] An identification code allocation unit, used to allocate a unique identification code to each of the historical parameter components corresponding to each component type;

[0216] The storage unit is used to associate the historical parameter components, the unique identification code and the component description information corresponding to each component type and save them in a preset parameter component library.

[0217] In some specific embodiments, the first information generating unit may specifically include:

[0218] A second requirement acquisition unit is used to acquire interface presentation requirements of different types of historical numerical simulation software to obtain historical interface presentation requirements;

[0219] The second information generation unit is used to generate description information of the historical parameter components corresponding to each component type containing the multiple component definition items according to the historical interface presentation requirements and in a hierarchical description manner to obtain component description information corresponding to each component type.

[0220] In some specific embodiments, the parameter configuration interface automatic generation device may further include:

[0221] A data value acquisition unit, used for acquiring data values ​​of each described parameter component in the parameter panel description file to obtain a first value set;

[0222] A parameter value acquisition unit, used to acquire parameter values ​​in a parameter configuration file of the target numerical simulation software to obtain a second value set;

[0223] A template creation unit, used to create a configuration file template containing multiple placeholders;

[0224] an identification unit, configured to identify each parameter value in the second value set by using a plurality of placeholders in the configuration file template, and obtain identification information corresponding to each placeholder;

[0225] A mapping relationship construction unit is used to construct a mapping relationship between the data values ​​in the first value set and each of the placeholders in the configuration file template to obtain the preset mapping relationship description file.

[0226] In some specific embodiments, the interface generation module 16 may specifically include:

[0227] A first updating unit, configured to update the target data value to a corresponding data value in the parameter panel description file to obtain an updated panel description file;

[0228] a traversal unit, configured to traverse the data values ​​in the updated panel description file in a hierarchical and structured order, so as to calculate the parameter values ​​corresponding to the placeholders based on the data values ​​in the updated panel description file and according to the identification information corresponding to the placeholders in the configuration file template of the preset mapping relationship description file, so as to obtain the current parameter value;

[0229] A mapping unit is used to map the current parameter value to a corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

[0230] In some specific embodiments, the traversal unit may specifically include:

[0231] A loading unit, used to load each placeholder and corresponding identification information in a preset mapping relationship description file;

[0232] A string conversion unit, used for converting the placeholder into a string;

[0233] A calculation unit, configured to calculate the parameter value corresponding to each of the character strings based on the data value in the updated panel description file and according to the identification information, to obtain a current parameter value;

[0234] Accordingly, the mapping unit may specifically include:

[0235] A replacement unit, used for replacing the current parameter value into the corresponding character string;

[0236] The second updating unit is used to update the current parameter value in the character string to the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

[0237] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0238] Figure 5 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the method for automatically generating a parameter configuration interface disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0239] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0240] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0241] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the parameter configuration interface automatic generation method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0242] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed parameter configuration interface automatic generation method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0243] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for automatically generating a parameter configuration interface as disclosed above.

[0244] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0245] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0246] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0247] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0248] The above is a detailed introduction to a parameter configuration interface automatic generation method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for automatically generating a parameter configuration interface, characterized in that: include: When a parameter panel description file for a target numerical simulation software is received, the parameter panel description file is loaded, and during the loading process, the parameter components in the parameter panel description file and the relationship between different parameter components are parsed to obtain parameter component information and component relationship information; Obtaining the type of each parameter component in the parameter component information, obtaining the current component type, and determining whether the current component type is consistent with the type of the parameter component in the preset parameter component library; If they are consistent, the component description information corresponding to the current component type is obtained from the preset parameter component library to obtain the current description information, and each parameter component in the parameter component information is drawn based on the current description information and the component relationship information to generate a parameter panel interface; When a data value setting operation for a parameter component in the parameter panel interface is monitored, the currently set target data value and the parameter configuration file of the target numerical simulation software are obtained, and the target data value is mapped to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate a parameter configuration interface for the target numerical simulation software.

2. The method for automatically generating a parameter configuration interface according to claim 1, characterized in that: Also includes: Obtain the interface presentation requirements of the current target numerical simulation software to obtain the current interface presentation requirements; The interface presentation requirements include parameter list information, parameter association information and parameter detailed information; Selecting a target parameter component and associated target component description information from a preset parameter component library based on the parameter list information in the current interface presentation requirement; Describing the target parameter component according to the target component description information and based on the parameter detailed information to obtain a described parameter component; The described parameter components are laid out based on the parameter association information to obtain the laid-out parameter components, and the laid-out parameter components are described in a hierarchical description manner to obtain the parameter panel description file.

3. The method for automatically generating a parameter configuration interface according to claim 2, characterized in that: Also includes: Collect parameter components in parameter configuration interfaces of different types of historical numerical simulation software to obtain multiple historical parameter components, and obtain types of multiple historical parameter components to obtain multiple component types; Acquire the properties and functions of each of the historical parameter components to obtain component properties and component functions, and generate parameter items for defining all of the historical parameter components according to the component properties and the component functions to obtain a plurality of component definition items; Generate description information of the historical parameter components corresponding to each component type based on the multiple component definition items, and obtain component description information corresponding to each component type; Unique identification codes are respectively allocated to the historical parameter components corresponding to each component type, and the historical parameter components corresponding to each component type, the unique identification codes and the component description information are associated and saved in a preset parameter component library.

4. The method for automatically generating a parameter configuration interface according to claim 3, characterized in that: The generating, based on the plurality of component definition items, description information of the historical parameter components corresponding to each component type, to obtain component description information corresponding to each component type includes: Obtaining interface presentation requirements of different types of historical numerical simulation software to obtain historical interface presentation requirements; According to the historical interface presentation requirements and in a hierarchical description manner, description information of the historical parameter components corresponding to each of the component types including the multiple component definition items is generated to obtain component description information corresponding to each of the component types.

5. The method for automatically generating a parameter configuration interface according to claim 4, characterized in that: Also includes: Obtain the data value of each described parameter component in the parameter panel description file to obtain a first value set; Obtaining parameter values ​​in a parameter configuration file of the target numerical simulation software to obtain a second value set; Creating a configuration file template including a plurality of placeholders, and using the plurality of placeholders in the configuration file template to respectively identify each parameter value in the second value set, to obtain identification information corresponding to each placeholder; A mapping relationship between the data values ​​in the first value set and each of the placeholders in the configuration file template is constructed to obtain the preset mapping relationship description file.

6. The method for automatically generating a parameter configuration interface according to claim 5, characterized in that: The mapping of the target data value to the corresponding parameter value in the parameter configuration file according to the mapping rule in the preset mapping relationship description file includes: Updating the target data value to the corresponding data value in the parameter panel description file to obtain an updated panel description file; Traversing the data values ​​in the updated panel description file in a hierarchical and structured order, so as to calculate the parameter values ​​corresponding to the placeholders based on the data values ​​in the updated panel description file and according to the identification information corresponding to the placeholders in the configuration file template of the preset mapping relationship description file, and obtain the current parameter value; The current parameter value is mapped to the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

7. The method for automatically generating a parameter configuration interface according to claim 6, characterized in that: The step of calculating the parameter value corresponding to each placeholder based on the data value in the updated panel description file and according to the identification information corresponding to each placeholder in the configuration file template of the preset mapping relationship description file to obtain the current parameter value includes: Loading each placeholder and corresponding identification information in the preset mapping relationship description file, converting the placeholder into a string, and then calculating the parameter value corresponding to each string based on the data value in the updated panel description file and the identification information to obtain the current parameter value; Correspondingly, mapping the current parameter value to a corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file includes: The current parameter value is replaced into the corresponding character string, and the current parameter value in the character string is updated into the corresponding parameter value in the parameter configuration file according to the mapping relationship in the preset mapping relationship description file.

8. A parameter configuration interface automatic generation device, characterized in that: include: A loading module, for loading the parameter panel description file for the target numerical simulation software when receiving the parameter panel description file, and parsing the parameter components in the parameter panel description file and the relationship between different parameter components during the loading process to obtain parameter component information and component relationship information; A type acquisition module, used to acquire the type of each parameter component in the parameter component information to obtain the current component type; A judgment module, used to judge whether the current component type is consistent with the type of the parameter component in the preset parameter component library; An information acquisition module, configured to acquire component description information corresponding to the current component type from the preset parameter component library to obtain current description information if the current component type is consistent with the type of the parameter component in the preset parameter component library; A component drawing module, used for drawing each parameter component in the parameter component information based on the current description information and the component relationship information to generate a parameter panel interface; An interface generation module is used to obtain the currently set target data value and the parameter configuration file of the target numerical simulation software when a data value setting operation for the parameter component in the parameter panel interface is monitored, and map the target data value to the corresponding parameter value in the parameter configuration file according to the mapping rules in the preset mapping relationship description file to generate a parameter configuration interface for the target numerical simulation software.

9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the method for automatically generating a parameter configuration interface as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the method for automatically generating a parameter configuration interface as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • User interface generating method and device and electronic device

    CN108304183A

  • Page configuration file-based automatic page generation and parameter management method, system and device

    CN110297636A

  • Equipment configuration parameter management system and method based on XML description file

    CN114518906A

  • Configuration file generation method and device, equipment and storage medium

    CN116991468A