Examples of IProblemScheme


Examples of org.jamesii.perfdb.entities.IProblemScheme

        crti.getSimulationRunConfiguration();
    URI uri =
        compTaskConfig.getAbsModelReaderFactoryParams().getSubBlockValue(
            IURIHandling.URI);

    IProblemScheme scheme = null;

    try {
      scheme = perfDatabase.getProblemScheme(uri);
    } catch (Exception ex) {
      SimSystem
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

   *          the URI
   * @return newly created benchmark model
   */
  protected IProblemScheme setupBenchmarkModelProblemScheme(URI uri) {
    // TODO add dialog to input BM model name and description
    IProblemScheme bm =
        perfDatabase.newProblemScheme(uri, "Model name", DatabaseUtils
            .convertModelTypeToSchemeType(BenchmarkModelType.APPLICATION), "-");
    return bm;
  }
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

  public IProblemInstance storeProblemInstance(URI problemSchemeURI,
      Map<String, Serializable> parameters,
      Class<? extends ComputationTaskStopPolicyFactory> stopFactoryClass,
      ParameterBlock stopFactoryParameters) {

    IProblemScheme scheme = database.getProblemScheme(problemSchemeURI);

    if (scheme == null) {
      scheme = setupProblemScheme(problemSchemeURI);
    }
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

    for (ComparisonJob job : jobs) {

      // Configure base experiment
      BaseExperiment exp = new BaseExperiment();
      IProblemDefinition problem = job.getProblem();
      IProblemScheme bm = problem.getProblemScheme();
      exp.setModelLocation(bm.getUri());
      exp.setDefaultSimStopTime(SimulationProblemDefinition
          .getSimStopTime(problem));
      exp.setFixedModelParameters(new HashMap<String, Object>(problem
          .getSchemeParameters()));
      exp.setTaskRunnerFactory(new ParameterizedFactory<TaskRunnerFactory>(
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

   */
  public void extractPortfolioData(int minConfigs, int minReps, URI uri) {

    Map<IRuntimeConfiguration, List<Double>> perfMap =
        new HashMap<>();
    IProblemScheme problemScheme = perfDB.getProblemScheme(uri);
    List<IProblemDefinition> problemDefinitions =
        perfDB.getAllProblemDefinitions(problemScheme);

    for (IProblemDefinition problemDefinition : problemDefinitions) {

View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

  }

  @Override
  public IProblemScheme newProblemScheme(URI uri, String name, String type,
      String description) {
    IProblemScheme scheme = getProblemScheme(uri);
    if (scheme == null) {
      scheme = new ProblemScheme(name, description, uri, type);
      save(scheme);
    }
    return scheme;
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

  /**
   * Test for the problem scheme management interface.
   */
  public void problemSchemes() throws Exception {

    IProblemScheme scheme1 =
        perfDB.newProblemScheme(new URI("http://test/uri"), "TestScheme",
            convertModelTypeToSchemeType(BenchmarkModelType.COMMON),
            "Yet another test scheme");
    IProblemScheme scheme2 =
        perfDB.newProblemScheme(uri, "TestScheme2",
            convertModelTypeToSchemeType(BenchmarkModelType.APPLICATION),
            "And yet another test scheme");
    assertEquals(2, perfDB.getAllProblemSchemes().size());

    IProblemScheme scheme = perfDB.getProblemScheme(uri);
    assertEquals(scheme2.getName(), scheme.getName());
    assertEquals(scheme2.getDescription(), scheme.getDescription());
    assertEquals(scheme2.getType(), scheme.getType());
    assertEquals(scheme2.getUri(), scheme.getUri());

    assertEquals(true, perfDB.deleteProblemScheme(scheme1));
    assertEquals(1, perfDB.getAllProblemSchemes().size());

  }
View Full Code Here

Examples of org.jamesii.perfdb.entities.IProblemScheme

  /**
   * Test for the problem definitions management interface.
   */
  public void problemDefinitions() throws Exception {
    IProblemScheme scheme = perfDB.getAllProblemSchemes().get(0);
    IProblemDefinition problemDefinition1 =
        perfDB.newProblemDefinition(scheme, SimulationProblemDefinition
            .getDefinitionParameters(SimTimeStopFactory.class,
                new ParameterBlock(1.0, SimTimeStopFactory.SIMEND)),
            new HashMap<String, Serializable>());
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.