All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.core.SelectedTag

java.lang.Object
    |
    +----weka.core.SelectedTag

public class SelectedTag
extends java.lang.Object
Represents a selected value from a finite set of values, where each value is a Tag (i.e. has some string associated with it). Primarily used in schemes to select between alternative behaviours, associating names with the alternative behaviours.

Author:
Len Trigg

Constructor Index

 o SelectedTag(int, Tag[])
Creates a new SelectedTag instance.

Method Index

 o equals(Object)
Returns true if this SelectedTag equals another object
 o getSelectedTag()
Gets the selected Tag.
 o getTags()
Gets the set of all valid Tags.

Constructor Detail

 o SelectedTag
public SelectedTag(int tagID,
                   Tag tags[])
          Creates a new SelectedTag instance.
Parameters:
tagID - the id of the selected tag.
tags - an array containing the possible valid Tags.
Throws:
java.lang.IllegalArgumentException - if the selected tag isn't in the array of valid values.

Method Detail

 o equals
public boolean equals(java.lang.Object o)
          Returns true if this SelectedTag equals another object
Overrides:
equals in class java.lang.Object
 o getSelectedTag
public Tag getSelectedTag()
          Gets the selected Tag.
Returns:
the selected Tag.
 o getTags
public Tag[] getTags()
          Gets the set of all valid Tags.
Returns:
an array containing the valid Tags.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home