类 ClassAssigner

所有已实现的接口:
Serializable, CapabilitiesHandler, OptionHandler, RevisionHandler, StreamableFilter

public class ClassAssigner extends SimpleStreamFilter
Filter that can set and unset the class index.

Valid options are:

 -D
  Turns on output of debugging information.
 -C <num|first|last|0>
  The index of the class attribute. Index starts with 1, 'first'
  and 'last' are accepted, '0' unsets the class index.
  (default: last)
版本:
$Revision: 5543 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • FIRST

      public static final int FIRST
      use the first attribute as class.
      另请参阅:
    • LAST

      public static final int LAST
      use the last attribute as class.
      另请参阅:
    • UNSET

      public static final int UNSET
      unset the class attribute.
      另请参阅:
  • 构造器详细资料

    • ClassAssigner

      public ClassAssigner()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this classifier.
      指定者:
      globalInfo 在类中 SimpleFilter
      返回:
      a description of the classifier suitable for displaying in the explorer/experimenter gui
    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      覆盖:
      listOptions 在类中 SimpleFilter
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      Parses a list of options for this object.

      Valid options are:

       -D
        Turns on output of debugging information.
       -C <num|first|last|0>
        The index of the class attribute. Index starts with 1, 'first'
        and 'last' are accepted, '0' unsets the class index.
        (default: last)
      指定者:
      setOptions 在接口中 OptionHandler
      覆盖:
      setOptions 在类中 SimpleFilter
      参数:
      options - the list of options as an array of strings
      抛出:
      Exception - if an option is not supported
      另请参阅:
      • SimpleFilter.reset()
    • getOptions

      public String[] getOptions()
      Gets the current settings of the filter.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 SimpleFilter
      返回:
      an array of strings suitable for passing to setOptions
    • classIndexTipText

      public String classIndexTipText()
      Returns the tip text for this property.
      返回:
      tip text for this property suitable for displaying in the explorer/experimenter gui
    • setClassIndex

      public void setClassIndex(String value)
      sets the class index.
      参数:
      value - the class index
    • getClassIndex

      public String getClassIndex()
      returns the class index.
      返回:
      the class index
    • getCapabilities

      public Capabilities getCapabilities()
      Returns the Capabilities of this filter.
      指定者:
      getCapabilities 在接口中 CapabilitiesHandler
      覆盖:
      getCapabilities 在类中 Filter
      返回:
      the capabilities of this object
      另请参阅:
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      覆盖:
      getRevision 在类中 Filter
      返回:
      the revision
    • main

      public static void main(String[] args)
      Main method for executing this class.
      参数:
      args - should contain arguments for the filter: use -h for help