#
DELL
2025-09-18 3d10ceed030be39cc520aa453e36e695b1638b81
src/main/java/com/zy/core/thread/ForkLiftThread.java
@@ -1,46 +1,10 @@
package com.zy.core.thread;
import com.zy.common.ExecuteSupport;
import com.zy.core.ThreadHandler;
import com.zy.core.enums.ForkLiftProtocolStatusType;
import com.zy.core.enums.ForkLiftTaskModeType;
import com.zy.core.model.CommandResponse;
import com.zy.core.model.command.ForkLiftCommand;
import com.zy.core.model.protocol.ForkLiftProtocol;
import com.zy.core.model.protocol.ForkLiftStaProtocol;
import java.util.List;
import com.zy.core.properties.DeviceConfig;
public interface ForkLiftThread extends ThreadHandler {
    ForkLiftProtocol getStatus();//获取提升机状态
    ForkLiftProtocol getStatus(boolean clone);//获取提升机状态
    List<ForkLiftStaProtocol> getForkLiftStaProtocols();
    CommandResponse pickAndPut(ForkLiftCommand command);//取放货指令
    CommandResponse shuttleSwitch(ForkLiftCommand command);//小车换层
    CommandResponse reset(ForkLiftCommand command);//复位
    boolean isIdle();//是否空闲
    boolean isDeviceIdle();//设备是否空闲
    boolean isDeviceIdle(ExecuteSupport support);//设备是否空闲
    boolean setProtocolStatus(ForkLiftProtocolStatusType status);//设置工作状态
    boolean setSyncTaskNo(Integer taskNo);//设置工作号
    int generateDeviceTaskNo(int taskNo, ForkLiftTaskModeType type);//生成硬件设备工作号
    //***************获取命令*****************
    List<ForkLiftCommand> getPickAndPutCommand(Integer taskNo, Integer pick, Integer put);//取放货指令
    List<ForkLiftCommand> getShuttleSwitchCommand(Integer taskNo, Integer originLev, Integer targetLev);//小车换层
    DeviceConfig getDeviceConfig();
}