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

org.dmg.pmml.time_series.TimeValue Maven / Gradle / Ivy

There is a newer version: 1.6.11
Show newest version

package org.dmg.pmml.time_series;

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 org.dmg.pmml.Timestamp;
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}Timestamp" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="index" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
 *       <attribute name="time" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
 *       <attribute name="value" use="required" type="{http://www.dmg.org/PMML-4_3}REAL-NUMBER" />
 *       <attribute name="standardError" type="{http://www.dmg.org/PMML-4_3}REAL-NUMBER" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "timestamp" }) @XmlRootElement(name = "TimeValue", namespace = "http://www.dmg.org/PMML-4_3") @Added(Version.PMML_4_0) public class TimeValue extends org.dmg.pmml.PMMLObject { @XmlAttribute(name = "index") private Integer index; @XmlAttribute(name = "time") private Double time; @XmlAttribute(name = "value", required = true) private double value; @XmlAttribute(name = "standardError") private Double standardError; @XmlElement(name = "Timestamp", namespace = "http://www.dmg.org/PMML-4_3") private Timestamp timestamp; public TimeValue() { super(); } public TimeValue(final double value) { super(); this.value = value; } /** * Gets the value of the index property. * * @return * possible object is * {@link Integer } * */ public Integer getIndex() { return index; } /** * Sets the value of the index property. * * @param index * allowed object is * {@link Integer } * */ public TimeValue setIndex(Integer index) { this.index = index; return this; } /** * Gets the value of the time property. * * @return * possible object is * {@link Double } * */ public Double getTime() { return time; } /** * Sets the value of the time property. * * @param time * allowed object is * {@link Double } * */ public TimeValue setTime(Double time) { this.time = time; return this; } /** * Gets the value of the value property. * */ public double getValue() { return value; } /** * Sets the value of the value property. * */ public TimeValue setValue(double value) { this.value = value; return this; } /** * Gets the value of the standardError property. * * @return * possible object is * {@link Double } * */ public Double getStandardError() { return standardError; } /** * Sets the value of the standardError property. * * @param standardError * allowed object is * {@link Double } * */ public TimeValue setStandardError(Double standardError) { this.standardError = standardError; return this; } /** * Gets the value of the timestamp property. * * @return * possible object is * {@link Timestamp } * */ public Timestamp getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param timestamp * allowed object is * {@link Timestamp } * */ public TimeValue setTimestamp(Timestamp timestamp) { this.timestamp = timestamp; return this; } @Override public VisitorAction accept(Visitor visitor) { VisitorAction status = visitor.visit(this); if (status == VisitorAction.CONTINUE) { visitor.pushParent(this); if (status == VisitorAction.CONTINUE) { status = org.dmg.pmml.PMMLObject.traverse(visitor, getTimestamp()); } visitor.popParent(); } if (status == VisitorAction.TERMINATE) { return VisitorAction.TERMINATE; } return VisitorAction.CONTINUE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy