From 6daf900a09adcca981f620744bf89851654d88e0 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期二, 05 八月 2025 09:58:08 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/LiftThread.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/thread/LiftThread.java b/src/main/java/com/zy/core/thread/LiftThread.java new file mode 100644 index 0000000..ab15e0c --- /dev/null +++ b/src/main/java/com/zy/core/thread/LiftThread.java @@ -0,0 +1,57 @@ +package com.zy.core.thread; + +import com.zy.common.ExecuteSupport; +import com.zy.core.ThreadHandler; +import com.zy.core.enums.*; +import com.zy.core.model.CommandResponse; +import com.zy.core.model.command.LiftCommand; +import com.zy.core.model.protocol.LiftProtocol; +import com.zy.core.model.protocol.LiftStaProtocol; + +import java.util.List; + +public interface LiftThread extends ThreadHandler { + + LiftProtocol getStatus();//鑾峰彇鎻愬崌鏈虹姸鎬� + + LiftProtocol getStatus(boolean clone);//鑾峰彇鎻愬崌鏈虹姸鎬� + + List<LiftStaProtocol> getLiftStaProtocols(); + + CommandResponse pickAndPut(LiftCommand command);//鍙栨斁璐ф寚浠� + + CommandResponse shuttleSwitch(LiftCommand command);//灏忚溅鎹㈠眰 + + CommandResponse move(LiftCommand command);//灏忚溅绉诲姩 + + CommandResponse switchIOMode(LiftCommand command);//鍒囨崲鍑哄叆搴撴ā寮� + + CommandResponse reset();//澶嶄綅 + + boolean isIdle();//鏄惁绌洪棽 + + boolean isDeviceIdle();//璁惧鏄惁绌洪棽 + + boolean isDeviceIdle(ExecuteSupport support);//璁惧鏄惁绌洪棽 + + boolean setProtocolStatus(LiftProtocolStatusType status);//璁剧疆宸ヤ綔鐘舵�� + + boolean setSyncTaskNo(Integer taskNo);//璁剧疆宸ヤ綔鍙� + + int generateDeviceTaskNo(int taskNo, LiftTaskModeType type);//鐢熸垚纭欢璁惧宸ヤ綔鍙� + + String getCurrentLocNo(); + + //***************鑾峰彇鍛戒护***************** + + LiftCommand getPickAndPutCommand(Integer taskNo, Integer pick, Integer put);//鍙栨斁璐ф寚浠� + + LiftCommand getShuttleSwitchCommand(Integer taskNo, Integer pick, Integer put);//灏忚溅鎹㈠眰 + + LiftCommand getMoveCommand(Integer taskNo, Integer pick, Integer put);//鎻愬崌鏈虹Щ鍔� + + LiftCommand getSwitchIOCommand(Integer taskNo, LiftIoModeType mode); + + LiftCommand getResetCommand(Integer taskNo); + +} -- Gitblit v1.9.1