but this is actually the runtime of the training in minutes, not the amount of minutes left. So, the calculated runtime should be subtracted from the initial number of left minutes instead. In the current implementation, the stop condition is met right after the first iteration, where the runtime is still below 1 minute and therefore, minutesLeft will be set to "0", which results in in the shouldStop method to return "true". I also don't think, the shouldStop method is ok, when it's checked against "minutesLeft >= 0".
Hello Jeff, I've discovered the following bug in class EndMinutesStrategy: In the method "postIteration" you set the remaining minutes to
this.minutesLeft.set((int)((now - this.startedTime)/60000));
but this is actually the runtime of the training in minutes, not the amount of minutes left. So, the calculated runtime should be subtracted from the initial number of left minutes instead. In the current implementation, the stop condition is met right after the first iteration, where the runtime is still below 1 minute and therefore, minutesLeft will be set to "0", which results in in the shouldStop method to return "true". I also don't think, the shouldStop method is ok, when it's checked against "minutesLeft >= 0".
regards, Winfried