adams.flow.core
Enum Capability

java.lang.Object
  extended by java.lang.Enum<Capability>
      extended by adams.flow.core.Capability
All Implemented Interfaces:
Serializable, Comparable<Capability>

public enum Capability
extends Enum<Capability>

Enumeration of all capabilities.

Replication of the Weka capabilities, as these cannot be edited in the GOE. Needs to be updated whenever the Weka ones changes.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Enum Constant Summary
BINARY_ATTRIBUTES
          can handle binary attributes.
BINARY_CLASS
          can handle binary classes.
DATE_ATTRIBUTES
          can handle date attributes.
DATE_CLASS
          can handle date classes.
EMPTY_NOMINAL_ATTRIBUTES
          can handle empty nominal attributes.
EMPTY_NOMINAL_CLASS
          can handle empty nominal classes.
MISSING_CLASS_VALUES
          can handle missing values in class attribute.
MISSING_VALUES
          can handle missing values in attributes.
NO_CLASS
          can handle data without class attribute, eg clusterers.
NOMINAL_ATTRIBUTES
          can handle nominal attributes.
NOMINAL_CLASS
          can handle nominal classes.
NUMERIC_ATTRIBUTES
          can handle numeric attributes.
NUMERIC_CLASS
          can handle numeric classes.
ONLY_MULTIINSTANCE
          can handle multi-instance data.
RELATIONAL_ATTRIBUTES
          can handle relational attributes.
RELATIONAL_CLASS
          can handle relational classes.
STRING_ATTRIBUTES
          can handle string attributes.
STRING_CLASS
          can handle string classes.
UNARY_ATTRIBUTES
          can handle unary attributes.
UNARY_CLASS
          can handle unary classes.
 
Method Summary
static Capability toAdams(weka.core.Capabilities.Capability c)
          Turns the WEKA capability into an ADAMS one.
static weka.core.Capabilities.Capability toWeka(Capability c)
          Turns the ADAMS capability into a WEKA one.
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOMINAL_ATTRIBUTES

public static final Capability NOMINAL_ATTRIBUTES
can handle nominal attributes.


BINARY_ATTRIBUTES

public static final Capability BINARY_ATTRIBUTES
can handle binary attributes.


UNARY_ATTRIBUTES

public static final Capability UNARY_ATTRIBUTES
can handle unary attributes.


EMPTY_NOMINAL_ATTRIBUTES

public static final Capability EMPTY_NOMINAL_ATTRIBUTES
can handle empty nominal attributes.


NUMERIC_ATTRIBUTES

public static final Capability NUMERIC_ATTRIBUTES
can handle numeric attributes.


DATE_ATTRIBUTES

public static final Capability DATE_ATTRIBUTES
can handle date attributes.


STRING_ATTRIBUTES

public static final Capability STRING_ATTRIBUTES
can handle string attributes.


RELATIONAL_ATTRIBUTES

public static final Capability RELATIONAL_ATTRIBUTES
can handle relational attributes.


MISSING_VALUES

public static final Capability MISSING_VALUES
can handle missing values in attributes.


NO_CLASS

public static final Capability NO_CLASS
can handle data without class attribute, eg clusterers.


NOMINAL_CLASS

public static final Capability NOMINAL_CLASS
can handle nominal classes.


BINARY_CLASS

public static final Capability BINARY_CLASS
can handle binary classes.


UNARY_CLASS

public static final Capability UNARY_CLASS
can handle unary classes.


EMPTY_NOMINAL_CLASS

public static final Capability EMPTY_NOMINAL_CLASS
can handle empty nominal classes.


NUMERIC_CLASS

public static final Capability NUMERIC_CLASS
can handle numeric classes.


DATE_CLASS

public static final Capability DATE_CLASS
can handle date classes.


STRING_CLASS

public static final Capability STRING_CLASS
can handle string classes.


RELATIONAL_CLASS

public static final Capability RELATIONAL_CLASS
can handle relational classes.


MISSING_CLASS_VALUES

public static final Capability MISSING_CLASS_VALUES
can handle missing values in class attribute.


ONLY_MULTIINSTANCE

public static final Capability ONLY_MULTIINSTANCE
can handle multi-instance data.

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 name
NullPointerException - if the argument is null

toWeka

public static weka.core.Capabilities.Capability toWeka(Capability c)
Turns the ADAMS capability into a WEKA one.

Parameters:
c - the capability to convert
Returns:
the corresponding WEKA capability

toAdams

public static Capability toAdams(weka.core.Capabilities.Capability c)
Turns the WEKA capability into an ADAMS one.

Parameters:
c - the capability to convert
Returns:
the corresponding ADAMS capability


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.