Examples of ExperimentWriterFactory


Examples of org.jamesii.core.data.experiment.write.plugintype.ExperimentWriterFactory

      // get an ExperimentWriter from a factory
      ParameterBlock parameter =
          new ParameterBlock(new ExperimentInfo(file.toURI(), null),
              AbstractExperimentReaderFactory.EXPERIMENT_INFO);

      ExperimentWriterFactory erwf =
          SimSystem.getRegistry().getFactory(
              AbstractExperimentWriterFactory.class, parameter);
      if (erwf == null) {
        SimSystem.report(Level.SEVERE, "Can't get ExperimentWriterFactory!");
        return;
      }

      IExperimentWriter writer = erwf.create(parameter, SimSystem.getRegistry().createContext());

      // write BaseExperiment to the file
      try {
        writer.writeExperiment(parameter, experiment);
        SimSystem.report(Level.CONFIG, "Experiment backup saved to: "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.