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

org.dmg.pmml.SequenceRule Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version

package org.dmg.pmml;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;
import org.xml.sax.Locator;


/**
 * 

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_2}Extension" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}AntecedentSequence"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}Delimiter"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}Time" minOccurs="0"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}ConsequentSequence"/>
 *         <element ref="{http://www.dmg.org/PMML-4_2}Time" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="id" use="required" type="{http://www.dmg.org/PMML-4_2}ELEMENT-ID" />
 *       <attribute name="numberOfSets" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
 *       <attribute name="occurrence" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
 *       <attribute name="support" use="required" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
 *       <attribute name="confidence" use="required" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
 *       <attribute name="lift" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "SequenceRule") public class SequenceRule extends Entity implements Locatable, HasId { @XmlElementRefs({ @XmlElementRef(name = "Delimiter", namespace = "http://www.dmg.org/PMML-4_2", type = Delimiter.class), @XmlElementRef(name = "ConsequentSequence", namespace = "http://www.dmg.org/PMML-4_2", type = ConsequentSequence.class), @XmlElementRef(name = "Time", namespace = "http://www.dmg.org/PMML-4_2", type = Time.class), @XmlElementRef(name = "Extension", namespace = "http://www.dmg.org/PMML-4_2", type = Extension.class), @XmlElementRef(name = "AntecedentSequence", namespace = "http://www.dmg.org/PMML-4_2", type = AntecedentSequence.class) }) protected List content; @XmlAttribute(name = "id", required = true) protected String id; @XmlAttribute(name = "numberOfSets", required = true) protected int numberOfSets; @XmlAttribute(name = "occurrence", required = true) protected int occurrence; @XmlAttribute(name = "support", required = true) protected double support; @XmlAttribute(name = "confidence", required = true) protected double confidence; @XmlAttribute(name = "lift") @Added(Version.PMML_3_1) protected Double lift; @XmlLocation @XmlTransient protected Locator locator; public SequenceRule() { super(); } public SequenceRule(final String id, final int numberOfSets, final int occurrence, final double support, final double confidence) { super(); this.id = id; this.numberOfSets = numberOfSets; this.occurrence = occurrence; this.support = support; this.confidence = confidence; } /** * Gets the rest of the content model. * *

* You are getting this "catch-all" property because of the following reason: * The field name "Time" is used by two different parts of a schema. See: * line 2639 of file:/P:/jpmml/jpmml-model/target/checkout/pmml-model/target/transformed-schema/pmml.xsd * line 2637 of file:/P:/jpmml/jpmml-model/target/checkout/pmml-model/target/transformed-schema/pmml.xsd *

* To get rid of this property, apply a property customization to one * of both of the following declarations to change their names: * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Time } * {@link ConsequentSequence } * {@link Extension } * {@link Delimiter } * {@link AntecedentSequence } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the numberOfSets property. * */ public int getNumberOfSets() { return numberOfSets; } /** * Sets the value of the numberOfSets property. * */ public void setNumberOfSets(int value) { this.numberOfSets = value; } /** * Gets the value of the occurrence property. * */ public int getOccurrence() { return occurrence; } /** * Sets the value of the occurrence property. * */ public void setOccurrence(int value) { this.occurrence = value; } /** * Gets the value of the support property. * */ public double getSupport() { return support; } /** * Sets the value of the support property. * */ public void setSupport(double value) { this.support = value; } /** * Gets the value of the confidence property. * */ public double getConfidence() { return confidence; } /** * Sets the value of the confidence property. * */ public void setConfidence(double value) { this.confidence = value; } /** * Gets the value of the lift property. * * @return * possible object is * {@link Double } * */ public Double getLift() { return lift; } /** * Sets the value of the lift property. * * @param value * allowed object is * {@link Double } * */ public void setLift(Double value) { this.lift = value; } public SequenceRule withContent(PMMLObject... values) { if (values!= null) { for (PMMLObject value: values) { getContent().add(value); } } return this; } public SequenceRule withContent(Collection values) { if (values!= null) { getContent().addAll(values); } return this; } public SequenceRule withId(String value) { setId(value); return this; } public SequenceRule withNumberOfSets(int value) { setNumberOfSets(value); return this; } public SequenceRule withOccurrence(int value) { setOccurrence(value); return this; } public SequenceRule withSupport(double value) { setSupport(value); return this; } public SequenceRule withConfidence(double value) { setConfidence(value); return this; } public SequenceRule withLift(Double value) { setLift(value); return this; } public Locator sourceLocation() { return locator; } public void setSourceLocation(Locator newLocator) { locator = newLocator; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); for (int i = 0; (((status == VisitorAction.CONTINUE)&&(this.content!= null))&&(i





© 2015 - 2024 Weber Informatics LLC | Privacy Policy