|
||||||||||
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.DelegateAttributes
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
This class delegates all method calls to the delegate object. Subclasses might want to override only some of the methods.
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 |
---|
protected Attributes delegate
Constructor Detail |
---|
public DelegateAttributes(Attributes delegate)
Method Detail |
---|
public void add(AttributeRole attributeRole)
Attributes
public boolean remove(AttributeRole attributeRole)
Attributes
public java.util.Iterator<AttributeRole> allAttributeRoles()
public java.lang.Object clone()
Attributes
clone
in interface Attributes
clone
in class AbstractAttributes
public AttributeRole findRoleByName(java.lang.String name, boolean caseSensitive)
Attributes
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.
public AttributeRole findRoleBySpecialName(java.lang.String specialName, boolean caseSensitive)
Attributes
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.
public void rename(AttributeRole attributeRole, java.lang.String newName)
Attributes.rename(Attribute, String)
public void rename(Attribute attribute, java.lang.String newName)
Attributes
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |