All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dmg.pmml.bayesian_network.ContinuousDistribution Maven / Gradle / Ivy

There is a newer version: 1.6.11
Show newest version

package org.dmg.pmml.bayesian_network;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.dmg.pmml.Extension;
import org.dmg.pmml.HasExtensions;
import org.dmg.pmml.Visitor;
import org.dmg.pmml.VisitorAction;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element ref="{http://www.dmg.org/PMML-4_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice>
 *           <element ref="{http://www.dmg.org/PMML-4_3}TriangularDistributionForBN"/>
 *           <element ref="{http://www.dmg.org/PMML-4_3}NormalDistributionForBN"/>
 *           <element ref="{http://www.dmg.org/PMML-4_3}LognormalDistributionForBN"/>
 *           <element ref="{http://www.dmg.org/PMML-4_3}UniformDistributionForBN"/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "extensions", "triangularDistributionForBN", "normalDistributionForBN", "lognormalDistributionForBN", "uniformDistributionForBN" }) @Added(Version.PMML_4_3) public class ContinuousDistribution extends org.dmg.pmml.PMMLObject implements HasExtensions { @XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_3") private List extensions; @XmlElement(name = "TriangularDistributionForBN", namespace = "http://www.dmg.org/PMML-4_3") private TriangularDistribution triangularDistributionForBN; @XmlElement(name = "NormalDistributionForBN", namespace = "http://www.dmg.org/PMML-4_3") private NormalDistribution normalDistributionForBN; @XmlElement(name = "LognormalDistributionForBN", namespace = "http://www.dmg.org/PMML-4_3") private LognormalDistribution lognormalDistributionForBN; @XmlElement(name = "UniformDistributionForBN", namespace = "http://www.dmg.org/PMML-4_3") private UniformDistribution uniformDistributionForBN; /** * Gets the value of the extensions property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the extensions property. * *

* For example, to add a new item, do as follows: *

     *    getExtensions().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Extension } * * */ public List getExtensions() { if (extensions == null) { extensions = new ArrayList(); } return this.extensions; } /** * Gets the value of the triangularDistributionForBN property. * * @return * possible object is * {@link TriangularDistribution } * */ public TriangularDistribution getTriangularDistributionForBN() { return triangularDistributionForBN; } /** * Sets the value of the triangularDistributionForBN property. * * @param triangularDistributionForBN * allowed object is * {@link TriangularDistribution } * */ public ContinuousDistribution setTriangularDistributionForBN(TriangularDistribution triangularDistributionForBN) { this.triangularDistributionForBN = triangularDistributionForBN; return this; } /** * Gets the value of the normalDistributionForBN property. * * @return * possible object is * {@link NormalDistribution } * */ public NormalDistribution getNormalDistributionForBN() { return normalDistributionForBN; } /** * Sets the value of the normalDistributionForBN property. * * @param normalDistributionForBN * allowed object is * {@link NormalDistribution } * */ public ContinuousDistribution setNormalDistributionForBN(NormalDistribution normalDistributionForBN) { this.normalDistributionForBN = normalDistributionForBN; return this; } /** * Gets the value of the lognormalDistributionForBN property. * * @return * possible object is * {@link LognormalDistribution } * */ public LognormalDistribution getLognormalDistributionForBN() { return lognormalDistributionForBN; } /** * Sets the value of the lognormalDistributionForBN property. * * @param lognormalDistributionForBN * allowed object is * {@link LognormalDistribution } * */ public ContinuousDistribution setLognormalDistributionForBN(LognormalDistribution lognormalDistributionForBN) { this.lognormalDistributionForBN = lognormalDistributionForBN; return this; } /** * Gets the value of the uniformDistributionForBN property. * * @return * possible object is * {@link UniformDistribution } * */ public UniformDistribution getUniformDistributionForBN() { return uniformDistributionForBN; } /** * Sets the value of the uniformDistributionForBN property. * * @param uniformDistributionForBN * allowed object is * {@link UniformDistribution } * */ public ContinuousDistribution setUniformDistributionForBN(UniformDistribution uniformDistributionForBN) { this.uniformDistributionForBN = uniformDistributionForBN; return this; } public boolean hasExtensions() { return ((this.extensions!= null)&&(this.extensions.size()> 0)); } public ContinuousDistribution addExtensions(Extension... extensions) { getExtensions().addAll(Arrays.asList(extensions)); return this; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); if (status == VisitorAction.CONTINUE) { visitor.pushParent(this); if ((status == VisitorAction.CONTINUE)&&hasExtensions()) { status = org.dmg.pmml.PMMLObject.traverse(visitor, getExtensions()); } if (status == VisitorAction.CONTINUE) { status = org.dmg.pmml.PMMLObject.traverse(visitor, getTriangularDistributionForBN(), getNormalDistributionForBN(), getLognormalDistributionForBN(), getUniformDistributionForBN()); } visitor.popParent(); } if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy