Revize f30c9e9e
Přidáno uživatelem Michal Linha před téměř 4 roky(ů)
src/main/java/vldc/aswi/model/table/Node.java | ||
---|---|---|
1 | 1 |
package vldc.aswi.model.table; |
2 | 2 |
|
3 | 3 |
import java.util.ArrayList; |
4 |
import java.util.Collection; |
|
5 | 4 |
import java.util.List; |
6 | 5 |
|
7 | 6 |
/** |
... | ... | |
9 | 8 |
*/ |
10 | 9 |
public class Node { |
11 | 10 |
|
11 |
private double totalResult; |
|
12 |
|
|
13 |
private double totalResultAvg; |
|
14 |
|
|
15 |
private double totalResultAvgSum; |
|
16 |
|
|
17 |
private double totalResultSum; |
|
18 |
|
|
19 |
private double totalMin; |
|
20 |
|
|
21 |
private double totalMax; |
|
22 |
|
|
23 |
private boolean isFirstMin; |
|
24 |
|
|
25 |
private boolean isFirstMax; |
|
26 |
|
|
12 | 27 |
/** |
13 | 28 |
* Values of the nodes on a path the the node. |
14 | 29 |
*/ |
... | ... | |
18 | 33 |
* Creates a node. |
19 | 34 |
*/ |
20 | 35 |
public Node() { |
36 |
isFirstMin = true; |
|
37 |
isFirstMax = true; |
|
21 | 38 |
this.values = new ArrayList<>(); |
22 | 39 |
} |
23 | 40 |
|
... | ... | |
26 | 43 |
* @param node node to be copied |
27 | 44 |
*/ |
28 | 45 |
public Node(Node node) { |
46 |
isFirstMin = true; |
|
47 |
isFirstMax = true; |
|
29 | 48 |
this.values = new ArrayList<>(node.values); |
30 | 49 |
} |
31 | 50 |
|
... | ... | |
44 | 63 |
public void setValues(List<String> values) { |
45 | 64 |
this.values = values; |
46 | 65 |
} |
66 |
|
|
67 |
public double getTotalResult() { |
|
68 |
return totalResult; |
|
69 |
} |
|
70 |
|
|
71 |
public void setTotalResult(double totalResult) { |
|
72 |
this.totalResult = totalResult; |
|
73 |
} |
|
74 |
|
|
75 |
public double getTotalResultAvg() { |
|
76 |
return totalResultAvg; |
|
77 |
} |
|
78 |
|
|
79 |
public void setTotalResultAvg(double totalResultAvg) { |
|
80 |
this.totalResultAvg = totalResultAvg; |
|
81 |
} |
|
82 |
|
|
83 |
public double getTotalResultAvgSum() { |
|
84 |
return totalResultAvgSum; |
|
85 |
} |
|
86 |
|
|
87 |
public void setTotalResultAvgSum(double totalResultAvgSum) { |
|
88 |
this.totalResultAvgSum = totalResultAvgSum; |
|
89 |
} |
|
90 |
|
|
91 |
public double getTotalResultSum() { |
|
92 |
return totalResultSum; |
|
93 |
} |
|
94 |
|
|
95 |
public void setTotalResultSum(double totalResultSum) { |
|
96 |
this.totalResultSum = totalResultSum; |
|
97 |
} |
|
98 |
|
|
99 |
public double getTotalMin() { |
|
100 |
return totalMin; |
|
101 |
} |
|
102 |
|
|
103 |
public void setTotalMin(double totalMin) { |
|
104 |
this.totalMin = totalMin; |
|
105 |
} |
|
106 |
|
|
107 |
public double getTotalMax() { |
|
108 |
return totalMax; |
|
109 |
} |
|
110 |
|
|
111 |
public void setTotalMax(double totalMax) { |
|
112 |
this.totalMax = totalMax; |
|
113 |
} |
|
114 |
|
|
115 |
public boolean isFirstMin() { |
|
116 |
return isFirstMin; |
|
117 |
} |
|
118 |
|
|
119 |
public void setFirstMin(boolean firstMin) { |
|
120 |
isFirstMin = firstMin; |
|
121 |
} |
|
122 |
|
|
123 |
public boolean isFirstMax() { |
|
124 |
return isFirstMax; |
|
125 |
} |
|
126 |
|
|
127 |
public void setFirstMax(boolean firstMax) { |
|
128 |
isFirstMax = firstMax; |
|
129 |
} |
|
47 | 130 |
} |
Také k dispozici: Unified diff
re #8113 re #7885 all functions implemented, contingency table generation improved; re #8154 value filtering added; no comments