/*
 * Created on Aug 21, 2003
 */
package fr.eisti.lassi.elearning;

import java.util.HashMap;

/**
 * This class keeps track of what steps a source of
 * a given language should follow.
 * @author Cedric Vidal
 */
public class ProcessMap {

	private HashMap steps = null;
	
	public ProcessMap() {
		steps = new HashMap();
	}
	
	/**
	 * Returns the step which goes after the given step
	 * @param step The step from which you want the successor
	 * @return The new step
	 */
	public String getStepAfter(String step) {
		return (String)steps.get(step);
	}
	
	
	/**
	 * @param step A given step
	 * @param next The step that goes after
	 */
	public void setStepAfter(String step, String next) {
		steps.put(step, next);
	}

}
