lundi 20 avril 2020

CK Metrics: Measurement - Mark clearly, on a copy of the code, each contributor to your counts of CBO and RFC

Question-image-1

Question-image-2

My try:

Contribution in the order - WMC, CBO, RFC

Default constructor- 0, 1,

getWordSet() - 1, 1,

getSnowballWordSet() - 1, 1,

getBufferedReader() - 3, 2,

Total - 5, 5,

While calculating the Response for a class (RFC) for the above methods, the formula is: RFC = RS,

where RS = sets of all methods called by method or sets of all methods.

How can I implement the formula for a recursive code?

Aucun commentaire:

Enregistrer un commentaire