* parameter for experiment reader
*/
public void openExperiment(ExperimentReaderFactory expRWFac,
ParameterBlock param) {
// IExperimentWriter writer = expRWFac.getWriter(param);
IExperimentReader reader = expRWFac.create(param, SimSystem.getRegistry().createContext());
try {
BaseExperiment exp = reader.readExperiment(param);
if (exp == null) {
SimSystem.report(Level.SEVERE, null,
"Error opening experiment located at '" + getExpLocation(param)
+ "' with reader + '" + reader.getClass().toString() + "'",
null);
return;
}
getWindowManager().addWindow(new ExperimentEditor(exp, param));
SimSystem.report(Level.INFO, null, "Opened experiment '" + exp.getName()
+ "' from " + getExpLocation(param), null);
} catch (IOException ex) {
SimSystem.report(Level.SEVERE, null,
"Error opening experiment located at '" + getExpLocation(param)
+ "' with reader + '" + reader.getClass().toString() + "'", null,
ex);
}
}