|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weka.core.SelectedTag
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.
Field Summary | |
protected int |
m_Selected
The index of the selected tag |
protected Tag[] |
m_Tags
The set of tags to choose from |
Constructor Summary | |
SelectedTag(int tagID,
Tag[] tags)
Creates a new SelectedTag instance. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if this SelectedTag equals another object |
Tag |
getSelectedTag()
Gets the selected Tag. |
Tag[] |
getTags()
Gets the set of all valid Tags. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int m_Selected
protected Tag[] m_Tags
Constructor Detail |
public SelectedTag(int tagID, Tag[] tags)
SelectedTag
instance.
tagID
- the id of the selected tag.tags
- an array containing the possible valid Tags.
java.lang.IllegalArgumentException
- if the selected tag isn't in the array
of valid values.Method Detail |
public boolean equals(java.lang.Object o)
public Tag getSelectedTag()
public Tag[] getTags()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |