weka.core
Class Tag

java.lang.Object
  |
  +--weka.core.Tag

public class Tag
extends Object

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

Author:
Len Trigg

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

Field Detail

m_ID

protected int m_ID
The ID


m_Readable

protected String m_Readable
The descriptive text

Constructor Detail

Tag

public Tag(int ident,
           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 String getReadable()
Gets the string description of the Tag.

Returns:
the description of the Tag.