Automatic model selection method and system based on product line engineering
By adopting SysmL and UML languages in product line engineering, combining MBSE and product line construction methods, the Feature concept was introduced, and the problems of easy confusion in the existing product line architecture were solved, and the model was reused multiple times and fast selection was achieved, which improved production efficiency.
Patent Information
- Application Number
- CN202111407300.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The existing product line architecture has problems such as easy to confuse information expression, low reuse of model information, difficulty in traceability, and inefficient in repeated construction of the same model.
The SysmL language and UML language are adopted, combined with MBSE and product line construction methods, and the traditional product line construction is modeled, a model construction framework is formulated for system development, and the Feature concept in the UML language is introduced, and multiple reuse and rapid selection of models are achieved through automatic matching and model conversion.
It solves the problems of easy confusion in information expression, low model reuse rate and low efficiency, and realizes multiple reuse and rapid selection of product line engineering models, improves production efficiency and reduces management costs.
Smart Images

Figure CN114138239B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for automatically selecting a model based on product line engineering. Background Art
[0002] Product Line: The Software Engineering Institute of Carnegie Mellon University (CMU / SEI) defines a software product line as: "A product line is a collection of products that share a common, manageable set of features that meet the specific needs of a selected market or task domain. These systems are developed in a pre-described manner based on common core assets."
[0003] Currently, the analysis and architecture of the product line are carried out in four steps: demand analysis, product line scope planning, confirmation of change points, and support for change points.
[0004] Product line demand analysis: Analyze the common needs of products from multiple perspectives such as target market, product features, user interface, laws and regulations, etc.
[0005] Product line range planning: clearly divide the product range, define the commonalities of products, and classify products.
[0006] Confirm the change points: define the different change points of the product.
[0007] Support for variation points: Through the generalized relationship in object-oriented design, it is possible to achieve integration using the commonalities of different products without deviation. For example, different products have the same general interface, allowing different products in the same product line to be integrated with the same system.
[0008] The architecture of existing product lines is based on documents, which include:
[0009] Information expression is easily confused, resulting in misunderstanding;
[0010] The model information has a low reusability rate and is difficult to trace;
[0011] The disadvantage of repeatedly building the same model is inefficient.
[0012] The invention patent with publication number CN108268460A discloses a method for automatically selecting the optimal model based on big data, including: step S1 classifies the mining targets; step S2 uses information gain to quickly select features for the entire data set; step S3 establishes a training set and a validation set; step S4 selects an effective data mining algorithm and its parameter combination; step S5 uses the Bayesian optimization method to select an effective parameter combination for each algorithm; step S6 selects the optimal data mining algorithm K; step S7 uses cross-validation to select and determine the parameter value combination of the data mining algorithm K to obtain the final model; step S8 if the result obtained by the model is relatively poor, repeat steps S2-S7 and reselect the optimal model until the model result is satisfactory; if it is relatively satisfactory, output the model. Summary of the invention
[0013] In view of the defects in the prior art, the present invention provides a method and system for automatic model selection based on product line engineering.
[0014] According to a method and system for automatic model selection based on product line engineering provided by the present invention, the scheme is as follows:
[0015] In a first aspect, a method for automatic model selection based on product line engineering is provided, the method comprising:
[0016] Step S1: Establish a model building framework;
[0017] Step S2: Carry out detailed modeling according to the built framework and perform model conversion.
[0018] Preferably, the step S2 comprises:
[0019] System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase;
[0020] Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem;
[0021] Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features.
[0022] Preferably, the module M2 further includes:
[0023] Part selection stage: By adding Existence constraints to model elements, determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements;
[0024] According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase;
[0025] Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as input for the system selection stage.
[0026] Preferably, the step S2 further comprises:
[0027] Model conversion: Get the optimal solution, establish the corresponding instance, and through the product line engineering function of the software, select the corresponding instance, model elements and views for automatic matching.
[0028] Preferably, in the model conversion: a reusable 150% system model is established, and different 100% models are generated according to different actual needs.
[0029] In a second aspect, a model automatic selection system based on product line engineering is provided, the system comprising:
[0030] Model M1: Establish the model building framework;
[0031] Model M2: Detailed modeling based on the built framework and model conversion.
[0032] Preferably, the module M2 comprises:
[0033] System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase;
[0034] Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem;
[0035] Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features.
[0036] Preferably, the module M2 further includes:
[0037] Part selection stage: By adding Existence constraints to model elements, determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements;
[0038] According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase;
[0039] Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as input for the system selection stage.
[0040] Preferably, the module M2 further includes:
[0041] Model conversion: Get the optimal solution, establish the corresponding instance, and through the product line engineering function of the software, select the corresponding instance, model elements and views for automatic matching.
[0042] Preferably, in the model conversion: a reusable 150% system model is established, and different 100% models are generated according to different actual needs.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] The present invention utilizes SysmL language and UML language, combines MBSE and product line construction method, models traditional product line construction, formulates a model building framework for system development, and introduces the Feature concept in UML language.
[0045] 1. Through product line document modeling, the problem of confusing information expression and misunderstanding in traditional product line construction is solved.
[0046] 2. By formulating a unified model development framework, the problems of low model reuse rate and difficult traceability were solved.
[0047] 3. By introducing the concept of Feature and cooperating with MBSE modeling tools, the problem of repeatedly building the same model and causing low efficiency is solved, thus improving work efficiency.
[0048] 4. Through the comprehensive improvement of the present invention, multiple reuse and rapid selection of product line engineering models are realized, which greatly improves production efficiency and reduces management costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0050] Figure 1 To build a framework diagram;
[0051] Figure 2 Provide a detailed schematic diagram for the framework;
[0052] Figure 3 A flowchart of the steps for building a detailed model;
[0053] Figure 4 This is the model architecture diagram;
[0054] Figure 5 This is the FeatureGroup architecture diagram;
[0055] Figure 6 This is the selection result diagram;
[0056] Figure 7 This is a 100% model diagram. DETAILED DESCRIPTION
[0057] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0058] The embodiment of the present invention provides a method for automatically selecting a model based on a product line engineering. Figure 1 As shown, the method includes:
[0059] Step S1: Establish a model building framework;
[0060] Step S2: Carry out detailed modeling according to the built framework and perform model conversion.
[0061] Specifically, step S2 includes the following stages:
[0062] System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase;
[0063] Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem;
[0064] Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features.
[0065] Part selection stage: Add Existence constraints to model elements to determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements; (Note: "Feature" is a class model in the unified modeling language UML, mainly used for type feature description); (Note: FeatureGroup is the same as "Feature", "Feature Group" is one of the elements in the UML language, which represents a collection of Features).
[0066] According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase;
[0067] Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as input for the system selection stage.
[0068] Model conversion: Get the optimal solution, establish the corresponding instance, and through the product line engineering function of the software, select the corresponding instance, model elements and views for automatic matching. Establish a reusable 150% system model and generate different 100% models according to different actual needs.
[0069] The present invention also provides a model automatic selection system based on product line engineering, the system comprising:
[0070] Model M1: Establish the model building framework;
[0071] Model M2: Detailed modeling based on the built framework and model conversion.
[0072] Specifically, module M2 includes:
[0073] System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase;
[0074] Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem;
[0075] Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features.
[0076] Part selection stage: Add Existence constraints to model elements to determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements; (Note: "Feature" is a class model in the unified modeling language UML, mainly used for type feature description); (Note: FeatureGroup is the same as "Feature", "Feature Group" is one of the elements in the UML language, which represents a collection of Features).
[0077] According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase;
[0078] Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as input for the system selection stage.
[0079] Model conversion: Get the optimal solution, establish the corresponding instance, and through the product line engineering function of the software, select the corresponding instance, model elements and views for automatic matching. Establish a reusable 150% system model and generate different 100% models according to different actual needs.
[0080] Next, the present invention will be described in more detail.
[0081] The present invention provides a method for automatic model selection based on product line engineering, which is specifically performed as follows:
[0082] S1. Establish model building framework;
[0083] In the early stage of design, the model building framework is established through the Package Diagram in the SysML language, referring to Figure 1 shown.
[0084] The output of the previous level analysis will serve as the input of the next level. For example, the content in the "SS1 Subsystem 1" folder (concept part) obtained by the system level analysis is a reference to the content in the "SS1 Subsystem 1_Design 1" folder (design part).
[0085] In addition, a "Selection Analysis Folder" is added to each folder. For the concept part folder, it contains the "Selection Feature" and "Selection Example" folders, and for the design part folder, it contains the "Selection Feature" and "Selection Constraint" references. Figure 2 shown.
[0086] S2. Detailed modeling based on the construction framework:
[0087] Reference Figure 3 The detailed model construction shown is as follows:
[0088] S2.1 System design stage
[0089] In the system design phase, the "system design" module inherits the properties of the "system" module built by engineers according to system requirements. The "system design" module is designed in detail, describing its component architecture and other parts (according to actual modeling requirements). The corresponding module is placed in the folder created in S1.
[0090] After completing the system design part, add the corresponding RootFeatureGroup in the "Selection Analysis" folder according to the built model (Note: "RootFeatureGroup" is the root feature set relative to "FeatureGroup", that is, the top-level Feature set in the entire model architecture, which can be composed of different FeatureGroups) to facilitate subsequent selection.
[0091] S2.2. Subsystem design stage
[0092] Add the corresponding constraints in the "Selection Constraints" folder of "Selection Analysis" in the "SS1 Subsystem 1" folder, and add the "SS1 Selection Analysis" module. Add the "SS1 Subsystem 1—Design 2" module, "SS1 Subsystem 1_Design 1" module, and "SS1 Selection Constraints" module to the "SS1 Selection Analysis" module in the form of Part attributes for subsequent selection analysis.
[0093] At the same time, add the corresponding module analysis in the "SS1 Subsystem 1_Design 1" and "SS1 Subsystem 1_Design 2" folders. In addition, the FeatureGroup of the "SS1 Subsystem 1_Design" module also needs to be added at this stage.
[0094] S2.3. Parts design stage
[0095] In this stage of design, the operations in the iterative subsystem design stage are analyzed to analyze the part design, analyze its structure and add FeatureGroup. (The degree of iteration depends on the engineer's requirements for model granularity. In this example, there are already mature part types to choose from in the part design stage, so there is no need to continue iterating.)
[0096] Add the "Selection Analysis" module and constraint relationship in the "Selection Constraint" folder in the "SSS1 Part 1" folder. After completing the above three steps, refer to the model architecture and FeatureGroup analysis Figure 4 and Figure 5 As shown. Among them, Figure 4 Medium, with black solid diamond blocks According to the Sysml modeling language, a solid black diamond block indicates that the module pointed by the arrow is a component of the module connected by the diamond.
[0097] S2.4, Parts Selection Stage
[0098] After S2.3, the left part of the process V model has been completed, and the subsequent selection and configuration work is to be carried out. It is necessary to add an instance of "SSS1" in the "SSS1 Part 1_Design" folder (that is, select different types of SSS1 Part 1).
[0099] The relationship between the Features in the FeatureGroup and the model elements is established by adding Existence constraints to the model elements.
[0100] The engineer obtains a selection result that meets the requirements based on the selection analysis added in "S2.3" and uses the instance corresponding to the result as the input of the subsystem selection stage.
[0101] S2.5: Subsystem selection stage
[0102] Reference Figure 6 As shown in the figure, in the previous stage, each "SSS" has been selected as the best instance, so that its corresponding "SS_D" has the best value. In this stage, you need to add "SS" instances, that is, select from "SS_D1", "SS_D2", "SS_D3"... options and add corresponding instances. And associate the corresponding Feature with the model element through Existence.
[0103] S2.6: Perform model conversion
[0104] Similarly, after completing the selection of "SS1", "SS2"..., "S_D" will have the corresponding optimal solution. Create the corresponding instance. Through the product line engineering function of the software, select the corresponding instance, and the model elements and views will be automatically matched.
[0105] After the automatic matching is completed, the 150% model is converted to a 100% model, such as Figure 7 (This example only shows the conversion of the structure diagram. In the actual modeling process, all related elements can be converted).
[0106] The embodiment of the present invention provides a method and system for automatic model selection based on product line engineering. It uses SysmL language and UML language, combines MBSE and product line construction methods, models traditional product line construction, develops a model building framework for system development, and introduces the concept of Feature in the UML language. First, modeling solves the problem that the information expression of traditional product line construction is easy to confuse and leads to misunderstanding. Secondly, specifying a unified model development framework solves the problem of low model reuse rate and difficult traceability. The introduction of the Feature concept in conjunction with the MBSE modeling tool solves the problem of repeatedly building the same model and low efficiency.
[0107] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0108] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A model automatic selection method based on product line engineering, characterized in that: include: Step S1: Establish a model building framework; Step S2: Carry out detailed modeling according to the built framework and perform model conversion; The step S2 comprises: System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase; Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem; Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features; The step S2 further comprises: Part selection stage: By adding Existence constraints to model elements, determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements; According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase; Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as inputs for the system selection stage. The step S2 further comprises: Model conversion: Get the optimal solution, establish the corresponding instance, and use the product line engineering function of the software to select the corresponding instance, model elements and views for automatic matching; In the model conversion: a reusable 150% system model is established, and different 100% models are generated according to different actual needs.
2. A model automatic selection system based on product line engineering, characterized in that: include: Module M1: Establishing the model building framework; Module M2: Detailed modeling based on the built framework and model conversion; The module M2 comprises: System design phase: inherit the system module properties built according to system requirements, and carry out detailed design of the system design phase, describe the component architecture and other parts, and add corresponding features in this phase; Subsystem design phase: inherit the subsystem module properties built in the design system design phase, and carry out detailed design in the subsystem design phase. In this phase, add corresponding features, and add selection constraints and module analysis in the corresponding folders of the subsystem; Part design phase: Iterate the operations of the subsystem design phase, analyze the part design, analyze the structure and add corresponding features; The module M2 also includes: Part selection stage: By adding Existence constraints to model elements, determine whether the model elements should exist, and establish the relationship between the Features in the FeatureGroup and the model elements; According to the selection analysis added in the part design phase, the selection results that meet the requirements are obtained, and the instances corresponding to the results are used as inputs in the subsystem selection phase; Subsystem selection stage: Add corresponding instances and associate corresponding Features with model elements through Existence. According to the selection analysis added in the subsystem design stage, obtain the selection results that meet the requirements, and use the instances corresponding to the results as inputs for the system selection stage. The module M2 also includes: Model conversion: Get the optimal solution, establish the corresponding instance, and use the product line engineering function of the software to select the corresponding instance, model elements and views for automatic matching; In the model conversion: a reusable 150% system model is established, and different 100% models are generated according to different actual needs.
Citation Information
Patent Citations
Method for automatic optimal model selection based on big data
CN108268460A
Ontology-based automatic generation method for control software model
CN110221815A
SysML framework based on Type Script and Web system engineering modeling platform based on Type Script
CN111399821A