| | |
| | | |
| | | @Override |
| | | public List<ForkLiftCommand> getPickAndPutCommand(Integer taskNo, Integer pick, Integer put) { |
| | | Integer realPick = pick % 1000; |
| | | Integer realPut = put % 1000; |
| | | |
| | | List<ForkLiftCommand> commands = new ArrayList<>(); |
| | | ForkLiftCommand command = new ForkLiftCommand(); |
| | | command.setLiftNo(slave.getId()); |
| | | command.setTaskNo(taskNo.shortValue()); |
| | | command.setMode(ForkLiftTaskModeType.PICK_PUT.id.shortValue()); |
| | | command.setPick(pick.shortValue()); |
| | | command.setPut(put.shortValue()); |
| | | command.setPick(realPick.shortValue()); |
| | | command.setPut(realPut.shortValue()); |
| | | command.setConfirm((short) 1); |
| | | |
| | | commands.add(command); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ForkLiftCommand> getShuttleSwitchCommand(Integer taskNo, Integer originLev, Integer targetLev) { |
| | | public List<ForkLiftCommand> getShuttleSwitchCommand(Integer taskNo, Integer pick, Integer put) { |
| | | Integer realPick = pick % 1000; |
| | | Integer realPut = put % 1000; |
| | | |
| | | List<ForkLiftCommand> commands = new ArrayList<>(); |
| | | ForkLiftCommand command = new ForkLiftCommand(); |
| | | command.setLiftNo(slave.getId()); |
| | | command.setTaskNo(taskNo.shortValue()); |
| | | command.setMode(ForkLiftTaskModeType.SHUTTLE_SWITCH.id.shortValue()); |
| | | command.setPick(originLev.shortValue()); |
| | | command.setPut(targetLev.shortValue()); |
| | | command.setPick(realPick.shortValue()); |
| | | command.setPut(realPut.shortValue()); |
| | | command.setConfirm((short) 1); |
| | | |
| | | commands.add(command); |