-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequest.java
60 lines (47 loc) · 1.45 KB
/
Request.java
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
import java.util.ArrayList;
public class Request {
private ArrayList<Course> classes;
private ArrayList<Requirement> requirements;
private int creditLimit;
private String semester;
public Request() {
this.classes = new ArrayList<>();
this.requirements = new ArrayList<>();
}
public Request(ArrayList<Course> classes, ArrayList<Requirement> requirements, int creditLimit, String semester) {
this.classes = classes;
this.requirements = requirements;
this.creditLimit = creditLimit;
this.semester = semester;
}
public ArrayList<Course> getClasses() {
return classes;
}
public ArrayList<Requirement> getRequirements() {
return requirements;
}
public int getCreditLimit() {
return creditLimit;
}
public String getSemester() {
return semester;
}
public void setClasses(ArrayList<Course> classes) {
this.classes = classes;
}
public void setRequirements(ArrayList<Requirement> requirements) {
this.requirements = requirements;
}
public void setCreditLimit(int creditLimit) {
this.creditLimit = creditLimit;
}
public void setSemester(String semester) {
this.semester = semester;
}
public void addCourse(Course course) {
this.classes.add(course);
}
public void addRequirement(Requirement requirement) {
this.requirements.add(requirement);
}
}