Package org.jamesii.core.data.experiment

Examples of org.jamesii.core.data.experiment.IExperimentReader


   *          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);
    }
  }
View Full Code Here


   */
  protected BaseExperiment setupExperiment(ExperimentInfo info) {

    ParameterBlock pb = new ParameterBlock();
    pb.addSubBlock("experimentInfo", new ParameterBlock(info));
    IExperimentReader reader =
        SimSystem.getRegistry()
            .getFactory(AbstractExperimentReaderFactory.class, pb).create(null, SimSystem.getRegistry().createContext());

    BaseExperiment exp = null;
    try {
      exp = reader.readExperiment(pb);
    } catch (IOException ex) {
      SimSystem.report(ex);
    }
    return exp;
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.data.experiment.IExperimentReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.