| | |
| | | package com.zy.asrs.wcs.core.model.command; |
| | | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.core.type.TypeReference; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.zy.asrs.wcs.core.model.NavigateNode; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class ShuttleAssignCommand { |
| | | public class ShuttleAssignCommand implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 四向穿梭车号 |
| | |
| | | private Integer shuttleNo = 0; |
| | | |
| | | /** |
| | | * 设备ID |
| | | */ |
| | | private Integer deviceId; |
| | | |
| | | /** |
| | | * 任务号 |
| | | */ |
| | | private Integer taskNo = 0; |
| | | |
| | | /** |
| | | * 设备工作号 |
| | | */ |
| | | private Integer deviceTaskNo = 0; |
| | | |
| | | /** |
| | | * 作业类型 |
| | |
| | | */ |
| | | private List<NavigateNode> nodes; |
| | | |
| | | public List<NavigateNode> getNodesDeepCopy() { |
| | | if (this.nodes == null) { |
| | | return null; |
| | | } |
| | | List<NavigateNode> navigateNodes = new ArrayList<>(); |
| | | for (NavigateNode node : nodes) { |
| | | navigateNodes.add(node.clone()); |
| | | } |
| | | return navigateNodes; |
| | | } |
| | | |
| | | } |