package com.dglapps.simuloc;

import java.util.Iterator;

public class StepExecutor implements StepListener {

	Iterator<Step> iterator;
	
	public StepExecutor(Iterator<Step> iterator) {
		this.iterator = iterator;
	}
	
	/**
	 * Perform a long task 
	 * @param iteratorSteps
	 * @param receiver
	 */
	public void execute() {
		if (iterator != null && iterator.hasNext()) {
			execute(iterator.next());
		}
	}
	
	public void execute(Step step) {
		step.setListener(this);
		step.execute();
	}
	
	@Override
	public void onStepFinished() {
		execute();
	}
	
}

@@ -245,54 +245,8 @@
 task
- %0A%09 * @param iteratorSteps%0A%09 * @param receiver
 %0A%09 *

Remove wrong javadoc params