|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.AttributeLocator
public class AttributeLocator
This class locates and records the indices of a certain type of attributes, recursively in case of Relational attributes.
Attribute.RELATIONAL
,
Serialized FormConstructor Summary | |
---|---|
AttributeLocator(Instances data,
int type)
Initializes the AttributeLocator with the given data for the specified type of attribute. |
|
AttributeLocator(Instances data,
int type,
int[] indices)
initializes the AttributeLocator with the given data for the specified type of attribute. |
|
AttributeLocator(Instances data,
int type,
int fromIndex,
int toIndex)
Initializes the AttributeLocator with the given data for the specified type of attribute. |
Method Summary | |
---|---|
int |
compareTo(AttributeLocator o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
int |
getActualIndex(int index)
returns actual index in the Instances object. |
int[] |
getAllowedIndices()
returns the indices that are allowed to check for the attribute type |
int[] |
getAttributeIndices()
Returns the indices of the attributes. |
Instances |
getData()
returns the underlying data |
AttributeLocator |
getLocator(int index)
Returns the AttributeLocator at the given index. |
int[] |
getLocatorIndices()
Returns the indices of the AttributeLocator objects. |
java.lang.String |
getRevision()
Returns the revision string. |
int |
getType()
returns the type of attribute that is located |
java.lang.String |
toString()
returns a string representation of this object |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeLocator(Instances data, int type)
data
- the data to work ontype
- the type of attribute to locatepublic AttributeLocator(Instances data, int type, int fromIndex, int toIndex)
data
- the data to work ontype
- the type of attribute to locatefromIndex
- the first index to inspect (including)toIndex
- the last index to check (including)public AttributeLocator(Instances data, int type, int[] indices)
data
- the data to work ontype
- the type of attribute to locateindices
- the attribute indices to checkMethod Detail |
---|
public int getType()
public int[] getAllowedIndices()
public Instances getData()
public int getActualIndex(int index)
index
- the index in the m_AllowedIndices array
public int[] getAttributeIndices()
getActualIndex(int)
public int[] getLocatorIndices()
getActualIndex(int)
public AttributeLocator getLocator(int index)
index
- the index of the locator to retrieve
public int compareTo(AttributeLocator o)
compareTo
in interface java.lang.Comparable<AttributeLocator>
o
- the object to compare with
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the AttributeLocator to check for equality
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |