#
luxiaotao1123
2024-04-07 bda52da89628d1587ab804510f9995c671a318ca
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/LiftThread.java
@@ -1,9 +1,37 @@
package com.zy.asrs.wcs.rcs.thread;
import com.zy.asrs.wcs.core.model.command.LiftCommand;
import com.zy.asrs.wcs.rcs.entity.Device;
import com.zy.asrs.wcs.rcs.model.protocol.LiftProtocol;
public interface LiftThread extends ThreadHandler{
    LiftProtocol getStatus();//获取提升机状态
    Device getDevice();//获取设备信息
    boolean move(LiftCommand command);//升降移动
    boolean palletInOut(LiftCommand command);//托盘出入
    boolean lock(LiftCommand command);//锁定提升机
    boolean unlock(LiftCommand command);//解锁提升机
    boolean reset(LiftCommand command);//复位
    boolean isIdle();//是否空闲
    //***************获取命令*****************
    LiftCommand getEmptyMoveCommand(Integer taskNo, Integer targetLev);//空载移动
    LiftCommand getMoveWithShuttleCommand(Integer taskNo, Integer originLev, Integer targetLev);//载车移动
    LiftCommand getPalletInOutCommand(Integer taskNo, Integer originLev, Integer targetLev, Integer originSta, Integer targetSta);//托盘出入
    LiftCommand getLockCommand(Integer taskNo, Boolean lock);//锁定/解锁提升机
    LiftCommand getShuttleSignalCommand(Integer taskNo, Boolean signal);//小车已到位/已驶离信号
}