📄 associationmodel.java
字号:
/**
* 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 AssociationModel class represents the element "AssociationModel" with the content
* model defined as follows:
* <p>
* <!ELEMENT AssociationModel (Extension*,MiningSchema,Item+,Itemset+,AssociationRule+,Extension*)><br>
*/
public class AssociationModel extends com.borland.xml.toolkit.XmlObject
{
/**
*
*/
private static final long serialVersionUID = 7926457873501760088L;
/** xml tag name of this element. */
public static String _tagName = "AssociationModel";
/** Defines a minimumConfidence attribute */
public com.borland.xml.toolkit.Attribute minimumConfidence = new com.borland.xml.toolkit.Attribute("minimumConfidence", "CDATA", "REQUIRED", "");
/** Defines a numberOfRules attribute */
public com.borland.xml.toolkit.Attribute numberOfRules = new com.borland.xml.toolkit.Attribute("numberOfRules", "CDATA", "REQUIRED", "");
/** Defines a avgNumberOfItemsPerTA attribute */
public com.borland.xml.toolkit.Attribute avgNumberOfItemsPerTA = new com.borland.xml.toolkit.Attribute("avgNumberOfItemsPerTA", "CDATA", "IMPLIED", "");
/** Defines a minimumSupport attribute */
public com.borland.xml.toolkit.Attribute minimumSupport = new com.borland.xml.toolkit.Attribute("minimumSupport", "CDATA", "REQUIRED", "");
/** Defines a lengthLimit attribute */
public com.borland.xml.toolkit.Attribute lengthLimit = new com.borland.xml.toolkit.Attribute("lengthLimit", "CDATA", "IMPLIED", "");
/** Defines a itemIdName attribute */
public com.borland.xml.toolkit.Attribute itemIdName = new com.borland.xml.toolkit.Attribute("itemIdName", "CDATA", "IMPLIED", "");
/** Defines a numberOfTransactions attribute */
public com.borland.xml.toolkit.Attribute numberOfTransactions = new com.borland.xml.toolkit.Attribute("numberOfTransactions", "CDATA", "REQUIRED", "");
/** Defines a algorithmName attribute */
public com.borland.xml.toolkit.Attribute algorithmName = new com.borland.xml.toolkit.Attribute("algorithmName", "CDATA", "IMPLIED", "");
/** Defines a numberOfItemsets attribute */
public com.borland.xml.toolkit.Attribute numberOfItemsets = new com.borland.xml.toolkit.Attribute("numberOfItemsets", "CDATA", "REQUIRED", "");
/** Defines a modelName attribute */
public com.borland.xml.toolkit.Attribute modelName = new com.borland.xml.toolkit.Attribute("modelName", "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)", "IMPLIED", "");
/** Defines a transactIdName attribute */
public com.borland.xml.toolkit.Attribute transactIdName = new com.borland.xml.toolkit.Attribute("transactIdName", "CDATA", "IMPLIED", "");
/** Defines a numberOfItems attribute */
public com.borland.xml.toolkit.Attribute numberOfItems = new com.borland.xml.toolkit.Attribute("numberOfItems", "CDATA", "REQUIRED", "");
/** Defines a maxNumberOfItemsPerTA attribute */
public com.borland.xml.toolkit.Attribute maxNumberOfItemsPerTA = new com.borland.xml.toolkit.Attribute("maxNumberOfItemsPerTA", "CDATA", "IMPLIED", "");
/** Defines a list of Extension objects. */
protected ArrayList _objExtension = new ArrayList();
/** Defines a MiningSchema object */
protected MiningSchema _objMiningSchema;
/** Defines a list of Item objects. */
protected ArrayList _objItem = new ArrayList();
/** Defines a list of Itemset objects. */
protected ArrayList _objItemset = new ArrayList();
/** Defines a list of AssociationRule objects. */
protected ArrayList _objAssociationRule = new ArrayList();
/** Defines a list of Extension objects. */
protected ArrayList _objExtension1 = new ArrayList();
/**
* Creates an empty AssociationModel object
*/
public AssociationModel()
{
super();
}
/**
* Gets the value of "minimumConfidence" attribute.
*/
public String getMinimumConfidence()
{
return minimumConfidence.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setMinimumConfidence(String value_)
{
minimumConfidence.setValue(value_ );
}
/**
* Gets the value of "numberOfRules" attribute.
*/
public String getNumberOfRules()
{
return numberOfRules.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setNumberOfRules(String value_)
{
numberOfRules.setValue(value_ );
}
/**
* Gets the value of "avgNumberOfItemsPerTA" attribute.
*/
public String getAvgNumberOfItemsPerTA()
{
return avgNumberOfItemsPerTA.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setAvgNumberOfItemsPerTA(String value_)
{
avgNumberOfItemsPerTA.setValue(value_ );
}
/**
* Gets the value of "minimumSupport" attribute.
*/
public String getMinimumSupport()
{
return minimumSupport.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setMinimumSupport(String value_)
{
minimumSupport.setValue(value_ );
}
/**
* Gets the value of "lengthLimit" attribute.
*/
public String getLengthLimit()
{
return lengthLimit.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setLengthLimit(String value_)
{
lengthLimit.setValue(value_ );
}
/**
* Gets the value of "itemIdName" attribute.
*/
public String getItemIdName()
{
return itemIdName.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setItemIdName(String value_)
{
itemIdName.setValue(value_ );
}
/**
* Gets the value of "numberOfTransactions" attribute.
*/
public String getNumberOfTransactions()
{
return numberOfTransactions.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setNumberOfTransactions(String value_)
{
numberOfTransactions.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 "numberOfItemsets" attribute.
*/
public String getNumberOfItemsets()
{
return numberOfItemsets.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setNumberOfItemsets(String value_)
{
numberOfItemsets.setValue(value_ );
}
/**
* 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 "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 "transactIdName" attribute.
*/
public String getTransactIdName()
{
return transactIdName.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setTransactIdName(String value_)
{
transactIdName.setValue(value_ );
}
/**
* Gets the value of "numberOfItems" attribute.
*/
public String getNumberOfItems()
{
return numberOfItems.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setNumberOfItems(String value_)
{
numberOfItems.setValue(value_ );
}
/**
* Gets the value of "maxNumberOfItemsPerTA" attribute.
*/
public String getMaxNumberOfItemsPerTA()
{
return maxNumberOfItemsPerTA.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setMaxNumberOfItemsPerTA(String value_)
{
maxNumberOfItemsPerTA.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);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -