Package org.jamesii.perfdb.recording.selectiontrees

Examples of org.jamesii.perfdb.recording.selectiontrees.SelectionTree


            .get(crti.getRunInformation().getExecutionIDs());
    if (probInstance == null) {
      return;
    }

    SelectionTree selectionTree =
        selectionHook.getSelectionTree(crti.getComputationTaskID());
    IRuntimeConfiguration rtConfig = registerRuntimeConfig(selectionTree);
    if (rtConfig == null) {
      SimSystem
          .report(Level.WARNING,
View Full Code Here


      }

      SimSystem.report(Level.INFO, "#configs:" + configs.size());
      int counter = 0;
      for (IRuntimeConfiguration config : configs) {
        SelectionTree tree = config.getSelectionTree();
        GraphUtility.saveGraphToDOT("seltree" + counter + "_" + tree.getHash()
            + ".dot", tree, "shape=rectangle, style=filled, height=.1");
        counter++;
      }

    } catch (Exception ex) {
View Full Code Here

    assertEquals(1, entity.getVersion());
  }

  @Override
  protected RuntimeConfiguration getEntity(String name) {
    return new RuntimeConfiguration(new SelectionTree(null), Calendar
        .getInstance().getTime(), 1);
  }
View Full Code Here

      RuntimeConfiguration actual) {
  }

  @Override
  public RuntimeConfiguration getEntity() throws Exception {
    return new RuntimeConfiguration(new SelectionTree(null));
  }
View Full Code Here

   *          the array of nodes
   *
   * @return the selection tree
   */
  protected SelectionTree newTree(SelectedFactoryNode... nodes) {
    SelectionTree st = new SelectionTree(null);
    st.addVertices(nodes);
    if (nodes.length == 0) {
      return st;
    }
    st.addEdge(e(st.getRoot(), nodes[0]));
    for (int i = 1; i < nodes.length; i++) {
      st.addEdge(e(nodes[0], nodes[i]));
    }
    return st;
  }
View Full Code Here

  }

  @Override
  public SelectionTree getTestObject() {
    SelectionTree st = new SelectionTree(null);
    st.addVertex(new SelectedFactoryNode(
        new SelectionInformation<>(
            AbstractEventQueueFactory.class, new ParameterBlock(),
            new SimpleEventQueueFactory())));
    return st;
  }
View Full Code Here

        perfDB.getAllProblemDefinitions().get(0);
    IProblemInstance problemInstance =
        perfDB.newProblemInstance(problemDefinition, 123L, SimSystem
            .getRNGGenerator().getRNGFactory().getFactoryInstance().getClass()
            .getName());
    SelectionTree selectionTree = new SelectionTree(null);
    IRuntimeConfiguration runtimeConfiguration =
        perfDB.newRuntimeConfiguration(selectionTree, false);
    perfDB.newRuntimeConfiguration(selectionTree, false);

    IHardwareSetup hardwareSetup = perfDB.getAllHardwareSetups().get(0);
View Full Code Here

  SelectionTree testTree4 = null;

  @Override
  public void setUp() {

    testTree1 = new SelectionTree(null);
    SelectedFactoryNode sfn1 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock(),
            new BogusSimulatorFactoryA()));
    testTree1.addVertex(sfn1);
    testTree1.addEdge(new Edge<>(sfn1, testTree1.getRoot()));

    testTree2 = new SelectionTree(null);
    SelectedFactoryNode sfn2 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock(),
            new BogusSimulatorFactoryA()));
    testTree2.addVertex(sfn2);
    testTree2.addEdge(new Edge<>(sfn2, testTree2.getRoot()));

    testTree3 = new SelectionTree(null);
    SelectedFactoryNode sfn3 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, (new ParameterBlock()).addSubBl(
                FlexibleBogusSimulatorFactory.SIM_PROPERTIES,
                TEST_PARAMETER_VALUE), new FlexibleBogusSimulatorFactory()));
    testTree3.addVertex(sfn3);
    testTree3.addEdge(new Edge<>(sfn3, testTree3.getRoot()));

    testTree4 = new SelectionTree(null);
    SelectedFactoryNode sfn4 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock().addSubBl(
                "test1", 1.0).addSubBl("test2", 2.0),
            new BogusSimulatorFactoryA()));
View Full Code Here

TOP

Related Classes of org.jamesii.perfdb.recording.selectiontrees.SelectionTree

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.