-
Notifications
You must be signed in to change notification settings - Fork 0
/
Juggler.java
65 lines (54 loc) · 1.33 KB
/
Juggler.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
61
62
63
64
65
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
public class Juggler {
String jugglerId;
Skills skill;
//List of circuit preferences in order
ArrayList<String> circuits;
//Contains all circuits in order but head item will be removed for each visit.
Queue<String> circuitPreference;
boolean assigned;
Juggler(String jugglerId,Skills skill,ArrayList<String> circuits)
{
this.skill=skill;
this.jugglerId=jugglerId;
this.circuits=circuits;
assigned=true;
circuitPreference=new LinkedList<String>();
for(String ckt:circuits)
{
circuitPreference.add(ckt);
}
}
public boolean isAssigned() {
return assigned;
}
public void setAssigned(boolean assigned) {
this.assigned = assigned;
}
public ArrayList<String> getCircuits() {
return circuits;
}
public void setCircuits(ArrayList<String> circuits) {
this.circuits = circuits;
}
public Queue<String> getCircuitPreference() {
return circuitPreference;
}
public void setCircuitPreference(Queue<String> circuitPreference) {
this.circuitPreference = circuitPreference;
}
public String getJugglerId() {
return jugglerId;
}
public void setJugglerId(String jugglerId) {
this.jugglerId = jugglerId;
}
public Skills getSkill() {
return skill;
}
public void setSkill(Skills skill) {
this.skill = skill;
}
}