Newer
Older
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
package edu.ncsu.csc.itrust.beans;
/**
* A bean for storing CDC statistics data.
*
* A bean's purpose is to store data. Period. Little or no functionality is to be added to a bean
* (with the exception of minor formatting such as concatenating phone numbers together).
* A bean must only have Getters and Setters (Eclipse Hint: Use Source > Generate Getters and Setters
* to create these easily)
*/
public class CDCStatsBean {
private int sex;
private float age;
private double L;
private double M;
private double S;
/**
* Constructs a CDCStatsBean with all null values for the fields
*/
public CDCStatsBean() {
}
/**
* Gets the gender associated with the cdc statistic
* @return the gender associated with the cdc statistic. 1 stands for male. 2 stands for female.
*/
public int getSex() {
return sex;
}
/**
* Sets the gender for the cdc statistic
* @param sex integer for the gender of the cdc statistic. 1 for male. 2 for female.
*/
public void setSex(int sex) {
this.sex = sex;
}
/**
* Gets the age in months
* @return the age of the cdc statistic in months
*/
public float getAge() {
return age;
}
/**
* Sets the age in months for the cdc statistic
* @param age the age in months as a float
*/
public void setAge(float age) {
this.age = age;
}
/**
* Gets the Box-Cox transformation or L value
* @return the Box-Cox transformation or L value
*/
public double getL() {
return L;
}
/**
* Sets the Box-Cox transformation or L value
* @return L double for the Box-Cox transformation or L value
*/
public void setL(double L) {
this.L = L;
}
/**
* Gets the median or the M value
* @return the median
*/
public double getM() {
return M;
}
/**
* Sets the median or the M value
* @param M double value for the median
*/
public void setM(double M) {
this.M = M;
}
/**
* Gets the generalized coefficient of variation or S value
* @return the generalized coefficient of variation or S value
*/
public double getS() {
return S;
}
/**
* Sets the generalized coefficient of variation or S Value
* @param S double for the generalized coefficient of variation
*/
public void setS(double S) {
this.S = S;
}
}