⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pmml.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
/**
 * This file is generated by BorlandXML.
 */

package com.prudsys.pdm.Adapters.PmmlVersion20;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/**
 * The PMML class represents the element "PMML" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT PMML (Header,MiningBuildTask?,DataDictionary,TransformationDictionary?,VectorDictionary?,(SupportVectorMachineModel|SparseGridModel|TreeModel|AssociationModel|SequenceModel|ClusteringModel|NeuralNetwork)*,Extension*)&gt;<br>
 */
public class PMML extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "PMML";
	/** Defines a version attribute */
	public com.borland.xml.toolkit.Attribute version = new com.borland.xml.toolkit.Attribute("version", "CDATA", "REQUIRED", "");
	/** Defines a Header object */
	protected Header _objHeader;
	/** Defines a MiningBuildTask object */
	protected MiningBuildTask _objMiningBuildTask;
	/** Defines a DataDictionary object */
	protected DataDictionary _objDataDictionary;
	/** Defines a TransformationDictionary object */
	protected TransformationDictionary _objTransformationDictionary;
	/** Defines a VectorDictionary object */
	protected VectorDictionary _objVectorDictionary;
	/** Defines a list of SupportVectorMachineModel objects. */
	protected ArrayList _objSupportVectorMachineModel = new ArrayList();
	/** Defines a list of SparseGridModel objects. */
	protected ArrayList _objSparseGridModel = new ArrayList();
	/** Defines a list of TreeModel objects. */
	protected ArrayList _objTreeModel = new ArrayList();
	/** Defines a list of AssociationModel objects. */
	protected ArrayList _objAssociationModel = new ArrayList();
	/** Defines a list of SequenceModel objects. */
	protected ArrayList _objSequenceModel = new ArrayList();
	/** Defines a list of ClusteringModel objects. */
	protected ArrayList _objClusteringModel = new ArrayList();
	/** Defines a list of NeuralNetwork objects. */
	protected ArrayList _objNeuralNetwork = new ArrayList();
	/** Defines a list of Extension objects. */
	protected ArrayList _objExtension = new ArrayList();
	/** Public identifier. */
	protected String publicId = "pmml20.dtd";
	/** System identifier. */
	protected String systemId = "pmml20.dtd";

	/**
	 * Creates an empty PMML object
	 */
	public PMML()
	{
		super();
	}

	/**
	 * Gets the value of "version" attribute.
	 */
	public String getVersion()
	{
		return version.getValue();
	}

	/**
	 * Replaces the existing attribute value with a new value.
	 * @param value	New value.
	 */
	public void setVersion(String value_)
	{
		version.setValue(value_ );
	}

	/**
	 * Gets Header object.
	 */
	public Header getHeader()
	{
		return _objHeader;
	}

	/**
	 * Replaces the existing Header object with a new object.
	 * If you pass in a null value to this method, the Header object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setHeader(Header obj)
	{
		this._objHeader = obj;
		if( obj == null )
            return;

        obj._setParent(this);
	}
	/**
	 * Gets MiningBuildTask object.
	 */
	public MiningBuildTask getMiningBuildTask()
	{
		return _objMiningBuildTask;
	}

	/**
	 * Replaces the existing MiningBuildTask object with a new object.
	 * If you pass in a null value to this method, the MiningBuildTask object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setMiningBuildTask(MiningBuildTask obj)
	{
		this._objMiningBuildTask = obj;
		if( obj == null )
            return;

        obj._setParent(this);
	}
	/**
	 * Gets DataDictionary object.
	 */
	public DataDictionary getDataDictionary()
	{
		return _objDataDictionary;
	}

	/**
	 * Replaces the existing DataDictionary object with a new object.
	 * If you pass in a null value to this method, the DataDictionary object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setDataDictionary(DataDictionary obj)
	{
		this._objDataDictionary = obj;
		if( obj == null )
            return;

        obj._setParent(this);
	}
	/**
	 * Gets TransformationDictionary object.
	 */
	public TransformationDictionary getTransformationDictionary()
	{
		return _objTransformationDictionary;
	}

	/**
	 * Replaces the existing TransformationDictionary object with a new object.
	 * If you pass in a null value to this method, the TransformationDictionary object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setTransformationDictionary(TransformationDictionary obj)
	{
		this._objTransformationDictionary = obj;
		if( obj == null )
            return;

        obj._setParent(this);
	}
	/**
	 * Gets VectorDictionary object.
	 */
	public VectorDictionary getVectorDictionary()
	{
		return _objVectorDictionary;
	}

	/**
	 * Replaces the existing VectorDictionary object with a new object.
	 * If you pass in a null value to this method, the VectorDictionary object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setVectorDictionary(VectorDictionary obj)
	{
		this._objVectorDictionary = obj;
		if( obj == null )
            return;

        obj._setParent(this);
	}
	/**
	 * Returns an array of SupportVectorMachineModel objects. The length of the returned
	 * array is zero if the list of SupportVectorMachineModel object is empty.
	 */
	public SupportVectorMachineModel[] getSupportVectorMachineModel()
	{
		return (SupportVectorMachineModel[])_objSupportVectorMachineModel.toArray(new SupportVectorMachineModel[0]);
	}

	/**
	 * Replaces all existing SupportVectorMachineModel objects with a new array of
	 * SupportVectorMachineModel objects.
	 * @param objArray	an array of SupportVectorMachineModel objects.
	 */
	public void setSupportVectorMachineModel(SupportVectorMachineModel[] objArray)
	{
		if( objArray == null || objArray.length == 0 )
			this._objSupportVectorMachineModel.clear();
		else
		{
			this._objSupportVectorMachineModel = new ArrayList(Arrays.asList(objArray));
			for( int i=0; i<objArray.length; i++ )
			{
				if( objArray[i] != null )
					objArray[i]._setParent(this);
			}
		}
	}

	/**
	 * Gets the SupportVectorMachineModel object at the specified index.
	 * @param index	index of the returned object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public SupportVectorMachineModel getSupportVectorMachineModel(int index)
	{
		return (SupportVectorMachineModel)_objSupportVectorMachineModel.get(index);
	}

	/**
	 * Replaces an existing SupportVectorMachineModel object at the specified index with
	 * a new SupportVectorMachineModel object.
	 * @param index	index of replaced object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public void setSupportVectorMachineModel(int index, SupportVectorMachineModel obj)
	{
		if( obj == null )
			removeSupportVectorMachineModel(index);
		else
		{
			_objSupportVectorMachineModel.set(index, obj);
			obj._setParent(this);
		}
	}

	/**
	 * Returns the number of SupportVectorMachineModel objects in the list.
	 */
	public int getSupportVectorMachineModelCount()
	{
		return _objSupportVectorMachineModel.size();
	}

	/**
	 * Returns <code>true</code> if there is no SupportVectorMachineModel object in the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean isNoSupportVectorMachineModel()
	{
		return _objSupportVectorMachineModel.size() == 0;
	}

	/**
	 * Returns a read-only list of SupportVectorMachineModel objects.
	 */
	public List getSupportVectorMachineModelList()
	{
		return Collections.unmodifiableList(_objSupportVectorMachineModel);
	}

	/**
	 * Adds a new SupportVectorMachineModel object at the end of the list.
	 * @return <code>true</code> if the new object is added to the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean addSupportVectorMachineModel(SupportVectorMachineModel obj)
	{
		if( obj==null )
			return false;

		obj._setParent(this);
		return _objSupportVectorMachineModel.add(obj);
	}

	/**
	 * Adds a list of new SupportVectorMachineModel objects at the end of the list.
	 * @return <code>true</code> if the list was changed; otherwise, the method
	 * returns <code>false</code>.
	 */
	public boolean addSupportVectorMachineModel(Collection coSupportVectorMachineModel)
	{
		if( coSupportVectorMachineModel==null )
			return false;

		java.util.Iterator it = coSupportVectorMachineModel.iterator();
		while( it.hasNext() )
		{
			Object obj = it.next();
			if( obj != null && obj instanceof com.borland.xml.toolkit.XmlObject )
				((com.borland.xml.toolkit.XmlObject)obj)._setParent(this);
		}
		return _objSupportVectorMachineModel.addAll(coSupportVectorMachineModel);
	}

	/**
	 * Removes an existing SupportVectorMachineModel object at the specified index.
	 * @return	The removed object.
	 */
	public SupportVectorMachineModel removeSupportVectorMachineModel(int index)
	{
		return (SupportVectorMachineModel)_objSupportVectorMachineModel.remove(index);
	}

	/**
	 * Removes the specified SupportVectorMachineModel object.
	 * @return <code>true</code> if this list contains the object; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean removeSupportVectorMachineModel(SupportVectorMachineModel obj)
	{
		return _objSupportVectorMachineModel.remove(obj);
	}

	/**
	 * Clears all SupportVectorMachineModel objects from the list.
	 */
	public void clearSupportVectorMachineModelList()
	{
		_objSupportVectorMachineModel.clear();
	}
	/**
	 * Returns an array of SparseGridModel objects. The length of the returned
	 * array is zero if the list of SparseGridModel object is empty.
	 */
	public SparseGridModel[] getSparseGridModel()
	{
		return (SparseGridModel[])_objSparseGridModel.toArray(new SparseGridModel[0]);
	}

	/**
	 * Replaces all existing SparseGridModel objects with a new array of
	 * SparseGridModel objects.
	 * @param objArray	an array of SparseGridModel objects.
	 */
	public void setSparseGridModel(SparseGridModel[] objArray)
	{
		if( objArray == null || objArray.length == 0 )
			this._objSparseGridModel.clear();
		else
		{
			this._objSparseGridModel = new ArrayList(Arrays.asList(objArray));
			for( int i=0; i<objArray.length; i++ )
			{
				if( objArray[i] != null )
					objArray[i]._setParent(this);
			}
		}
	}

	/**
	 * Gets the SparseGridModel object at the specified index.
	 * @param index	index of the returned object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public SparseGridModel getSparseGridModel(int index)
	{
		return (SparseGridModel)_objSparseGridModel.get(index);
	}

	/**
	 * Replaces an existing SparseGridModel object at the specified index with
	 * a new SparseGridModel object.
	 * @param index	index of replaced object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public void setSparseGridModel(int index, SparseGridModel obj)
	{
		if( obj == null )
			removeSparseGridModel(index);
		else
		{
			_objSparseGridModel.set(index, obj);
			obj._setParent(this);
		}
	}

	/**
	 * Returns the number of SparseGridModel objects in the list.
	 */
	public int getSparseGridModelCount()
	{
		return _objSparseGridModel.size();
	}

	/**
	 * Returns <code>true</code> if there is no SparseGridModel object in the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean isNoSparseGridModel()
	{
		return _objSparseGridModel.size() == 0;
	}

	/**
	 * Returns a read-only list of SparseGridModel objects.
	 */
	public List getSparseGridModelList()
	{
		return Collections.unmodifiableList(_objSparseGridModel);
	}

	/**
	 * Adds a new SparseGridModel object at the end of the list.
	 * @return <code>true</code> if the new object is added to the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean addSparseGridModel(SparseGridModel obj)
	{
		if( obj==null )
			return false;

		obj._setParent(this);
		return _objSparseGridModel.add(obj);
	}

	/**
	 * Adds a list of new SparseGridModel objects at the end of the list.
	 * @return <code>true</code> if the list was changed; otherwise, the method
	 * returns <code>false</code>.
	 */
	public boolean addSparseGridModel(Collection coSparseGridModel)
	{
		if( coSparseGridModel==null )
			return false;

		java.util.Iterator it = coSparseGridModel.iterator();
		while( it.hasNext() )
		{
			Object obj = it.next();
			if( obj != null && obj instanceof com.borland.xml.toolkit.XmlObject )
				((com.borland.xml.toolkit.XmlObject)obj)._setParent(this);
		}
		return _objSparseGridModel.addAll(coSparseGridModel);
	}

	/**
	 * Removes an existing SparseGridModel object at the specified index.
	 * @return	The removed object.
	 */
	public SparseGridModel removeSparseGridModel(int index)
	{
		return (SparseGridModel)_objSparseGridModel.remove(index);
	}

	/**
	 * Removes the specified SparseGridModel object.
	 * @return <code>true</code> if this list contains the object; otherwise,
	 * the method returns <code>false</code>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -