Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f30ebb74

Přidáno uživatelem Michal Linha před téměř 4 roky(ů)

re #8113 re #7885 all functions implemented, contingency table generation improved; re #8154 value filtering added; no comments

Zobrazit rozdíly:

src/main/java/vldc/aswi/model/table/ValueFunction.java
6 6
 */
7 7
public class ValueFunction {
8 8

  
9
    private double totalResult = 0.0;
10

  
11
    private double totalResultAvg;
12

  
13
    private double totalResultAvgSum;
14

  
15
    private double totalResultSum;
16

  
17
    private double totalMin;
18

  
19
    private double totalMax;
20

  
21
    private boolean isFirstMin = true;
22

  
23
    private boolean isFirstMax = true;
24

  
9 25
    /**
10 26
     * Value
11 27
     */
12
    private String value;
28
    private String nameOfSelect;
29

  
30
    private String name;
31

  
13 32
    /**
14 33
     * Function
15 34
     */
16 35
    private String function;
17 36

  
37
    private String type;
38

  
18 39
    /**
19 40
     * Creates an instance of the class
20
     * @param value value
41
     * @param nameOfSelect value
21 42
     * @param function function
22 43
     */
23
    public ValueFunction(String value, String function) {
24
        this.value = value;
44
    public ValueFunction(String nameOfSelect, String name, String function, String type) {
45
        this.nameOfSelect = nameOfSelect;
46
        this.name = name;
25 47
        this.function = function;
48
        this.type = type;
26 49
    }
27 50

  
28 51
    /**
29 52
     * Gets value.
30 53
     * @return value
31 54
     */
32
    public String getValue() {
33
        return value;
55
    public String getNameOfSelect() {
56
        return nameOfSelect;
34 57
    }
35 58

  
36 59
    /**
37 60
     * Sets value.
38
     * @param value value
61
     * @param nameOfSelect value
39 62
     */
40
    public void setValue(String value) {
41
        this.value = value;
63
    public void setNameOfSelect(String nameOfSelect) {
64
        this.nameOfSelect = nameOfSelect;
65
    }
66

  
67
    public String getName() {
68
        return name;
69
    }
70

  
71
    public void setName(String name) {
72
        this.name = name;
42 73
    }
43 74

  
44 75
    /**
......
56 87
    public void setFunction(String function) {
57 88
        this.function = function;
58 89
    }
90

  
91
    public String getType() {
92
        return type;
93
    }
94

  
95
    public void setType(String type) {
96
        this.type = type;
97
    }
98

  
99
    public double getTotalResult() {
100
        return totalResult;
101
    }
102

  
103
    public void setTotalResult(double totalResult) {
104
        this.totalResult = totalResult;
105
    }
106

  
107
    public double getTotalResultAvg() {
108
        return totalResultAvg;
109
    }
110

  
111
    public void setTotalResultAvg(double totalResultAvg) {
112
        this.totalResultAvg = totalResultAvg;
113
    }
114

  
115
    public double getTotalResultAvgSum() {
116
        return totalResultAvgSum;
117
    }
118

  
119
    public void setTotalResultAvgSum(double totalResultAvgSum) {
120
        this.totalResultAvgSum = totalResultAvgSum;
121
    }
122

  
123
    public double getTotalResultSum() {
124
        return totalResultSum;
125
    }
126

  
127
    public void setTotalResultSum(double totalResultSum) {
128
        this.totalResultSum = totalResultSum;
129
    }
130

  
131
    public double getTotalMin() {
132
        return totalMin;
133
    }
134

  
135
    public void setTotalMin(double totalMin) {
136
        this.totalMin = totalMin;
137
    }
138

  
139
    public double getTotalMax() {
140
        return totalMax;
141
    }
142

  
143
    public void setTotalMax(double totalMax) {
144
        this.totalMax = totalMax;
145
    }
146

  
147
    public boolean isFirstMin() {
148
        return isFirstMin;
149
    }
150

  
151
    public void setFirstMin(boolean firstMin) {
152
        isFirstMin = firstMin;
153
    }
154

  
155
    public boolean isFirstMax() {
156
        return isFirstMax;
157
    }
158

  
159
    public void setFirstMax(boolean firstMax) {
160
        isFirstMax = firstMax;
161
    }
59 162
}

Také k dispozici: Unified diff