text: public void setRepetitions(int repetitions) throws Exception {fixedTime = false;this.repetitions = repetitions;if (repetitions==REPEAT_EXHAUST) {if (isParallel()) {throw new Exception("REPEAT_EXHAUST is not allowed for parallel tasks");}}setSequenceName();}