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();}
public virtual void SetRepetitions(int repetitions){fixedTime = false;this.repetitions = repetitions;if (repetitions == REPEAT_EXHAUST){if (IsParallel){throw new Exception("REPEAT_EXHAUST is not allowed for parallel tasks");}}SetSequenceName();}