private void runTimeCalculate() {
   if (this.currentResult) {
     runningTime = interval;
   }
   for (AvailableCountsGroupByInterval availableDetail : avCount) {
     runningTime = runningTime + availableDetail.getCount() * availableDetail.getInterval();
   }
   // 正常运行次数*间隔时间即当天天可用时间
   // runningTime = avCount*interval;
   Assert.isTrue(
       runningTime >= oldRunningTime,
       "oldRunningTime is "
           + oldRunningTime
           + ",new CalculateRunningTime is "
           + this.runningTime
           + "can't less than old !");
 }
 private void stopTimeCalculate() {
   if (unAvCount == null) { // 并不考虑未知的情况,运行时间剩下的时间即为停止时间
     this.stopTime = this.dayMinute - this.runningTime;
   } else {
     if (!this.currentResult) {
       this.stopTime = this.stopTime + interval;
     }
     for (AvailableCountsGroupByInterval availableDetail : unAvCount) {
       // 失败运行次数*间隔时间即当天停止时间
       this.stopTime = this.stopTime + availableDetail.getCount() * availableDetail.getInterval();
     }
   }
   Assert.isTrue(
       stopTime >= oldStopTime,
       "oldStopTime is "
           + oldStopTime
           + ",new CalculateStopTime is "
           + this.stopTime
           + "can't less than old !");
 }