Examples of children()


Examples of org.terasology.logic.behavior.tree.SelectorNode.children()

            public void mock(Task spy) {
                spies[1] = spy;
            }
        });
        SelectorNode node = new SelectorNode();
        node.children().add(one);
        node.children().add(two);

        Task selector = interpreter.start(node);
        interpreter.tick(0);
        Assert.assertEquals(Status.RUNNING, selector.getStatus());
View Full Code Here

Examples of org.terasology.logic.behavior.tree.SequenceNode.children()

        Assert.assertEquals(jsonActual, jsonExpected);
    }

    private BehaviorTreeData buildSample() {
        SequenceNode sequence = new SequenceNode();
        sequence.children().add(new DebugNode(1));
        sequence.children().add(new RepeatNode(new DebugNode(2)));
        ParallelNode parallel = new ParallelNode(ParallelNode.Policy.RequireAll, ParallelNode.Policy.RequireAll);
        sequence.children().add(parallel);
        parallel.children().add(new MonitorNode());
        parallel.children().add(new DebugNode(3));
View Full Code Here

Examples of org.vietspider.html.NodeConfig.children()

        }
      }
    }

    NodeConfig config = node.getConfig();
    if(config.children().length > 0 || config.children_types().length > 0){
      Iterator<HTMLNode> iter =  node.childIterator();//node.getChildren().iterator();
      while(iter.hasNext()){
        HTMLNode child = iter.next();       
        if(HTML.isChild(node, child.getConfig())) continue;       
        iter.remove();
View Full Code Here

Examples of org.wicketstuff.pageserializer.common.analyze.ISerializedObjectTree.children()

public class TreeTypeMapTest {

  @Test
  public void joinLabels() throws IOException {
    ISerializedObjectTree source = Trees.fromResource(getClass(), "labels");
    Assert.assertEquals("a|b|c", TreeTypeMap.allLables(source.children()));
  }
  @Test
  public void noLabels() throws IOException {
    Assert.assertEquals(null, TreeTypeMap.allLables(new ArrayList<ISerializedObjectTree>()));
  }
View Full Code Here

Examples of org.xmlpull.infoset.XmlElement.children()

        XmlElement result = XMLUtil.stringToXmlElement(output);
        SystemComponentInvoker invoker = new SystemComponentInvoker();
        List<DataPort> outPorts = node.getOutputPorts();
        for (DataPort dataPort : outPorts) {

          Iterable itr = result.children();
          for (Object outputElem : itr) {
            if (outputElem instanceof XmlElement) {
              if (((XmlElement) outputElem).getName().equals(dataPort.getName())) {
                invoker.addOutput(dataPort.getName(), ((XmlElement) outputElem).children().iterator().next());
              }
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlElement.children()

            // Object output = this.outputMessage.getObjectPart(name);
            // return output;

            XmlElement outputElement = (XmlElement) this.outputMessage;
            XmlElement valueElement = outputElement.element(null, name);
            Iterator childIt = valueElement.children();
            int numberOfChildren = 0;
            while (childIt.hasNext()) {
                childIt.next();
                numberOfChildren++;
            }
View Full Code Here

Examples of org.zkoss.ztl.JQuery.children()

      click(jq("$freezeRow3"));
      waitResponse();
      // TODO: Verify correct row is frozen
      verifyTrue(jq("div.zstopblock").width() != 0);
      JQuery p = jq("div.zstopblock");
      int clen = p.children().length();
      JQuery c = p.children("div:nth-child(3)");
      int width = c.width();
      verifyTrue("no. of children=" + clen + ", widht=" + width, clen == 3 && jq("div.zstopblock").children("div:nth-child(3)").width() != 0);
    }
}
View Full Code Here

Examples of pedro.view.NavigationTreeNode.children()

       
        if( timeSeriesNode.getDisplayName().trim().startsWith("RESULTTIMESERIES" ) ) //$NON-NLS-1$
        {
          int index = 0;   
         
        for( Enumeration timeSeriesChildren = timeSeriesNode.children(); timeSeriesChildren.hasMoreElements(); )
        {       
            stateNode = (NavigationTreeNode)timeSeriesChildren.nextElement();       
   
            if( stateNode.getDisplayName().trim().startsWith( "RESULTSTATE" ) ) //$NON-NLS-1$
            {     
View Full Code Here

Examples of profiler.utils.IObjectProfileNode.children()

    case ALL_VERBOSE:
      System.out.println( header );
      IObjectProfileNode profile = ObjectProfiler.profile( obj );
      print( profile );
      mem = profile.size();
      for( IObjectProfileNode node : profile.children() ) {
        if( node.object() != null && node.object().equals( ATermUtils.getFactory() ) ) {
          mem -= node.size();
          break;
        }
      } 
View Full Code Here

Examples of xmlcomponents.Jode.children()

    Jode config = root.single("configuration");
    System.out.println("AutoLauncher:loading XML processingPath node");
    String processingPath = config.first("config").attribute("processingPath").v;
    System.out.println("processingPath = "+processingPath);
    // launch each child process
    for(Jode child : config.children())
    {
      if (child.n.equals("process"))
      {
        if(!child.hasAttribute("rank"))
        {
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.