public class AttributeLocator extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AttributeLocator>, RevisionHandler
Attribute.RELATIONAL, 
Serialized Form| Constructor and Description | 
|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
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 checkpublic int getType()
public int[] getAllowedIndices()
public Instances getData()
public int getActualIndex(int index)
index - the index in the m_AllowedIndices arraypublic int[] getAttributeIndices()
getActualIndex(int)public int[] getLocatorIndices()
getActualIndex(int)public AttributeLocator getLocator(int index)
index - the index of the locator to retrievepublic int compareTo(AttributeLocator o)
compareTo in interface java.lang.Comparable<AttributeLocator>o - the object to compare withpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the AttributeLocator to check for equalitypublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler