Class SelectedTag
- java.lang.Object
-
- org.processmining.plugins.workshop.Yaguang.WekaDiscriminationTree.SelectedTag
-
public class SelectedTag extends java.lang.ObjectRepresents 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.- Version:
- $Revision: 1.6.2.1 $
- Author:
- Len Trigg
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_SelectedThe index of the selected tagprotected Tag[]m_TagsThe set of tags to choose from
-
Constructor Summary
Constructors Constructor Description SelectedTag(int tagID, Tag[] tags)Creates a newSelectedTaginstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returns true if this SelectedTag equals another objectTaggetSelectedTag()Gets the selected Tag.Tag[]getTags()Gets the set of all valid Tags.
-
-
-
Field Detail
-
m_Selected
protected int m_Selected
The index of the selected tag
-
m_Tags
protected Tag[] m_Tags
The set of tags to choose from
-
-
Constructor Detail
-
SelectedTag
public SelectedTag(int tagID, Tag[] tags)Creates a newSelectedTaginstance.- 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
-
equals
public boolean equals(java.lang.Object o)
Returns true if this SelectedTag equals another object- Overrides:
equalsin classjava.lang.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.
-
-