From 39a729e911ca4e5fb1c629fabf71cc3cf02dade8 Mon Sep 17 00:00:00 2001 From: Junjie <xjj@123> Date: 星期六, 12 十月 2024 16:37:19 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java index f5e1c54..3b3b015 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/KernelService.java @@ -440,4 +440,40 @@ return motionList; } + // Map ----------------------------------------------------------------------------- + + /** + * 鍦板浘璺緞閿佸畾 + */ + public List<Motion> mapLockPath(MotionDto origin, MotionDto target) { + List<Motion> motionList = new ArrayList<>(); + + motionList.add(Motion.build(motion -> { + motion.setDeviceCtg(DeviceCtgType.MAP.val()); + motion.setDevice(String.valueOf(target.getShuttleNo())); + motion.setMotionCtg(MotionCtgType.MAP_LOCK_PATH.val()); + + motion.setTarget(target.getLocNo()); + })); + + return motionList; + } + + /** + * 鍦板浘璺緞瑙i攣 + */ + public List<Motion> mapUnlockPath(MotionDto origin, MotionDto target) { + List<Motion> motionList = new ArrayList<>(); + + motionList.add(Motion.build(motion -> { + motion.setDeviceCtg(DeviceCtgType.MAP.val()); + motion.setDevice(String.valueOf(target.getShuttleNo())); + motion.setMotionCtg(MotionCtgType.MAP_UNLOCK_PATH.val()); + + motion.setTarget(target.getLocNo()); + })); + + return motionList; + } + } -- Gitblit v1.9.1