Closedown
This commit is contained in:
@@ -104,13 +104,13 @@ public class PuckDetection extends DeviceBase{
|
||||
}
|
||||
|
||||
void processMessage(String msg){
|
||||
//ArrayList<Integer> present = new ArrayList<>();
|
||||
ArrayList<Integer> present = new ArrayList<>();
|
||||
for (String line:msg.split("\t")){
|
||||
try{
|
||||
line = line.trim();
|
||||
String[] tokens = line.split(" ");
|
||||
int id = Integer.valueOf(tokens[0].substring(1));
|
||||
//present.add(id);
|
||||
present.add(id);
|
||||
PuckState puck = getPuck(id);
|
||||
if (tokens.length<3){
|
||||
puck.clear();
|
||||
@@ -121,11 +121,11 @@ public class PuckDetection extends DeviceBase{
|
||||
getLogger().log(Level.INFO, null, ex);
|
||||
}
|
||||
}
|
||||
//for (int i=1; i<= PUCKS_NUMBER; i++){
|
||||
// if (!Arr.containsEqual(present.toArray(), i)){
|
||||
// pucks[i-1].clear();
|
||||
// }
|
||||
//}
|
||||
for (int i=1; i<= PUCKS_NUMBER; i++){
|
||||
if (!Arr.containsEqual(present.toArray(), i)){
|
||||
pucks[i-1].clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user