-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlotsMessagePutStatus.java
More file actions
36 lines (29 loc) · 1 KB
/
SlotsMessagePutStatus.java
File metadata and controls
36 lines (29 loc) · 1 KB
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
public class SlotsMessagePutStatus extends SlotsMessage{
Slot[] slotsTable;
boolean[] initializedNodes;
int destination;
@Override
public String getText() {
return "Sender: "+this.getSenderId()+"\n"
+ "Destiantion: "+this.getDestination()+"\n Put Status";
}
public SlotsMessagePutStatus(Slot[] slotsTable, boolean[] initializedNodes, int senderId, int destinationId) {
super(senderId);
this.slotsTable = slotsTable;
this.initializedNodes = initializedNodes;
this.destination = destinationId;
}
public void setStatus(Slot[] slotsTable, boolean[] initializedNodes) {
this.slotsTable = slotsTable;
this.initializedNodes = initializedNodes;
}
public Slot[] getSlotsTable() {
return this.slotsTable;
}
public boolean[] getInitializedNodes() {
return this.initializedNodes;
}
public int getDestination() {
return this.destination;
}
}