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 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
-
SelectedTag(int, Tag[])
- Creates a new
SelectedTag
instance.
-
equals(Object)
- Returns true if this SelectedTag equals another object
-
getSelectedTag()
- Gets the selected Tag.
-
getTags()
- Gets the set of all valid Tags.
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: IllegalArgumentException
- if the selected tag isn't in the array
of valid values.
equals
public boolean equals(Object o)
- Returns true if this SelectedTag equals another object
- Overrides:
- equals in class Object
getSelectedTag
public Tag getSelectedTag()
- Gets the selected Tag.
- Returns:
- the selected Tag.
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