com.rapidminer.example
Class DelegateAttributes

java.lang.Object
  extended by com.rapidminer.example.AbstractAttributes
      extended by com.rapidminer.example.DelegateAttributes
All Implemented Interfaces:
Attributes, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Attribute>

Deprecated. Please extend AbstractAttributes instead since using this class might lead to stack overflow errors in cases where a large amount of iterations is performed

@Deprecated
public class DelegateAttributes
extends AbstractAttributes

This class delegates all method calls to the delegate object. Subclasses might want to override only some of the methods.

Author:
Ingo Mierswa
See Also:
Serialized Form

Field Summary
protected  Attributes delegate
          Deprecated.  
 
Fields inherited from interface com.rapidminer.example.Attributes
ALL, ATTRIBUTE_NAME, BASE_VALUE, BATCH_NAME, CLASSIFICATION_COST, CLUSTER_NAME, CONFIDENCE_NAME, ID_NAME, KNOWN_ATTRIBUTE_TYPES, LABEL_NAME, OUTLIER_NAME, PREDICTION_NAME, REGULAR, SPECIAL, TYPE_ATTRIBUTE, TYPE_BASE_VALUE, TYPE_BATCH, TYPE_CLUSTER, TYPE_COST, TYPE_ID, TYPE_LABEL, TYPE_OUTLIER, TYPE_PREDICTION, TYPE_WEIGHT, WEIGHT_NAME
 
Constructor Summary
DelegateAttributes(Attributes delegate)
          Deprecated.  
 
Method Summary
 void add(AttributeRole attributeRole)
          Deprecated. Adds a new attribute role.
 java.util.Iterator<AttributeRole> allAttributeRoles()
          Deprecated. This method is usually overridden by subclasses.
 java.lang.Object clone()
          Deprecated. Returns a clone of this attribute set.
 AttributeRole findRoleByName(java.lang.String name, boolean caseSensitive)
          Deprecated. Finds the AttributeRole belonging to the attribute with the given name (both regular and special).
 AttributeRole findRoleBySpecialName(java.lang.String specialName, boolean caseSensitive)
          Deprecated. Finds the AttributeRole with the given special name (both regular and special).
 boolean remove(AttributeRole attributeRole)
          Deprecated. Removes the given attribute role.
 void rename(AttributeRole attributeRole, java.lang.String newName)
          Deprecated.  
 void rename(Attribute attribute, java.lang.String newName)
          Deprecated. Notifies the Attributes that this attribute will rename itself to the given name immediately after this method returns.
 
Methods inherited from class com.rapidminer.example.AbstractAttributes
addRegular, allAttributes, allSize, clearRegular, clearSpecial, contains, createRegularAttributeArray, findRoleByName, findRoleBySpecialName, get, get, getCluster, getConfidence, getCost, getId, getLabel, getOutlier, getPredictedLabel, getRegular, getRole, getRole, getSpecial, getWeight, iterator, regularAttributes, remove, replace, setCluster, setCost, setId, setLabel, setOutlier, setPredictedLabel, setSpecialAttribute, setWeight, size, specialAttributes, specialSize, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.example.Attributes
equals, hashCode
 

Field Detail

delegate

protected Attributes delegate
Deprecated. 
Constructor Detail

DelegateAttributes

public DelegateAttributes(Attributes delegate)
Deprecated. 
Method Detail

add

public void add(AttributeRole attributeRole)
Deprecated. 
Description copied from interface: Attributes
Adds a new attribute role.


remove

public boolean remove(AttributeRole attributeRole)
Deprecated. 
Description copied from interface: Attributes
Removes the given attribute role.


allAttributeRoles

public java.util.Iterator<AttributeRole> allAttributeRoles()
Deprecated. 
This method is usually overridden by subclasses.


clone

public java.lang.Object clone()
Deprecated. 
Description copied from interface: Attributes
Returns a clone of this attribute set.

Specified by:
clone in interface Attributes
Specified by:
clone in class AbstractAttributes

findRoleByName

public AttributeRole findRoleByName(java.lang.String name,
                                    boolean caseSensitive)
Deprecated. 
Description copied from interface: Attributes
Finds the AttributeRole belonging to the attribute with the given name (both regular and special). If the search is performed case sensitive depends on the boolean parameter. Attention: Case insensitive search is not optimized and takes linear time with number of attributes.


findRoleBySpecialName

public AttributeRole findRoleBySpecialName(java.lang.String specialName,
                                           boolean caseSensitive)
Deprecated. 
Description copied from interface: Attributes
Finds the AttributeRole with the given special name (both regular and special). If the search is performed case sensitive depends on the boolean parameter. Attention: Case insensitive search is not optimized and takes linear time with number of attributes.


rename

public void rename(AttributeRole attributeRole,
                   java.lang.String newName)
Deprecated. 
See Also:
Attributes.rename(Attribute, String)

rename

public void rename(Attribute attribute,
                   java.lang.String newName)
Deprecated. 
Description copied from interface: Attributes
Notifies the Attributes that this attribute will rename itself to the given name immediately after this method returns.



Copyright © 2001-2009 by Rapid-I