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

📄 clusteringmodel.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/**
 * 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 ClusteringModel class represents the element "ClusteringModel" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT ClusteringModel (Extension*,MiningSchema,ModelStats?,ComparisonMeasure,ClusteringField*,CenterFields?,Cluster+)&gt;<br>
 */
public class ClusteringModel extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "ClusteringModel";
	/** Defines a modelName attribute */
	public com.borland.xml.toolkit.Attribute modelName = new com.borland.xml.toolkit.Attribute("modelName", "CDATA", "IMPLIED", "");
	/** Defines a modelClass attribute */
	public com.borland.xml.toolkit.Attribute modelClass = new com.borland.xml.toolkit.Attribute("modelClass", "(centerBased | distributionBased)", "REQUIRED", "");
	/** Defines a algorithmName attribute */
	public com.borland.xml.toolkit.Attribute algorithmName = new com.borland.xml.toolkit.Attribute("algorithmName", "CDATA", "IMPLIED", "");
	/** Defines a functionName attribute */
	public com.borland.xml.toolkit.Attribute functionName = new com.borland.xml.toolkit.Attribute("functionName", "(associationRules | sequences | classification | regression | clustering)", "REQUIRED", "");
	/** Defines a numberOfClusters attribute */
	public com.borland.xml.toolkit.Attribute numberOfClusters = new com.borland.xml.toolkit.Attribute("numberOfClusters", "CDATA", "REQUIRED", "");
	/** Defines a list of Extension objects. */
	protected ArrayList _objExtension = new ArrayList();
	/** Defines a MiningSchema object */
	protected MiningSchema _objMiningSchema;
	/** Defines a ModelStats object */
	protected ModelStats _objModelStats;
	/** Defines a ComparisonMeasure object */
	protected ComparisonMeasure _objComparisonMeasure;
	/** Defines a list of ClusteringField objects. */
	protected ArrayList _objClusteringField = new ArrayList();
	/** Defines a CenterFields object */
	protected CenterFields _objCenterFields;
	/** Defines a list of Cluster objects. */
	protected ArrayList _objCluster = new ArrayList();

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

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

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

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

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

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

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

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

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

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

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

	/**
	 * Returns an array of Extension objects. The length of the returned
	 * array is zero if the list of Extension object is empty.
	 */
	public Extension[] getExtension()
	{
		return (Extension[])_objExtension.toArray(new Extension[0]);
	}

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

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

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

	/**
	 * Returns the number of Extension objects in the list.
	 */
	public int getExtensionCount()
	{
		return _objExtension.size();
	}

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

	/**
	 * Returns a read-only list of Extension objects.
	 */
	public List getExtensionList()
	{
		return Collections.unmodifiableList(_objExtension);
	}

	/**
	 * Adds a new Extension 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 addExtension(Extension obj)
	{
		if( obj==null )
			return false;

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

	/**
	 * Adds a list of new Extension 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 addExtension(Collection coExtension)
	{
		if( coExtension==null )
			return false;

		java.util.Iterator it = coExtension.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 _objExtension.addAll(coExtension);
	}

	/**
	 * Removes an existing Extension object at the specified index.
	 * @return	The removed object.
	 */
	public Extension removeExtension(int index)
	{
		return (Extension)_objExtension.remove(index);
	}

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

	/**
	 * Clears all Extension objects from the list.
	 */
	public void clearExtensionList()
	{
		_objExtension.clear();
	}
	/**
	 * Gets MiningSchema object.
	 */
	public MiningSchema getMiningSchema()
	{
		return _objMiningSchema;
	}

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

        obj._setParent(this);
	}
	/**
	 * Gets ModelStats object.
	 */
	public ModelStats getModelStats()
	{
		return _objModelStats;
	}

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

        obj._setParent(this);
	}
	/**
	 * Gets ComparisonMeasure object.
	 */
	public ComparisonMeasure getComparisonMeasure()
	{
		return _objComparisonMeasure;
	}

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

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

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

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

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

	/**
	 * Returns the number of ClusteringField objects in the list.
	 */
	public int getClusteringFieldCount()
	{
		return _objClusteringField.size();
	}

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

	/**
	 * Returns a read-only list of ClusteringField objects.
	 */
	public List getClusteringFieldList()
	{
		return Collections.unmodifiableList(_objClusteringField);
	}

	/**
	 * Adds a new ClusteringField 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 addClusteringField(ClusteringField obj)
	{
		if( obj==null )
			return false;

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

	/**
	 * Adds a list of new ClusteringField objects at the end of the list.

⌨️ 快捷键说明

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