Examples of SelectionTree


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

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

      }

      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

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

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

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

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

      RuntimeConfiguration actual) {
  }

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

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

   *          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

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

  }

  @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

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

        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

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

  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

Examples of org.olat.core.gui.components.tree.SelectionTree

      // choose and cancel link
      chooseLink = LinkFactory.createButton("selectfile", mainVC, this);
      cancelLink = LinkFactory.createButton("cancel", mainVC, this);
    } else {
      // Legacy mode with old selection component
      jumpInSelectionTree = new SelectionTree("internalLinkTree", trans);
      jumpInSelectionTree.setTreeModel(customLinkTreeModel);
      jumpInSelectionTree.addListener(this);
      jumpInSelectionTree.setFormButtonKey("select");
      mainVC.put("internalLinkTree", jumpInSelectionTree);
    }
View Full Code Here

Examples of org.olat.core.gui.components.tree.SelectionTree

      //
      putInitialPanel(contentVC);
    } else {
      // fallback to old-school selection tree
      nonAjaxfolderTreeModel = new FolderTreeModel(ureq.getLocale(), rootContainer,  false, true, !onlyLeafsSelectable, false, customItemFilter);
      nonAjaxSelectionTree = new SelectionTree("stTree", getTranslator());
      nonAjaxSelectionTree.setTreeModel(nonAjaxfolderTreeModel);
      nonAjaxSelectionTree.addListener(this);
      nonAjaxSelectionTree.setFormButtonKey("select");
      //
      putInitialPanel(nonAjaxSelectionTree);
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.