-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cluster.java
54 lines (52 loc) · 1.22 KB
/
Cluster.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
package model;
public class Cluster {
private int name;
private int downRobot;
private long lastChange;
private long upTimeLocal; //Resetted every X minutes
private int areaID;
private long upTimeTotal = 3600000;
public Cluster(int name, int downRobot, long lastChange, int areaID){
this.name = name;
this.setDownRobot(downRobot);
this.lastChange = lastChange;
this.setAreaID(areaID);
this.setUpTimeLocal(0);
}
public int getName() {
return name;
}
public void setName(int name) {
this.name = name;
}
public long getLastChange() {
return lastChange;
}
public void setLastChange(long lastChange) {
this.lastChange = lastChange;
}
public int getDownRobot() {
return downRobot;
}
public void setDownRobot(int downRobot) {
this.downRobot = downRobot;
}
public long getUpTimeTotal() {
return upTimeTotal;
}
public void setUpTimeTotal(long lastEfficiency) {
this.upTimeTotal = lastEfficiency;
}
public int getAreaID() {
return areaID;
}
public void setAreaID(int areaID) {
this.areaID = areaID;
}
public long getUpTimeLocal() {
return upTimeLocal;
}
public void setUpTimeLocal(long upTimeLocal) {
this.upTimeLocal = upTimeLocal;
}
}