| | |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.wcs.core.domain.dto.MotionDto; |
| | | import com.zy.asrs.wcs.core.entity.Task; |
| | | import com.zy.asrs.wcs.core.model.enums.LiftCodeType; |
| | | import com.zy.asrs.wcs.core.model.enums.MotionCtgType; |
| | | import com.zy.asrs.wcs.core.model.enums.TaskStsType; |
| | | import com.zy.asrs.wcs.core.model.enums.WorkZoneType; |
| | |
| | | import com.zy.asrs.wcs.core.utils.ShuttleDispatcher; |
| | | import com.zy.asrs.wcs.core.utils.Utils; |
| | | import com.zy.asrs.wcs.rcs.cache.SlaveConnection; |
| | | import com.zy.asrs.wcs.rcs.entity.Motion; |
| | | import com.zy.asrs.wcs.core.entity.Motion; |
| | | import com.zy.asrs.wcs.rcs.model.enums.SlaveType; |
| | | import com.zy.asrs.wcs.rcs.model.protocol.LiftProtocol; |
| | | import com.zy.asrs.wcs.rcs.model.protocol.ShuttleProtocol; |
| | | import com.zy.asrs.wcs.rcs.service.MotionService; |
| | | import com.zy.asrs.wcs.rcs.thread.LiftThread; |
| | | import com.zy.asrs.wcs.core.service.MotionService; |
| | | import com.zy.asrs.wcs.rcs.thread.ShuttleThread; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | } |
| | | |
| | | |
| | | // /** |
| | | // * 生成充电动作 |
| | | // */ |
| | | // public List<Motion> generateChargeMotion(WrkCharge wrkCharge) { |
| | | // List<Motion> motionList = new ArrayList<>(); |
| | | /** |
| | | * 生成充电动作 |
| | | */ |
| | | public List<Motion> generateChargeMotion(Task task) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | // if (wrkCharge.getWrkSts() != WrkMastStsType.NEW_CHARGE.sts || wrkCharge.getIoType() != WrkIoTypeType.CHARGE.sts) { |
| | | // return motionList; |
| | | // } |
| | |
| | | // dto.setShuttleNo(shuttleProtocol.getShuttleNo().intValue()); |
| | | // })) |
| | | // )); |
| | | // |
| | | // return motionList; |
| | | // } |
| | | // |
| | | // /** |
| | | // * 生成充电完成动作 |
| | | // */ |
| | | // public List<Motion> generateShuttleChargeWrkComplete(WrkCharge wrkCharge) { |
| | | // List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | /** |
| | | * 生成充电完成动作 |
| | | */ |
| | | public List<Motion> generateShuttleChargeWrkComplete(Task task) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | // if (wrkCharge.getWrkSts() != WrkMastStsType.NEW_MOVE.sts || wrkCharge.getIoType() != WrkIoTypeType.MOVE.sts) { |
| | | // return motionList; |
| | | // } |
| | |
| | | // )); |
| | | // |
| | | // } |
| | | // return motionList; |
| | | // } |
| | | return motionList; |
| | | } |
| | | |
| | | |
| | | |