自动化立体仓库 - WCS系统
*
lsh
6 天以前 f287ab5ee6b9938e0d48cdb62c05078bdec463d8
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
package com.zy.core.model.protocol;
 
import lombok.Data;
 
/**
 * Created by IX on 2025/02/21
 */
@Data
public class TaskProtocol {
    private volatile Long taskNo; // 任务号(主属性)
    private volatile Long targetPosition = 0L; // 目标位置
    private volatile Long currentPosition = 0L; // 当前位置
 
    private volatile int isRunning = 0; // 运行状态  0:初始  1:等待执行  2:执行中 3:执行中断 4:完结
 
    private volatile int taskStatus = 0; //作业模式  0:行走  1:取  2:放
 
    public TaskProtocol(){}
 
    public TaskProtocol(Long taskNo, Long targetPosition, Long currentPosition, int isRunning, int taskStatus) {
        this.taskNo = taskNo;
        this.targetPosition = targetPosition;
        this.currentPosition = currentPosition;
        this.isRunning = isRunning;
        this.taskStatus = taskStatus;
    }
 
    public TaskProtocol(TaskProtocol taskProtocol) {
        this.taskNo = taskProtocol.getTaskNo();
        this.targetPosition = taskProtocol.getTargetPosition();
        this.taskStatus = taskProtocol.getTaskStatus();
    }
}