| | |
| | | package com.zy.core.model.protocol; |
| | | |
| | | import com.zy.core.enums.CrnModeType; |
| | | import com.zy.core.enums.CrnStatusType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | * 6 = 电脑模式启动中 |
| | | */ |
| | | public short mode; |
| | | |
| | | public CrnModeType modeType; |
| | | |
| | | /** |
| | | * 1 = 急停 |
| | |
| | | * 99 = 报警 |
| | | */ |
| | | public short status; |
| | | |
| | | /** |
| | | * 状态枚举 |
| | | */ |
| | | public CrnStatusType statusType; |
| | | |
| | | /** |
| | | * 堆垛机当前列号 |
| | |
| | | */ |
| | | public int duration; |
| | | |
| | | public void setMode(Short mode) { |
| | | this.mode = mode; |
| | | this.modeType = CrnModeType.get(mode); |
| | | } |
| | | |
| | | public void setMode(CrnModeType type) { |
| | | this.modeType = type; |
| | | this.mode = CrnModeType.get(type).id.shortValue(); |
| | | } |
| | | |
| | | public void setStatus(Short status){ |
| | | this.status = status; |
| | | this.statusType = CrnStatusType.get(status); |
| | | } |
| | | |
| | | public void setStatus(CrnStatusType type){ |
| | | this.statusType = type; |
| | | this.status = CrnStatusType.get(type).id.shortValue(); |
| | | } |
| | | |
| | | } |