Class ClassAssigner

    • Constructor Detail

      • ClassAssigner

        public ClassAssigner()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing this classifier.
        Specified by:
        globalInfo in class SimpleFilter
        Returns:
        a description of the classifier suitable for displaying in the explorer/experimenter gui
      • 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)
         
        Specified by:
        setOptions in interface OptionHandler
        Overrides:
        setOptions in class Filter
        Parameters:
        options - the list of options as an array of strings
        Throws:
        Exception - if an option is not supported
      • getOptions

        public String[] getOptions()
        Gets the current settings of the filter.
        Specified by:
        getOptions in interface OptionHandler
        Overrides:
        getOptions in class Filter
        Returns:
        an array of strings suitable for passing to setOptions
      • classIndexTipText

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

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

        public String getClassIndex()
        returns the class index.
        Returns:
        the class index
      • main

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