|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.AbstractAttribute
public abstract class AbstractAttribute
This is a possible abstract superclass for all attribute implementations.
Most methods of Attribute are already implemented here.
| Field Summary |
|---|
| Fields inherited from interface com.rapidminer.example.Attribute |
|---|
MISSING_NOMINAL_VALUE, UNDEFINED_ATTRIBUTE_INDEX, VIEW_ATTRIBUTE_INDEX |
| Method Summary | |
|---|---|
void |
addOwner(Attributes attributes)
Sets the Attributes instance to which this attribute belongs. |
void |
addTransformation(AttributeTransformation transformation)
|
void |
clearTransformations()
Clear all transformations. |
abstract java.lang.Object |
clone()
Clones this attribute. |
boolean |
equals(java.lang.Object o)
Returns true if the given attribute has the same name and the same table index. |
java.util.Iterator<Statistics> |
getAllStatistics()
Returns the attribute statistics. |
int |
getBlockType()
Returns the block type of this attribute. |
java.lang.String |
getConstruction()
Returns the construction description. |
double |
getDefault()
Returns the default value for this attribute. |
AttributeTransformation |
getLastTransformation()
|
java.lang.String |
getName()
Returns the name of the attribute. |
double |
getStatistics(java.lang.String name)
Deprecated. Please use the method ExampleSet.getStatistics(Attribute, String) instead. |
double |
getStatistics(java.lang.String name,
java.lang.String parameter)
Deprecated. Please use the method ExampleSet.getStatistics(Attribute, String) instead. |
int |
getTableIndex()
Returns the index in the example table. |
double |
getValue(DataRow row)
Returns the value for the column this attribute corresponds to in the given data row. |
int |
getValueType()
Returns the value type of this attribute. |
int |
hashCode()
Returns the hash code. |
java.lang.Object |
readResolve()
|
void |
registerStatistics(Statistics statistics)
Registers the attribute statistics. |
void |
removeOwner(Attributes attributes)
|
void |
setBlockType(int b)
Sets the block type of this attribute. |
void |
setConstruction(java.lang.String description)
Returns the construction description. |
void |
setDefault(double value)
Sets the default value for this attribute. |
void |
setName(java.lang.String v)
Sets the name of the attribute. |
void |
setTableIndex(int i)
Sets the index in the example table. |
void |
setValue(DataRow row,
double value)
Sets the value for the column this attribute corresponds to in the given data row. |
java.lang.String |
toString()
Returns a human readable string that describes this attribute. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.example.Attribute |
|---|
getAsString, getMapping, isNominal, isNumerical, setMapping |
| Method Detail |
|---|
public java.lang.Object readResolve()
public void addOwner(Attributes attributes)
AttributeAttributes to which this
AttributeRole is added.
addOwner in interface Attributepublic void removeOwner(Attributes attributes)
removeOwner in interface Attributepublic abstract java.lang.Object clone()
clone in interface Attributeclone in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface Attributeequals in class java.lang.Objectpublic int hashCode()
Attribute
hashCode in interface AttributehashCode in class java.lang.Objectpublic void addTransformation(AttributeTransformation transformation)
addTransformation in interface Attributepublic void clearTransformations()
Attribute
clearTransformations in interface Attributepublic AttributeTransformation getLastTransformation()
getLastTransformation in interface Attributepublic double getValue(DataRow row)
Attribute
getValue in interface Attribute
public void setValue(DataRow row,
double value)
Attribute
setValue in interface Attributepublic java.lang.String getName()
getName in interface Attributepublic void setName(java.lang.String v)
setName in interface Attributepublic int getTableIndex()
getTableIndex in interface Attributepublic void setTableIndex(int i)
setTableIndex in interface Attributepublic int getBlockType()
getBlockType in interface AttributeOntology.ATTRIBUTE_BLOCK_TYPEpublic void setBlockType(int b)
setBlockType in interface AttributeOntology.ATTRIBUTE_BLOCK_TYPEpublic int getValueType()
getValueType in interface AttributeOntology.ATTRIBUTE_VALUE_TYPEpublic java.util.Iterator<Statistics> getAllStatistics()
getAllStatistics in interface Attributepublic void registerStatistics(Statistics statistics)
Attribute
registerStatistics in interface Attribute@Deprecated public double getStatistics(java.lang.String name)
ExampleSet.getStatistics(Attribute, String) instead.
getStatistics in interface Attribute
@Deprecated
public double getStatistics(java.lang.String name,
java.lang.String parameter)
ExampleSet.getStatistics(Attribute, String) instead.
getStatistics in interface Attributepublic java.lang.String getConstruction()
getConstruction in interface Attributepublic void setConstruction(java.lang.String description)
setConstruction in interface Attributepublic void setDefault(double value)
Attribute
setDefault in interface Attributepublic double getDefault()
Attribute
getDefault in interface Attributepublic java.lang.String toString()
toString in interface AttributetoString in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||