| | |
| | | init(); |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | Shelves shelves = new Shelves(8, 2); |
| | | System.out.println(shelves.nodes.toString()); |
| | | int start = 1; |
| | | while (true) { |
| | | System.out.println(start); |
| | | start = shelves.start(start); |
| | | Thread.sleep(500L); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 初始化方法【私有】 |
| | | */ |
| | |
| | | } |
| | | } |
| | | throw new CoolException("货排检索系统报错, node:" + JSON.toJSONString(nodes) + ", curRow:" + curRow); |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | Shelves shelves = new Shelves(8,2); |
| | | System.out.println(shelves.nodes.toString()); |
| | | int start = 1; |
| | | while (true) { |
| | | System.out.println(start); |
| | | start = shelves.start(start); |
| | | Thread.sleep(500L); |
| | | } |
| | | } |
| | | |
| | | } |