org.dmg.pmml.KohonenMap Maven / Gradle / Ivy
Show all versions of pmml-model-gwt Show documentation
package org.dmg.pmml;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* 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"/>
* </sequence>
* <attribute name="coord1" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
* <attribute name="coord2" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
* <attribute name="coord3" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extensions"
})
@XmlRootElement(name = "KohonenMap", namespace = "http://www.dmg.org/PMML-4_2")
public class KohonenMap
extends org.dmg.pmml.PMMLObject
implements HasExtensions
{
@XmlAttribute(name = "coord1")
private Double coord1;
@XmlAttribute(name = "coord2")
private Double coord2;
@XmlAttribute(name = "coord3")
private Double coord3;
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_2")
private List extensions;
/**
* Gets the value of the coord1 property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getCoord1() {
return coord1;
}
/**
* Sets the value of the coord1 property.
*
* @param coord1
* allowed object is
* {@link Double }
*
*/
public KohonenMap setCoord1(Double coord1) {
this.coord1 = coord1;
return this;
}
/**
* Gets the value of the coord2 property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getCoord2() {
return coord2;
}
/**
* Sets the value of the coord2 property.
*
* @param coord2
* allowed object is
* {@link Double }
*
*/
public KohonenMap setCoord2(Double coord2) {
this.coord2 = coord2;
return this;
}
/**
* Gets the value of the coord3 property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getCoord3() {
return coord3;
}
/**
* Sets the value of the coord3 property.
*
* @param coord3
* allowed object is
* {@link Double }
*
*/
public KohonenMap setCoord3(Double coord3) {
this.coord3 = coord3;
return this;
}
/**
* 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;
}
public boolean hasExtensions() {
return ((this.extensions!= null)&&(this.extensions.size()> 0));
}
public KohonenMap addExtensions(Extension... extensions) {
getExtensions().addAll(Arrays.asList(extensions));
return this;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
visitor.pushParent(this);
if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
status = org.dmg.pmml.PMMLObject.traverse(visitor, getExtensions());
}
visitor.popParent();
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
}