-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGroup.java
51 lines (46 loc) · 992 Bytes
/
Group.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
package schedulingSystem;
/**
* A simple "group-of-students" abstraction. Defines the modules that the group is enrolled in.
*
*/
public class Group {
private final int groupId;
private final int groupSize;
private final int moduleIds[];
/**
* Initialize Group
*
* @param groupId
* @param groupSize
* @param moduleIds
*/
public Group(int groupId, int groupSize, int moduleIds[]){
this.groupId = groupId;
this.groupSize = groupSize;
this.moduleIds = moduleIds;
}
/**
* Get groupId
*
* @return groupId
*/
public int getGroupId(){
return this.groupId;
}
/**
* Get groupSize
*
* @return groupSize
*/
public int getGroupSize(){
return this.groupSize;
}
/**
* Get array of group's moduleIds
*
* @return moduleIds
*/
public int[] getModuleIds(){
return this.moduleIds;
}
}