Package adams.ml.capabilities
Enum Capability
- java.lang.Object
-
- java.lang.Enum<Capability>
-
- adams.ml.capabilities.Capability
-
- All Implemented Interfaces:
Serializable
,Comparable<Capability>
public enum Capability extends Enum<Capability>
Capability for an algorithm.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATEGORICAL_ATTRIBUTE
CATEGORICAL_CLASS
DATETYPE_ATTRIBUTE
DATETYPE_CLASS
MISSING_ATTRIBUTE_VALUE
MISSING_CLASS_VALUE
NUMERIC_ATTRIBUTE
NUMERIC_CLASS
UNKNOWN_ATTRIBUTE
UNKNOWN_CLASS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isClassRelated()
Returns whether the capability is class-related.static Capability
valueOf(String name)
Returns the enum constant of this type with the specified name.static Capability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING_ATTRIBUTE_VALUE
public static final Capability MISSING_ATTRIBUTE_VALUE
-
MISSING_CLASS_VALUE
public static final Capability MISSING_CLASS_VALUE
-
UNKNOWN_ATTRIBUTE
public static final Capability UNKNOWN_ATTRIBUTE
-
UNKNOWN_CLASS
public static final Capability UNKNOWN_CLASS
-
NUMERIC_ATTRIBUTE
public static final Capability NUMERIC_ATTRIBUTE
-
NUMERIC_CLASS
public static final Capability NUMERIC_CLASS
-
CATEGORICAL_ATTRIBUTE
public static final Capability CATEGORICAL_ATTRIBUTE
-
CATEGORICAL_CLASS
public static final Capability CATEGORICAL_CLASS
-
DATETYPE_ATTRIBUTE
public static final Capability DATETYPE_ATTRIBUTE
-
DATETYPE_CLASS
public static final Capability DATETYPE_CLASS
-
-
Method Detail
-
values
public static Capability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Capability c : Capability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Capability valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isClassRelated
public boolean isClassRelated()
Returns whether the capability is class-related.- Returns:
- true if class related
-
-