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

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

There is a newer version: 1.6.7
Show newest version

package org.dmg.pmml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.dmg.pmml.adapters.IntegerAdapter;
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>
 *         <group ref="{http://www.dmg.org/PMML-4_2}REAL-ARRAY"/>
 *       </sequence>
 *       <attribute name="type" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
 *             <enumeration value="additive"/>
 *             <enumeration value="multiplicative"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="period" use="required" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
 *       <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="phase" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
 *       <attribute name="delta" type="{http://www.dmg.org/PMML-4_2}REAL-NUMBER" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "array" }) @XmlRootElement(name = "Seasonality_ExpoSmooth", namespace = "http://www.dmg.org/PMML-4_2") @Added(Version.PMML_4_0) public class SeasonalityExpoSmooth extends org.dmg.pmml.PMMLObject { @XmlAttribute(name = "type", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) private String type; @XmlAttribute(name = "period", required = true) @XmlJavaTypeAdapter(IntegerAdapter.class) private Integer period; @XmlAttribute(name = "unit") private String unit; @XmlAttribute(name = "phase") @XmlJavaTypeAdapter(IntegerAdapter.class) private Integer phase; @XmlAttribute(name = "delta") private Double delta; @XmlElement(name = "Array", namespace = "http://www.dmg.org/PMML-4_2") private Array array; public SeasonalityExpoSmooth() { super(); } public SeasonalityExpoSmooth(final String type, final Integer period) { super(); this.type = type; this.period = period; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param type * allowed object is * {@link String } * */ public SeasonalityExpoSmooth setType(String type) { this.type = type; return this; } /** * Gets the value of the period property. * * @return * possible object is * {@link String } * */ public Integer getPeriod() { return period; } /** * Sets the value of the period property. * * @param period * allowed object is * {@link String } * */ public SeasonalityExpoSmooth setPeriod(Integer period) { this.period = period; return this; } /** * Gets the value of the unit property. * * @return * possible object is * {@link String } * */ public String getUnit() { return unit; } /** * Sets the value of the unit property. * * @param unit * allowed object is * {@link String } * */ public SeasonalityExpoSmooth setUnit(String unit) { this.unit = unit; return this; } /** * Gets the value of the phase property. * * @return * possible object is * {@link String } * */ public Integer getPhase() { return phase; } /** * Sets the value of the phase property. * * @param phase * allowed object is * {@link String } * */ public SeasonalityExpoSmooth setPhase(Integer phase) { this.phase = phase; return this; } /** * Gets the value of the delta property. * * @return * possible object is * {@link Double } * */ public Double getDelta() { return delta; } /** * Sets the value of the delta property. * * @param delta * allowed object is * {@link Double } * */ public SeasonalityExpoSmooth setDelta(Double delta) { this.delta = delta; return this; } /** * Gets the value of the array property. * * @return * possible object is * {@link Array } * */ public Array getArray() { return array; } /** * Sets the value of the array property. * * @param array * allowed object is * {@link Array } * */ public SeasonalityExpoSmooth setArray(Array array) { this.array = array; return this; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); visitor.pushParent(this); if (status == VisitorAction.CONTINUE) { status = org.dmg.pmml.PMMLObject.traverse(visitor, getArray()); } visitor.popParent(); if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy