自动化立体仓库 - WCS系统
#
Junjie
2025-01-14 ba77f258c619b296e51cadc0958bff23965dfc6d
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.zy.core.thread;
 
 
import com.zy.common.ExecuteSupport;
import com.zy.common.model.NavigateNode;
import com.zy.core.ThreadHandler;
import com.zy.core.enums.ShuttleProtocolStatusType;
import com.zy.core.enums.ShuttleTaskNoType;
import com.zy.core.model.CommandResponse;
import com.zy.core.model.command.ShuttleCommand;
import com.zy.core.model.param.ShuttleMoveLocParam;
import com.zy.core.model.protocol.ShuttleProtocol;
 
import java.util.List;
 
public interface ShuttleThread extends ThreadHandler {
 
    ShuttleProtocol getStatus(boolean clone);//获取四向穿梭车状态
 
    ShuttleProtocol getStatus();//获取四向穿梭车状态-默认clone
 
    CommandResponse movePath(List<NavigateNode> nodes, Integer taskNo);//路径下发
 
    CommandResponse move(ShuttleCommand command);//移动
 
    CommandResponse lift(ShuttleCommand command);//顶升
 
    CommandResponse charge(ShuttleCommand command);//充电开关
 
    CommandResponse reset(ShuttleCommand command);//复位开关
 
    CommandResponse updateLocation(ShuttleCommand command);//更新坐标
 
    boolean isIdle();
 
    boolean isIdle(ExecuteSupport support);//是否空闲
 
    boolean isDeviceIdle();//设备是否空闲
 
    boolean isDeviceIdle(ExecuteSupport support);//设备是否空闲
 
    boolean isRequireCharge();//是否满足充电状态
 
    boolean isCharging();//是否充电中
 
    boolean isChargingCompleted();//是否充电完成
 
    List<NavigateNode> getMoveAdvancePath();//获取穿梭车任务路径
 
    int generateDeviceTaskNo(int taskNo, ShuttleTaskNoType type);//生成硬件设备工作号
 
    boolean setProtocolStatus(ShuttleProtocolStatusType status);//设置工作状态
 
    boolean setTaskNo(Integer taskNo);//设置工作号
 
    boolean setSyncTaskNo(Integer taskNo);//设置工作号
 
    boolean setPakMk(boolean pakMk);//设置标记
 
    boolean enableMoveLoc(ShuttleMoveLocParam param, boolean enable);
 
    boolean requestWaiting();
 
    boolean enableDemo(boolean enable);//演示模式
 
    boolean offerSystemMsg(String format, Object... arguments);
 
    //***************获取命令*****************
 
    ShuttleCommand getMoveCommand(Integer taskNo, String startCodeNum, String distCodeNum, Integer allDistance, Integer runDirection, Integer runSpeed, List<NavigateNode> nodes);//获取移动命令
 
    ShuttleCommand getLiftCommand(Integer taskNo, Boolean lift);//顶升命令 true=>顶升 false=>下降
 
    ShuttleCommand getChargeCommand(Integer taskNo, Boolean charge);//充电开关命令 true=>开 false=>关
 
    ShuttleCommand getUpdateLocationCommand(Integer taskNo, String locNo);//获取更新坐标命令
 
}