-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRobot.java
62 lines (60 loc) · 1.45 KB
/
Robot.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
package model;
public class Robot {
private int name;
private int downSignals;
private long lastChange = System.currentTimeMillis();
private long upTimeLocal; //Resetted every X minutes
private int clusterID;
private int areaID;
private long upTimeTotal;
public Robot(int name, int downSignals, long lastChange, int clusterID){
this.name = name;
this.downSignals = downSignals;
this.lastChange = lastChange;
this.clusterID = clusterID;
this.setUpTimeLocal(0);
this.setUpTimeTotal(3600000);
}
public long getLastChange() {
return lastChange;
}
public void setLastChange(long lastChange) {
this.lastChange = lastChange;
}
public int getDownSignals() {
return downSignals;
}
public void setDownSignals(int downSignals) {
this.downSignals = downSignals;
}
public int getName() {
return name;
}
public void setName(int name) {
this.name = name;
}
public int getClusterID() {
return clusterID;
}
public void setClusterID(int clusterID) {
this.clusterID = clusterID;
}
public long getUpTimeTotal() {
return upTimeTotal;
}
public void setUpTimeTotal(long lastEfficiency) {
this.upTimeTotal = lastEfficiency;
}
public long getUpTimeLocal() {
return upTimeLocal;
}
public void setUpTimeLocal(long upTimeLocal) {
this.upTimeLocal = upTimeLocal;
}
public int getAreaID() {
return areaID;
}
public void setAreaID(int areaID) {
this.areaID = areaID;
}
}