Method and device for determining multiplexing degree of function point, equipment, medium and product

By determining the similarity parameters between functional points and using their complementary values ​​as the multiplexing degree, the problem of the dependence of artificial experience on the multiplexing degree of functional points in the prior art is solved, and the accuracy of software evaluation is improved.

CN119415411APending Publication Date: 2025-02-11CHINA MOBILE GROUP DESIGN INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411458637.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The value of functional point reuse in the prior art is based on human experience, resulting in a decrease in the accuracy of software evaluation.

Method used

By obtaining the characteristic parameter group of the functional points to be measured and the reference functional points of the target software, the similarity parameters between the two are determined, and the complementary values ​​of the similarity parameters are used as the multiplexing of the functional points.

Benefits of technology

It improves the accuracy of functional point measurement, thereby improving the accuracy of software evaluation, making the value of reuse more comprehensive and objective.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415411A_ABST
    Figure CN119415411A_ABST
Patent Text Reader

Abstract

The invention provides a function point reuse degree determination method and device, equipment, a medium and a product, and is applied to the technical field of software evaluation. According to the method, a feature parameter set of a to-be-measured function point of target software indicated by a user and a feature parameter set of a reference function point are obtained, and the feature parameter set is used for representing the function scale of the function point. And determining a similarity parameter between the to-be-measured function point and the reference function point based on the feature parameter group of the to-be-measured function point and the feature parameter group of the reference function point. And taking the complementary value of the similarity parameter as the multiplexing degree of the function point to be measured. By means of the method for determining the similarity parameter between the two function points, when the multiplexing degree of the function points is determined, the value of the multiplexing degree is more comprehensive and more objective, and the accuracy of function point measurement is improved. Therefore, the accuracy of software evaluation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software evaluation technology, and specifically relates to a method, device, equipment, medium and product for determining the reuse of a function point. Background Art

[0002] Software development measurement is a continuous quantitative process of defining, collecting and analyzing data for software development projects, processes and their products. The purpose of this process is to understand, predict, evaluate, control and improve software development activities. Among them, software development measurement includes product measurement, which can be used to quantitatively evaluate software products through methods such as function point analysis.

[0003] Generally, software products can be quantitatively evaluated by determining the reuse of function points, but the value of the reuse of function points is often determined based on human experience, which reduces the accuracy of software evaluation. Summary of the invention

[0004] The present disclosure is proposed in view of the above problems. The present disclosure provides a method, device, equipment, medium and product for determining the reuse of function points, which improves the accuracy of software evaluation.

[0005] According to one aspect of the present disclosure, a method for determining function point reuse is provided, comprising:

[0006] Acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of the target software indicated by a user, wherein the characteristic parameter group is used to characterize the functional scale of the function point;

[0007] Determining a similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point;

[0008] The complementary value of the similarity parameter is used as the reuse degree of the function point to be measured.

[0009] Optionally, the determining the similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point includes:

[0010] Acquire a plurality of similarity parameter correspondences, wherein each of the similarity parameter correspondences represents a correspondence between the number of characteristic parameter types having the same characteristic parameter values ​​in characteristic parameter groups of the historical function points to be measured and the historical benchmark function points, and similarity parameters calculated based on the characteristic parameter groups of the historical function points to be measured and the characteristic parameter groups of the historical benchmark function points;

[0011] Acquire the number of characteristic parameter types having the same characteristic parameter values ​​in the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point;

[0012] From the similarity parameter correspondences, matching and obtaining the target correspondences corresponding to the quantity;

[0013] The similarity parameter of the target corresponding relationship is used as the similarity parameter between the function point to be measured and the reference function point.

[0014] Optionally, the determining the similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point includes:

[0015] Determining a feature vector of the function point to be measured based on the feature parameter group of the function point to be measured; determining a feature vector of the reference function point based on the feature parameter group of the reference function point; and obtaining a weight of each type of feature parameter in the feature parameter group;

[0016] The similarity parameter between the feature vector of the function point to be measured and the feature vector of the reference function point is calculated according to the cosine similarity algorithm and the weight of each type of feature parameter in the feature parameter group.

[0017] Optionally, the weight of the function point layer boundary characteristic parameter in the characteristic parameter group is positively correlated with the measurement range of the target software.

[0018] Optionally, the weight of the function point data movement type characteristic parameter in the characteristic parameter group is the same as the weight of the function point data group characteristic parameter in the characteristic parameter group.

[0019] Optionally, after taking the complementary value of the similarity parameter as the reuse degree of the function point to be measured, the method further includes:

[0020] The function scale to be measured of the target software is calculated according to the function point measurement unit scale preset in the target software and the reuse degree of the function point to be measured.

[0021] According to another aspect of the present disclosure, there is provided a device for determining the reuse of a function point, comprising:

[0022] An acquisition module, used to acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of the target software indicated by a user, wherein the characteristic parameter group is used to characterize the functional scale of the function point;

[0023] A determination module, configured to determine a similarity parameter between the function point to be measured and the reference function point based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point;

[0024] The value obtaining module is used to use the complementary value of the similarity parameter as the reuse degree of the function point to be measured.

[0025] According to another aspect of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned method for determining the multiplexing degree of a function point.

[0026] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and the program is executed by a processor to implement the above-mentioned method for determining the multiplexing degree of the function point.

[0027] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the multiplexing determination method for implementing the above-mentioned function point.

[0028] In the present disclosure, a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of a target software indicated by a user are obtained, and the characteristic parameter group is used to characterize the functional scale of the function point. Based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the benchmark function point, a similarity parameter between the function point to be measured and the benchmark function point is determined. The complementary value of the similarity parameter is used as the reuse of the function point to be measured. By determining the method of the similarity parameter between two function points, when determining the reuse of a function point, the value of the reuse can be made more comprehensive and more objective, thereby improving the accuracy of the function point measurement. Therefore, the accuracy of software evaluation is improved.

[0029] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0031] Figure 1 A flow chart of a method for determining function point reuse provided by the present disclosure.

[0032] Figure 2 Another flow chart of a method for determining function point reuse provided by the present disclosure.

[0033] Figure 3 A schematic diagram of the structure of a device for determining the reuse of a function point provided by the present disclosure.

[0034] Figure 4 A hardware block diagram of an electronic device provided by the present disclosure.

[0035] Figure 5 A schematic diagram of a computer program product provided by the present disclosure. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the application scenario of the solution of the present application is first described below.

[0037] Software development measurement is a continuous quantitative process of defining, collecting and analyzing data for software development projects, processes and their products. The purpose of this process is to understand, predict, evaluate, control and improve software development activities. Among them, software development measurement includes product measurement, which can be used to quantitatively evaluate software products through methods such as function point analysis.

[0038] At present, software products can be quantitatively evaluated by determining the reuse of function points, but the reuse value of function points is often determined based on human experience. For example, if the three characteristic parameters between two function points are completely repeated, the reuse value is 0; if any two of the three characteristic parameters between two function points are repeated, the reuse value is 1 / 3; if the three characteristic parameters between two function points are completely non-repeated, the reuse value is 1. In this way, there is a certain degree of subjectivity in determining the reuse based on human experience. Therefore, the accuracy of software evaluation will be reduced.

[0039] In order to solve the above technical problems, the present disclosure provides a method, device, equipment, medium and product for determining the reuse of function points. In the present disclosure, a characteristic parameter group of the function point to be measured and a characteristic parameter group of the benchmark function point of the target software indicated by the user are obtained, and the characteristic parameter group is used to characterize the functional scale of the function point. Based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the benchmark function point, the similarity parameter between the function point to be measured and the benchmark function point is determined. The complementary value of the similarity parameter is used as the reuse of the function point to be measured. By determining the method of the similarity parameter between two function points, when determining the reuse of the function point, the value of the reuse can be made more comprehensive and more objective, thereby improving the accuracy of the function point measurement. Therefore, the accuracy of software evaluation is improved.

[0040] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0041] Figure 1 A flow chart of a method for determining the reuse of a function point provided by the present disclosure. Figure 1 As shown, the method includes:

[0042] S101: Acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of a target software indicated by a user.

[0043] Specifically, in the process of measuring the development cost of the target software, the development cost can be estimated by measuring the functional scale of the target software. In this embodiment, the COSMIC model can be used to measure the functional scale of the target software. The user can indicate the input range of the target software measurement and the measurement purpose, wherein the measurement range is the function point to be measured, the measurement range can be input in the form of the target software requirement document, and the measurement purpose is to determine the scale of the target software.

[0044] In the process of measuring the function points to be measured, a benchmark function point is needed as a reference in order to compare and obtain the reuse degree of the function points to be measured. The selection of the benchmark function point can be the function point in the target software indicated by the user. Usually, the user can select the function point that is close to the function description of the function point to be measured as the benchmark function point according to the description of the function in the requirement document of the target software.

[0045] After obtaining the function point to be measured and the benchmark function point of the target software indicated by the user, the characteristic parameter groups of the two function points can be identified and obtained. The characteristic parameter groups are used to characterize the functional scale of the function points. The characteristic parameter groups include the layer boundary characteristic parameters of the function points, the data movement category characteristic parameters of the function points, and the data group characteristic parameters of the function points.

[0046] The layer boundary characteristic parameter of the function point indicates the software layer boundary where the functional processing of the function point is located. The software layer is a partition generated by the functional division of the software system. It identifies that the functions of the software are distributed in different levels of the operating environment. Each level of software should provide functions for users. The boundary is the conceptual interface between the software and its functional users. It identifies the boundary between the measurement object and the functional user. By identifying whether the data crosses the software layer and boundary, it is judged whether data movement occurs. The data movement category characteristic parameter of the function point indicates the data movement type to which the function point belongs, that is, any one of the four types (input, output, read, write). The data group characteristic parameter of the function point indicates the data group moved by the function point, that is, the type of data required by the user and the various data attributes it contains.

[0047] For example, the user indicates that the benchmark function point is to query the number of communities at the provincial level, and the function point to be measured is to query the number of grids at the provincial level. The layer boundary characteristic parameters of the benchmark function point are data from the functional user to the software layer, the data movement category characteristic parameter is the read type, the data group characteristic parameter is the number of communities at the provincial level, and the data attribute is the number of communities at the provincial level; the layer boundary characteristic parameters of the function point to be measured are data from the functional user to the software layer, the data movement category characteristic parameter is the read type, the data group characteristic parameter is the number of grids at the provincial level, and the data attribute is the number of grids at the provincial level.

[0048] S102: Determine a similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point.

[0049] Specifically, the characteristic parameter group of the function point to be measured can be set as a three-dimensional vector, and the characteristic parameter group of the reference function point can be used as a three-dimensional vector. By comparing the similarity of the two vectors, the similarity parameters between the function point to be measured and the reference function point can be determined.

[0050] S103: Using the complementary value of the similarity parameter as the reuse degree of the function point to be measured.

[0051] Specifically, the higher the similarity between two function points, the smaller the development workload of the corresponding target software, and the smaller the function scale count of the function point. Therefore, the complementary value of the similarity parameter needs to be used as the reuse of the function point to be measured. In other words, the larger the similarity parameter, the smaller the development workload and the smaller the reuse of the function point.

[0052] In the present disclosure, a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of a target software indicated by a user are obtained, and the characteristic parameter group is used to characterize the functional scale of the function point. Based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the benchmark function point, a similarity parameter between the function point to be measured and the benchmark function point is determined. The complementary value of the similarity parameter is used as the reuse of the function point to be measured. By determining the method of the similarity parameter between two function points, when determining the reuse of a function point, the value of the reuse can be made more comprehensive and more objective, thereby improving the accuracy of the function point measurement. Therefore, the accuracy of software evaluation is improved.

[0053] In a possible embodiment, based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point, an exemplary method for determining the similarity parameter between the function point to be measured and the reference function point includes:

[0054] Determine a feature vector of the function point to be measured based on the feature parameter group of the function point to be measured; determine a feature vector of the reference function point based on the feature parameter group of the reference function point; and obtain the weight of each type of feature parameter in the feature parameter group.

[0055] Specifically, after obtaining the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point, the characteristic parameter group can be represented in the form of a multi-dimensional vector.

[0056] For example, the feature vector of the function point to be measured can be G1=(C1, Y1, D1), and the feature vector of the reference function point can be G2=(C2, Y2, D2). Among them, G1 is the feature vector of the function point to be measured, C1 is the vector of the layer boundary feature parameters of the function point to be measured, Y1 is the vector of the data movement type feature parameters of the function point to be measured, and D1 is the vector of the data group feature parameters of the function point to be measured; G2 is the feature vector of the reference function point, C2 is the vector of the layer boundary feature parameters of the reference function point, Y2 is the vector of the data movement type feature parameters of the reference function point, and D2 is the vector of the data group feature parameters of the reference function point.

[0057] Furthermore, different weights of characteristic parameters of different types may be set according to the measurement scope of different target software. For example, when the measurement scope is a functional module, the weight of the layer boundary characteristic parameter may be 20%, the weight of the data movement type characteristic parameter may be 30%, and the weight of the data group characteristic parameter may be 30%. In this embodiment, considering that there may be other parameter factors that affect the similarity, the weights of other parameters are set to 20%.

[0058] Afterwards, the similarity parameter between the feature vector of the function point to be measured and the feature vector of the reference function point is calculated according to the cosine similarity algorithm and the weights of each type of feature parameters in the feature parameter group.

[0059] Specifically, the similarity parameter can be calculated according to the following formula:

[0060]

[0061] Among them, cosθ is the similarity parameter between the feature vector of the function point to be measured and the feature vector of the benchmark function point, C1 is the vector of the layer boundary feature parameters of the function point to be measured, Y1 is the vector of the data movement type feature parameters of the function point to be measured, D1 is the vector of the data group feature parameters of the function point to be measured, C2 is the vector of the layer boundary feature parameters of the benchmark function point, Y2 is the vector of the data movement type feature parameters of the benchmark function point, D2 is the vector of the data group feature parameters of the benchmark function point, R c1 is the weight of the layer boundary characteristic parameter of the function point to be measured, R y1 is the weight of the characteristic parameter of the data movement type of the function point to be measured, R d1 is the weight of the characteristic parameter of the data set of the function point to be measured, R c2 is the weight of the characteristic parameter of the data movement type of the benchmark function point, R y2 is the weight of the characteristic parameter of the data set of the benchmark function point, R d2 The weight of the characteristic parameter of the data group of the benchmark function point.

[0062] In addition, in a possible embodiment, when determining the similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point, the weight of each type of feature parameter in the feature parameter group may not be considered.

[0063] The similarity parameter can be calculated according to the following formula:

[0064]

[0065] Among them, cosθ is the similarity parameter between the feature vector of the function point to be measured and the feature vector of the benchmark function point, C1 is the vector of the layer boundary feature parameters of the function point to be measured, Y1 is the vector of the data movement type feature parameters of the function point to be measured, D1 is the vector of the data group feature parameters of the function point to be measured, C2 is the vector of the layer boundary feature parameters of the benchmark function point, Y2 is the vector of the data movement type feature parameters of the benchmark function point, and D2 is the vector of the data group feature parameters of the benchmark function point.

[0066] In a possible embodiment, based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point, an exemplary method for determining the similarity parameter between the function point to be measured and the reference function point includes:

[0067] Get the corresponding relationship between multiple similarity parameters.

[0068] Among them, each similarity parameter correspondence relationship represents the number of feature parameter types with the same feature parameter values ​​in the feature parameter groups of the historical function points to be measured and the historical benchmark function points, and the correspondence between the similarity parameters calculated based on the feature parameter groups of the historical function points to be measured and the feature parameter groups of the historical benchmark function points.

[0069] Specifically, in this embodiment, the similarity parameter can be calculated based on the characteristic parameter group of the historical function point to be measured and the characteristic parameter group of the historical benchmark function point. Based on the three characteristic parameter types, there may be the following situations where the characteristic parameters are similar: the three characteristic parameters of the two function points are completely the same, the two characteristic parameters of the two function points are the same, one characteristic parameter of the two function points is the same, and the three characteristic parameters of the two function points are completely different.

[0070] According to the similarities of these four characteristic parameter types, the number of characteristic parameter types having the same characteristic parameter values ​​can be determined.

[0071] For example, when the three characteristic parameters of two function points are exactly the same, it means that the two functions are exactly the same. At this time, C1=C2, Y1=Y2, D1=D2, and cosθ=1. When the two characteristic parameters of two function points are the same, it means that most of the functions of the two functions are similar. At this time, it can be divided into three cases. The first case is C1≠C2, Y1=Y2, D1=D2, and cosθ=0.9045 is calculated. The second case is C1=C2, Y1≠Y2, D1=D2, and cosθ=0.7687 is calculated. The third case is C1=C2, Y1=Y2, D1≠D2, and cosθ=0.7687 is calculated. When one characteristic parameter of two function points is the same, it means that the small parts of the two functions are similar. At this time, it can be divided into three cases. The first case is C1=C2, Y1≠Y2, D1≠D2, and the calculated value is cosθ=0.4264. The second case is C1≠C2, Y1=Y2, D1≠D2, and the calculated value is cosθ=0.6396. The third case is C1≠C2, Y1≠Y2, D1=D2, and the calculated value is cosθ=0.6396. When the three characteristic parameters of two function points are completely different, it means that the two functions are completely different. At this time, C1≠C2, Y1≠Y2, D1≠D2, and the calculated value is cosθ=0.

[0072] Among them, when obtaining the corresponding relationship, the three cases where the two characteristic parameters of the two function points are the same can be recorded separately, or the average value of the three cases cosθ=0.8140 can be calculated, which can facilitate the calculation and improve the calculation efficiency. Similarly, the recording method of the three cases where one characteristic parameter of the two function points is the same can be obtained, and the average value is cosθ=0.5685.

[0073] Afterwards, the number of feature parameter types having the same feature parameter values ​​in the feature parameter group of the function point to be measured and the feature parameter group of the benchmark function point is obtained; from the similarity parameter correspondence, a target correspondence corresponding to the number is obtained by matching; and the similarity parameter of the target correspondence is used as the similarity parameter between the function point to be measured and the benchmark function point.

[0074] Specifically, when obtaining the number of characteristic parameter types with the same characteristic parameter values ​​in the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point, the target corresponding relationship corresponding to the number of similar characteristic parameters can be matched and found from the similarity parameter corresponding relationship obtained above, and the similarity parameter of the target corresponding relationship is used as the expected similarity parameter. In this way, the complexity of calculation can be reduced, the efficiency of reusability determination can be improved, and the evaluation efficiency of the target software can be improved.

[0075] In a possible embodiment, the weight of the function point boundary characteristic parameter in the characteristic parameter group is positively correlated with the measurement range of the target software.

[0076] Specifically, the measurement scope of the target software may include the following situations: scale measurement based on the system of the target software, scale measurement based on the subsystem of the target software, and scale measurement based on the functional module of the target software.

[0077] When the measurement scope is the functional module, it means that the layer boundary characteristic parameters of the function point to be measured and the benchmark function point are the same. At this time, when determining the similarity, there is no need to consider the dimension of the layer boundary characteristic parameter too much, so the weight value of this characteristic parameter is relatively low. When the measurement scope is the subsystem, the module to be measured specified by the user and the benchmark function point module may be at different layer boundaries, so the layer boundary characteristic parameters may be different. At this time, the proportion of the layer boundary characteristic parameter dimension will be higher than when the measurement scope is the functional module, and the weight value will also increase accordingly.

[0078] For example, when the measurement scope is a functional module, it means that the layer boundary characteristic parameters of the function point to be measured and the reference function point are the same, and the weight of the layer boundary characteristic parameters can be 20%, which can improve the accuracy of the reuse degree of the function point.

[0079] In a possible embodiment, the weight of the function point data movement type characteristic parameter in the characteristic parameter group is the same as the weight of the function point data group characteristic parameter in the characteristic parameter group.

[0080] Specifically, for function points, the data movement type characteristic parameters and data group characteristic parameters of different function points may be inconsistent in any case, and both characteristic parameters need to be considered. And the importance of these two characteristic parameters is similar. In this embodiment, the weights of the two characteristic parameters can be taken as the same value, which can improve the accuracy of the reuse degree of the function points.

[0081] For example, when the measurement scope is the functional module, the weight of the layer boundary characteristic parameter may be 20%, the weight of the data movement type characteristic parameter may be 30%, and the weight of the data group characteristic parameter may be 30%.

[0082] In a possible embodiment, after taking the complementary value of the similarity parameter as the reuse degree of the function point to be measured, the method further includes:

[0083] The function scale to be measured of the target software is calculated based on the size of the function point measurement unit preset by the target software and the reuse degree of the function points to be measured.

[0084] Specifically, after obtaining the reuse of the function points of the target software, the function scale to be measured of the target software can be calculated according to the required range of the function scale to be measured of the target software. The function scale to be measured of the target software can be obtained by using the preset function point measurement unit scale and the reuse of each function point to be measured within the required range. The reuse of the function points obtained by calculating the similarity parameters can be more accurate, more comprehensive and objective, thereby improving the accuracy of the evaluation of the function scale of the target software. Among them, in this embodiment, the default value of the function point unit scale is 1 function point.

[0085] The functional scale of the target software to be measured can be calculated according to the following formula:

[0086]

[0087] Where FS is the functional scale of the target software, i is the number of function points whose data movement type is input type, j is the number of function points whose data movement type is output type, m is the number of function points whose data movement type is read type, n is the number of function points whose data movement type is write type, and Eus i The size of the function point measurement unit for the function point data movement type is the input type, Xus j The data movement type of the function point is the output type of the function point measurement unit size, Rus m The unit size of the function point measurement for the data movement type of the function point is read type, Wus n The unit size of the function point measurement for the data movement type of the function point is write type, FPR i The data movement type of the function point is the reuse of the input type, FPR j The data movement type of the function point is the reuse of the output type, FPR m The reuse rate of the data movement type of the function point is the read type, FPR n The reuse degree of the function point whose data movement type is write type.

[0088] Figure 2 Another flow chart of a method for determining function point reuse provided by the present disclosure.

[0089] like Figure 2 As shown, the method includes:

[0090] S201: Obtain the measurement purpose and measurement range specified by the user.

[0091] Specifically, the user may indicate the scope of measurement of the target software and the measurement purpose, wherein the measurement purpose is the function point to be measured, and the measurement purpose may be input in the form of a requirement document of the target software.

[0092] S202: Identify characteristic parameter groups of the function points to be measured and the benchmark function points.

[0093] Specifically, after obtaining the function point to be measured and the benchmark function point of the target software indicated by the user, the characteristic parameter groups of the two function points can be identified and obtained, wherein the characteristic parameter groups are used to characterize the functional scale of the function points.

[0094] S203: Determine the reuse degree of the function point to be measured.

[0095] Specifically, the characteristic parameter group of the function point to be measured can be set as a three-dimensional vector, and the characteristic parameter group of the reference function point can be used as a three-dimensional vector. By comparing the similarity of the two vectors, the similarity parameters between the function point to be measured and the reference function point can be determined.

[0096] The higher the similarity between two function points, the smaller the development workload of the corresponding target software, and the smaller the functional scale count of the function point. Therefore, the complementary value of the similarity parameter needs to be used as the reuse degree of the function point to be measured.

[0097] S204: Summarize the reuse degree and number of function points of the target software.

[0098] Specifically, after obtaining the reuse of each function point to be measured in S203, the reuse of all function points of the target software and the number of all function points are summarized to calculate the functional scale of the target software.

[0099] S205: Calculate the functional scale of the target software.

[0100] By summing up all reuses, the functional scale of the target software can be obtained. The reuse of function points obtained by calculating similarity parameters can be more accurate, comprehensive and objective, thereby improving the accuracy of the evaluation of the functional scale of the target software.

[0101] Figure 3 The structure diagram of a device for determining the reuse degree of a function point provided by the present disclosure is shown in FIG. Figure 3 As shown, the device 300 includes: an acquisition module 310, a determination module 320 and a value taking module 330.

[0102] An acquisition module 310 is used to acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of the target software indicated by a user, wherein the characteristic parameter group is used to characterize the functional scale of the function point;

[0103] A determination module 320, configured to determine a similarity parameter between the function point to be measured and the reference function point based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point;

[0104] The value obtaining module 330 is configured to use the complementary value of the similarity parameter as the reuse degree of the function point to be measured.

[0105] Optionally, the determining module is used to:

[0106] Acquire a plurality of similarity parameter correspondences, wherein each of the similarity parameter correspondences represents a correspondence between the number of characteristic parameter types having the same characteristic parameter values ​​in characteristic parameter groups of the historical function points to be measured and the historical benchmark function points, and similarity parameters calculated based on the characteristic parameter groups of the historical function points to be measured and the characteristic parameter groups of the historical benchmark function points;

[0107] Acquire the number of characteristic parameter types having the same characteristic parameter values ​​in the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point;

[0108] From the similarity parameter correspondences, matching and obtaining the target correspondences corresponding to the quantity;

[0109] The similarity parameter of the target corresponding relationship is used as the similarity parameter between the function point to be measured and the reference function point.

[0110] Optionally, the determining module is used to:

[0111] Determining a feature vector of the function point to be measured based on the feature parameter group of the function point to be measured; determining a feature vector of the reference function point based on the feature parameter group of the reference function point; and obtaining a weight of each type of feature parameter in the feature parameter group;

[0112] The similarity parameter between the feature vector of the function point to be measured and the feature vector of the reference function point is calculated according to the cosine similarity algorithm and the weight of each type of feature parameter in the feature parameter group.

[0113] Optionally, the weight of the function point layer boundary characteristic parameter in the characteristic parameter group in the device is positively correlated with the measurement range of the target software.

[0114] Optionally, the weight of the function point data movement type characteristic parameter in the characteristic parameter group in the device is the same as the weight of the function point data group characteristic parameter in the characteristic parameter group.

[0115] Optionally, the device is also used for:

[0116] After taking the complementary value of the similarity parameter as the reuse degree of the function point to be measured,

[0117] The function scale to be measured of the target software is calculated according to the function point measurement unit scale preset in the target software and the reuse degree of the function point to be measured.

[0118] The present application also provides an electronic device to implement the above-mentioned method for determining the reuse of a function point. Figure 4 It shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 4 As shown, the electronic device 40 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, wherein the processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and when the processor 400 runs the computer program, the method for determining the multiplexing of the function point provided in any of the aforementioned embodiments of the present application is executed.

[0119] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0120] The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 401 is used to store a program, and the processor 400 executes the program after receiving an execution instruction. The method for determining the multiplexing degree of the function point disclosed in any implementation of the embodiment of the present application may be applied to the processor 400, or implemented by the processor 400.

[0121] The processor 400 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 400. The above processor 400 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0122] The electronic device provided in the embodiment of the present application and the method for determining the multiplexing degree of the function points provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.

[0123] An embodiment of the present application also provides a computer-readable storage medium corresponding to the method for determining the multiplexing degree of a function point provided in the aforementioned embodiment. The computer-readable storage medium shown may be a CD having a computer program stored thereon. When the computer program is run by a processor, the method for determining the multiplexing degree of a function point provided in any of the aforementioned embodiments will be executed.

[0124] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0125] The computer-readable storage medium provided in the above-mentioned embodiment of the present application and the method for determining the reuse of function points provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0126] The present application also provides a computer program product 500. Figure 5 The computer program product carries a computer program 501, and the instructions included in the program code can be used to execute the steps of the method for determining the reuse of function points described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0127] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0128] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0129] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0130] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0131] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0132] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0133] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0134] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for determining the reuse of a function point, characterized in that: include: Acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of the target software indicated by a user, wherein the characteristic parameter group is used to characterize the functional scale of the function point; Determining a similarity parameter between the function point to be measured and the reference function point based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point; The complementary value of the similarity parameter is used as the reuse degree of the function point to be measured.

2. The method according to claim 1, characterized in that The determining, based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point, the similarity parameter between the function point to be measured and the reference function point comprises: Acquire a plurality of similarity parameter correspondences, wherein each of the similarity parameter correspondences represents a correspondence between the number of characteristic parameter types having the same characteristic parameter values ​​in characteristic parameter groups of the historical function points to be measured and the historical benchmark function points, and similarity parameters calculated based on the characteristic parameter groups of the historical function points to be measured and the characteristic parameter groups of the historical benchmark function points; Acquire the number of characteristic parameter types having the same characteristic parameter values ​​in the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point; From the similarity parameter correspondences, matching and obtaining the target correspondences corresponding to the quantity; The similarity parameter of the target corresponding relationship is used as the similarity parameter between the function point to be measured and the reference function point.

3. The method according to claim 1, characterized in that The determining, based on the feature parameter group of the function point to be measured and the feature parameter group of the reference function point, the similarity parameter between the function point to be measured and the reference function point comprises: Determining a feature vector of the function point to be measured based on the feature parameter group of the function point to be measured; determining a feature vector of the reference function point based on the feature parameter group of the reference function point; and obtaining a weight of each type of feature parameter in the feature parameter group; The similarity parameter between the feature vector of the function point to be measured and the feature vector of the reference function point is calculated according to the cosine similarity algorithm and the weight of each type of feature parameter in the feature parameter group.

4. The method according to claim 1, characterized in that The weight of the function point layer boundary characteristic parameter in the characteristic parameter group is positively correlated with the measurement range of the target software.

5. The method according to claim 1, characterized in that The weight of the function point data movement type characteristic parameter in the characteristic parameter group is the same as the weight of the function point data group characteristic parameter in the characteristic parameter group.

6. The method according to claim 1, characterized in that After taking the complementary value of the similarity parameter as the reuse degree of the function point to be measured, the method further includes: The function scale to be measured of the target software is calculated according to the size of the function point measurement unit preset in the target software and the reuse degree of the function point to be measured.

7. A device for determining the reuse degree of a function point, characterized in that: include: An acquisition module, used to acquire a characteristic parameter group of a function point to be measured and a characteristic parameter group of a benchmark function point of the target software indicated by a user, wherein the characteristic parameter group is used to characterize the functional scale of the function point; A determination module, configured to determine a similarity parameter between the function point to be measured and the reference function point based on the characteristic parameter group of the function point to be measured and the characteristic parameter group of the reference function point; The value obtaining module is used to use the complementary value of the similarity parameter as the reuse degree of the function point to be measured.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The invention comprises a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code, and when the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes any one of claims 1 to 6.

Citation Information

Patent Citations

  • Software development workload evaluation method and device and calculation equipment

    CN113011689A

  • Software workload assessment method and device, electronic equipment and storage medium

    CN118093376A