#
Junjie
2024-04-13 e9a4418c14ef68fb454300b092c413e8df259ec2
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/ShuttleThread.java
@@ -1,8 +1,13 @@
package com.zy.asrs.wcs.rcs.thread;
import com.zy.asrs.wcs.common.ExecuteSupport;
import com.zy.asrs.wcs.core.model.NavigateNode;
import com.zy.asrs.wcs.core.model.command.ShuttleCommand;
import com.zy.asrs.wcs.rcs.entity.Device;
import com.zy.asrs.wcs.rcs.model.enums.ShuttleProtocolStatusType;
import com.zy.asrs.wcs.rcs.model.protocol.ShuttleProtocol;
import java.util.List;
public interface ShuttleThread extends ThreadHandler{
@@ -10,14 +15,44 @@
    Device getDevice();//获取设备信息
    boolean movePath();//路径下发
    boolean movePath(List<NavigateNode> nodes, Integer taskNo);//路径下发
    boolean move();//移动
    boolean move(ShuttleCommand command);//移动
    boolean lift();//顶升
    boolean lift(ShuttleCommand command);//顶升
    boolean charge(ShuttleCommand command);//充电开关
    boolean reset(ShuttleCommand command);//复位开关
    boolean isIdle();
    boolean isIdle(ExecuteSupport support);//是否空闲
    boolean isDeviceIdle();//设备是否空闲
    boolean isRequireCharge();//是否满足充电状态
    boolean isCharging();//是否充电中
    boolean isChargingCompleted();//是否充电完成
    List<NavigateNode> getMoveAdvancePath();//获取穿梭车任务路径
    int generateDeviceTaskNo(int taskNo);//生成硬件设备工作号
    boolean setProtocolStatus(ShuttleProtocolStatusType status);//设置工作状态
    boolean setSyncTaskNo(Integer taskNo);//设置工作号
    boolean setPakMk(boolean pakMk);//设置标记
    //***************获取命令*****************
    ShuttleCommand getMoveCommand(Integer taskNo, String startCodeNum, String distCodeNum, Integer allDistance, Integer runDirection, Integer runSpeed);
    ShuttleCommand getMoveCommand(Integer taskNo, String startCodeNum, String distCodeNum, Integer allDistance, Integer runDirection, Integer runSpeed);//获取移动命令
    ShuttleCommand getLiftCommand(Integer taskNo, Boolean lift);//顶升命令 true=>顶升 false=>下降
    ShuttleCommand getChargeCommand(Integer taskNo, Boolean charge);//充电开关命令 true=>开 false=>关
}