Package org.jamesii.core.experiments

Examples of org.jamesii.core.experiments.BaseExperiment.execute()


      // Execute experiment, record performance
      ComparisonJobResultListener cjrl =
          new ComparisonJobResultListener(job, perfType);
      perfRec.addListener(cjrl);
      perfRec.start();
      exp.execute();
      perfRec.stop();

      outputHandler.output(job.getProblem(), job);
    }
View Full Code Here


    experiment
        .setTaskRunnerFactory(new ParameterizedFactory<TaskRunnerFactory>(
            new AdaptiveTaskRunnerFactory(), runnerParams));

    // Execute experiment
    experiment.execute();

    // Analyse and reset observer
    policyObserver.reset();
  }
View Full Code Here

  public void testSimpleExperimentExecution() throws Exception {
    BaseExperiment exp = new BaseExperiment();
    exp.setModelLocation(new URI("java://"
        + BogusModel.class.getCanonicalName()));
    exp.setDefaultSimStopTime(100);
    exp.execute();

    for (int load : new int[] { 1, 2, 4, 8, 16, 32, 64 }) {
      executeExperimentWithLoad(load);
    }
  }
View Full Code Here

              @Override
              public int getLoadPerSteps(Map<String, Serializable> modelContent) {
                return load;
              }
            });
    exp.execute();
  }

}
View Full Code Here

      sw.start();
      BaseExperiment exp = new BaseExperiment();
      exp.getFixedModelParameters().putAll(parameterSetup);
      exp.setModelLocation(exploration.getExperiment().getModelLocation());
      exp.setDefaultSimStopTime(defaultSimStopTime);
      exp.execute();
      sw.stop();
      performances.add(sw.elapsedSeconds());
    }

    return new RealWorldSelectorPerformanceEntry(setup.getFirstValue(),
View Full Code Here

            be.setTaskRunnerFactory(new ParameterizedFactory<TaskRunnerFactory>(
                new AdaptiveTaskRunnerFactory(), pb));

            StopWatch sw = new StopWatch();
            sw.start();
            be.execute();
            sw.stop();
            System.err.println("Execution Time:" + sw.elapsedMilliseconds());
            execTimes.add(sw.elapsedMilliseconds() / 1000.0);
            System.err.println("Execution Times:"
                + Strings.dispIterable(execTimes));
View Full Code Here

      pb.addSubBlock(SimTimeStopFactory.SIMEND, 10.0);

      exp.setComputationTaskStopPolicyFactory(new ParameterizedFactory<ComputationTaskStopPolicyFactory<?>>(
          new SimTimeStopFactory(), pb));
      exp.setRepeatRuns(1);
      exp.execute();
    } catch (Exception ex) {
      SimSystem.report(ex);
    }
  }
}
View Full Code Here

*/
public class TestEmptyExperimentErrorHandling {

  public static void main(String[] args) {
    BaseExperiment be = new BaseExperiment();
    be.execute();
  }

}
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.