OOP2

Data.java

1
import java.util.Set;
2
import java.util.HashSet;
3
4
public class Data {
5
	public static Set<Course> createCourses() {
6
		// TODO
7
	}
8
	
9
	/**
10
	 * Creates sample studies that can be used for testing purposes.
11
	 * This method will create a sample that represents all the studies from the
12
	 * Science faculty at UHasselt. These can then be applied in the program as
13
	 * sample data.
14
	 * @return A set of 5 (undergraduate) studies.
15
	 */
16
	public static Set<Study> createStudies() {
17
		// Biology:
18
		// Chemistry:
19
		// Physics:
20
		// Informatics:
21
		// Mathematics:
22
		// TODO
23
	}
24
25
	public static Set<Course> deriveCoursesFromStudies(Set<Study> studies) {
26
		// TODO
27
	}
28
29
	/**
30
	 * Creates all courses specific to the Biology study.
31
	 * @return A set containing all courses specific to the Biology study.
32
	 */
33
	private static Set<Course> createBiologyCourses() {
34
		Set<Course> courses = new HashSet();
35
		courses.add(new MandatoryCourse(
36
					"Inleiding Algoritmen en Programmeren", 1, 5, 3326, null, 1));
37
		courses.add(new MandatoryCourse(
38
					"Computer- en communicatiesystemen", 1, 5, 2191, null, 1));
39
40
41
42
43
44
45
	}
46
}
47