| | |
| | | if (Cools.isEmpty(autoRunArea)) { |
| | | return; |
| | | } |
| | | List<Integer> array = new ArrayList<>(); |
| | | List<String> list = new ArrayList<>(); |
| | | for (char c : autoRunArea.toCharArray()) { |
| | | switch (c) { |
| | | case '1': |
| | | xx(LocGroupConstant.FAR_RIGHT_LOC_ROW_LIST); |
| | | array.addAll(LocGroupConstant.FAR_RIGHT_LOC_ROW_LIST); |
| | | list.addAll(StaGroupConstant.FAR_RIGHT_STA_ROW_LIST); |
| | | break; |
| | | case '2': |
| | | xx(LocGroupConstant.RIGHT_LOC_ROW_LIST); |
| | | array.addAll(LocGroupConstant.RIGHT_LOC_ROW_LIST); |
| | | list.addAll(StaGroupConstant.RIGHT_STA_ROW_LIST); |
| | | break; |
| | | case '3': |
| | | xx(LocGroupConstant.MIDDLE_LOC_ROW_LIST); |
| | | array.addAll(LocGroupConstant.MIDDLE_LOC_ROW_LIST); |
| | | list.addAll(StaGroupConstant.MIDDLE_STA_ROW_LIST); |
| | | break; |
| | | case '4': |
| | | xx(LocGroupConstant.LEFT_LOC_ROW_LIST); |
| | | array.addAll(LocGroupConstant.LEFT_LOC_ROW_LIST); |
| | | list.addAll(StaGroupConstant.LEFT_STA_ROW_LIST); |
| | | break; |
| | | case '5': |
| | | xx(LocGroupConstant.FAR_LEFT_LOC_ROW_LIST); |
| | | array.addAll(LocGroupConstant.FAR_LEFT_LOC_ROW_LIST); |
| | | list.addAll(StaGroupConstant.FAR_LEFT_STA_ROW_LIST); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | xx(array); |
| | | |
| | | } |
| | | |
| | | private void xx(List<Integer> locGroupList) { |
| | | Integer startRow = Collections.min(locGroupList); |