| | |
| | | import com.zy.asrs.service.BasShuttleService; |
| | | import com.zy.common.utils.NavigatePositionConvert; |
| | | import com.zy.core.News; |
| | | import com.zy.core.enums.ShuttleErrorCodeType; |
| | | import com.zy.core.enums.ShuttleProtocolStatusType; |
| | | import com.zy.core.enums.ShuttleStatusType; |
| | | import com.zy.core.model.command.ShuttleAssignCommand; |
| | |
| | | * 目标库位 |
| | | */ |
| | | private String locNo; |
| | | |
| | | /** |
| | | * 小车当前库位号 |
| | | */ |
| | | private String currentLocNo; |
| | | |
| | | /** |
| | | * 作业标记 |
| | |
| | | if (this.getPoint() == null) { |
| | | return ""; |
| | | } |
| | | return NavigatePositionConvert.xyzToLocNo(this.getPoint().getX(), this.getPoint().getY(), this.getPoint().getZ()); |
| | | return NavigatePositionConvert.nyXyzToLocNo(this.getPoint().getX(), this.getPoint().getY(), this.getPoint().getZ()); |
| | | } |
| | | |
| | | public String getCoord$() { |
| | |
| | | return ""; |
| | | } |
| | | return JSON.toJSONString(this.getCoord()); |
| | | } |
| | | |
| | | public void setPoint(NyShuttlePointClass point) { |
| | | String locNo = NavigatePositionConvert.nyXyzToLocNo(point.getX(), point.getY(), point.getZ()); |
| | | this.point = point; |
| | | this.currentLocNo = locNo; |
| | | } |
| | | |
| | | // 是否处于空闲待命状态 |
| | |
| | | } |
| | | } |
| | | |
| | | // 是否处于空闲待命状态 |
| | | public Boolean isIdleNoCharge() { |
| | | boolean res = this.free == ShuttleStatusType.IDLE.id |
| | | && this.pakMk.equals(true) |
| | | && this.errState == 0 |
| | | && this.taskNo == 0 |
| | | && this.protocolStatus == ShuttleProtocolStatusType.IDLE.id |
| | | ; |
| | | return res; |
| | | } |
| | | } |