-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExercise.pde
61 lines (48 loc) · 1.31 KB
/
Exercise.pde
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
//Exercise object, used to store information on each exercise prescibed in a patients programme
class Exercise {
//declare variable for values
private int exercise_id = -1;
private String name = "default name";
private String description = "default description";
private String level = "default level";
private int repetitions = -1;
//constructor that takes all values and sets them
public Exercise (int e_id, String n, String d, String l, int r) {
this.exercise_id = e_id;
this.name = n;
this.description = d;
this.level = l;
this.repetitions = r;
}
//getters and setters for the exercise values
public int getExercise_id() {
return exercise_id;
}
public void setExercise_id(int exercise_id) {
this.exercise_id = exercise_id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public int getRepetitions() {
return repetitions;
}
public void setRepetitions(int repetitions) {
this.repetitions = repetitions;
}
}