weka.core
Class Tag

java.lang.Object
  extended by weka.core.Tag

public class Tag
extends java.lang.Object

A Tag simply associates a numeric ID with a String description.

Version:
$Revision: 1.5.2.1 $
Author:
Len Trigg

Constructor Summary
Tag(int ident, java.lang.String readable)
          Creates a new Tag instance.
 
Method Summary
 int getID()
          Gets the numeric ID of the Tag.
 java.lang.String getReadable()
          Gets the string description of the Tag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

public Tag(int ident,
           java.lang.String readable)
Creates a new Tag instance.

Parameters:
ident - the ID for the new Tag.
readable - the description for the new Tag.
Method Detail

getID

public int getID()
Gets the numeric ID of the Tag.

Returns:
the ID of the Tag.

getReadable

public java.lang.String getReadable()
Gets the string description of the Tag.

Returns:
the description of the Tag.