/** * */ package ie.dcu.apps.ist.exp; import java.io.*; /** * @author Kevin McGuinness */ public class ExperimentFactory { private static ExperimentFactory instance; protected ExperimentFactory() { } public static ExperimentFactory getInstance() { if (instance == null) { instance = new ExperimentFactory(); } return instance; } public Experiment load(File file) throws IOException, FormatException { Experiment ex = new Experiment(); ex.load(file); return ex; } }