| | |
| | | * 功能码 |
| | | */ |
| | | public String code ; |
| | | |
| | | /** |
| | | * 不返回中间件对命令处理结果(true:不返回处理结果,false或null:返回处理结果) |
| | | */ |
| | | public Boolean noRtMwDealRes ; |
| | | |
| | | /** |
| | | * rtu返回命令结果 发向目的地web URL |
| | |
| | | s += (rtuAddr == null ? "" : ("Rtu地址=" + rtuAddr + "\n")); |
| | | s += "命令类型=" + (type.equals(CommandType.innerCommand)?"内部命令":"RTU命令") + "\n" ; |
| | | s += (code == null ? "" : ("功能码=" + code + "\n")) ; |
| | | s += "是否返回中间件对命令处理结果=" + (noRtMwDealRes == null?"是":(noRtMwDealRes?"是":"否") + "\n") ; |
| | | s += (rtuResultSendWebUrl == null ? "" : ("回调网址=" + rtuResultSendWebUrl + "\n")); |
| | | if(param != null){ |
| | | s += "参数:" + param ; |
| | | } |
| | |
| | | public Command setCode(String code) { |
| | | this.code = code; |
| | | return this ; |
| | | } |
| | | @SuppressWarnings("unused") |
| | | public Boolean getNoRtMwDealRes() { |
| | | return noRtMwDealRes; |
| | | } |
| | | @SuppressWarnings("unused") |
| | | public void setNoRtMwDealRes(Boolean noRtMwDealRes) { |
| | | this.noRtMwDealRes = noRtMwDealRes; |
| | | } |
| | | public Object getParam() { |
| | | return param; |