| | |
| | | } |
| | | |
| | | // 获取当前小车未行走的路线 |
| | | public static List<Integer> getRoute(boolean sign,Integer drop){ |
| | | public static List<Integer> getRoute(Integer groupStart,Integer groupEnd){ |
| | | boolean sign = groupStart < groupEnd; |
| | | List<Integer> result = new ArrayList<>(); |
| | | List<Integer> groupRoute = new ArrayList<>(); |
| | | if (sign){ |
| | |
| | | }else { |
| | | groupRoute = TRACK_POSITION_REVERSE_SEQUENCE; |
| | | } |
| | | if (groupRoute.contains(drop)) { |
| | | if (groupRoute.contains(groupStart) && groupRoute.contains(groupEnd)) { |
| | | sign = false; |
| | | for (Integer route : groupRoute) { |
| | | if (route == drop){ |
| | | if (route.equals(groupStart)){ |
| | | sign=true; |
| | | } |
| | | if (route.equals(groupEnd)){ |
| | | result.add(route); |
| | | break; |
| | | } |
| | | if (sign){ |
| | | result.add(route); |
| | |
| | | }else { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | return result; |
| | | } |
| | | // 外侧方向的货位 优先入库方向/优先出库方向 ===>> 反之 |