Examples of selectChild()


Examples of org.cspoker.ai.bots.bot.gametree.mcts.nodes.RootNode.selectChild()

      iterate(root);
      iterate(root);
      iterate(root);
      iterate(root);
    }while(System.currentTimeMillis()<endTime);
    INode node = root.selectChild(config.getMoveSelectionStrategy());
    config.getModel().setChosenNode(node);
//    try {
//    ImmutableList<INode> children = ((InnerNode) node).getChildren();
//    for (INode n: children) {
//      String str = " <last action> ";
View Full Code Here

Examples of org.cspoker.ai.bots.bot.gametree.mcts.nodes.RootNode.selectChild()

//      System.out.println(System.currentTimeMillis()-startTime);
   
    if(logger.isDebugEnabled()){
      logger.debug("Stopped MCTS.");
    }
    root.selectChild(config.getMoveSelectionStrategy()).getLastAction().getAction().perform(playerContext);
   
    MCTSListener[] listeners = createListeners(tableContext.getGameState(), botId);
    for (MCTSListener listener : listeners) {
      listener.onMCTS(root);
    }
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()

       
        history.addValue("tab", newTabIndex==0 ? null : newTabIndex+"");
      }
    });    
   
    tb.selectChild(parseInt(history.get("tab"), 0));
    Y.on("history:change", new EventCallback<HistoryEvent>() {
      @Override
      public void call(HistoryEvent e) {
        // Ignore changes we make ourselves, since we don't need
          // to update the selection state for those. We're only
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()

          // when the user clicks the browser's back or forward buttons.
        if(e.src().equals(Y.HistoryHash().SRC_HASH())) {
          if(e.changed().objGetObj("tab")!=null) {
            //e.changed.tab.newVal is a string containing the tab index
            int i = parseInt(e.changed().objGetObj("tab").objGetString("newVal"), 0);         
            tb.selectChild(i);
          }
          else if(e.removed().objGetString("tab")!=null) {
            // The tab selection was removed in the new state, so
              // select the first tab by default.
            tb.selectChild(0);
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()

            tb.selectChild(i);
          }
          else if(e.removed().objGetString("tab")!=null) {
            // The tab selection was removed in the new state, so
              // select the first tab by default.
            tb.selectChild(0);
          }
          else {
          }
        }
      }
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()

    getNavContent().setStyles(Style.create().overflow("scroll"));

    drawAccordionTest(Y, Y.one("#testcategories"));
    drawAllTest(Y, Y.one("#testall"));

    tb.selectChild(0);

  }

  private void drawAllTest(YuiGalleryContext Y, Node parent) {
View Full Code Here

Examples of org.sgx.yuigwt.yui.widget.tabview.TabView.selectChild()

      TabConfig.create().label("from markup").content(Y.one("#sometabcontent")),
    }));
   
    tb.render(parent);
   
    tb.selectChild(1);
   
//    Y.newButton(ButtonConfig.create().label("add new tab").render(parent).
//      on("click", new EventCallback<ButtonEvent>() {       
//        @Override
//        public void call(ButtonEvent e) {
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.