| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.text.MessageFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | |
| | | /** |
| | |
| | | private Map<Integer, StaProtocol> station = new ConcurrentHashMap<>(); |
| | | private short heartBeatVal = 1; |
| | | private StaError1 staError1; |
| | | public static final ArrayList<Integer> staNos = new ArrayList<Integer>() {{ |
| | | add(101);add(102);add(103);add(104);add(105);add(106);add(107);add(108); |
| | | }}; |
| | | public static final ArrayList<Integer> staNos; |
| | | |
| | | static { |
| | | ArrayList<Integer> list = new ArrayList<>(); |
| | | for (int i = 1; i <= 48; i++) { |
| | | list.add(1000 + i); |
| | | } |
| | | for (int i = 9; i <= 40; i++) { |
| | | list.add(1100 + i); |
| | | } |
| | | list.add(1701); |
| | | list.add(1702); |
| | | staNos = list; // 不可修改,安全 |
| | | } |
| | | |
| | | public static final ArrayList<Integer> BarcodeList = new ArrayList<Integer>() {{ |
| | | add(1); add(2); |
| | | add(1); add(2);add(3); add(4);add(5); add(6);add(7); add(8); |
| | | }}; |
| | | public static final ArrayList<Integer> staNosErrList = new ArrayList<Integer>() {{ |
| | | add(104); add(106); |