|
@@ -66,14 +66,14 @@ public class ProtocolDataContainer {
|
|
|
}
|
|
|
|
|
|
public Map<Integer, Number> getNumbers() {
|
|
|
- Map<Integer, Number> numberMap=new HashMap<>();
|
|
|
- this.yc.forEach((k,v)->numberMap.put(k,v));
|
|
|
+ Map<Integer, Number> numberMap = new HashMap<>();
|
|
|
+ this.yc.forEach((k, v) -> numberMap.put(k, v));
|
|
|
return numberMap;
|
|
|
}
|
|
|
|
|
|
public Map<Integer, Boolean> getBooleans() {
|
|
|
- Map<Integer, Boolean> booleanMap=new HashMap<>();
|
|
|
- this.yx.forEach((k,v)->booleanMap.put(k,v));
|
|
|
+ Map<Integer, Boolean> booleanMap = new HashMap<>();
|
|
|
+ this.yx.forEach((k, v) -> booleanMap.put(k, v));
|
|
|
return booleanMap;
|
|
|
}
|
|
|
|
|
@@ -146,6 +146,17 @@ public class ProtocolDataContainer {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public void deleteData(Integer point) {
|
|
|
+ if (isYcContains(point)) {
|
|
|
+ this.yc.remove(point);
|
|
|
+ }
|
|
|
+ if (isYxContains(point)) {
|
|
|
+ this.yx.remove(point);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 查看某点位数据是否可用
|
|
|
*
|