Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.converter
Interface WekaAttribute<W extends WekaAttribute<W>>

All Superinterfaces:
Comparable<W>
All Known Implementing Classes:
WekaAbstractAttribute, WekaNominalAttribute, WekaNumericAttribute, WekaStringAttribute

public interface WekaAttribute<W extends WekaAttribute<W>>
extends Comparable<W>

A WekaAttribute - an implementing class may be either a nominal, numeric, or string attribute.

Author:
Arthur Zimek

Field Summary
static String NOMINAL
          Key word for a nominal attribute.
static String NUMERIC
          Key word for a numeric attribute.
static String STRING
          Key word for a string attribute.
 
Method Summary
 boolean equals(Object o)
          To attributes are considered to be equal, if they are of the same type and the comparison by compareTo results in 0.
 String getType()
          Returns the type of the attribute.
 String getValue()
          Returns the value as String representation.
 boolean isNominal()
          Returns whether the attribute is weka nominal.
 boolean isNumeric()
          Returns whether the attribute is weka numeric.
 boolean isString()
          Returns whether the attribute is weka string.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

NOMINAL

static final String NOMINAL
Key word for a nominal attribute.

See Also:
Constant Field Values

NUMERIC

static final String NUMERIC
Key word for a numeric attribute.

See Also:
Constant Field Values

STRING

static final String STRING
Key word for a string attribute.

See Also:
Constant Field Values
Method Detail

getType

String getType()
Returns the type of the attribute.

Returns:
the type of the attribute, i.e. nominal, numeric, or string

getValue

String getValue()
Returns the value as String representation.

Returns:
a representation of the attribute value as String

isNominal

boolean isNominal()
Returns whether the attribute is weka nominal.

Returns:
true if the attribute is nominal, false otherwise

isString

boolean isString()
Returns whether the attribute is weka string.

Returns:
true if the attribute is string, false otherwise

isNumeric

boolean isNumeric()
Returns whether the attribute is weka numeric.

Returns:
true if the attribute is numeric, false otherwise

equals

boolean equals(Object o)
To attributes are considered to be equal, if they are of the same type and the comparison by compareTo results in 0.

Overrides:
equals in class Object
Parameters:
o - another object to test for equality
Returns:
true if o is of the same type as this and this.compareTo((W)o)==0.

Release 0.1 (2008-07-10_1838)