weka.core
Interface OptionHandler

All Known Implementing Classes:
DiscretizeFilter, FilteredClassifier, KEAFilter, KEAKeyphraseExtractor, KEAModelBuilder, KEAPhraseFilter

public interface OptionHandler

Interface to something that understands options.

Version:
$Revision: 1.1 $
Author:
Eibe Frank ([email protected]), Len Trigg ([email protected])

Method Summary
 java.lang.String[] getOptions()
          Gets the current option settings for the OptionHandler.
 java.util.Enumeration listOptions()
          Returns an enumeration of all the available options.
 void setOptions(java.lang.String[] options)
          Sets the OptionHandler's options using the given list.
 

Method Detail

listOptions

java.util.Enumeration listOptions()
Returns an enumeration of all the available options.

Returns:
an enumeration of all available options

setOptions

void setOptions(java.lang.String[] options)
                throws java.lang.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).

Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported

getOptions

java.lang.String[] getOptions()
Gets the current option settings for the OptionHandler.

Returns:
the list of current option settings as an array of strings