Study.java
1 |
|
2 |
|
3 |
public class Study { |
4 |
|
5 |
private String name; |
6 |
private int duration; |
7 |
private int studyPoints; |
8 |
private Set<Course> courses; |
9 |
|
10 |
public Study(String name, int duration, int studyPoints, Set<Course> courses) { |
11 |
this.name = name; |
12 |
this.duration = duration; |
13 |
this.studyPoints = studyPoints; |
14 |
this.courses = courses; |
15 |
} |
16 |
|
17 |
public void setName(String name) { |
18 |
this.name = name; |
19 |
} |
20 |
|
21 |
public String getName() { |
22 |
return name; |
23 |
} |
24 |
|
25 |
public void setDuration(int duration) { |
26 |
this.duration = duration; |
27 |
} |
28 |
|
29 |
public int getDuration() { |
30 |
return duration; |
31 |
} |
32 |
|
33 |
public void setStudyPoints(int studyPoints) { |
34 |
this.studyPoints = studyPoints; |
35 |
} |
36 |
|
37 |
public int getStudyPoints() { |
38 |
return studyPoints; |
39 |
} |
40 |
|
41 |
public void setCourses(Set<Course> courses) { |
42 |
this.courses = courses; |
43 |
} |
44 |
|
45 |
public Set<Course> getCourses() { |
46 |
return courses; |
47 |
} |
48 |
|
49 |
} |
50 |