2425262728293031323334
public void setNumRuns(int numRuns) { this.numRuns = numRuns; } public String execute() throws Exception { experiment = new Experiment(); for (int i = 0; i < numRuns; i++) { Thread.sleep(1000); Run run = new Run(); experiment.addRun(run); }