Projekt

Obecné

Profil

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

    
3
import java.util.ArrayList;
4
import java.util.List;
5

    
6
/**
7
 * Class representing a node in a tree of row or column values.
8
 */
9
public class Node {
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

    
27
    /**
28
     * Values of the nodes on a path the the node.
29
     */
30
    private List<String> values;
31

    
32
    /**
33
     * Creates a node.
34
     */
35
    public Node() {
36
        isFirstMin = true;
37
        isFirstMax = true;
38
        this.values = new ArrayList<>();
39
    }
40

    
41
    /**
42
     * Creates a node with the same values as the given node.
43
     * @param node node to be copied
44
     */
45
    public Node(Node node) {
46
        isFirstMin = true;
47
        isFirstMax = true;
48
        this.values = new ArrayList<>(node.values);
49
    }
50

    
51
    /**
52
     * Gets values.
53
     * @return values.
54
     */
55
    public List<String> getValues() {
56
        return values;
57
    }
58

    
59
    /**
60
     * Sets values.
61
     * @param values values.
62
     */
63
    public void setValues(List<String> values) {
64
        this.values = values;
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
    }
130
}
(4-4/6)