|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.domain.vo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.utils.Utils; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Created by vincent on 2020-06-02 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class CrnMsgTableVo { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 堆垛机号 | 
|---|
|  |  |  | private String crnNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 状态 | 
|---|
|  |  |  | private String status; | 
|---|
|  |  |  | private Integer crnNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 工作号 | 
|---|
|  |  |  | private String workNo; | 
|---|
|  |  |  | private Short workNo = 0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 状态 | 
|---|
|  |  |  | private String status = "-"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 源站 | 
|---|
|  |  |  | private String sourceStaNo; | 
|---|
|  |  |  | private String sourceStaNo = "-"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 目标站 | 
|---|
|  |  |  | private String staNo; | 
|---|
|  |  |  | private String staNo = "-"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 源库位 | 
|---|
|  |  |  | private String sourceLocNo; | 
|---|
|  |  |  | private String sourceLocNo = "-"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 目标库位 | 
|---|
|  |  |  | private String locNo; | 
|---|
|  |  |  | private String locNo = "-"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 异常 | 
|---|
|  |  |  | private String error; | 
|---|
|  |  |  | private String error = ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 原点 | 
|---|
|  |  |  | private String origin; | 
|---|
|  |  |  | private String origin = ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 命令 | 
|---|
|  |  |  | private String command; | 
|---|
|  |  |  | private String command = ""; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public CrnMsgTableVo() { | 
|---|
|  |  |  | // 走行速度(m/min) | 
|---|
|  |  |  | private Float xspeed = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 升降速度(m/min) | 
|---|
|  |  |  | private Float yspeed = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 叉牙速度(m/min) | 
|---|
|  |  |  | private Float zspeed = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 走行距离(Km) | 
|---|
|  |  |  | private Float xdistance = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 升降距离(Km) | 
|---|
|  |  |  | private Float ydistance = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 走行时长(H) | 
|---|
|  |  |  | private Float xduration = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 升降时长(H) | 
|---|
|  |  |  | private Float yduration = 0.0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setXspeed(Float xspeed) { | 
|---|
|  |  |  | this.xspeed = Utils.scale(xspeed); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public CrnMsgTableVo(String crnNo, String status, String workNo, String sourceStaNo, String staNo, String sourceLocNo, String locNo, String error, String origin, String command) { | 
|---|
|  |  |  | this.crnNo = crnNo; | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | this.workNo = workNo; | 
|---|
|  |  |  | this.sourceStaNo = sourceStaNo; | 
|---|
|  |  |  | this.staNo = staNo; | 
|---|
|  |  |  | this.sourceLocNo = sourceLocNo; | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | this.error = error; | 
|---|
|  |  |  | this.origin = origin; | 
|---|
|  |  |  | this.command = command; | 
|---|
|  |  |  | public void setYspeed(Float yspeed) { | 
|---|
|  |  |  | this.yspeed = Utils.scale(yspeed); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCrnNo() { | 
|---|
|  |  |  | return crnNo; | 
|---|
|  |  |  | public void setZspeed(Float zspeed) { | 
|---|
|  |  |  | this.zspeed = Utils.scale(zspeed); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCrnNo(String crnNo) { | 
|---|
|  |  |  | this.crnNo = crnNo; | 
|---|
|  |  |  | public void setXdistance(Float xdistance) { | 
|---|
|  |  |  | this.xdistance = Utils.scale(xdistance); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStatus() { | 
|---|
|  |  |  | return status; | 
|---|
|  |  |  | public void setYdistance(Float ydistance) { | 
|---|
|  |  |  | this.ydistance = Utils.scale(ydistance); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStatus(String status) { | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | public void setXduration(Float xduration) { | 
|---|
|  |  |  | this.xduration = Utils.scale(xduration); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getWorkNo() { | 
|---|
|  |  |  | return workNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setWorkNo(String workNo) { | 
|---|
|  |  |  | this.workNo = workNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getSourceStaNo() { | 
|---|
|  |  |  | return sourceStaNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setSourceStaNo(String sourceStaNo) { | 
|---|
|  |  |  | this.sourceStaNo = sourceStaNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStaNo() { | 
|---|
|  |  |  | return staNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStaNo(String staNo) { | 
|---|
|  |  |  | this.staNo = staNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getSourceLocNo() { | 
|---|
|  |  |  | return sourceLocNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setSourceLocNo(String sourceLocNo) { | 
|---|
|  |  |  | this.sourceLocNo = sourceLocNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLocNo() { | 
|---|
|  |  |  | return locNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setLocNo(String locNo) { | 
|---|
|  |  |  | this.locNo = locNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getError() { | 
|---|
|  |  |  | return error; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setError(String error) { | 
|---|
|  |  |  | this.error = error; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOrigin() { | 
|---|
|  |  |  | return origin; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOrigin(String origin) { | 
|---|
|  |  |  | this.origin = origin; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCommand() { | 
|---|
|  |  |  | return command; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCommand(String command) { | 
|---|
|  |  |  | this.command = command; | 
|---|
|  |  |  | public void setYduration(Float yduration) { | 
|---|
|  |  |  | this.yduration = Utils.scale(yduration); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|