| | |
| | | private String memo; |
| | | |
| | | public BasRgvOpt() {} |
| | | public BasRgvOpt(RgvProtocol rgvProtocol, RgvCommand command) { |
| | | public BasRgvOpt(Integer taskNo,int rgvNo,int rgvPoi, RgvCommand command) { |
| | | Date now = new Date(); |
| | | this.wrkNo1 = rgvProtocol.getTaskNo1().intValue(); |
| | | this.rgvNo = rgvProtocol.getRgvNo(); |
| | | this.wrkNo1 = taskNo; |
| | | this.rgvNo = rgvNo; |
| | | this.sendTime = now; |
| | | this.mode = command.getTaskModeType1().name(); |
| | | this.sourceRow = rgvProtocol.getRgvPosI();//小车当前位置 |
| | | this.sourceRow = rgvPoi;//小车当前位置 |
| | | this.sourceSta = command.getSourceStaNo1().intValue(); |
| | | this.posSta = command.getDestinationStaNo1().intValue(); |
| | | this.updateTime = now; |
| | | this.updateBy = 9999L; |
| | | this.memo = "任务下发自动生成指令日志"; |
| | | } |
| | | public BasRgvOpt(RgvProtocol rgvProtocol, Long command) { |
| | | public BasRgvOpt(Integer taskNo,int rgvNo,int rgvPoi, Long command) { |
| | | Date now = new Date(); |
| | | this.wrkNo1 = rgvProtocol.getTaskNo1().intValue(); |
| | | this.rgvNo = rgvProtocol.getRgvNo(); |
| | | this.wrkNo1 = taskNo; |
| | | this.rgvNo = rgvNo; |
| | | this.sendTime = now; |
| | | this.mode = "漫游"; |
| | | this.sourceRow = rgvProtocol.getRgvPosI();//小车当前位置 |
| | | this.sourceSta = rgvProtocol.getRgvPosI(); |
| | | this.sourceRow = rgvPoi;//小车当前位置 |
| | | this.sourceSta = rgvPoi; |
| | | this.posSta = command.intValue(); |
| | | this.updateTime = now; |
| | | this.updateBy = 9999L; |