com.rapidminer.example
Class AttributeDescription

java.lang.Object
  extended by com.rapidminer.example.AttributeDescription
All Implemented Interfaces:
java.io.Serializable

public class AttributeDescription
extends java.lang.Object
implements java.io.Serializable

This class holds all basic information about an attribute. This is useful since a cloned attribute can simply use the same reference to a description object wihtout the need of cloning all information. This reduces the amount of used memory due to attribute clones.

Author:
Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
AttributeDescription(Attribute attribute, java.lang.String name, int valueType, int blockType, double defaultValue, int tableIndex)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
          Returns true if the given attribute has the same name and the same table index.
 int getBlockType()
           
 double getDefault()
           
 java.lang.String getName()
           
 int getTableIndex()
           
 int getValueType()
           
 int hashCode()
           
 void setBlockType(int b)
           
 void setDefault(double defaultValue)
           
 void setName(java.lang.String newName)
           
 void setTableIndex(int i)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDescription

public AttributeDescription(Attribute attribute,
                            java.lang.String name,
                            int valueType,
                            int blockType,
                            double defaultValue,
                            int tableIndex)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()

setName

public void setName(java.lang.String newName)

getValueType

public int getValueType()

getBlockType

public int getBlockType()

setBlockType

public void setBlockType(int b)

getDefault

public double getDefault()

setDefault

public void setDefault(double defaultValue)

getTableIndex

public int getTableIndex()

setTableIndex

public void setTableIndex(int i)

equals

public boolean equals(java.lang.Object o)
Returns true if the given attribute has the same name and the same table index.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2001-2009 by Rapid-I