#
zjj
2024-06-19 f11ce451cef38b58a189e92d943566282e6a316c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.zy.asrs.wcs.rcs.thread;
 
import com.zy.asrs.wcs.common.ExecuteSupport;
import com.zy.asrs.wcs.core.entity.Motion;
import com.zy.asrs.wcs.core.model.command.LiftCommand;
import com.zy.asrs.wcs.core.model.enums.LiftCommandModeType;
import com.zy.asrs.wcs.rcs.entity.Device;
import com.zy.asrs.wcs.rcs.model.enums.LiftProtocolStatusType;
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();//是否空闲
 
    boolean isIdle(ExecuteSupport support);//是否空闲
 
    boolean isDeviceIdle();//设备是否空闲
 
    boolean isDeviceIdle(ExecuteSupport support);//设备是否空闲
 
    boolean setProtocolStatus(LiftProtocolStatusType status);//设置工作状态
 
    boolean setSyncTaskNo(Integer taskNo);//设置工作号
 
    boolean isLock(ExecuteSupport support);
 
    boolean commandFinished(Integer taskNo);
 
    //***************获取命令*****************
    LiftCommand getMoveCommand(Integer taskNo, Integer sourceLev, Integer targetLev, LiftCommandModeType mode);//提升机移动
 
    LiftCommand getMoveWithShuttleCommand(Integer taskNo, Integer sourceLev, Integer targetLev, LiftCommandModeType mode);//载车移动
 
    LiftCommand getPalletInOutCommand(Integer taskNo, Integer sourceLev, Integer targetLev, Integer originSta, Integer targetSta, LiftCommandModeType mode);//托盘出入
 
    LiftCommand getLockCommand(Integer taskNo, Boolean lock);//锁定/解锁提升机
 
    LiftCommand getShuttleSignalCommand(Integer taskNo, Boolean signal);//小车已到位/已驶离信号
 
}