Codota Logo
ComplexNode.getNodes
Code IndexAdd Codota to your IDE (free)

How to use
getNodes
method
in
org.dmg.pmml.tree.ComplexNode

Best Java code snippets using org.dmg.pmml.tree.ComplexNode.getNodes (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jpmml/pmml-model

public ComplexNode addNodes(org.dmg.pmml.tree.Node... nodes) {
  getNodes().addAll(Arrays.asList(nodes));
  return this;
}
origin: jpmml/jpmml-model

public ComplexNode addNodes(org.dmg.pmml.tree.Node... nodes) {
  getNodes().addAll(Arrays.asList(nodes));
  return this;
}
origin: jpmml/jpmml-r

  static
  public ComplexNode toComplexNode(Node node){
    ComplexNode result = new ComplexNode()
      .setId(node.getId())
      .setScore(node.getScore())
      .setRecordCount(node.getRecordCount())
      .setDefaultChild(node.getDefaultChild())
      .setPredicate(node.getPredicate());

    if(node.hasNodes()){
      (result.getNodes()).addAll(node.getNodes());
    } // End if

    if(node.hasScoreDistributions()){
      (result.getScoreDistributions()).addAll(node.getScoreDistributions());
    }

    return result;
  }
}
origin: jpmml/jpmml-model

(value.getNodes()).addAll(node.getNodes());
origin: org.jpmml/pmml-model

(value.getNodes()).addAll(node.getNodes());
origin: jpmml/jpmml-model

@Override
public Node unmarshal(ComplexNode value){
  if(value.getRecordCount() != null){
    return value;
  } // End if
  if(value.hasExtensions() || (value.getPartition() != null) || value.hasScoreDistributions() || (value.getEmbeddedModel() != null)){
    return value;
  }
  Node node;
  if(value.hasNodes()){
    node = new BranchNode()
      .setId(value.getId())
      .setDefaultChild(value.getDefaultChild());
    (node.getNodes()).addAll(value.getNodes());
  } else
  {
    node = new LeafNode()
      .setId(value.getId());
  }
  node
    .setScore(value.getScore())
    .setPredicate(value.getPredicate());
  return node;
}
origin: org.jpmml/pmml-model

@Override
public Node unmarshal(ComplexNode value){
  if(value.getRecordCount() != null){
    return value;
  } // End if
  if(value.hasExtensions() || (value.getPartition() != null) || value.hasScoreDistributions() || (value.getEmbeddedModel() != null)){
    return value;
  }
  Node node;
  if(value.hasNodes()){
    node = new BranchNode()
      .setId(value.getId())
      .setDefaultChild(value.getDefaultChild());
    (node.getNodes()).addAll(value.getNodes());
  } else
  {
    node = new LeafNode()
      .setId(value.getId());
  }
  node
    .setScore(value.getScore())
    .setPredicate(value.getPredicate());
  return node;
}
origin: org.jpmml/pmml-model

@Override
public VisitorAction accept(Visitor visitor) {
  VisitorAction status = visitor.visit(this);
  if (status == VisitorAction.CONTINUE) {
    visitor.pushParent(this);
    if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
      status = PMMLObject.traverse(visitor, getExtensions());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getPredicate(), getPartition());
    }
    if ((status == VisitorAction.CONTINUE)&&hasScoreDistributions()) {
      status = PMMLObject.traverse(visitor, getScoreDistributions());
    }
    if ((status == VisitorAction.CONTINUE)&&hasNodes()) {
      status = PMMLObject.traverse(visitor, getNodes());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getEmbeddedModel());
    }
    visitor.popParent();
  }
  if (status == VisitorAction.TERMINATE) {
    return VisitorAction.TERMINATE;
  }
  return VisitorAction.CONTINUE;
}
origin: jpmml/jpmml-model

@Override
public VisitorAction accept(Visitor visitor) {
  VisitorAction status = visitor.visit(this);
  if (status == VisitorAction.CONTINUE) {
    visitor.pushParent(this);
    if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
      status = PMMLObject.traverse(visitor, getExtensions());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getPredicate(), getPartition());
    }
    if ((status == VisitorAction.CONTINUE)&&hasScoreDistributions()) {
      status = PMMLObject.traverse(visitor, getScoreDistributions());
    }
    if ((status == VisitorAction.CONTINUE)&&hasNodes()) {
      status = PMMLObject.traverse(visitor, getNodes());
    }
    if (status == VisitorAction.CONTINUE) {
      status = PMMLObject.traverse(visitor, getEmbeddedModel());
    }
    visitor.popParent();
  }
  if (status == VisitorAction.TERMINATE) {
    return VisitorAction.TERMINATE;
  }
  return VisitorAction.CONTINUE;
}
org.dmg.pmml.treeComplexNodegetNodes

Popular methods of ComplexNode

  • <init>
  • setId
  • setPredicate
  • setRecordCount
  • setScore
  • getScoreDistributions
  • setDefaultChild
  • addExtensions
  • addNodes
  • getDefaultChild
  • getEmbeddedModel
  • getExtensions
  • getEmbeddedModel,
  • getExtensions,
  • getId,
  • getPartition,
  • getPredicate,
  • getRecordCount,
  • getScore,
  • hasExtensions,
  • hasNodes

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • setContentView (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now