| | |
| | | throw new CoolException("货排检索系统报错, node:" + JSON.toJSONString(nodes) + ", curRow:" + curRow); |
| | | } |
| | | |
| | | public int start0(int curSeq){ |
| | | if (curSeq < 7) { |
| | | return curSeq + 1; |
| | | } else { |
| | | return 2; |
| | | } |
| | | } |
| | | |
| | | public Integer get0(Integer curRow) { |
| | | return 1; |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | Shelves shelves = new Shelves(8,2); |
| | | Shelves shelves = new Shelves(6,2); |
| | | System.out.println(shelves.nodes.toString()); |
| | | int start = 1; |
| | | while (true) { |
| | | System.out.println(start); |
| | | start = shelves.start(start); |
| | | start = shelves.start0(start); |
| | | Thread.sleep(500L); |
| | | } |
| | | } |