|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.AbstractAttributes
com.rapidminer.example.SimpleAttributes
public class SimpleAttributes
A very basic and simple implementation of the Attributes
interface based on a linked list of AttributeRoles
and simply delivers the same AttributeRoleIterator
which might skip either regular or special attributes.
| Field Summary |
|---|
| 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 | |
|---|---|
SimpleAttributes()
|
|
| Method Summary | |
|---|---|
void |
add(AttributeRole attributeRole)
Adds a new attribute role. |
java.util.Iterator<AttributeRole> |
allAttributeRoles()
Returns an iterator over all attribute roles, including the special attribute roles. |
java.lang.Object |
clone()
Returns a clone of this attribute set. |
boolean |
equals(java.lang.Object o)
Returns true if the given object is equal to this attribute set. |
AttributeRole |
findRoleByName(java.lang.String name)
Finds the AttributeRole belonging to the attribute with the given name (both regular and special). |
AttributeRole |
findRoleBySpecialName(java.lang.String specialName)
Finds the AttributeRole with the given special name (both regular and special). |
int |
hashCode()
Returns the hash code of this attribute set. |
java.lang.Object |
readResolve()
|
boolean |
remove(AttributeRole attributeRole)
Removes the given attribute role. |
void |
rename(AttributeRole attributeRole,
java.lang.String newSpecialName)
|
void |
rename(Attribute attribute,
java.lang.String newName)
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, get, getCluster, 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 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleAttributes()
| Method Detail |
|---|
public java.lang.Object readResolve()
public java.lang.Object clone()
Attributes
clone in interface Attributesclone in class AbstractAttributespublic boolean equals(java.lang.Object o)
Attributes
equals in interface Attributesequals in class java.lang.Objectpublic int hashCode()
Attributes
hashCode in interface AttributeshashCode in class java.lang.Objectpublic java.util.Iterator<AttributeRole> allAttributeRoles()
Attributes
public void rename(AttributeRole attributeRole,
java.lang.String newSpecialName)
{#rename(Attribute, String)}
public void rename(Attribute attribute,
java.lang.String newName)
Attributes
public void add(AttributeRole attributeRole)
Attributes
public boolean remove(AttributeRole attributeRole)
Attributes
public AttributeRole findRoleByName(java.lang.String name)
AttributesAttributeRole belonging to the attribute with the given name (both regular and special).
public AttributeRole findRoleBySpecialName(java.lang.String specialName)
AttributesAttributeRole with the given special name (both regular and special).
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||