Projekt

Obecné

Profil

Stáhnout (3.35 KB) Statistiky
| Větev: | Revize:
1
package vldc.aswi.model.table;
2

    
3

    
4
/**
5
 * Class representing connection between a value and a function
6
 */
7
public class ValueFunction {
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

    
25
    private boolean isFilledTotalValue = false;
26

    
27
    /**
28
     * Value
29
     */
30
    private String nameOfSelect;
31

    
32
    private String name;
33

    
34
    /**
35
     * Function
36
     */
37
    private String function;
38

    
39
    private String type;
40

    
41
    /**
42
     * Creates an instance of the class
43
     * @param nameOfSelect value
44
     * @param function function
45
     */
46
    public ValueFunction(String nameOfSelect, String name, String function, String type) {
47
        this.nameOfSelect = nameOfSelect;
48
        this.name = name;
49
        this.function = function;
50
        this.type = type;
51
    }
52

    
53
    /**
54
     * Gets value.
55
     * @return value
56
     */
57
    public String getNameOfSelect() {
58
        return nameOfSelect;
59
    }
60

    
61
    /**
62
     * Sets value.
63
     * @param nameOfSelect value
64
     */
65
    public void setNameOfSelect(String nameOfSelect) {
66
        this.nameOfSelect = nameOfSelect;
67
    }
68

    
69
    public String getName() {
70
        return name;
71
    }
72

    
73
    public void setName(String name) {
74
        this.name = name;
75
    }
76

    
77
    /**
78
     * Gets function.
79
     * @return function
80
     */
81
    public String getFunction() {
82
        return function;
83
    }
84

    
85
    /**
86
     * Sets function.
87
     * @param function function.
88
     */
89
    public void setFunction(String function) {
90
        this.function = function;
91
    }
92

    
93
    public String getType() {
94
        return type;
95
    }
96

    
97
    public void setType(String type) {
98
        this.type = type;
99
    }
100

    
101
    public double getTotalResult() {
102
        return totalResult;
103
    }
104

    
105
    public void setTotalResult(double totalResult) {
106
        this.totalResult = totalResult;
107
    }
108

    
109
    public double getTotalResultAvg() {
110
        return totalResultAvg;
111
    }
112

    
113
    public void setTotalResultAvg(double totalResultAvg) {
114
        this.totalResultAvg = totalResultAvg;
115
    }
116

    
117
    public double getTotalResultAvgSum() {
118
        return totalResultAvgSum;
119
    }
120

    
121
    public void setTotalResultAvgSum(double totalResultAvgSum) {
122
        this.totalResultAvgSum = totalResultAvgSum;
123
    }
124

    
125
    public double getTotalResultSum() {
126
        return totalResultSum;
127
    }
128

    
129
    public void setTotalResultSum(double totalResultSum) {
130
        this.totalResultSum = totalResultSum;
131
    }
132

    
133
    public double getTotalMin() {
134
        return totalMin;
135
    }
136

    
137
    public void setTotalMin(double totalMin) {
138
        this.totalMin = totalMin;
139
    }
140

    
141
    public double getTotalMax() {
142
        return totalMax;
143
    }
144

    
145
    public void setTotalMax(double totalMax) {
146
        this.totalMax = totalMax;
147
    }
148

    
149
    public boolean isFirstMin() {
150
        return isFirstMin;
151
    }
152

    
153
    public void setFirstMin(boolean firstMin) {
154
        isFirstMin = firstMin;
155
    }
156

    
157
    public boolean isFirstMax() {
158
        return isFirstMax;
159
    }
160

    
161
    public void setFirstMax(boolean firstMax) {
162
        isFirstMax = firstMax;
163
    }
164

    
165
    public boolean isFilledTotalValue() {
166
        return isFilledTotalValue;
167
    }
168

    
169
    public void setFilledTotalValue(boolean filledTotalValue) {
170
        isFilledTotalValue = filledTotalValue;
171
    }
172
}
(6-6/6)