-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBiometricProfile.java
More file actions
66 lines (60 loc) · 1.34 KB
/
BiometricProfile.java
File metadata and controls
66 lines (60 loc) · 1.34 KB
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
package conversion;
/**
* Object that stores (but doesn't alter) a profile of someone's personal data, specifically
* fitness-relevant data like age/height/weight/gender
*
* @author Sunshine Regiment
*
*/
public class BiometricProfile {
private boolean gender;//false = male, true = female
private int age;//in years
private double weight;//in kg
private double height;//in m
/**
* Constructor for a biometric profile. Initialises a range of values.
*
* @param age Sets age in years
* @param weight Sets weight in kilograms
* @param height Sets height in metres
* @param gender Sets gender (false = male, true = female)
*/
public BiometricProfile(int age, double weight, double height, boolean gender) {
this.gender = gender;
this.age = age;
this.weight = weight;
this.height = height;
}
/**
* Getter for gender
*
* @return boolean gender - 0 = male, 1 = female
*/
public boolean getGender() {
return gender;
}
/**
* Getter for age
*
* @return age in years
*/
public int getAge() {
return age;
}
/**
* Getter for weight
*
* @return weight in kilograms
*/
public double getWeight() {
return weight;
}
/**
* Getter for height
*
* @return height in centimetres
*/
public double getHeight() {
return height;
}
}