程序包 weka.core

类 Tag

java.lang.Object
weka.core.Tag
所有已实现的接口:
Serializable, RevisionHandler

public class Tag extends Object implements Serializable, RevisionHandler
A Tag simply associates a numeric ID with a String description.
版本:
$Revision: 1.13 $
作者:
Len Trigg
另请参阅:
  • 构造器概要

    构造器
    构造器
    说明
    Tag()
    Creates a new default Tag
    Tag(int ident, String readable)
    Creates a new Tag instance.
    Tag(int ident, String identStr, String readable)
    Creates a new Tag instance.
    Tag(int ident, String identStr, String readable, boolean upperCase)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Gets the numeric ID of the Tag.
    Gets the string ID of the Tag.
    Gets the string description of the Tag.
    Returns the revision string.
    void
    setID(int id)
    Sets the numeric ID of the Tag.
    void
    Sets the string ID of the Tag.
    void
    Sets the string description of the Tag.
    static String
    toOptionList(Tag[] tags)
    returns a list that can be used in the listOption methods to list all the available ID strings, e.g.: <0|1|2> or <what|ever>
    static String
    returns a string that can be used in the listOption methods to list all the available options, i.e., "\t\tID = Text\n" for each option
    returns the IDStr

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • Tag

      public Tag()
      Creates a new default Tag
    • Tag

      public Tag(int ident, String readable)
      Creates a new Tag instance.
      参数:
      ident - the ID for the new Tag.
      readable - the description for the new Tag.
    • Tag

      public Tag(int ident, String identStr, String readable)
      Creates a new Tag instance.
      参数:
      ident - the ID for the new Tag.
      identStr - the ID string for the new Tag (case-insensitive).
      readable - the description for the new Tag.
    • Tag

      public Tag(int ident, String identStr, String readable, boolean upperCase)
  • 方法详细资料

    • getID

      public int getID()
      Gets the numeric ID of the Tag.
      返回:
      the ID of the Tag.
    • setID

      public void setID(int id)
      Sets the numeric ID of the Tag.
      参数:
      id - the ID of the Tag.
    • getIDStr

      public String getIDStr()
      Gets the string ID of the Tag.
      返回:
      the string ID of the Tag.
    • setIDStr

      public void setIDStr(String str)
      Sets the string ID of the Tag.
      参数:
      str - the string ID of the Tag.
    • getReadable

      public String getReadable()
      Gets the string description of the Tag.
      返回:
      the description of the Tag.
    • setReadable

      public void setReadable(String r)
      Sets the string description of the Tag.
      参数:
      r - the description of the Tag.
    • toString

      public String toString()
      returns the IDStr
      覆盖:
      toString 在类中 Object
      返回:
      the IDStr
    • toOptionList

      public static String toOptionList(Tag[] tags)
      returns a list that can be used in the listOption methods to list all the available ID strings, e.g.: <0|1|2> or <what|ever>
      参数:
      tags - the tags to create the list for
      返回:
      a list of all ID strings
    • toOptionSynopsis

      public static String toOptionSynopsis(Tag[] tags)
      returns a string that can be used in the listOption methods to list all the available options, i.e., "\t\tID = Text\n" for each option
      参数:
      tags - the tags to create the string for
      返回:
      a string explaining the tags
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision