Package weka.core

Class AbstractSimpleOptionHandler

    • Constructor Detail

      • AbstractSimpleOptionHandler

        public AbstractSimpleOptionHandler()
    • Method Detail

      • listOptions

        public Enumeration<weka.core.Option> listOptions()
        Returns an enumeration of all the available options..
        Specified by:
        listOptions in interface weka.core.OptionHandler
        Returns:
        an enumeration of all available options.
      • setOptions

        public void setOptions​(String[] options)
                        throws Exception
        Sets the OptionHandler's options using the given list. All options will be set (or reset) during this call (i.e. incremental setting of options is not possible).
        Specified by:
        setOptions in interface weka.core.OptionHandler
        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 option settings for the OptionHandler.
        Specified by:
        getOptions in interface weka.core.OptionHandler
        Returns:
        the list of current option settings as an array of strings