|
|
|
@ -1,11 +1,7 @@
|
|
|
|
|
package com.xydl.cac.model;
|
|
|
|
|
|
|
|
|
|
import com.fazecast.jSerialComm.SerialPort;
|
|
|
|
|
import com.beanit.iec61850bean.BasicDataAttribute;
|
|
|
|
|
import com.xydl.cac.entity.Jg;
|
|
|
|
|
import com.xydl.cac.entity.ModevType;
|
|
|
|
|
import com.xydl.cac.entity.WarnRule;
|
|
|
|
|
import com.xydl.cac.entity.Zsb;
|
|
|
|
|
import com.xydl.cac.entity.*;
|
|
|
|
|
import com.xydl.cac.iec.IecClient;
|
|
|
|
|
import com.xydl.cac.iec.IecServer;
|
|
|
|
|
import com.xydl.cac.util.DateUtil;
|
|
|
|
@ -20,6 +16,7 @@ public class StaticVariable {
|
|
|
|
|
public static HashMap<String, String> paramRelationMap = new HashMap<>();
|
|
|
|
|
public static HashMap<String, String> doneWarnMap = new HashMap<>();
|
|
|
|
|
public static HashMap<Integer, IecClient> realTimeClientMap = new HashMap<>();
|
|
|
|
|
public static List<IcdIed> iedTestList = new ArrayList<>();
|
|
|
|
|
public static int shutdown = 0;
|
|
|
|
|
public static HashMap<String, String> rptFromActiveMap = new HashMap<>();
|
|
|
|
|
public static HashMap<String, String> rptToActiveMap = new HashMap<>();
|
|
|
|
@ -31,16 +28,6 @@ public class StaticVariable {
|
|
|
|
|
public static ConcurrentHashMap<Integer, WarnRule> rule_Cache = new ConcurrentHashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void wait(int seconds) throws InterruptedException {
|
|
|
|
|
for (int i = 0; i < seconds; i++) {
|
|
|
|
|
if (shutdown == 1) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
Thread.sleep(1000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新服务端
|
|
|
|
|
public static void updateServerNodeValue(BasicDataAttribute bda) {
|
|
|
|
|
Iterator<Integer> it = StaticVariable.iecServerMap.keySet().iterator();
|
|
|
|
|