-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathTResponse.qhelp
More file actions
41 lines (31 loc) · 1.13 KB
/
TResponse.qhelp
File metadata and controls
41 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
<em>Response</em> is the number of unique methods (or constructors) that can be called by all the
methods (or constructors) of a class. For example, if a class has two methods (X and Y), and one method calls
methods A and B, and the other method calls methods A and C, the class's response is 3 (methods A, B,
and C are called).
</p>
<p>
Classes that have a high response can be difficult to understand and test. This is
because you have to read through all the methods that can possibly be called
to fully understand the class.
</p>
</overview>
<recommendation>
<p>
Generally, when a class has a high response, it is because it
contains methods that individually make large numbers of calls or
because it has high efferent coupling. The solution is therefore to fix these
underlying problems, and the class's response decreases accordingly.
</p>
</recommendation>
<references>
<li>
S. R. Chidamber and C. F. Kemerer, <em>A metrics suite for object-oriented design</em>. IEEE Transactions on Software Engineering, 20(6):476-493, 1994.
</li>
</references>
</qhelp>