Package org.jamesii.perfdb.recording.selectiontrees

Examples of org.jamesii.perfdb.recording.selectiontrees.SelectionTreeSet$NoParameterBlockAugmentation


   * @return a list of eligible (config) options
   */
  protected List<ParameterBlock> createEligibleOptions(
      TaskConfiguration simConfig) {

    SelectionTreeSet treeSet = null;
    try {
      treeSet =
          SelTreeSetCreation.createSelectionTreeSet(simConfig
              .getCustomRWParams(), (URI) simConfig.getModelReaderParams()
              .getSubBlockValue(IURIHandling.URI), simConfig.getParameters());
    } catch (Exception ex) {
      SimSystem.report(Level.SEVERE, "Creation of selectiont ree set failed.",
          ex);
    }

    if (treeSet == null) {
      return null;
    }

    // Enumerate all (non-parametric) combination of algorithm factories that
    // are eligible
    treeSet.generateFactoryCombinations(blackList);
    return treeSet.getFactoryCombinations();
  }
View Full Code Here


      Map<String, ?> modelParameters) throws ClassNotFoundException {
    ParameterBlock treeSetParams = new ParameterBlock(
        new AbstractExecutablePartition(instantiateModel(rwSimCfgParams,
            modelLocation, modelParameters), null, null),
        AbstractProcessorFactory.PARTITION);
    return new SelectionTreeSet(AbstractProcessorFactory.class, treeSetParams);
  }
View Full Code Here

   *          ignore list of factories names (or parts thereof)
   * @return list of eligible options
   */
  protected List<ParameterBlock> createParameterBlocks(String modelLocation,
      List<String> blackList) {
    SelectionTreeSet treeSet = null;
    try {
      treeSet =
          SelTreeSetCreation.createSelectionTreeSet(new ParameterBlock(),
              new URI(modelLocation), new HashMap<String, Object>());
    } catch (Exception ex) {
      ex.printStackTrace();
    }
    treeSet.generateFactoryCombinations(blackList);
    List<ParameterBlock> options = treeSet.getFactoryCombinations();
    return options;
  }
View Full Code Here

   *
   * @throws Exception
   *           the exception
   */
  protected void configureTestCase() throws Exception {
    SelectionTreeSet selectionTreeSet =
        SelTreeSetCreation.createSelectionTreeSet(
            experiment.getModelRWParameters(), experiment.getModelLocation(),
            experiment.getFixedModelParameters());
    System.err.println("Number of available setups:"
        + selectionTreeSet.calculateFactoryCombinations());
    simSpaceExplorer = configureSimSpaceExplorer(selectionTreeSet);
    configureCalibrator();
    configureModelVarsForExploration();
    configureExperimentSteering();
  }
View Full Code Here

    super.setUp();
    paramBlock = new ParameterBlock();
    paramBlock.addSubBl(AbstractProcessorFactory.PARTITION,
        new AbstractExecutablePartition(new BogusModel(
            new HashMap<String, Serializable>()), null, null));
    treeSet = new SelectionTreeSet(AbstractProcessorFactory.class, paramBlock);
  }
View Full Code Here

    System.out.println("# Combinations:" + combinations.size());
  }

  public void testParamBlockAugmentation() throws ClassNotFoundException {
    final List<ParameterBlock> augmentedBlocks = new ArrayList<>();
    new SelectionTreeSet(AbstractProcessorFactory.class, paramBlock,
        new IParameterBlockAugmenter() {
          @Override
          public ParameterBlock augment(ParameterBlock originalParamBlock,
              SelectionTreeSet selectionTreeSet, SelTreeSetVertex currentNode,
              IParameter topLevelParameter) {
View Full Code Here

        deserialisedVersion.calculateFactoryCombinations());
  }

  @Override
  public SelectionTreeSet getTestObject() throws Exception {
    return new SelectionTreeSet(AbstractProcessorFactory.class, paramBlock);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.perfdb.recording.selectiontrees.SelectionTreeSet$NoParameterBlockAugmentation

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.