| | |
| | | return motionList; |
| | | } |
| | | |
| | | /** |
| | | * 提升机-小车已到位 |
| | | */ |
| | | public List<Motion> liftShuttleArrival(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.LIFT.val()); |
| | | motion.setDevice(String.valueOf(target.getLiftNo())); |
| | | motion.setMotionCtg(MotionCtgType.LIFT_SHUTTLE_ARRIVAL.val()); |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | /** |
| | | * 提升机-小车已驶离 |
| | | */ |
| | | public List<Motion> liftShuttleLeave(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.LIFT.val()); |
| | | motion.setDevice(String.valueOf(target.getLiftNo())); |
| | | motion.setMotionCtg(MotionCtgType.LIFT_SHUTTLE_LEAVE.val()); |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | // shuttle ----------------------------------------------------------------------------- |
| | | |
| | | /** |
| | |
| | | return motionList; |
| | | } |
| | | |
| | | /** |
| | | * 穿梭车动作 |
| | | */ |
| | | public List<Motion> shuttleAction(MotionDto origin, MotionDto target, MotionCtgType motionCtgType) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.SHUTTLE.val()); |
| | | motion.setDevice(String.valueOf(target.getShuttleNo())); |
| | | |
| | | motion.setMotionCtg(motionCtgType.val()); |
| | | |
| | | switch (motionCtgType) { |
| | | case SHUTTLE_PALLET_LIFT://托盘顶升 |
| | | |
| | | break; |
| | | case SHUTTLE_PALLET_DOWN://托盘下降 |
| | | |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | public List<Motion> shuttleCharge(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |