| | |
| | | public Integer rate ; //进度 |
| | | public String state; //升级状态 |
| | | public Integer reTryTimes ; //重试次数 |
| | | public boolean over ; //是否结束(true:是,false:否) |
| | | public boolean success ; //是否成功(true:是,false:否) |
| | | public Boolean over ; //是否结束(true:是,false:否) |
| | | public Boolean success ; //是否成功(true:是,false:否) |
| | | |
| | | public void fromCache(UpgradeRtu ugRtu){ |
| | | this.rtuAddr = ugRtu.rtuAddr ; |
| | |
| | | this.state = UpgradeRtu.getStateName(ugRtu.state) ; |
| | | this.reTryTimes = ugRtu.reTryTimes ; |
| | | this.over = ugRtu.isOver ; |
| | | this.success = ugRtu.state == UpgradeRtu.STATE_SUCCESS ? true : false ; |
| | | if(ugRtu.isOver){ |
| | | this.success = (ugRtu.state == UpgradeRtu.STATE_SUCCESS ? true : false) ; |
| | | }else{ |
| | | this.success = null ; |
| | | } |
| | | } |
| | | } |
| | | } |