Course.java
1 |
|
2 |
|
3 |
public class Course { |
4 |
|
5 |
private String name; |
6 |
private int semester; |
7 |
private int studyPoints; |
8 |
private int ID; |
9 |
private Set<Course> requiredCourses; |
10 |
|
11 |
public Course(String name, int semester, int studyPoints, int ID, Set<Course> requiredCourses) { |
12 |
this.name = name; |
13 |
this.semester = semester; |
14 |
this.studyPoints = studyPoints; |
15 |
this.ID = ID; |
16 |
this.requiredCourses = requiredCourses; |
17 |
} |
18 |
|
19 |
public void setName(String name) { |
20 |
this.name = name; |
21 |
} |
22 |
|
23 |
public String getName() { |
24 |
return name; |
25 |
} |
26 |
|
27 |
public void setSemester(int semester) { |
28 |
this.semester = semester; |
29 |
} |
30 |
|
31 |
public int getSemester() { |
32 |
return semester; |
33 |
} |
34 |
|
35 |
public void setStudyPoints(int studyPoints) { |
36 |
this.studyPoints = studyPoints; |
37 |
} |
38 |
|
39 |
public int getStudyPoints() { |
40 |
return studyPoints; |
41 |
} |
42 |
|
43 |
public void setID(int ID) { |
44 |
this.ID = ID; |
45 |
} |
46 |
|
47 |
public int getID() { |
48 |
return ID; |
49 |
} |
50 |
|
51 |
public void setRequiredCourses(Set<Course> requiredCourses) { |
52 |
this.requiredCourses = requiredCourses; |
53 |
} |
54 |
|
55 |
public Set<Course> getRequiredCourses() { |
56 |
return requiredCourses; |
57 |
} |
58 |
|
59 |
} |
60 |