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

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.

Constructors

 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: IllegalArgumentException
if the selected tag isn't in the array of valid values.

Methods

 o equals
 public boolean equals(Object o)
Returns true if this SelectedTag equals another object

Overrides:
equals in class 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