- Tech know how online

response for a class (RFC)

To measure software products, so-called software metrics are used that quantify different properties of software products and processes. When measuring software, an object-oriented metric takes into account the aggregation of data structures and the methods applicable to them to form an object, its relationships to other objects, and the general structural features of object-oriented programming

. The Response for a Class (RFC) metric belongs to the group of measures that make software measurable at the class level. Other object-oriented software metrics are Weighted Methods for Class (WMC), Coupling Between Objects (CBO), Depth of Inheritance Tree (DIT), Lack of Cohesion in Methods (LCOM), and Number of Children

(NOC). RFCdefinition: RFC

is the number of all possible methods to be executed.All possible direct and indirect method calls that can be reached via associations are evaluated

Example Class Diagram

Example Class Diagram

The class

diagramshown defines the static parts of a system of classes with their associations and methods.

Example Class Diagram:

RFC(A)=4 and RFC(B)=2 and RFC(C)=1, RFC(F)=0.

Application: Mainly in connection with the testability and maintainability of software. This is based on the idea that the greater the number of methods and couplings with other classes, the more complex a class is to understand and handle. The complexity then also entails a higher effort - an increased degree of difficulty - for changes. The value for Response for a Class (RFC) also specifies the maximum number of possible calls to methods and thus specifically defines the number of test cases.

Informationen zum Artikel
Englisch: response for a class - RFC
Updated at: 06.02.2014
#Words: 289