-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTableData.java
More file actions
207 lines (164 loc) · 4.18 KB
/
TableData.java
File metadata and controls
207 lines (164 loc) · 4.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
package models.bean;
import javax.swing.*;
/**
* This class represents the data that is in the table view.
*/
public class TableData {
public static final int CLASS_LEVEL = 1;
public static final int METHOD_LEVEL = 2;
public static final int STATEMENT_LEVEL = 3;
private String name;
private String path;
private int line;
private double tarantulaScore;
private double ochiaiScore;
private double wong2Score;
private double barinelScore;
private double barinelModifiedScore;
private double minRank;
private double maxRank;
private double avgRank;
private ImageIcon icon;
private boolean faulty;
private int level;
private boolean hide;
private String testName;
private String testResult;
private String testHeuristic;
public TableData() {
name = "";
path = "";
line = 0;
tarantulaScore = 0;
ochiaiScore = 0;
wong2Score = 0;
barinelScore = 0;
barinelModifiedScore = 0;
minRank = 0;
maxRank = 0;
avgRank = 0;
faulty = false;
icon = null;
level = 0;
hide = false;
testName = "";
testResult = "";
testHeuristic = "";
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public int getLine() {
return line;
}
public void setLine(int line) {
this.line = line;
}
public double getTarantulaScore() {
return tarantulaScore;
}
public void setTarantulaScore(double tarantula) {
this.tarantulaScore = tarantula;
}
public double getOchiaiScore() {
return ochiaiScore;
}
public void setOchiaiScore(double ochiai) {
this.ochiaiScore = ochiai;
}
public double getWong2Score() {
return wong2Score;
}
public void setWong2Score(double wong2Score) {
this.wong2Score = wong2Score;
}
public double getBarinelScore() {
return barinelScore;
}
public void setBarinelScore(double barinelScore) {
this.barinelScore = barinelScore;
}
public double getBarinelModifiedScore() {
return barinelModifiedScore;
}
public void setBarinelModifiedScore(double barinelModifiedScore) {
this.barinelModifiedScore = barinelModifiedScore;
}
public double getMinRank() {
return minRank;
}
public void setMinRank(double minRank) {
this.minRank = minRank;
}
public double getMaxRank() {
return maxRank;
}
public void setMaxRank(double maxRank) {
this.maxRank = maxRank;
}
public double getAvgRank() {
return avgRank;
}
public void setAvgRank(double avgRank) {
this.avgRank = avgRank;
}
public ImageIcon getIcon() {
return icon;
}
public void setIcon(ImageIcon icon) {
this.icon = icon;
}
public boolean isFaulty() {
return faulty;
}
public void setFaulty(boolean faulty) {
this.faulty = faulty;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
public String getTestName() {
return testName;
}
public void setTestName(String testName) {
this.testName = testName;
}
public String getTestResult() {
return testResult;
}
public void setTestResult(String testResult) {
this.testResult = testResult;
}
public String getTestHeuristic() {
return testHeuristic;
}
public void setTestHeuristic(String testHeuristic) {
this.testHeuristic = testHeuristic;
}
/**
* Tells you whether the row is hidden or not
* @return true if the row is hidden
*/
public boolean isHide() {
return hide;
}
/**
* Hids the row
* @param hide true if you want the row to be hidden, false if you want it to be shown
*/
public void setHide(boolean hide) {
this.hide = hide;
}
}