Analyzing method, device and equipment of componentized software system and storage medium

By selecting candidate indicator strategies and iteratively adjusting them within a component-based software system, the problem of long analysis times in traditional methods is solved, enabling more efficient trade-off analysis.

CN114329918BActive Publication Date: 2026-05-29CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
Filing Date
2021-12-09
Publication Date
2026-05-29

Smart Images

  • Figure CN114329918B_ABST
    Figure CN114329918B_ABST
Patent Text Reader

Abstract

The application relates to an analysis method, device and equipment of a componentized software system and a storage medium. The componentized software system comprises n types of components, each type of component corresponds to an index set, and the index set comprises multiple candidate indexes arranged according to index size; the method comprises the following steps: selecting a candidate index from the index set of each type of component according to a preset selection strategy to obtain a first candidate index strategy; determining whether the first candidate index strategy satisfies a constraint condition of a preset trade-off optimization model according to the trade-off optimization model, wherein the constraint condition comprises that the reliability of the componentized software system obtained by purchasing according to the current candidate index strategy is maximum, and the cost is less than a maximum cost; if the constraint condition is not satisfied, a new first candidate index strategy is determined according to the selection strategy again, and the new first candidate index strategy is determined as a target index strategy. The method can improve the trade-off efficiency of the componentized software system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an analysis method, apparatus, device, and storage medium for a component-based software system. Background Technology

[0002] With the continuous development of computer technology, component-based software systems are finding increasingly diverse applications and becoming more complex in structure. Due to their large scale, numerous components, and complex functional structures and inter-component coupling relationships, reliability trade-off analysis is crucial for component-based software systems.

[0003] In traditional technologies, the procurement of components for a modular software system typically considers both the system's reliability and cost. The conventional approach involves establishing reliability and cost models for the software system based on defined reliability metrics. An optimization model is then built upon these models, and the Lagrange multiplier method is used to solve it, yielding the reliability metrics for each component to be procured. These reliability metrics ensure that the purchased modular software system achieves the highest possible reliability while meeting cost requirements.

[0004] However, traditional techniques are relatively time-consuming and inefficient when performing trade-off analysis on component-based software systems. Summary of the Invention

[0005] Therefore, it is necessary to provide an analysis method, apparatus, device, and storage medium for component-based software systems that can reduce the time and improve the efficiency of trade-off analysis in component-based software systems, thereby addressing the aforementioned technical problems.

[0006] Firstly, this application provides an analysis method for a component-based software system, wherein the component-based software system includes n types of components, each type of component corresponds to a set of indicators, and the set of indicators includes multiple candidate indicators arranged in order of indicator size; the method includes:

[0007] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0008] Based on the preset trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0009] If the conditions are not met, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy satisfies the constraints, and the new first candidate indicator strategy is determined as the target indicator strategy.

[0010] In one embodiment, determining whether the first candidate index strategy satisfies the constraints of the preset trade-off optimization model includes:

[0011] According to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system in accordance with the first candidate indicator strategy;

[0012] Determine whether the first cost exceeds the maximum cost, and obtain the first determination result;

[0013] Based on the first judgment result, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model.

[0014] In one embodiment, determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result includes:

[0015] If the first cost is less than the maximum cost, then it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model.

[0016] Correspondingly,

[0017] The strategy for re-determining a new first candidate indicator based on the selection strategy includes:

[0018] Randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced;

[0019] Select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

[0020] In one embodiment, determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result further includes:

[0021] If the first cost is greater than or equal to the maximum cost, then according to the preset reliability calculation model, the first reliability of the first componentized software system is calculated, and it is determined whether the first reliability is greater than the minimum reliability, to obtain a second judgment result.

[0022] Based on the second judgment result, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model.

[0023] In one embodiment, determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the second judgment result includes:

[0024] If the first reliability is less than the minimum reliability, then the first candidate index strategy is determined not to meet the constraints of the trade-off optimization model.

[0025] or,

[0026] If the first reliability is greater than or equal to the minimum reliability, then it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model.

[0027] In one embodiment, if the first cost is greater than or equal to the maximum cost, and the first reliability is greater than or equal to the minimum reliability, then the step of re-determining a new first candidate indicator strategy based on the trade-off optimization model until the new first candidate indicator strategy satisfies the constraints, and determining the new first candidate indicator strategy as the target indicator strategy, includes:

[0028] If the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein the cost incurred when purchasing the componentized software system according to the previous first candidate indicator strategy is less than the maximum cost;

[0029] If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

[0030] In one embodiment, calculating the first reliability of the first componentized software system according to a preset reliability calculation model includes:

[0031] Analyze the usage scenarios of the component-based software system to obtain the scenario profile corresponding to the first component-based software system; wherein, the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used.

[0032] Obtain the reliability of the first component-based software system in each business scenario;

[0033] The first comprehensive reliability is calculated based on the probability of occurrence of each business scenario and the reliability of the first componentized software system in each business scenario, using the reliability calculation model.

[0034] In one embodiment, obtaining the reliability of the componentized software system in each business scenario includes:

[0035] according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, and fi l To determine the frequency of invoking the componentized software system in the l-th business scenario, the R... i Let be the reliability of the i-th type of component;

[0036] Correspondingly,

[0037] The calculation of the first comprehensive reliability based on the reliability calculation model includes:

[0038] according to Calculate the first overall reliability R S , wherein, the P l Let be the probability of the l-th business scenario occurring.

[0039] In one embodiment, calculating the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy, based on a preset cost calculation model, includes:

[0040] Obtain the interface development cost;

[0041] The component cost incurred when purchasing the corresponding components according to the candidate indicators in the first candidate indicator strategy;

[0042] The sum of the interface cost and the component cost is determined as the first cost.

[0043] Secondly, this application also provides an analysis apparatus for a component-based software system, the component-based software system comprising n types of components, each type of component corresponding to a set of indicators, the set of indicators comprising multiple candidate indicators arranged in order of indicator size, the apparatus comprising:

[0044] The acquisition module is used to select a candidate indicator from the indicator set of each type of component according to a preset selection strategy to obtain a first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators, and the component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0045] The first determining module is used to determine whether the first candidate index strategy satisfies the constraints of the preset trade-off optimization model; wherein the constraints include that the reliability of the componentized software system procured according to the current candidate index strategy is maximized and the cost incurred is less than the maximum cost.

[0046] The second determining module is used to re-determine a new first candidate indicator strategy according to the selection strategy if the constraint conditions are not met, until the new first candidate indicator strategy meets the constraint conditions, and then determine the new first candidate indicator strategy as the target indicator strategy.

[0047] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the following steps: the component-based software system includes n types of components, each type of component corresponds to an indicator set, and the indicator set includes multiple candidate indicators arranged according to indicator size; the method includes:

[0048] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0049] Based on the preset trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0050] If the conditions are not met, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy satisfies the constraints, and the new first candidate indicator strategy is determined as the target indicator strategy.

[0051] Fourthly, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the following steps: the component-based software system includes n types of components, each type of component corresponding to a set of indicators, the set of indicators including multiple candidate indicators arranged according to indicator size; the method includes:

[0052] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0053] Based on the preset trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0054] If the conditions are not met, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy satisfies the constraints, and the new first candidate indicator strategy is determined as the target indicator strategy.

[0055] Fifthly, this application also provides a computer program product, comprising a computer program that, when executed by a processor, implements the following steps: the component-based software system includes n types of components, each type of component corresponding to a set of indicators, the set of indicators including multiple candidate indicators arranged according to indicator size; the method includes:

[0056] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0057] Based on the preset trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0058] If the conditions are not met, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy satisfies the constraints, and the new first candidate indicator strategy is determined as the target indicator strategy.

[0059] The aforementioned analysis method, apparatus, equipment, and storage medium for component-based software systems select a candidate indicator from the indicator set of each type of component included in the component-based software system according to a preset selection strategy, obtaining a first candidate indicator strategy. This first candidate indicator strategy includes n candidate indicators, and the component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the magnitude of the n candidate indicators. This allows the computer equipment to determine whether the first candidate indicator strategy meets the constraints of the preset trade-off optimization model. If the first candidate indicator strategy does not meet the constraints, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy meets the constraints. The new first candidate indicator strategy is then determined as the target indicator strategy. Using an iterative process to perform trade-off analysis on the component-based software system can save computation time, thereby quickly determining the target indicator strategy and improving the trade-off efficiency of the component-based software system. Attached Figure Description

[0060] Figure 1 This is a diagram illustrating the application environment of an analysis method for a componentized software system in one embodiment.

[0061] Figure 2 This is a flowchart illustrating the analysis method for a componentized software system in one embodiment;

[0062] Figure 3 This is a flowchart illustrating the analysis method for a componentized software system in another embodiment;

[0063] Figure 4 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0064] Figure 5 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0065] Figure 6 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0066] Figure 7 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0067] Figure 8 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0068] Figure 9 This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0069] Figure 10This is a flowchart illustrating the analysis method for a componentized software system in yet another embodiment;

[0070] Figure 11 This is a structural block diagram of the analysis device of a componentized software system in one embodiment;

[0071] Figure 12 This is a structural block diagram of the analysis device for a componentized software system in another embodiment;

[0072] Figure 13 This is a structural block diagram of the analysis device for a componentized software system in another embodiment. Detailed Implementation

[0073] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0074] The component-based software system analysis method provided in this application can be applied to, for example... Figure 1 The computer device shown. The internal structure diagram of this computer device can be seen as follows: Figure 1 As shown. The computer device can be a server, and includes a processor, memory, and network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores and constructs data for the software system. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements an analysis method for a componentized software system. This computer device can be implemented using a standalone computer or a cluster of multiple computers.

[0075] In one embodiment, such as Figure 2 As shown, an analysis method for component-based software systems is provided, which can be applied to... Figure 1 Taking computer equipment as an example, a component-based software system includes n types of components, each type of component corresponds to a set of indicators, and the set of indicators includes multiple candidate indicators arranged according to their size. The method includes the following steps:

[0076] S201. According to the preset selection strategy, select a candidate indicator from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0077] Among them, the preset selection strategy is a selection strategy set by a person. For example, the preset selection strategy can select indicators in the set sequentially starting from the first indicator of the set, or it can select indicators in the set sequentially starting from the last indicator of the set, or it can randomly select indicators in the set.

[0078] Optionally, the computer device may select the first indicator in the indicator set for each type of component according to a preset selection strategy, and use the first indicator in the indicator set for each type of component as a candidate indicator. Alternatively, the computer device may select the last indicator in the indicator set for each type of component according to a preset selection strategy, and use the last indicator in the indicator set for each type of component as a candidate indicator. Or, the computer device may randomly select an indicator from the indicator set for each type of component according to a preset selection strategy, and use the randomly selected indicator from the indicator set for each type of component as a candidate indicator. This embodiment does not limit which indicator in the indicator set is selected.

[0079] Specifically, after obtaining the candidate indicators for each type of component, all candidate indicators for all components are grouped into a set, which is called the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. For example, a component-based software system includes three types of components, each with three indicators. The indicator set for the first type of component is {1,2,3}, the indicator set for the second type of component is {4,5,6}, and the indicator set for the third type of component is {7,8,9}. If the computer device selects the first indicator of each type of component as a candidate indicator, then the set of the first candidate indicator strategies is {1,4,7}.

[0080] Furthermore, the indicators for each type of component are arranged according to their magnitude. The magnitude of a component indicator is positively correlated with its procurement cost; that is, the larger the indicator, the higher the corresponding procurement cost. For example, a component-based software system includes three types of components, each with three indicators. The indicator set for the first type of component is {1,2,3}, and its procurement cost is {100 yuan, 120 yuan, 150 yuan}. The indicator set for the second type of component is {4,5,6}, and its procurement cost is {160 yuan, 170 yuan, 180 yuan}. The indicator set for the third type of component is {7,8,9}, and its procurement cost is {200 yuan, 220 yuan, 250 yuan}. If the computer equipment selects the first indicator of each type of component as a candidate indicator, then the set of first candidate indicator strategies is {1,4,7}, and the procurement cost of the first candidate indicator strategy is {100 yuan, 160 yuan, 200 yuan}.

[0081] S202, based on the preset trade-off optimization model, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate index strategy is maximized, and the cost incurred is less than the maximum cost.

[0082] The preset trade-off optimization model can include trade-off optimization models established by reliability models and cost models, etc.

[0083] Specifically, the computer equipment can input the first candidate indicator strategy into a preset optimization model. Through the calculation of the preset optimization model, the reliability and cost corresponding to the first candidate indicator strategy are obtained. The reliability corresponding to the first candidate indicator strategy is compared with the preset reliability. If the reliability corresponding to the first candidate indicator strategy is greater than the preset reliability, the constraint condition corresponding to the reliability is met; if the reliability corresponding to the first candidate indicator strategy is less than or equal to the preset reliability, the constraint condition corresponding to the reliability is not met. At the same time, the cost incurred in purchasing the first candidate indicator strategy is compared with the set maximum cost. If the cost incurred in purchasing the first candidate indicator strategy is less than or equal to the set maximum cost, the constraint condition corresponding to the cost is met; if the cost incurred in purchasing the first candidate indicator strategy is greater than the set maximum cost, the constraint condition corresponding to the cost is not met.

[0084] Furthermore, by comparing the reliability of the first candidate indicator strategy with the preset reliability and the cost with the preset cost, it can be determined whether the first candidate indicator strategy meets the constraints of the trade-off optimization model. The first candidate indicator strategy meets the constraints of the trade-off optimization model when the reliability of the first candidate indicator strategy is greater than the preset reliability, and the cost incurred in purchasing the first candidate indicator strategy is less than the set maximum cost.

[0085] S203 If not satisfied, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy satisfies the constraints, and the new first candidate indicator strategy is determined as the target indicator strategy.

[0086] There are three scenarios where the constraints are not met: First candidate strategy does not meet the constraints if the reliability of the componentized software system procured by the candidate strategy is the highest, but the cost incurred is greater than or equal to the maximum cost; second candidate strategy does not meet the constraints if the cost incurred is less than or equal to the maximum cost, but the reliability of the componentized software system procured by the candidate strategy is not the highest; and third candidate strategy does not meet the constraints if the reliability of the componentized software system procured by the candidate strategy is not the highest, and the cost incurred is greater than the maximum cost.

[0087] Specifically, when the first candidate index strategy does not meet the constraints of the trade-off optimization model, a new candidate index is selected from various components according to the preset selection strategy to obtain a new first candidate index strategy. Then, it is determined whether the reliability of the new first candidate index strategy is maximized and whether the cost of the new first candidate index strategy is less than the maximum cost. If the new first candidate index strategy can meet the constraints, it is adopted as the target index strategy. If the new first candidate index strategy does not meet the constraints, another new first candidate index strategy is determined, and the next new first candidate index strategy is determined to meet the constraints, until the determined new first candidate index strategy meets the constraints. The new first candidate index strategy that meets the constraints is then determined as the target index strategy.

[0088] In the aforementioned analysis method for component-based software systems, a candidate indicator is selected from the indicator set of each type of component included in the component-based software system according to a preset selection strategy. This yields a first candidate indicator strategy, which includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the magnitude of the n candidate indicators. This allows the computer equipment to determine whether the first candidate indicator strategy satisfies the constraints of the preset trade-off optimization model. The constraints include maximizing the reliability of the component-based software system procured according to the current candidate indicator strategy and ensuring that the cost is less than the maximum cost. If the first candidate indicator strategy does not meet the constraints, a new first candidate indicator strategy is determined according to the selection strategy until the new first candidate indicator strategy meets the constraints. The new first candidate indicator strategy is then determined as the target indicator strategy. Using an iterative process to perform trade-off analysis on the component-based software system saves computation time, allowing for rapid determination of the target indicator strategy and improving the trade-off efficiency of the component-based software system.

[0089] Figure 3 This is a flowchart illustrating the analysis method for a component-based software system provided in this application embodiment. This embodiment relates to an optional implementation method of how a computer device determines whether a first candidate index strategy satisfies the constraints of a preset trade-off optimization model. Based on the above embodiment, as... Figure 3 As shown, the above S202 may include the following steps:

[0090] S301, according to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy.

[0091] Specifically, the cost of component-based software includes the procurement cost of each component, the development cost of interfaces, and other costs. Computer equipment can establish a cost calculation model based on the procurement cost of each component, the development cost of interfaces, and other costs. The indicators in the first candidate indicator strategy set are input into the preset cost calculation model. The cost of purchasing the first component-based software system using the first candidate indicator strategy can be obtained by calculating the cost based on the preset cost calculation model.

[0092] S302, determine whether the first cost exceeds the maximum cost, and obtain the first judgment result.

[0093] The largest cost could be the purchase cost of a historical component-based software system similar to the first component-based software system.

[0094] Specifically, step S301 yields the first cost incurred in procuring the first componentized software system. The computer equipment determines whether the first cost exceeds the maximum cost by comparing the first cost with the maximum cost. For example, if the set of first candidate indicator strategies is {1,4,7}, the procurement cost of the first candidate indicator strategies is {100 yuan, 160 yuan, 200 yuan}, other costs besides the procurement cost are 500 yuan, the first cost is 960 yuan, and the maximum cost is set at 900 yuan, then the first cost exceeds the maximum cost.

[0095] S303, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result.

[0096] Specifically, when the first cost incurred in purchasing the first componentized software system through the first candidate indicator strategy is greater than the maximum cost, the constraint condition corresponding to the cost is not met, that is, the first candidate indicator strategy does not meet the constraint condition of the trade-off optimization model. When the first cost incurred in purchasing the first componentized software system through the first candidate indicator strategy is less than or equal to the maximum cost, the constraint condition corresponding to the cost is met. However, at this time, it is impossible to determine whether the reliability of the first componentized software system is greater than the preset reliability. At this time, the first candidate indicator strategy also does not meet the constraint condition of the trade-off optimization model.

[0097] In the above-mentioned analysis method for component-based software systems, the computer equipment can calculate the first cost incurred when purchasing the first component-based software system according to the first candidate index strategy based on the preset cost calculation model. This allows for a quick determination of whether the first cost exceeds the maximum cost, resulting in a first judgment result. Furthermore, based on the first judgment result, it can be quickly determined whether the first candidate index strategy meets the constraints of the trade-off optimization model, thereby improving the judgment efficiency of the first candidate index strategy.

[0098] Figure 4 This is a flowchart illustrating the analysis method for a component-based software system provided in this application embodiment. This embodiment relates to the specific process of re-determining a new first candidate index strategy when the first cost is less than the maximum cost and the first candidate index strategy does not meet the constraints of the trade-off optimization model. Based on the above embodiment, the method includes:

[0099] S401, according to the preset selection strategy, select a candidate indicator from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0100] S402, according to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy.

[0101] S403, determine whether the first cost exceeds the maximum cost, and obtain the first judgment result.

[0102] S404, if the first cost is less than the maximum cost, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0103] Specifically, when the first cost is less than the maximum cost, the first cost of the first candidate index strategy satisfies the constraint condition corresponding to the cost. However, at this time, the reliability of the first candidate index strategy cannot be evaluated, and it cannot be determined whether the reliability of the first candidate index strategy satisfies the constraint condition corresponding to the reliability. Therefore, when the first cost is less than the maximum cost, it is determined that the first candidate index strategy does not satisfy the constraint condition of the trade-off optimization model.

[0104] S405, randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced.

[0105] Specifically, when the first candidate indicator strategy does not meet the constraints of the tradeoff optimization model, a candidate indicator that needs to be replaced is randomly selected from the set of first candidate indicator strategies, and a new target component is selected to replace the candidate indicator that needs to be replaced. For example, when the set of first candidate indicator strategies is {1,4,7}, 7 in this set is selected as the candidate indicator that needs to be replaced. Therefore, the third type of component in the indicator set {7,8,9} where 7 is located is selected as the target component.

[0106] S406: Select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy, until the new first candidate indicator strategy satisfies the constraint conditions, and determine the new first candidate indicator strategy as the target indicator strategy.

[0107] Specifically, since the indicator set of the target component is arranged according to indicator size, replacing the aforementioned candidate indicator with the next candidate indicator of the candidate indicator to be replaced yields a new first candidate indicator strategy. For example, if the set of first candidate indicator strategies is {1,4,7}, and 7 is selected as the candidate indicator to be replaced, then in the indicator set {7,8,9} of the third type of component, indicator 8 should be selected to replace indicator 7. The resulting new set of first candidate indicator strategies can be represented as {1,4,8}.

[0108] After obtaining a new first candidate indicator strategy, the computer equipment will recalculate the first cost incurred when purchasing the first componentized software system according to the new first candidate indicator strategy and a preset cost calculation model. It will then determine whether this first cost exceeds the maximum cost. If the first cost is less than the maximum cost, the new first candidate indicator strategy does not meet the constraints of the trade-off optimization model. For example, if the set of new first candidate indicator strategies can be represented as {1,4,8}, the purchase cost according to the new first candidate indicator strategy is {100 yuan, 160 yuan, 220 yuan}, other costs besides the purchase cost are 500 yuan, the first cost is 980 yuan, and the maximum cost is set at 1000 yuan, then the first cost does not exceed the maximum cost, meaning the new first candidate indicator strategy does not meet the conditions of the trade-off optimization.

[0109] Furthermore, when the new first candidate index strategy does not meet the constraints of the trade-off optimization model, a candidate index that needs to be replaced is randomly selected from the set of new first candidate index strategies. A new target component is selected to replace the candidate index that needs to be replaced, resulting in another new first candidate index strategy. The process continues to determine whether the new first candidate index strategy meets the constraints of the trade-off optimization model until the new first candidate index strategy meets the constraints. The new first candidate index strategy is then determined as the target index strategy. For example, if the set of new first candidate indicator strategies is {1,4,8}, and 4 is selected as the candidate indicator to be replaced, then in the indicator set {4,5,6} of the second type of component, indicator 5 should be selected to replace indicator 4. The resulting set of another new first candidate indicator strategies can be represented as {1,5,8}. According to the procurement cost of the other new first candidate indicator strategy, which is {100 yuan, 170 yuan, 220 yuan}, the other costs besides the procurement cost are 500 yuan, the first cost is 990 yuan, and the maximum cost is set to 1000 yuan, the first cost does not exceed the maximum cost. That is, the new first candidate indicator strategy does not meet the conditions for trade-off optimization. Based on the other new first candidate indicator strategy {1,5,8}, a new first candidate indicator is selected until the new first candidate indicator strategy meets the constraints. The new first candidate indicator strategy is then determined as the target indicator strategy.

[0110] In the analysis method of the above-mentioned component-based software system, when the first cost is less than the maximum cost, the computer determines that the first candidate index strategy does not meet the constraints of the trade-off optimization model. Therefore, it can randomly select a candidate index to be replaced from the first candidate index strategy, quickly determine the target component corresponding to the candidate index to be replaced, and then select the next candidate index from the index set of the target component. The next candidate index is then quickly replaced with the candidate index to be replaced, improving the efficiency of obtaining a new first candidate index strategy. At the same time, through the continuous iterative process and the judgment of constraints, the target index strategy can be selected comprehensively and accurately from multiple index strategies, so that the final target index strategy is the optimal strategy, improving the accuracy of obtaining the optimal strategy.

[0111] Figure 5 This is a flowchart illustrating the analysis method for a component-based software system provided in this embodiment. This embodiment involves calculating the first reliability of the first component-based software system when the first cost is greater than or equal to the maximum cost, determining the relationship between the first reliability and the minimum reliability, and determining whether the first candidate index satisfies the constraints of the trade-off optimization model based on the determination result. Figure 5 As shown, the above S303 may include:

[0112] S501, if the first cost is greater than or equal to the maximum cost, then according to the preset reliability calculation model, calculate the first reliability of the first component software system, and determine whether the first reliability is greater than the minimum reliability to obtain the second judgment result.

[0113] The preset reliability calculation model is established based on the reliability of various components. The aforementioned minimum reliability can be the minimum reliability of a historical component-based software system similar to the first component-based software system.

[0114] Specifically, when the first cost is greater than or equal to the maximum cost, the constraint condition corresponding to the cost is not met. At this time, it is necessary to determine whether the new first candidate index strategy meets the constraint condition corresponding to the reliability. The reliability corresponding to the first candidate index strategy is input into the preset reliability calculation model. The first reliability of the first componentized software system is obtained by calculation. The first reliability of the first componentized software system is compared with the minimum reliability to obtain the comparison result.

[0115] S502, Based on the second judgment result, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model.

[0116] Optionally, when the first reliability of the first componentized software system is less than the minimum reliability, the constraint condition corresponding to the reliability is not met. At the same time, when the first cost is greater than or equal to the maximum cost, the constraint condition corresponding to the cost is not met. Therefore, the first candidate index strategy does not meet the constraint condition of the trade-off optimization model.

[0117] Optionally, when the first reliability of the first componentized software system is greater than or equal to the minimum reliability, the constraint condition corresponding to the reliability is satisfied. However, when the first cost is greater than or equal to the maximum cost, the constraint condition corresponding to the cost is not satisfied. In this case, the first candidate index strategy also does not satisfy the constraint condition of the trade-off optimization model.

[0118] In the above-mentioned analysis method for component-based software systems, when the first cost is greater than or equal to the maximum cost, the computer equipment can calculate the first reliability of the first component-based software system according to the preset reliability calculation model, and determine whether the first reliability is greater than the minimum reliability. When the first reliability is less than the minimum reliability, neither the first cost nor the first reliability satisfies the constraint conditions, then it is determined that the first candidate index strategy does not satisfy the constraint conditions of the trade-off optimization model. When the first reliability is greater than or equal to the minimum reliability, the first reliability satisfies the constraint conditions, but the first cost does not satisfy the constraint conditions, then it is determined that the first candidate index strategy does not satisfy the constraint conditions of the trade-off optimization model. When the first cost is greater than or equal to the maximum cost, regardless of whether the first reliability is greater than the minimum reliability, the first candidate index strategy does not satisfy the constraint conditions of the trade-off optimization model, which improves the accuracy of the judgment process of the first candidate index strategy, thereby increasing the accuracy of the finally determined target candidate index strategy.

[0119] Figure 6 This is a flowchart illustrating the analysis method for a component-based software system provided in this application embodiment. This embodiment relates to the specific process of re-determining a new first candidate indicator strategy when the first cost is greater than or equal to the maximum cost and the first reliability is greater than or equal to the minimum reliability, and the first candidate indicator strategy does not meet the constraints of the trade-off optimization model. Based on the above embodiment, the method includes:

[0120] S601, according to the preset selection strategy, select a candidate indicator from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0121] S602, according to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy.

[0122] S603 determines whether the first cost exceeds the maximum cost and obtains the first judgment result.

[0123] S604, if the first cost is greater than or equal to the maximum cost, then according to the preset reliability calculation model, calculate the first reliability of the first component software system, and determine whether the first reliability is greater than the minimum reliability to obtain the second judgment result.

[0124] S605, if the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein, the cost incurred when purchasing the componentized software system according to the previous first candidate indicator strategy is less than the maximum cost.

[0125] Specifically, in a component-based software system, the metrics of each component and the corresponding procurement costs are arranged in ascending order. When the first cost of the current first candidate metric strategy is greater than or equal to the maximum cost, it indicates that the cost of the previous candidate metric strategy is less than the maximum cost (because only when the cost of the previous candidate metric strategy is less than the maximum cost does it mean that the previous candidate metric strategy does not meet the above constraints, and only then will there be a process to determine the next first candidate metric strategy; the determined next first candidate metric strategy is the current first candidate metric strategy in this embodiment). Therefore, if the first cost of the current first candidate metric strategy is greater than the maximum cost, and the first reliability of the first candidate metric strategy is greater than or equal to the minimum reliability, then the previous strategy of the first candidate metric strategy can be used as the new first candidate metric strategy. At this time, the first cost of the new first candidate metric strategy is less than the maximum cost, and the computer device only needs to further determine whether the reliability of the new first candidate metric strategy is greater than the minimum reliability to determine whether the new first candidate metric strategy is the target metric strategy.

[0126] S606 If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

[0127] Specifically, the previous first candidate indicator strategy is input into the preset reliability model. Based on the calculation of the preset reliability model, the reliability of the previous first candidate indicator strategy is obtained. The reliability of the previous first candidate indicator strategy is compared with the minimum reliability. When the reliability of the previous first candidate indicator strategy is greater than the minimum reliability, the previous first candidate indicator strategy is determined as the target indicator strategy.

[0128] In the above-mentioned analysis method for component-based software systems, when the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, the previous first candidate indicator strategy is determined as the new first candidate indicator strategy. Then, it is determined whether the historical reliability of the component-based software system purchased under the previous first candidate indicator strategy is greater than the minimum reliability. If so, the previous first candidate indicator strategy is determined as the target indicator strategy. According to the cost pattern of each strategy, the target indicator strategy can be accurately determined, thus improving the accuracy of the target indicator strategy.

[0129] Figure 7 This is a flowchart illustrating the reliability calculation method for a component-based software system provided in an embodiment of this application. Figure 7 As shown, the above S501 may include:

[0130] S701, Analyze the usage scenarios of the component-based software system to obtain the scenario profile corresponding to the first component-based software system; wherein, the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used.

[0131] Among them, the component-based software system procured through the first candidate indicator strategy is referred to as the first component-based software system. The use cases of this first component-based software system include the basic tasks within that scenario, the probability information of the use case being executed, the operation information performed by the first component-based software system, and the component call relationships within the first component-based software system under different operations. The basic tasks represent a series of business activities occurring in the use case, such as data processing tasks, including data reception, data calculation, and data transmission events; the probability information indicates the likelihood or frequency of each use case being executed by the first component-based software system; the operation information indicates the specific logical tasks the software must perform in different events, such as sending messages or real-time navigation; and the component call relationships indicate the information about which components are called under specific operations.

[0132] Specifically, the computer device analyzes the basic tasks of the first component-based software system under the usage scenario, the probability information of the usage scenario being executed, the operation information executed by the first component-based software system, and the component calling relationship within the component-based software system under different operations, and integrates the above information to obtain the scenario profile corresponding to the first component-based software system, as shown in Table 1.

[0133] Table 1 Scene Profile of the First Component-Based Software System

[0134]

[0135] S702, obtain the reliability of the first componentized software system in each business scenario.

[0136] Optionally, the computer equipment can be based on Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, f i l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let represent the reliability of the i-th type of component.

[0137] Specifically, the computer device first calculates the power of the frequency of calling the component-based software system in the l-th business scenario for the reliability of each type of component. The power of the frequency of the reliability of the i-th type of component in the l-th business scenario can be expressed as: Then, multiply the results of raising the frequency of the reliability of each type of component together to obtain the reliability of the first component-based software system in the l-th business scenario. The reliability of the first component-based software system in the l-th business scenario is expressed as:

[0138] S703, calculate the first comprehensive reliability based on the reliability calculation model according to the probability of occurrence of each business scenario and the reliability of the first componentized software system in each business scenario.

[0139] Optionally, the computer equipment can be based on Calculate the first overall reliability R S , where P l Let P be the probability of the l-th business scenario occurring. Specifically, the probability of the first component-based software system being applied in each scenario can be represented by P. l This means that the sum of the probabilities of the first component-based software system being applied in all scenarios is 1, which can be expressed as:

[0140] Furthermore, the reliability of the first componentized software system in the l-th business scenario is multiplied by the probability of its occurrence in the l-th scenario, and all the product results are summed to obtain the first comprehensive reliability of the first componentized software system. The comprehensive reliability of the first componentized software system can be expressed as:

[0141] In the aforementioned analysis method for component-based software systems, the computer device analyzes the usage scenarios of the component-based software system to obtain a scenario profile corresponding to the first component-based software system. Since the scenario profile represents multiple business scenarios when the first component-based software system is used, the reliability of the first component-based software system in each business scenario can be accurately obtained. Furthermore, based on the probability of occurrence of each business scenario and the first comprehensive reliability of the first component-based software system, the accuracy of the reliability calculation for the first component-based software system is greatly improved. Because this embodiment considers the reliability of the component-based software system in each business scenario when calculating the first comprehensive reliability of the first component-based software system, the accuracy of the reliability calculation for the first component-based software system is significantly improved.

[0142] Figure 8 This is a flowchart illustrating the cost calculation method for a component-based software system provided in an embodiment of this application. Figure 8 As shown, the above S301 may include:

[0143] S801, obtain the interface development cost.

[0144] Optionally, the development cost of this interface can be expressed as C. l The computer equipment selects a historical component-based software system similar to the first component-based software system, obtains the interface development cost of the historical component-based software system, and uses the interface development cost of the historical component-based software system as the interface development cost of the first component-based software system.

[0145] S802, obtain the component cost incurred when purchasing the corresponding component according to the candidate indicator in the first candidate indicator strategy.

[0146] Optionally, the component cost incurred when procuring components corresponding to candidate indicators in the first candidate indicator strategy can be expressed as: Specifically, the first candidate indicator strategy corresponds to the component cost of the first candidate indicator. It can sum the costs of each component to obtain the total cost of all components, which can be expressed as follows: Among them, C i Let C represent the component cost of the i-th type of component. n This represents the total component cost.

[0147] For example, suppose the first component-based software system includes three types of components, each type of component includes three indicators. The indicator set for the first type of component is {1,2,3}, and the purchase cost of the indicators for the first type of component is {100 yuan, 120 yuan, 150 yuan}. The indicator set for the second type of component is {4,5,6}, and the purchase cost of the indicators for the second type of component is {160 yuan, 170 yuan, 180 yuan}. The indicator set for the third type of component is {7,8,9}, and the purchase cost of the indicators for the third type of component is {200 yuan, 220 yuan, 250 yuan}. The computer equipment selects the first indicator of each type of component as a candidate indicator. Then the set of the first candidate indicator strategy is {1,4,7}, and the purchase cost of the first candidate indicator strategy is {100 yuan, 160 yuan, 200 yuan}. The component cost incurred when purchasing the corresponding component according to the candidate indicators in the first candidate indicator strategy is 460 yuan.

[0148] S803 defines the sum of interface cost and component cost as the first cost.

[0149] Optionally, the first cost can be expressed as

[0150] The cost calculation method for component-based software systems provided in this embodiment comprehensively considers the costs of each component and the interface costs when calculating the cost of the entire component-based software system, thus greatly improving the accuracy of the first cost calculation for component-based software systems.

[0151] In another embodiment, such as Figure 9 As shown, to facilitate understanding by those skilled in the art, the analysis method for component-based software systems is described in detail below. A component-based software system includes n types of components, each type of component corresponding to a set of indicators. The set of indicators includes multiple candidate indicators arranged according to their magnitude. This method may include:

[0152] S901, according to the preset selection strategy, select a candidate indicator from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0153] S902, Obtain the interface development cost C L .

[0154] S903, the component cost incurred when procuring components according to the candidate indicators in the first candidate indicator strategy.

[0155] S904, determine the first cost incurred in procuring the first component-based software system according to the first candidate indicator strategy as...

[0156] S905, determine whether the first cost exceeds the maximum cost. If not, i.e. the first cost is less than the maximum cost, proceed to steps S906-S908; if yes, i.e. the first cost is greater than or equal to the maximum cost, proceed to step S909.

[0157] S906, it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model.

[0158] S907, randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced.

[0159] S908: Select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy, and execute step S902 until the first cost is greater than or equal to the maximum cost.

[0160] S909, analyze the usage scenarios of the component-based software system to obtain the scenario profile corresponding to the first component-based software system.

[0161] S910, according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, f i l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let represent the reliability of the i-th type of component.

[0162] S911, according to Calculate the first overall reliability R S , where P l Let be the probability of the l-th business scenario occurring.

[0163] S912, determine whether the first comprehensive reliability is greater than the minimum reliability. If the first comprehensive reliability is greater than or equal to the minimum reliability, execute steps S914-S917; if the first comprehensive reliability is less than the minimum reliability, execute step S913.

[0164] S913, if the first comprehensive reliability is less than the minimum reliability, it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model, and the process returns to step S907.

[0165] S914. If the first cost is greater than the maximum cost and the first comprehensive reliability is greater than or equal to the minimum reliability, then it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model, and step S915 is continued.

[0166] S915, the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein, the cost incurred when purchasing componentized software systems according to the previous first candidate indicator strategy is less than the maximum cost.

[0167] S916, determine whether the historical reliability of the component-based software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability. If the historical reliability of the component-based software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, proceed to step S917; if the historical reliability of the component-based software system procured according to the previous first candidate indicator strategy is less than or equal to the minimum reliability, proceed to step S907.

[0168] S917, determine the previous first candidate indicator strategy as the target indicator strategy.

[0169] It should be noted that the descriptions in S901-S917 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0170] Furthermore, the analysis method for the component-based software system provided in this application is combined with... Figure 10 The flowchart shown is explained in detail.

[0171] Suppose a component-based software system comprises n types of components, each type of component corresponding to a set of indicators. The candidate indicators within this set are arranged in ascending order of magnitude. It should be noted that the larger the candidate indicator, the higher the procurement cost of that type of component.

[0172] The first step is to obtain the first candidate indicator strategy according to a preset selection strategy. Specifically, firstly, from the indicator sets corresponding to various components of the componentized software system, the smallest candidate indicator is selected for each component. The set of the selected smallest candidate indicators is determined as the initial candidate indicator strategy, which can be represented as A0 = {r 11 ,r 21 ,…r n1}. Where r 11 The smallest candidate index for the first type of component in a component-based software system; r 21 The minimum candidate index for the second type of component in a component-based software system; r n1 It is the smallest candidate index for the nth type of component in a component-based software system.

[0173] Then, randomly select a candidate indicator to be replaced from the initial candidate indicator strategy, determine the target component corresponding to the candidate indicator to be replaced, select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, and replace the next candidate indicator with the candidate indicator to be replaced to obtain the first candidate indicator strategy. Assume that the initial candidate indicator strategy can be expressed as A0 = {r 11 ,r 21 ,…r n1}. Select r 21 as the candidate indicator to be replaced. The target component corresponding to the candidate indicator r 21 to be replaced is the second type of component r2 (the second type of component r2 corresponds to an indicator set). Select the next candidate indicator r 21 of the candidate indicator r 22 to be replaced from the target component r2 to replace the candidate indicator r 21 to be replaced. The obtained first candidate indicator strategy can be expressed as A1 = {r 11 ,r 22 ,…r n1}.

[0174] After that, the computer device determines whether the first candidate indicator strategy meets the constraint conditions of the trade-off optimization model according to the preset trade-off optimization model. First, according to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy. Assume that the first cost can be expressed as C1, and the maximum cost can be expressed as C t . The computer device determines whether the first cost exceeds the maximum cost. If the first cost is less than the maximum cost, that is, when C1 < C t , it is determined that the first candidate indicator strategy does not meet the constraint conditions of the trade-off optimization model; if the first cost is greater than or equal to the maximum cost, that is, when C1 > C t , then according to the preset reliability calculation model, calculate the first reliability of the first componentized software system. Assume that the first reliability can be expressed as R1, and the minimum reliability can be expressed as R0, and determine whether the first reliability is greater than the minimum reliability; if the first reliability is less than the minimum reliability, that is, when R1 < R0, it is determined that the first candidate indicator strategy does not meet the constraint conditions of the trade-off optimization model; if the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, that is, when R1 > R0, it is determined that the first candidate indicator strategy does not meet the constraint conditions of the trade-off optimization model.

[0175] Finally, if the first candidate indicator strategy does not satisfy the constraints of the tradeoff optimization model, a new first candidate indicator strategy is determined based on the selection strategy, and this process continues until the new first candidate indicator strategy satisfies the constraints. The new first candidate indicator strategy is then determined as the target indicator strategy. Assume the first candidate indicator strategy can be expressed as A1 = {r...} 11 ,r 22 ,…r n1 When the first candidate index strategy does not meet the constraints of the tradeoff optimization model, the computer device randomly selects a replacement candidate index from the first candidate index strategy, determines the target component corresponding to the replacement candidate index, selects the next candidate index from the index set of the target component, and replaces the replacement candidate index with the new first candidate index strategy. For example, suppose the computer device selects r in this case. 11 As a candidate indicator to be replaced, the candidate indicator to be replaced is r. 11 The corresponding target component is the first type of component r1 (the first type of component r1 corresponds to a set of indicators). Candidate indicators r to be replaced are selected from the target component r1. 11 The next candidate indicator r 12 Replace with the candidate index r to be replaced 11 The resulting new first candidate index strategy can be expressed as A2 = {r 12 ,r 22 ,…r n1 Based on this new first candidate indicator strategy, the computer device continues to determine whether the new first candidate indicator satisfies the constraints of the trade-off optimization model. When the second cost incurred in purchasing the first componentized software system according to the new first candidate indicator strategy is greater than the maximum cost and the second reliability is greater than or equal to the minimum reliability, the computer device selects the new first candidate indicator strategy A2 = {r 21 ,r 22 ,…r n1 The previous new first candidate indicator strategy is A1 = {r} 11 ,r 22 ,…r n1}, determine A1={r 11 ,r 22 ,…r n1 If the reliability of the candidate indicator strategy is greater than the minimum reliability, then the candidate indicator strategy is determined as the target indicator strategy.

[0176] Suppose that the component-based software system includes three types of components, each corresponding to a set of indicators. For example, the component-based software system includes three types of components: A, B, and C. The indicator set corresponding to component A is (a1, a2, a3), the indicator set corresponding to component B is (b1, b2, b3), and the indicator set corresponding to component C is (c1, c2, c3). Assuming the initial candidate indicator strategy is (a1, b1, c1), the computer device selects b1 from the initial candidate indicator strategy to replace it, and replaces b1 with b2 from the indicator set corresponding to Class B components, resulting in the first candidate indicator strategy (a1, b2, c1). When the first cost incurred in purchasing the first componentized software system according to the first candidate indicator strategy is less than the maximum cost, the first candidate indicator strategy does not satisfy the constraints of the trade-off optimization model. The computer device randomly selects a1 from the first candidate indicator strategy (a1, b2, c1) as the candidate indicator to be replaced, and replaces a1 with a2 from the indicator set corresponding to Class A components, resulting in a new first candidate indicator strategy (a2, b2, c1).

[0177] When the second cost incurred in procuring the first componentized software system according to the new first candidate indicator strategy exceeds the maximum cost, it is determined whether the second reliability of the new first candidate indicator strategy is greater than the minimum reliability. If the reliability of the new first candidate indicator strategy (a2, b2, c1) is greater than the minimum reliability, the computer equipment selects the previous candidate indicator strategy (a1, b2, c1) as the first candidate indicator strategy (a1, b2, c1), and if the reliability of the previous first candidate indicator strategy (a1, b2, c1) is greater than the minimum reliability, (a1, b2, c1) is used as the target indicator strategy. If the reliability of the new first candidate indicator strategy (a2, b2, c1) is greater than the minimum reliability, b2 is randomly selected from the new first candidate indicator strategies (a2, b2, c1) as the candidate indicator to be replaced, and b2 from the indicator set corresponding to the B-type component is used. 3. Replace b2 to obtain another new first candidate indicator strategy (a2, b3, c1). When the third cost incurred in purchasing the first componentized software system according to the other new first candidate indicator strategy (a2, b3, c1) is greater than the maximum cost, and the reliability of the other new first candidate indicator strategy (a2, b3, c1) is greater than the minimum reliability, the previous candidate indicator strategy of the other new first candidate indicator strategy (a2, b3, c1) is the new first candidate indicator strategy (a2, b2, c1), and the new first candidate indicator strategy (a2, b2, c1) is used as the target indicator strategy; if the reliability of the other new first candidate indicator strategy (a2, b3, c1) is less than or equal to the minimum reliability, continue to select another new first candidate indicator strategy until the new first candidate indicator strategy meets the constraints, and then determine the new first candidate indicator strategy as the target indicator strategy.

[0178] The above-mentioned analysis method for component-based software systems allows computer equipment to comprehensively and accurately analyze and judge multiple strategies of the component-based software system through a cyclical iterative process, resulting in more accurate target indicator strategies.

[0179] It should be understood that, although Figure 2-10 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2-10 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0180] In one embodiment, such as Figure 11 As shown, an analysis device for a component-based software system is provided, comprising: an acquisition module 11, a first determination module 12, and a second determination module 13, wherein:

[0181] The acquisition module 11 is used to select a candidate indicator from the indicator set of each type of component according to a preset selection strategy to obtain a first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators, and the component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0182] The first determining module 12 is used to determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model according to the preset trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate index strategy is the highest, and the cost incurred is less than the maximum cost.

[0183] The second determining module 13 is used to re-determine a new first candidate indicator strategy based on the selection strategy when the constraints are not met, until the new first candidate indicator strategy meets the constraints, and then determine the new first candidate indicator strategy as the target indicator strategy.

[0184] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0185] In one embodiment, such as Figure 12 As shown, the first determining module 12 includes: a first calculation unit 121, a first acquisition unit 122, and a first determining unit 123, wherein:

[0186] The first calculation unit 121 is used to calculate the first cost incurred when purchasing the first componentized software system according to the first candidate index strategy, based on a preset cost calculation model.

[0187] The first acquisition unit 122 is used to determine whether the first cost exceeds the maximum cost and obtain the first judgment result;

[0188] The first determining unit 123 is used to determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result.

[0189] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0190] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to determine that the first candidate index strategy does not meet the constraints of the trade-off optimization model when the first cost is less than the maximum cost.

[0191] Correspondingly, such as Figure 13 As shown, the second determining module 13 includes: a second determining unit 131 and a second obtaining unit 132, wherein:

[0192] The second determining unit 131 is used to randomly select a candidate indicator to be replaced from the first candidate indicator strategy and determine the target component corresponding to the candidate indicator to be replaced.

[0193] The second acquisition unit 132 is used to select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

[0194] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0195] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to calculate the first reliability of the first componentized software system according to a preset reliability calculation model when the first cost is greater than or equal to the maximum cost, and to determine whether the first reliability is greater than the minimum reliability, thereby obtaining a second determination result; and to determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the second determination result.

[0196] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0197] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to determine that the first candidate index strategy does not meet the constraints of the trade-off optimization model when the first reliability is less than the minimum reliability, or to determine that the first candidate index strategy does not meet the constraints of the trade-off optimization model when the first reliability is greater than or equal to the minimum reliability.

[0198] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0199] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to determine a new first candidate index strategy according to the trade-off optimization model when the first cost is greater than or equal to the maximum cost and the first reliability is greater than or equal to the minimum reliability, until the new first candidate index strategy meets the constraints, and to determine the new first candidate index strategy as the target index strategy, including: when the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, the previous first candidate index strategy is determined as the new first candidate index strategy; wherein, the cost incurred when purchasing the componentized software system according to the previous first candidate index strategy is less than the maximum cost; and when the historical reliability of the componentized software system purchased according to the previous first candidate index strategy is greater than the minimum reliability, the previous first candidate index strategy is determined as the target index strategy.

[0200] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0201] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to analyze the usage scenarios of the componentized software system to obtain the scenario profile corresponding to the first componentized software system; wherein, the scenario profile is used to characterize multiple business scenarios when the first componentized software system is used; to obtain the reliability of the first componentized software system in each business scenario; and to calculate the first comprehensive reliability based on the reliability calculation model according to the occurrence probability of each business scenario and the reliability of the first componentized software system in each business scenario.

[0202] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0203] Based on the above embodiments, optionally, the first determining unit 123 is specifically used to determine according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, f i l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let be the reliability of the i-th type of component;

[0204] Accordingly, the first determining unit 123 is specifically used to determine based on Calculate the first overall reliability R S , where P l Let be the probability of the l-th business scenario occurring.

[0205] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0206] Based on the above embodiments, optionally, the first calculation unit 121 is specifically used to obtain the interface development cost; the component cost incurred when purchasing the corresponding component according to the candidate indicator in the first candidate indicator strategy; and to determine the sum of the interface cost and the component cost as the first cost.

[0207] The analysis device for the component-based software system provided in this embodiment can execute the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be repeated here.

[0208] Specific limitations regarding the analysis apparatus for component-based software systems can be found in the limitations of the analysis methods for component-based software systems described above, and will not be repeated here. Each module in the aforementioned analysis apparatus for component-based software systems can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0209] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: a component-based software system includes n types of components, each type of component corresponding to a set of indicators, and the set of indicators includes multiple candidate indicators arranged according to indicator size; the method includes:

[0210] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0211] Based on the pre-set trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; among which, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0212] If the conditions are not met, a new first candidate indicator strategy is determined based on the selection strategy until the new first candidate indicator strategy meets the constraints, and then the new first candidate indicator strategy is determined as the target indicator strategy.

[0213] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model according to a preset trade-off optimization model, including:

[0214] According to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy;

[0215] Determine whether the first cost exceeds the maximum cost, and obtain the first judgment result;

[0216] Based on the first judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0217] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, including:

[0218] If the first cost is less than the maximum cost, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0219] Correspondingly,

[0220] The strategy for determining a new first candidate metric is based on the previous selection strategy, including:

[0221] Randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced;

[0222] Select the next candidate indicator from the set of indicators of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

[0223] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, and further includes:

[0224] If the first cost is greater than or equal to the maximum cost, then the first reliability of the first componentized software system is calculated according to the preset reliability calculation model, and it is determined whether the first reliability is greater than the minimum reliability to obtain the second judgment result.

[0225] Based on the second judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0226] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining, based on the second judgment result, whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model, including:

[0227] If the first reliability is less than the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0228] or,

[0229] If the first reliability is greater than or equal to the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0230] In one embodiment, when the processor executes the computer program, it further performs the following steps: if the first cost is greater than or equal to the maximum cost and the first reliability is greater than or equal to the minimum reliability, then a new first candidate index strategy is determined according to the trade-off optimization model until the new first candidate index strategy satisfies the constraints, and the new first candidate index strategy is determined as the target index strategy, including:

[0231] If the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein, the cost incurred when purchasing the componentized software system according to the previous first candidate indicator strategy is less than the maximum cost.

[0232] If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

[0233] In one embodiment, when the processor executes the computer program, it further performs the following steps: calculating a first reliability of the first componentized software system according to a preset reliability calculation model, including:

[0234] The usage scenarios of the component-based software system are analyzed to obtain the scenario profile corresponding to the first component-based software system; the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used.

[0235] Obtain the reliability of the first component-based software system in each business scenario;

[0236] Based on the probability of occurrence of each business scenario and the reliability of the first component-based software system in each business scenario, the first comprehensive reliability is calculated based on the reliability calculation model.

[0237] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the reliability of the componentized software system in each business scenario, including:

[0238] according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, fi l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let be the reliability of the i-th type of component;

[0239] Correspondingly,

[0240] The first comprehensive reliability is calculated based on the reliability calculation model, including:

[0241] according to Calculate the first overall reliability R S , where P l Let be the probability of the l-th business scenario occurring.

[0242] In one embodiment, when the processor executes the computer program, it further performs the following steps: calculating, according to a preset cost calculation model, the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy, including:

[0243] Obtain the interface development cost;

[0244] The component cost incurred when procuring components corresponding to the candidate indicators in the first candidate indicator strategy;

[0245] The sum of interface cost and component cost is determined as the first cost.

[0246] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program being executed by a processor to perform the following steps: a component-based software system includes n types of components, each type of component corresponding to a set of indicators, the set of indicators including multiple candidate indicators arranged in order of indicator size; the method includes:

[0247] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0248] Based on the pre-set trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; among which, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0249] If the conditions are not met, a new first candidate indicator strategy is determined based on the selection strategy until the new first candidate indicator strategy meets the constraints, and then the new first candidate indicator strategy is determined as the target indicator strategy.

[0250] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model according to a preset trade-off optimization model, including:

[0251] According to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy;

[0252] Determine whether the first cost exceeds the maximum cost, and obtain the first judgment result;

[0253] Based on the first judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0254] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, including:

[0255] If the first cost is less than the maximum cost, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0256] Correspondingly,

[0257] The strategy for determining a new first candidate metric is based on the previous selection strategy, including:

[0258] Randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced;

[0259] Select the next candidate indicator from the set of indicators of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

[0260] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, and further includes:

[0261] If the first cost is greater than or equal to the maximum cost, then the first reliability of the first componentized software system is calculated according to the preset reliability calculation model, and it is determined whether the first reliability is greater than the minimum reliability to obtain the second judgment result.

[0262] Based on the second judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0263] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining, based on the second judgment result, whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model, including:

[0264] If the first reliability is less than the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0265] or,

[0266] If the first reliability is greater than or equal to the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0267] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the first cost is greater than or equal to the maximum cost and the first reliability is greater than or equal to the minimum reliability, then a new first candidate index strategy is determined according to the trade-off optimization model until the new first candidate index strategy satisfies the constraints, and the new first candidate index strategy is determined as the target index strategy, including:

[0268] If the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein, the cost incurred when purchasing the componentized software system according to the previous first candidate indicator strategy is less than the maximum cost.

[0269] If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

[0270] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: calculating a first reliability of the first componentized software system according to a preset reliability calculation model, including:

[0271] The usage scenarios of the component-based software system are analyzed to obtain the scenario profile corresponding to the first component-based software system; the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used.

[0272] Obtain the reliability of the first component-based software system in each business scenario;

[0273] Based on the probability of occurrence of each business scenario and the reliability of the first component-based software system in each business scenario, the first comprehensive reliability is calculated based on the reliability calculation model.

[0274] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: obtaining the reliability of the componentized software system in each business scenario, including:

[0275] according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, f i l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let be the reliability of the i-th type of component;

[0276] Correspondingly,

[0277] The first comprehensive reliability is calculated based on the reliability calculation model, including:

[0278] according to Calculate the first overall reliability R S , where P l Let be the probability of the l-th business scenario occurring.

[0279] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: calculating, according to a preset cost calculation model, the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy, including:

[0280] Obtain the interface development cost;

[0281] The component cost incurred when procuring components corresponding to the candidate indicators in the first candidate indicator strategy;

[0282] The sum of interface cost and component cost is determined as the first cost.

[0283] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: a componentized software system includes n types of components, each type of component corresponding to a set of indicators, the set of indicators including multiple candidate indicators arranged in order of indicator size; the method includes:

[0284] According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included.

[0285] Based on the pre-set trade-off optimization model, determine whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; among which, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost.

[0286] If the conditions are not met, a new first candidate indicator strategy is determined based on the selection strategy until the new first candidate indicator strategy meets the constraints, and then the new first candidate indicator strategy is determined as the target indicator strategy.

[0287] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model according to a preset trade-off optimization model, including:

[0288] According to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy;

[0289] Determine whether the first cost exceeds the maximum cost, and obtain the first judgment result;

[0290] Based on the first judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0291] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, including:

[0292] If the first cost is less than the maximum cost, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0293] Correspondingly,

[0294] The strategy for determining a new first candidate metric is based on the previous selection strategy, including:

[0295] Randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced;

[0296] Select the next candidate indicator from the set of indicators of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

[0297] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model based on the first judgment result, and further includes:

[0298] If the first cost is greater than or equal to the maximum cost, then the first reliability of the first componentized software system is calculated according to the preset reliability calculation model, and it is determined whether the first reliability is greater than the minimum reliability to obtain the second judgment result.

[0299] Based on the second judgment result, determine whether the first candidate index strategy meets the constraints of the trade-off optimization model.

[0300] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining, based on the second judgment result, whether the first candidate index strategy satisfies the constraints of the tradeoff optimization model, including:

[0301] If the first reliability is less than the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0302] or,

[0303] If the first reliability is greater than or equal to the minimum reliability, then the first candidate index strategy is determined to not meet the constraints of the trade-off optimization model.

[0304] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the first cost is greater than or equal to the maximum cost and the first reliability is greater than or equal to the minimum reliability, then a new first candidate index strategy is determined according to the trade-off optimization model until the new first candidate index strategy satisfies the constraints, and the new first candidate index strategy is determined as the target index strategy, including:

[0305] If the first cost is greater than the maximum cost and the first reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy; wherein, the cost incurred when purchasing the componentized software system according to the previous first candidate indicator strategy is less than the maximum cost.

[0306] If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

[0307] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: calculating a first reliability of the first componentized software system according to a preset reliability calculation model, including:

[0308] The usage scenarios of the component-based software system are analyzed to obtain the scenario profile corresponding to the first component-based software system; the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used.

[0309] Obtain the reliability of the first component-based software system in each business scenario;

[0310] Based on the probability of occurrence of each business scenario and the reliability of the first component-based software system in each business scenario, the first comprehensive reliability is calculated based on the reliability calculation model.

[0311] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: obtaining the reliability of the componentized software system in each business scenario, including:

[0312] according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, f i l To determine the frequency of invoking the component-based software system in the l-th business scenario, R i Let be the reliability of the i-th type of component;

[0313] Correspondingly,

[0314] The first comprehensive reliability is calculated based on the reliability calculation model, including:

[0315] according to Calculate the first overall reliability R S , where P l Let be the probability of the l-th business scenario occurring.

[0316] In one embodiment, when the computer program is executed by a processor, it further performs the following steps: calculating, according to a preset cost calculation model, the first cost incurred when purchasing the first componentized software system according to the first candidate indicator strategy, including:

[0317] Obtain the interface development cost;

[0318] The component cost incurred when procuring components corresponding to the candidate indicators in the first candidate indicator strategy;

[0319] The sum of interface cost and component cost is determined as the first cost.

[0320] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0321] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0322] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0323] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0324] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. An analysis method for a component-based software system, characterized in that, The component-based software system includes n types of components, each type of component corresponding to a set of indicators, and the set of indicators includes multiple candidate indicators arranged according to their size; the method includes: According to the preset selection strategy, a candidate indicator is selected from the indicator set of each type of component to obtain the first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators. The component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included. Based on a preset trade-off optimization model, it is determined whether the first candidate indicator strategy satisfies the constraints of the trade-off optimization model; wherein, the constraints include that the reliability of the componentized software system procured according to the current candidate indicator strategy is maximized, and the cost incurred is less than the maximum cost; the reliability is determined based on a reliability calculation model, the probability of occurrence of each business scenario when the first componentized software system procured according to the first candidate indicator strategy is used, and the reliability of the first componentized software system in each business scenario; If the conditions are not met, a new first candidate indicator strategy is determined based on the selection strategy. If the cost of the componentized software system procured under the new first candidate indicator strategy is greater than the maximum cost and the reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy. If the historical reliability of the componentized software system procured under the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

2. The method according to claim 1, characterized in that, The step of determining whether the first candidate index strategy satisfies the constraints of the preset trade-off optimization model includes: According to the preset cost calculation model, calculate the first cost incurred when purchasing the first componentized software system in accordance with the first candidate indicator strategy; Determine whether the first cost exceeds the maximum cost, and obtain the first determination result; Based on the first judgment result, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model.

3. The method according to claim 2, characterized in that, The step of determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result includes: If the first cost is greater than or equal to the maximum cost, then it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model. Correspondingly, The strategy for re-determining a new first candidate indicator based on the selection strategy includes: Randomly select a candidate indicator to be replaced from the first candidate indicator strategy, and determine the target component corresponding to the candidate indicator to be replaced; Select the next candidate indicator of the candidate indicator to be replaced from the indicator set of the target component, and replace the candidate indicator to be replaced with the next candidate indicator to obtain a new first candidate indicator strategy.

4. The method according to claim 2, characterized in that, The step of determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the first judgment result further includes: If the first cost is less than the maximum cost, then according to the preset reliability calculation model, the first reliability of the first componentized software system is calculated, and it is determined whether the first reliability is greater than the minimum reliability, to obtain the second judgment result. Based on the second judgment result, determine whether the first candidate index strategy satisfies the constraints of the trade-off optimization model.

5. The method according to claim 4, characterized in that, The step of determining whether the first candidate index strategy satisfies the constraints of the trade-off optimization model based on the second judgment result includes: If the first reliability is less than the minimum reliability, then it is determined that the first candidate index strategy does not meet the constraints of the trade-off optimization model. or, If the first reliability is greater than or equal to the minimum reliability, then the first candidate index strategy is determined to satisfy the constraints of the trade-off optimization model.

6. The method according to claim 1, characterized in that, The cost incurred when purchasing a componentized software system according to the aforementioned first candidate indicator strategy is less than the maximum cost.

7. The method according to claim 1, characterized in that, The reliability of the first component-based software system in each business scenario is obtained through the following methods: Analyze the usage scenarios of the component-based software system to obtain the scenario profile corresponding to the first component-based software system; wherein, the scenario profile is used to characterize multiple business scenarios when the first component-based software system is used. according to Obtain the reliability of the first component-based software system in each business scenario; where l is the number of business scenarios, and f i l To determine the frequency of invoking the componentized software system in the l-th business scenario, the R... i Let represent the reliability of the i-th type of component.

8. An analysis device for a component-based software system, characterized in that, The component-based software system includes n types of components, each type of component corresponding to a set of indicators, the set of indicators including multiple candidate indicators arranged in order of indicator size, and the device includes: The acquisition module is used to select a candidate indicator from the indicator set of each type of component according to a preset selection strategy to obtain a first candidate indicator strategy. The first candidate indicator strategy includes n candidate indicators, and the component procurement cost corresponding to the first candidate indicator strategy is positively correlated with the size of the n candidate indicators included. The first determining module is used to determine whether the first candidate indicator strategy satisfies the constraints of the preset trade-off optimization model. The constraints include maximizing the reliability of the component-based software system procured according to the current candidate indicator strategy, and ensuring that the cost incurred is less than the maximum cost. The reliability is determined based on a reliability calculation model, the probability of occurrence of each business scenario when the first component-based software system procured using the first candidate indicator strategy is used, and the reliability of the first component-based software system in each business scenario. The second determining module is used to re-determine a new first candidate indicator strategy based on the selection strategy if the constraints are not met. If the cost of the componentized software system procured under the new first candidate indicator strategy is greater than the maximum cost and the reliability is greater than or equal to the minimum reliability, then the previous first candidate indicator strategy is determined as the new first candidate indicator strategy. If the historical reliability of the componentized software system procured according to the previous first candidate indicator strategy is greater than the minimum reliability, then the previous first candidate indicator strategy is determined as the target indicator strategy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.